/* ATLAS BIOSCAN IOF - Diseño corporativo claro v0.2 */

.atlas-iof-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(14, 22, 31, .73);
  font-family: inherit;
  color: #292f35;
}

.atlas-iof-overlay *,
.atlas-iof-overlay *::before,
.atlas-iof-overlay *::after {
  box-sizing: border-box;
}

.atlas-iof-panel {
  width: min(1280px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f1f3f5;
  border: 1px solid #d4dbe0;
  border-radius: 22px;
  box-shadow: 0 28px 75px rgba(0,0,0,.32);
  color: #292f35;
}

.atlas-iof-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 32px 22px;
  background: #f1f3f5;
  border-bottom: 1px solid #ccd4da;
}

.atlas-iof-heading {
  min-width: 0;
}

.atlas-iof-brand {
  display: block;
  color: #10bf8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.atlas-iof-heading h2 {
  margin: 7px 0 3px;
  color: #22282e;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
}

.atlas-iof-heading p {
  margin: 0;
  color: #637285;
  font-size: 14px;
  line-height: 1.45;
}

.atlas-iof-close {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd4da;
  border-radius: 13px;
  background: #e9edf0;
  color: #2b343a;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.atlas-iof-close:hover {
  background: #dce4e8;
}

.atlas-iof-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 16px 28px;
  overflow-x: auto;
  background: #e1e6e9;
  border-bottom: 1px solid #cbd3d9;
}

.atlas-iof-nav button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #bdc8cf;
  border-radius: 11px;
  background: #fff;
  color: #30363b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.atlas-iof-nav button:hover {
  border-color: #0d9e79;
}

.atlas-iof-nav button.active {
  border: 2px solid #20c997;
  background: #d9f2e9;
  color: #00765d;
  box-shadow: inset 0 0 0 1px rgba(32,201,151,.18);
}

.atlas-iof-content {
  flex: 1 1 auto;
  min-height: 320px;
  overflow: auto;
  padding: 30px 34px 38px;
  background: #f1f3f5;
}

.atlas-iof-content h3 {
  margin: 0 0 19px;
  color: #262d33;
  font-size: 23px;
  font-weight: 800;
}

.atlas-iof-intro {
  margin: 0 0 24px;
  color: #394149;
  font-size: 15px;
  line-height: 1.7;
}

.atlas-iof-notice {
  padding: 21px 24px;
  border: 1px solid #cfd8dd;
  border-radius: 13px;
  background: #e5e9ec;
  color: #30383e;
}

.atlas-iof-notice strong {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
}

.atlas-iof-notice p {
  margin: 0;
  color: #52616b;
  font-size: 14px;
  line-height: 1.6;
}

.atlas-iof-overlay button:focus-visible {
  outline: 3px solid #20c997;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .atlas-iof-overlay { padding: 8px; }
  .atlas-iof-panel {
    max-height: 96vh;
    border-radius: 15px;
  }
  .atlas-iof-header { padding: 18px; }
  .atlas-iof-heading h2 { font-size: 21px; }
  .atlas-iof-nav { padding: 12px; }
  .atlas-iof-nav button {
    font-size: 12px;
    padding: 0 12px;
  }
  .atlas-iof-content { padding: 23px 18px; }
}


/* ATLAS IOF COMPACT TABS V1 */
/* Navegación compacta igual que Forest Operations */

#atlas-iof-module .atlas-iof-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    align-content: flex-start !important;

    width: 100% !important;
    gap: 8px !important;
    padding: 14px 28px !important;

    overflow-x: visible !important;
}

#atlas-iof-module .atlas-iof-nav button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;

    min-height: 42px !important;
    height: 42px !important;

    padding: 0 15px !important;
    margin: 0 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;

    border-radius: 10px !important;
    box-shadow: none !important;
}

#atlas-iof-module .atlas-iof-nav button.active {
    background: #dff3e8 !important;
    color: #047857 !important;
    border: 2px solid #20c997 !important;
}

@media (max-width: 700px) {
    #atlas-iof-module .atlas-iof-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 10px 12px !important;
    }

    #atlas-iof-module .atlas-iof-nav button {
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 11px !important;
        font-size: 12px !important;
    }
}


/* ATLAS IOF PARCEL SELECTOR V1 */

#atlas-iof-module .atlas-iof-parcel-selector {
  background: #ffffff;
  border: 1px solid #cfd8dd;
  border-radius: 13px;
  padding: 22px;
  margin-bottom: 24px;
}

#atlas-iof-module .atlas-iof-parcel-selector label {
  display: block;
  color: #29343d;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

#atlas-iof-module .atlas-iof-parcel-selector select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  background: #ffffff;
  color: #26343c;
  border: 1px solid #bfcbd2;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

#atlas-iof-module .atlas-iof-parcel-selector select:focus {
  outline: 2px solid #20c997;
  outline-offset: 2px;
}

#atlas-iof-module .atlas-iof-parcel-status {
  color: #64748b;
  font-size: 13px;
  margin: 12px 0 0;
  line-height: 1.5;
}

#atlas-iof-module .atlas-iof-parcel-detail {
  margin-top: 16px;
}

#atlas-iof-module .atlas-iof-parcel-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #e3e8ec;
  font-size: 13px;
  color: #35424c;
}

#atlas-iof-module .atlas-iof-parcel-row strong {
  font-weight: 700;
}

#atlas-iof-module .atlas-iof-parcel-row span {
  text-align: right;
}

@media (max-width: 600px) {
  #atlas-iof-module .atlas-iof-parcel-row {
    flex-direction: column;
    gap: 4px;
  }
}
