/* Exportar — layout; cáscara/botones → atenea-chrome steel */

.overlay-exportar {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
.overlay-exportar.visible { display: flex; }

.overlay-exportar .exp-modal {
  position: relative;
  width: min(480px, 94vw);
  max-height: min(92vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 20px 20px 0;
  scrollbar-width: thin;
  scrollbar-color: #2a3d52 transparent;
}

/* Bloquear scroll de matriz / página detrás del modal */
html.exportar-open,
body.exportar-open {
  overflow: hidden !important;
}
#tabla-wrap.exportar-scroll-lock,
.table-wrap.exportar-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.overlay-exportar .exp-modal::-webkit-scrollbar { width: 6px; }
.overlay-exportar .exp-modal::-webkit-scrollbar-thumb {
  background: #2a3d52;
  border-radius: 6px;
}

.overlay-exportar .exp-cerrar {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.overlay-exportar .exp-modal > h2 {
  margin: 0 0 8px;
  padding-right: 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.overlay-exportar .exp-modal > h2 i {
  color: var(--steel-icon);
  font-size: 13px;
}

.exp-hint {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #8b97a8;
  font-family: inherit;
}

.exp-box {
  margin: 0 0 4px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a3d52 transparent;
}
.exp-box::-webkit-scrollbar { width: 6px; }
.exp-box::-webkit-scrollbar-thumb {
  background: #2a3d52;
  border-radius: 6px;
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-block { margin: 0; }
.exp-label {
  display: block;
  font-size: 10px;
  color: #8ea1b5;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  font-family: inherit;
  font-weight: 600;
}
.exp-opts {
  display: grid;
  gap: 6px;
}
.exp-opts--2 { grid-template-columns: 1fr 1fr; }
.exp-opts--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .exp-opts--3 { grid-template-columns: 1fr; }
}
.exp-opts--3 { grid-template-columns: repeat(3, 1fr); }

/* .exp-opt base → atenea-chrome; activo iconos cian */
.overlay-exportar .exp-opt.exp-activo .fa-solid,
.overlay-exportar .exp-opt.exp-activo .ico-cyan,
.overlay-exportar .exp-opt.exp-activo-verde .fa-solid,
.overlay-exportar .exp-opt.exp-activo-verde .ico-cyan {
  color: #4fc3f7 !important;
}

.exp-radios {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-radios label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: #6a7a8a;
  letter-spacing: normal;
}
.exp-radios label:hover { color: #a8b8c8; }
.exp-radios input[type="radio"] {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #4fc3f7;
  cursor: pointer;
}
.exp-radios label:has(input[type="radio"]:checked) {
  color: #a8b8c8;
}
.exp-rango {
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.exp-rango:not([hidden]) {
  display: flex;
}
.exp-rango-sep {
  color: #3d4155;
  font-size: 11px;
  flex-shrink: 0;
}
.exp-input {
  background: rgba(16, 21, 29, 0.85);
  border: 1px solid #3d4a5c;
  color: #a8b8c8;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  color-scheme: dark;
}
.exp-input:focus { border-color: #5a6a7d; }
.exp-input-date {
  width: 8.6rem;
  max-width: 8.6rem;
  min-width: 0;
  box-sizing: border-box;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.25;
  color: #8ea1b5;
}
.exp-input-date::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 12px;
  height: 12px;
}
.exp-search { width: 100%; margin-top: 8px; box-sizing: border-box; display: none; }
.exp-search:not([hidden]) { display: block; }
.exp-select {
  width: 100%;
  margin-top: 8px;
  min-height: 6rem;
  max-height: 8rem;
  box-sizing: border-box;
  display: none;
  font-size: 11px;
  padding: 4px 6px;
}
.exp-select:not([hidden]) { display: block; }
.exp-mini {
  margin: 6px 0 0;
  font-size: 9px;
  color: #5a6575;
  line-height: 1.35;
  font-family: inherit;
}
#exp-hint-alcance:not([hidden]) {
  display: block;
}
.exp-mini kbd {
  font-size: 9px;
  padding: 0 3px;
  border: 1px solid #3d4a5c;
  border-radius: 3px;
  color: #6a7a8a;
}
.exp-msg {
  font-size: 11px;
  color: #94a3b8;
  margin: 6px 0 0;
  font-family: inherit;
}
.exp-msg--err { color: #f44336; }

.exp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.exp-footer .btn-modal-primary i { font-size: 10px; }

.overlay-exportar .exp-firma {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 18px;
  padding: 6px 0 10px;
  user-select: none;
  pointer-events: none;
}

.btn-exportar-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.exp-radios--row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.exp-radio-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* .exp-info = mismo look que matriz (.info-conductor-hint); tip vía AteneaUiTips */
.overlay-exportar .exp-info {
  cursor: help;
}
.exp-check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  color: #6a7a8a;
  font-family: inherit;
  cursor: pointer;
}
.exp-check:hover { color: #a8b8c8; }
.exp-check input[type="checkbox"] {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #4fc3f7;
  cursor: pointer;
}
.exp-tope-banner {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #2a3d52;
  border-radius: 8px;
  background: rgba(79, 195, 247, 0.06);
  font-size: 10px;
  line-height: 1.45;
  color: #8ea1b5;
  font-family: inherit;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.exp-tope-banner:not([hidden]) {
  display: flex;
}
.exp-tope-banner #exp-tope-txt { flex: 1 1 12rem; }
.exp-link {
  border: none;
  background: transparent;
  color: #4fc3f7;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.exp-link:hover { color: #81d4fa; }
#exp-tip-semana {
  margin-top: 6px;
}
