/* ══════════════════════════════════════════════════════════════
   MÓDULO METRIC LATAM (mt*) — contenedor de dashboards
   ══════════════════════════════════════════════════════════════ */
.mt-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.mt-tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 9px 12px; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--text-mid); letter-spacing: .03em; }
.mt-tab.on { color: var(--delta-navy); border-bottom-color: var(--delta-red); }
.mt-tab[disabled] { opacity: .45; cursor: default; }
.mt-banner { background: linear-gradient(90deg, #5B1F1A, #8C2F27); color: #fff; border-radius: 8px 8px 0 0;
  padding: 10px 18px; display: flex; align-items: center; gap: 12px; }
.mt-banner h2 { margin: 0 auto; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.mt-banner .mt-sub { font-size: 12px; opacity: .85; }
.mt-grid { display: grid; gap: 12px; }
.mt-row1 { grid-template-columns: 250px minmax(0, 1fr) minmax(280px, 32%); align-items: stretch; }
.mt-filtros3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; align-content: start; }
.mt-filtros3 .mt-sel { padding: 0 4px; font-size: 13px; }
.mt-row2 { grid-template-columns: 210px minmax(0, 1fr); }
.mt-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.mt-lbl { font-size: 11px; font-weight: 700; color: var(--text-mid); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.mt-sel { width: 100%; height: 34px; border: 1px solid var(--border); border-radius: 4px; padding: 0 8px; font-size: 14px; background: #fff; }
.mt-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-kpi { flex: 1; min-width: 150px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px 10px; position: relative; overflow: hidden; }
.mt-kpi .t { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.mt-kpi .v { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 600; line-height: 1.05; }
.mt-kpi .p { font-size: 12px; color: var(--text-mid); }
.mt-kpi .bar { position: absolute; left: 0; bottom: 0; height: 6px; }
.mt-share { height: 8px; border-radius: 4px; overflow: hidden; display: flex; margin-top: 8px; background: #EEF1F5; }
.mt-checks { max-height: 260px; overflow-y: auto; font-size: 13px; }
.mt-checks label { display: flex; align-items: center; gap: 7px; padding: 3px 0; cursor: pointer; }
.mt-checks label span.n { margin-left: auto; font-size: 11px; color: var(--text-light); }
.mt-chart-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mt-chart-h .tt { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 700; color: var(--delta-navy); margin: 0 auto; }
.mt-tables { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); margin-top: 12px; }
.mt-tbl-h { color: #fff; padding: 8px 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; border-radius: 6px 6px 0 0; }
.mt-tbl-h .tot { margin-left: auto; font-size: 12px; font-weight: 600; opacity: .9; }
.mt-tbl-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-top: none; border-radius: 0 0 6px 6px; }
.mt-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.mt-tbl th { position: sticky; top: 0; background: #F4F6F9; color: var(--text-mid); font-size: 11px; font-weight: 700; padding: 6px 8px; text-align: left; white-space: nowrap; z-index: 1; }
.mt-tbl td { padding: 5px 8px; border-bottom: 1px solid #F0F2F5; vertical-align: top; }
.mt-tbl td.r, .mt-tbl th.r { text-align: right; }
/* Catalog review — carga masiva de IATA */
.mt-pd-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.mt-pd-legend { font-size: 11px; color: var(--text-mid); display: inline-flex; align-items: center; gap: 4px; }
.mt-pd-sw { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--border); border-radius: 2px; margin-left: 6px; }
.mt-pd-sw.sug, .mt-pd-in.sug { background: #E8F8F0; }
.mt-pd-sw.sugp, .mt-pd-in.sugp { background: #FFF4D6; }
.mt-pd-in { height: 28px !important; width: 74px !important; text-transform: uppercase; font-family: 'Courier New', monospace; letter-spacing: .05em; }
.mt-pd-in.man { background: #fff; border-color: var(--delta-navy, #0B3D91); }
.mt-pd-in.bad { border-color: #C8102E; background: #FDECEE; }
.mt-pd-hint { font-size: 11px; color: var(--text-light); margin-top: 2px; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-pd-paste { margin-bottom: 8px; }
.mt-pd-paste textarea { width: 100%; box-sizing: border-box; font-family: 'Courier New', monospace; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 6px; }
.mt-tbl tr.hija td { background: #F6F9FE; }
.mt-filtro { display: inline-flex; align-items: center; gap: 8px; background: #FFF4D6; color: #7A5200; border-radius: 14px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.mt-filtro button { background: none; border: none; cursor: pointer; font-size: 14px; color: #7A5200; }
.mt-aviso { background: #FFF4D6; border: 1px solid #F3D48A; color: #7A5200; border-radius: 6px; padding: 7px 12px; font-size: 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mt-empty { padding: 24px; text-align: center; color: var(--text-mid); font-size: 13px; }
/* Multi-select desplegable (Airlines / Cargo type) */
.mt-ms { position: relative; margin-bottom: 10px; }
.mt-ms-btn { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 4px;
    background: #fff; padding: 4px 8px; font-size: 13px; cursor: pointer; text-align: left; }
.mt-ms-btn:hover, .mt-ms.open .mt-ms-btn { border-color: var(--delta-navy); }
.mt-ms-btn .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text-dark); }
.mt-ms-btn .cnt { background: var(--delta-navy); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; padding: 1px 6px; }
.mt-ms-btn .caret { color: var(--text-mid); font-size: 11px; }
.mt-ms-panel { position: absolute; top: calc(100% + 3px); left: 0; width: 300px; background: #fff; border: 1px solid var(--border);
    border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 50; padding: 8px; }
.mt-ms-q { width: 100%; height: 30px; border: 1px solid var(--border); border-radius: 4px; padding: 0 8px; font-size: 12px; margin-bottom: 6px; box-sizing: border-box; }
.mt-ms-list { max-height: 280px; overflow-y: auto; font-size: 13px; }
.mt-ms-list label { display: flex; align-items: center; gap: 7px; padding: 3px 2px; cursor: pointer; border-radius: 3px; }
.mt-ms-list label:hover { background: #F4F6F9; }
.mt-ms-list label span.n { margin-left: auto; font-size: 11px; color: var(--text-light); white-space: nowrap; }
.mt-ms-foot { display: flex; gap: 6px; justify-content: space-between; border-top: 1px solid #F0F2F5; margin-top: 6px; padding-top: 6px; }
.mt-clear { background: none; border: none; color: var(--delta-red); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.mt-clear:hover { text-decoration: underline; }
/* Guías Delta (prefijo 006) transportadas por otras aerolíneas */
.mt-tbl tr.dl006 td { background: #EAF1FB; }
.mt-tbl tr.dl006 td:first-child { box-shadow: inset 3px 0 0 #0B3D91; }
.mt-dl-tag { display: inline-block; background: #0B3D91; color: #fff; border-radius: 3px; font-size: 9px; font-weight: 700; padding: 0 4px; margin-left: 4px; vertical-align: middle; }
@media (max-width: 1100px) { .mt-row1, .mt-row2 { grid-template-columns: 1fr; } }
