/* Componentes visuales para las pantallas renovadas de GIRAG.
   Agregar .gl-ui al contenedor de cada pantalla para evitar afectar las vistas antiguas. */
.gl-ui {
  --gl-ink: #24334a;
  --gl-heading: #173d58;
  --gl-muted: #6b7890;
  --gl-accent: #176a89;
  --gl-line: #e4ebf2;
  --gl-soft: #f4f7fa;
  color: var(--gl-ink);
}
.gl-ui .gl-hero {
  background: linear-gradient(120deg, #102b49, var(--gl-accent));
  border-radius: 16px;
  color: #fff;
  padding: 17px 24px;
  box-shadow: 0 10px 24px rgba(20, 48, 77, .12);
}
.gl-ui .gl-hero h2 {
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
.gl-ui .gl-card {
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(21, 49, 75, .05);
}
.gl-ui .gl-section-title {
  color: var(--gl-heading);
  font-size: .96rem;
  font-weight: 700;
}
.gl-ui .gl-empty {
  padding: 22px;
  text-align: center;
  color: var(--gl-muted);
}
.gl-ui .gl-table {
  margin: 0;
}
.gl-ui .gl-table thead th {
  border: 0;
  background: var(--gl-soft);
  color: #607087;
  font-size: .73rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px;
}
.gl-ui .gl-table tbody td {
  border-top: 1px solid #edf1f5;
  padding: 12px;
  vertical-align: middle;
}
.gl-ui .gl-table tbody tr:hover { background: #f7fbfd; }
.gl-ui .gl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e8f4f8;
  color: var(--gl-accent);
  margin: 0 3px;
}
.gl-ui .gl-action:hover { background: var(--gl-accent); color: #fff; }
.gl-ui .gl-badge {
  display: inline-block;
  border-radius: 30px;
  background: #e5f4f4;
  color: #12635e;
  padding: 5px 10px;
  font-size: .76rem;
  font-weight: 700;
}
.gl-ui .gl-badge.pending { background: #fff1db; color: #946000; }
@media (max-width: 575px) {
  .gl-ui .gl-hero { padding: 16px 18px; }
}

/* Reporte AIT por aerolínea */
.ait-report { max-width: 1500px; margin: 0 auto 32px; }
.ait-report .ait-hero { margin-bottom: 14px; }
.ait-report .ait-hero p { margin: 4px 0 0; opacity: .82; }
.ait-report .ait-eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.ait-report .ait-filter { padding: 17px 20px; margin-bottom: 14px; }
.ait-report .ait-filter h3 { margin: 0 0 13px; }
.ait-report .ait-filter-grid {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(170px, .75fr) minmax(260px, 1.5fr);
  gap: 12px 16px;
}
.ait-report .ait-field label {
  display: block;
  margin-bottom: 6px;
  color: #506078;
  font-size: .82rem;
  font-weight: 700;
}
.ait-report .ait-field .form-control {
  min-height: 40px;
  border-color: #d6e0e9;
  border-radius: 9px;
}
.ait-report select.ait-multiselect { width: 100%; }
.ait-report select.ait-multiselect-ready { display: none !important; }
.ait-report .ait-field .ms-parent {
  display: block;
  width: 100% !important;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.ait-report .ait-field .ms-choice {
  width: 100%;
  height: 40px;
  line-height: 38px;
  border: 1px solid #d6e0e9;
  border-radius: 9px;
  color: var(--gl-ink);
  background: #fff;
  box-shadow: none;
}
.ait-report .ait-field .ms-choice > span {
  line-height: 38px;
  padding-left: 12px;
  padding-right: 30px;
}
.ait-report .ait-field .ms-choice > div { top: 7px; }
.ait-report .ait-field .ms-drop {
  border-color: #d6e0e9;
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(21, 49, 75, .12);
  z-index: 1050;
}
.ait-report .ait-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}
.ait-report .ait-filter-actions .btn { border-radius: 9px; font-weight: 700; padding: 8px 16px; }
.ait-report .ait-primary { background: var(--gl-accent); border-color: var(--gl-accent); color: #fff; }
.ait-report .ait-primary:hover,
.ait-report .ait-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.ait-report .ait-results { overflow: hidden; }
.ait-report .ait-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gl-line);
}
.ait-report .ait-results-body { padding: 0 14px 14px; }
.ait-report .ait-empty { min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ait-report .ait-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 0;
}
.ait-report .ait-summary span {
  border-radius: 20px;
  background: #edf5f8;
  color: #496176;
  padding: 5px 11px;
  font-size: .78rem;
}
.ait-report .ait-summary strong { color: var(--gl-heading); }
.ait-report .ait-table { min-width: 940px; }
.ait-report .ait-table thead th[role="columnheader"] { cursor: pointer; user-select: none; }
.ait-report .ait-table thead th[role="columnheader"]::after {
  content: '\2195';
  margin-left: 7px;
  color: #9aa8b8;
  font-size: .82rem;
}
.ait-report .ait-table thead th[aria-sort="ascending"]::after { content: '\2191'; color: var(--gl-accent); }
.ait-report .ait-table thead th[aria-sort="descending"]::after { content: '\2193'; color: var(--gl-accent); }
.ait-report .ait-table .ait-guide { color: var(--gl-heading); font-weight: 700; }
.ait-report .ait-table tfoot td {
  border: 0;
  background: #eaf3f7;
  color: var(--gl-heading);
  font-weight: 700;
  padding: 12px;
}
@media (max-width: 767px) {
  .ait-report .ait-filter-grid { grid-template-columns: 1fr; }
  .ait-report .ait-filter-actions { align-items: stretch; flex-direction: column; }
  .ait-report .ait-filter-actions .btn { width: 100%; }
  .ait-report .ait-results-head { align-items: flex-start; flex-direction: column; }
  .ait-report .ait-results-body { padding: 0 10px 10px; }
  .ait-report .ait-summary { justify-content: flex-start; }
}

/* Carga de exportación y transferencia de exportación */
.carga-export { max-width: 1500px; margin: 0 auto 32px; }
.carga-export .ce-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.carga-export .ce-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.carga-export .ce-primary {
  background: var(--gl-accent);
  border-color: var(--gl-accent);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  padding: 9px 17px;
}
.carga-export .ce-primary:hover,
.carga-export .ce-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.carga-export .ce-hero .ce-primary { background: #fff; border-color: #fff; color: #14506c; white-space: nowrap; }
.carga-export .ce-hero .ce-primary:hover { background: #e8f4f8; }
.carga-export .ce-filter-card { padding: 18px 20px; margin-bottom: 14px; }
.carga-export .ce-filter-card h3 { margin: 0 0 14px; }
.carga-export .ce-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
}
.carga-export .ce-field { min-width: 0; }
.carga-export .ce-field label {
  display: block;
  color: #506078;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.carga-export .ce-field .form-control {
  border-color: #d6e0e9;
  border-radius: 9px;
  min-height: 40px;
}
.carga-export .ce-filter-grid select.ce-multiselect {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d6e0e9;
  border-radius: 9px;
  background: #fff;
}
.carga-export .ce-filter-grid select.ce-multiselect-ready { display: none !important; }
.carga-export .ce-filter-grid .ms-parent {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.carga-export .ce-filter-grid .ms-choice {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 38px;
  padding: 0;
  border: 1px solid #d6e0e9;
  border-radius: 9px;
  color: var(--gl-ink);
  background: #fff;
  box-shadow: none;
}
.carga-export .ce-filter-grid .ms-choice > span {
  display: block;
  line-height: 38px;
  padding-left: 12px;
  padding-right: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carga-export .ce-filter-grid .ms-choice > div { top: 7px; }
.carga-export .ce-filter-grid .ms-drop {
  border-color: #d6e0e9;
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(21, 49, 75, .12);
  z-index: 1050;
}
.carga-export .ce-filter-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.carga-export .ce-results { overflow: hidden; }
.carga-export .ce-results-head { padding: 13px 18px; border-bottom: 1px solid var(--gl-line); }
.carga-export .ce-results-head h3 { margin: 0; }
.carga-export .ce-results-body { padding: 0 14px 14px; }
.carga-export .ce-results-body .table-responsive { overflow: visible !important; }
.carga-export .ce-results-body .gl-table { width: 100%; table-layout: fixed; }
.carga-export .ce-results-body .gl-table th,
.carga-export .ce-results-body .gl-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .8rem;
  padding: 10px 7px;
}
.carga-export .ce-row-actions { white-space: nowrap; }
.carga-export .ce-row-actions .gl-action { border: 0; cursor: pointer; }
@media (max-width: 1199px) {
  .carga-export .ce-results-body { padding: 12px; }
  .carga-export .ce-results-body .ce-table,
  .carga-export .ce-results-body .ce-table tbody { display: block; width: 100%; }
  .carga-export .ce-results-body .ce-table thead { display: none; }
  .carga-export .ce-results-body .ce-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .carga-export .ce-results-body .ce-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    padding: 10px 14px;
    border: 1px solid var(--gl-line);
    border-radius: 11px;
    background: #fff;
  }
  .carga-export .ce-results-body .ce-table td {
    display: block;
    min-width: 0;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid var(--gl-line);
  }
  .carga-export .ce-results-body .ce-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--gl-muted);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .carga-export .ce-results-body .ce-table .ce-row-actions {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
@media (max-width: 750px) {
  .carga-export .ce-results-body .ce-table tbody { grid-template-columns: 1fr; }
}
.carga-export .ce-modal .modal-content { border: 0; border-radius: 15px; overflow: hidden; }
.carga-export .ce-modal .modal-header { align-items: flex-start; border-bottom-color: var(--gl-line); }
.carga-export .ce-modal .modal-title { color: var(--gl-heading); font-size: 1.13rem; font-weight: 700; }
.carga-export .ce-modal .ce-eyebrow { color: var(--gl-muted); }
.carga-export .ce-modal .modal-body { display: grid; gap: 13px; }
.carga-export .ce-modal .modal-footer { border-top-color: var(--gl-line); }
.carga-export .ce-modal .alert[hidden] { display: none; }
.carga-export .ui-autocomplete { z-index: 1065; }
@media (max-width: 900px) {
  .carga-export .ce-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .carga-export .ce-hero { align-items: stretch; flex-direction: column; }
  .carga-export .ce-filter-grid { grid-template-columns: 1fr; }
  .carga-export .ce-filter-card { padding: 16px; }
  .carga-export .ce-filter-actions .btn { width: 100%; }
}

/* Catálogo de códigos IMP */
.codigo-interlineal { max-width: 1100px; margin: 0 auto 32px; }
.codigo-interlineal .ci-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.codigo-interlineal .ci-eyebrow {
  display: block;
  color: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.codigo-interlineal .ci-primary {
  background: var(--gl-accent);
  border-color: var(--gl-accent);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  padding: 9px 17px;
}
.codigo-interlineal .ci-primary:hover,
.codigo-interlineal .ci-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.codigo-interlineal .ci-hero .ci-primary { background: #fff; border-color: #fff; color: #14506c; white-space: nowrap; }
.codigo-interlineal .ci-filter-card { padding: 18px 20px; margin-bottom: 14px; }
.codigo-interlineal .ci-filter-card h3 { margin: 0 0 14px; }
.codigo-interlineal .ci-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.codigo-interlineal .ci-field label {
  display: block;
  color: #506078;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.codigo-interlineal .ci-field .form-control {
  min-height: 40px;
  border-color: #d6e0e9;
  border-radius: 9px;
}
.codigo-interlineal .ci-results { overflow: hidden; }
.codigo-interlineal .ci-results-head { padding: 13px 18px; border-bottom: 1px solid var(--gl-line); }
.codigo-interlineal .ci-results-head h3 { margin: 0; }
.codigo-interlineal .ci-results-body { padding: 0 14px 14px; }
.codigo-interlineal .ci-results-body .table-responsive { overflow: visible; }
.codigo-interlineal .ci-table { width: 100%; table-layout: fixed; }
.codigo-interlineal .ci-table th:last-child { width: 100px; }
.codigo-interlineal .ci-code { color: var(--gl-heading); }
.codigo-interlineal .ci-row-actions { white-space: nowrap; text-align: right; }
.codigo-interlineal .ci-row-actions .gl-action { border: 0; cursor: pointer; }
.codigo-interlineal .ci-row-actions .ci-delete { background: #fbecee; color: #a42432; }
.codigo-interlineal .ci-modal .modal-content { border: 0; border-radius: 15px; overflow: hidden; }
.codigo-interlineal .ci-modal .modal-header { align-items: flex-start; border-bottom-color: var(--gl-line); }
.codigo-interlineal .ci-modal .modal-title { color: var(--gl-heading); font-size: 1.13rem; font-weight: 700; }
.codigo-interlineal .ci-modal .ci-eyebrow { color: var(--gl-muted); }
.codigo-interlineal .ci-modal .modal-body { display: grid; gap: 13px; }
.codigo-interlineal .ci-modal .modal-footer { border-top-color: var(--gl-line); }
.codigo-interlineal .ci-modal .ci-error[hidden] { display: none; }
@media (max-width: 700px) {
  .codigo-interlineal .ci-hero { align-items: stretch; flex-direction: column; }
  .codigo-interlineal .ci-filter-grid { grid-template-columns: 1fr; }
  .codigo-interlineal .ci-filter-grid .btn { width: 100%; }
  .codigo-interlineal .ci-results-body { padding: 12px; }
  .codigo-interlineal .ci-table,
  .codigo-interlineal .ci-table tbody { display: block; width: 100%; }
  .codigo-interlineal .ci-table thead { display: none; }
  .codigo-interlineal .ci-table tr {
    display: block;
    margin-bottom: 10px;
    padding: 9px 13px;
    border: 1px solid var(--gl-line);
    border-radius: 11px;
  }
  .codigo-interlineal .ci-table td {
    display: block;
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid var(--gl-line);
    overflow-wrap: anywhere;
  }
  .codigo-interlineal .ci-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--gl-muted);
    font-size: .69rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .codigo-interlineal .ci-table .ci-row-actions { border-bottom: 0; text-align: left; }
}

/* Consulta de guías */
.guia-report { max-width: 1500px; margin: 0 auto 28px; }
.guia-report .guia-filter {
  padding: 16px 20px;
  margin: 14px 0 16px;
  position: relative;
}
.guia-report .guia-filter label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #506078;
  margin-bottom: 7px;
}
.guia-report .guia-filter .form-control {
  height: 43px;
  border-radius: 10px;
  border-color: #d6e0e9;
}
.guia-report .guia-filter .btn {
  height: 43px;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 700;
  background: var(--gl-accent);
  border-color: var(--gl-accent);
}
.guia-report .guia-results { overflow: hidden; }
.guia-report .guia-results-head {
  padding: 12px 20px;
  border-bottom: 1px solid #edf1f5;
}
.guia-report .guia-results-body { padding: 0 18px 18px; }
.guia-report .guia-table { white-space: nowrap; }
.guia-report .guia-guide { font-weight: 700; color: #164e69; }
@media (max-width: 575px) {
  .guia-report .guia-filter { margin: 12px 0 16px; }
}

/* Detalle individual de la guía */
.guia-detail { max-width: 1320px; margin: 0 auto 36px; }
.guia-detail .gd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--gl-accent);
}
.guia-detail .gd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.guia-detail .gd-eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
}
.guia-detail .gd-hero h2 { margin: 4px 0 2px; font-size: 1.35rem; }
.guia-detail .gd-hero p { margin: 0; opacity: .82; }
.guia-detail .gd-status {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  padding: 8px 15px;
  font-size: .85rem;
  font-weight: 700;
}
.guia-detail .gd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.guia-detail .gd-metric { padding: 14px 18px; }
.guia-detail .gd-metric span {
  display: block;
  color: var(--gl-muted);
  font-size: .8rem;
  margin-bottom: 7px;
}
.guia-detail .gd-metric strong {
  display: block;
  font-size: 1.05rem;
  color: var(--gl-heading);
  overflow-wrap: anywhere;
}
.guia-detail .gd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guia-detail .gd-card { padding: 18px 21px; margin-bottom: 14px; }
.guia-detail .gd-card h3 { margin: 0 0 10px; }
.guia-detail .guia-field {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #edf1f5;
  padding: 11px 0;
}
.guia-detail .guia-field span { color: var(--gl-muted); }
.guia-detail .guia-field strong {
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.guia-detail .gd-note {
  background: #f6f9fb;
  border-radius: 10px;
  padding: 13px 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.guia-detail .gd-empty {
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 16px;
}
@media (max-width: 800px) {
  .guia-detail .gd-metrics,
  .guia-detail .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .guia-detail .gd-metrics,
  .guia-detail .gd-grid { grid-template-columns: 1fr; }
}

/* Reporte de carga por aerolínea */
.reporte-carga-aerolinea { max-width: 1500px; margin: 0 auto 32px; }
.reporte-carga-aerolinea .rca-hero { margin-bottom: 14px; }
.reporte-carga-aerolinea .rca-hero p { margin: 4px 0 0; opacity: .82; }
.reporte-carga-aerolinea .rca-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .76;
}
.reporte-carga-aerolinea .rca-filter { padding: 17px 20px; margin-bottom: 14px; }
.reporte-carga-aerolinea .rca-filter h3 { margin: 0 0 13px; }
.reporte-carga-aerolinea .rca-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(2, minmax(145px, .7fr)) minmax(210px, 1fr);
  gap: 13px;
  align-items: start;
}
.reporte-carga-aerolinea .rca-field label {
  display: block;
  color: #506078;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.reporte-carga-aerolinea .rca-field small { display: block; color: var(--gl-muted); margin-top: 5px; }
.reporte-carga-aerolinea .rca-field .form-control {
  min-height: 40px;
  border-color: #d6e0e9;
  border-radius: 9px;
}
.reporte-carga-aerolinea .select2-container .select2-selection--multiple {
  min-height: 40px;
  border: 1px solid #d6e0e9;
  border-radius: 9px;
  padding: 2px 5px;
}
.reporte-carga-aerolinea .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--gl-accent);
}
.reporte-carga-aerolinea .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #e8f4f8;
  border-color: #cfe3ea;
  color: var(--gl-heading);
  border-radius: 7px;
  padding: 2px 7px 2px 22px;
}
.reporte-carga-aerolinea .rca-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}
.reporte-carga-aerolinea .rca-filter-actions .btn { border-radius: 9px; font-weight: 700; padding: 8px 16px; }
.reporte-carga-aerolinea .rca-primary { background: var(--gl-accent); border-color: var(--gl-accent); color: #fff; }
.reporte-carga-aerolinea .rca-primary:hover,
.reporte-carga-aerolinea .rca-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.reporte-carga-aerolinea .rca-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}
.reporte-carga-aerolinea .rca-kpi { padding: 13px 16px; border-left: 4px solid #176a89; }
.reporte-carga-aerolinea .rca-kpi-piezas { border-left-color: #0e9f9a; }
.reporte-carga-aerolinea .rca-kpi-guias { border-left-color: #6d5bd0; }
.reporte-carga-aerolinea .rca-kpi-aerolineas { border-left-color: #d28a16; }
.reporte-carga-aerolinea .rca-kpi span { display: block; color: var(--gl-muted); font-size: .76rem; }
.reporte-carga-aerolinea .rca-kpi strong { display: block; color: var(--gl-heading); font-size: 1.35rem; margin-top: 3px; }
.reporte-carga-aerolinea .rca-report { overflow: hidden; }
.reporte-carga-aerolinea .rca-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--gl-line);
}
.reporte-carga-aerolinea .rca-report-title { display: flex; align-items: center; gap: 13px; }
.reporte-carga-aerolinea .rca-report-title h3 { color: var(--gl-heading); font-size: 1.08rem; font-weight: 700; margin: 2px 0; }
.reporte-carga-aerolinea .rca-report-title p { color: var(--gl-muted); font-size: .82rem; margin: 0; }
.reporte-carga-aerolinea .rca-report-title .rca-eyebrow { color: var(--gl-accent); opacity: 1; }
.reporte-carga-aerolinea .rca-logo {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: contain;
  background: var(--gl-soft);
  padding: 6px;
}
.reporte-carga-aerolinea .rca-logo-placeholder { display: flex; align-items: center; justify-content: center; color: var(--gl-accent); font-size: 1.3rem; }
.reporte-carga-aerolinea .rca-selected { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 55%; }
.reporte-carga-aerolinea .rca-table { min-width: 920px; }
.reporte-carga-aerolinea .rca-table .rca-airline-cell {
  min-width: 155px;
  vertical-align: top;
  background: #f7fbfd;
  color: var(--gl-heading);
}
.reporte-carga-aerolinea .rca-airline-cell small { display: block; color: var(--gl-muted); margin-top: 5px; }
.reporte-carga-aerolinea .rca-table .rca-group-cell { text-align: center; vertical-align: middle; }
.reporte-carga-aerolinea .rca-table .rca-guide { color: var(--gl-heading); font-weight: 650; }
.reporte-carga-aerolinea .rca-table .rca-flight-total { color: var(--gl-heading); font-weight: 700; }
.reporte-carga-aerolinea .rca-table tfoot td { background: #eaf3f7; border: 0; color: var(--gl-heading); font-weight: 700; padding: 12px; }
.reporte-carga-aerolinea .rca-empty { min-height: 92px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1050px) {
  .reporte-carga-aerolinea .rca-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reporte-carga-aerolinea .rca-airline-field { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .reporte-carga-aerolinea .rca-filter-grid,
  .reporte-carga-aerolinea .rca-kpis { grid-template-columns: 1fr; }
  .reporte-carga-aerolinea .rca-airline-field { grid-column: auto; }
  .reporte-carga-aerolinea .rca-filter-actions { align-items: stretch; flex-direction: column; }
  .reporte-carga-aerolinea .rca-report-head { align-items: flex-start; flex-direction: column; }
  .reporte-carga-aerolinea .rca-selected { justify-content: flex-start; max-width: none; }
}

/* Catálogo de shippers */
.shipper-admin { max-width: 1500px; margin: 0 auto 30px; }
.shipper-admin .shipper-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.shipper-admin .shipper-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.shipper-admin .shipper-hero p { margin: 3px 0 0; font-size: .86rem; opacity: .82; }
.shipper-admin .shipper-primary {
  background: var(--gl-accent);
  border-color: var(--gl-accent);
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  padding: 8px 15px;
}
.shipper-modal .shipper-primary {
  background: var(--gl-accent);
  border-color: var(--gl-accent);
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  padding: 8px 15px;
}
.shipper-admin .shipper-hero .shipper-primary { background: #fff; border-color: #fff; color: var(--gl-accent); white-space: nowrap; }
.shipper-admin .shipper-primary:hover,
.shipper-admin .shipper-primary:focus,
.shipper-modal .shipper-primary:hover,
.shipper-modal .shipper-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.shipper-admin .shipper-hero .shipper-primary:hover,
.shipper-admin .shipper-hero .shipper-primary:focus { background: #eaf4f8; border-color: #eaf4f8; color: #10546f; }
.shipper-admin .shipper-filters { margin-bottom: 14px; padding: 16px 18px; }
.shipper-admin .shipper-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shipper-admin .shipper-filters .form-group { margin-bottom: 0; }
.shipper-admin .shipper-filters label,
.shipper-modal label {
  color: var(--gl-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.shipper-admin .shipper-filters .form-control,
.shipper-modal .form-control { border-color: #dce5ed; border-radius: 8px; min-height: 38px; }
.shipper-admin .shipper-filter-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.shipper-admin .shipper-filter-actions .btn { border-radius: 9px; font-weight: 700; padding: 8px 15px; }
.shipper-admin .shipper-results { overflow: hidden; }
.shipper-admin .shipper-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gl-line);
}
.shipper-admin .shipper-list-summary { color: var(--gl-muted); font-size: .78rem; padding: 10px 18px 0; }
.shipper-admin .shipper-table { min-width: 760px; }
.shipper-admin .shipper-row-actions { white-space: nowrap; }
.shipper-admin .shipper-row-actions .gl-action { border: 0; cursor: pointer; }
.shipper-admin .shipper-row-actions .gl-action.danger { background: #fcebec; color: #a32832; }
.shipper-admin .shipper-row-actions .gl-action.danger:hover { background: #a32832; color: #fff; }
.shipper-modal { border: 0; border-radius: 14px; box-shadow: 0 18px 45px rgba(20, 48, 77, .2); overflow: hidden; }
.shipper-modal .modal-header { border-bottom-color: #e8eef4; color: var(--gl-heading); }
.shipper-modal .modal-title { font-size: 1.02rem; font-weight: 700; }
.shipper-modal .modal-footer { border-top-color: #e8eef4; }
@media (max-width: 900px) {
  .shipper-admin .shipper-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .shipper-admin .shipper-hero { align-items: stretch; flex-direction: column; }
  .shipper-admin .shipper-filter-grid { grid-template-columns: 1fr; }
  .shipper-admin .shipper-filter-actions { flex-direction: column-reverse; }
  .shipper-admin .shipper-filter-actions .btn { width: 100%; }
}

/* Permisos de menú por rol */
.menu-roles-admin { max-width: 1500px; margin: 0 auto 30px; }
.menu-roles-admin .menu-roles-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.menu-roles-admin .menu-roles-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}
.menu-roles-admin .menu-roles-hero p { margin: 3px 0 0; font-size: .86rem; opacity: .82; }
.menu-roles-admin .menu-roles-primary,
.menu-roles-modal .menu-roles-primary {
  background: var(--gl-accent);
  border-color: var(--gl-accent);
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  padding: 8px 15px;
}
.menu-roles-admin .menu-roles-hero .menu-roles-primary { background: #fff; border-color: #fff; color: var(--gl-accent); white-space: nowrap; }
.menu-roles-admin .menu-roles-primary:hover,
.menu-roles-admin .menu-roles-primary:focus,
.menu-roles-modal .menu-roles-primary:hover,
.menu-roles-modal .menu-roles-primary:focus { background: #10546f; border-color: #10546f; color: #fff; }
.menu-roles-admin .menu-roles-hero .menu-roles-primary:hover,
.menu-roles-admin .menu-roles-hero .menu-roles-primary:focus { background: #eaf4f8; border-color: #eaf4f8; color: #10546f; }
.menu-roles-admin .menu-roles-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 18px;
}
.menu-roles-admin .menu-roles-filter-field { flex: 1 1 520px; min-width: 0; }
.menu-roles-admin .menu-roles-filters label,
.menu-roles-modal label {
  color: var(--gl-muted);
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.menu-roles-admin .menu-roles-filter-actions { display: flex; gap: 8px; }
.menu-roles-admin .menu-roles-filter-actions .btn { border-radius: 9px; font-weight: 700; min-height: 38px; padding: 8px 15px; white-space: nowrap; }
.menu-roles-admin .menu-roles-results { overflow: hidden; }
.menu-roles-admin .menu-roles-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gl-line);
}
.menu-roles-admin .menu-roles-summary { color: var(--gl-muted); font-size: .78rem; padding: 10px 18px 0; }
.menu-roles-admin .menu-roles-table { min-width: 760px; }
.menu-roles-admin .menu-roles-role { display: inline-flex; align-items: center; gap: 8px; color: var(--gl-heading); font-weight: 700; }
.menu-roles-admin .menu-roles-role i { color: var(--gl-accent); }
.menu-roles-admin .menu-roles-row-actions { white-space: nowrap; }
.menu-roles-admin .menu-roles-row-actions .gl-action { border: 0; cursor: pointer; }
.menu-roles-admin .menu-roles-row-actions .gl-action.danger { background: #fcebec; color: #a32832; }
.menu-roles-admin .menu-roles-row-actions .gl-action.danger:hover { background: #a32832; color: #fff; }
.menu-roles-admin .ms-parent,
.menu-roles-modal .ms-parent { width: 100% !important; }
.menu-roles-admin .ms-choice,
.menu-roles-modal .ms-choice {
  border-color: #dce5ed;
  border-radius: 8px;
  height: 38px;
  line-height: 36px;
}
.menu-roles-admin .ms-choice > span,
.menu-roles-modal .ms-choice > span { line-height: 36px; padding-left: 11px; }
.menu-roles-admin .ms-drop,
.menu-roles-modal .ms-drop { border-color: #dce5ed; border-radius: 8px; }
.menu-roles-modal { border: 0; border-radius: 14px; box-shadow: 0 18px 45px rgba(20, 48, 77, .2); overflow: visible; }
.menu-roles-modal .modal-header { border-bottom-color: #e8eef4; color: var(--gl-heading); }
.menu-roles-modal .modal-title { font-size: 1.02rem; font-weight: 700; }
.menu-roles-modal .modal-footer { border-top-color: #e8eef4; }
.menu-roles-modal .form-control { border-color: #dce5ed; border-radius: 8px; min-height: 38px; }
@media (max-width: 700px) {
  .menu-roles-admin .menu-roles-hero,
  .menu-roles-admin .menu-roles-filters { align-items: stretch; flex-direction: column; }
  .menu-roles-admin .menu-roles-filter-field { flex-basis: auto; }
  .menu-roles-admin .menu-roles-filter-actions { flex-direction: column-reverse; }
  .menu-roles-admin .menu-roles-filter-actions .btn { width: 100%; }
}
