:root {
  --dc-navy: #071b2e;
  --dc-blue: #1769e0;
  --dc-green: #15965b;
  --dc-red: #d44444;
  --dc-amber: #d98712;
  --dc-surface: #f5f7fa;
}
.exec-shell,
.module-103 {
  padding-bottom: 110px;
}
.exec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.exec-head h2 {
  margin: 0.15rem 0;
}
.exec-date {
  font-size: 12px;
  color: #667085;
}
.exec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.exec-card {
  background: #fff;
  border: 1px solid #e3e9f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(7, 27, 46, 0.06);
  min-width: 0;
}
.exec-card span,
.exec-card small {
  display: block;
  color: #667085;
}
.exec-card b {
  display: block;
  font-size: clamp(19px, 2.5vw, 30px);
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.exec-card.good b {
  color: var(--dc-green);
}
.exec-card.bad b {
  color: var(--dc-red);
}
.exec-card.warn b {
  color: var(--dc-amber);
}
.exec-card.primary {
  background: linear-gradient(145deg, #08233d, #0d4e86);
  color: #fff;
}
.exec-card.primary span,
.exec-card.primary small {
  color: #c9def2;
}
.exec-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.exec-status .pill {
  padding: 8px 11px;
}
.delta {
  font-size: 12px;
  font-weight: 700;
}
.delta.up {
  color: var(--dc-green);
}
.delta.down {
  color: var(--dc-red);
}
.module-tabs,
.period-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 3px 0 11px;
  scrollbar-width: none;
}
.module-tabs button,
.period-tabs button {
  white-space: nowrap;
  border: 1px solid #dce4ed;
  background: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  color: #344054;
}
.module-tabs button.active,
.period-tabs button.active {
  background: var(--dc-navy);
  color: #fff;
  border-color: var(--dc-navy);
}
.data-toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.data-toolbar input,
.data-toolbar select {
  flex: 1;
  min-width: 140px;
}
.enterprise-table-wrap {
  overflow: auto;
  border: 1px solid #e3e9f0;
  border-radius: 16px;
  background: #fff;
}
.enterprise-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
}
.enterprise-table th,
.enterprise-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
}
.enterprise-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  z-index: 1;
}
.enterprise-table td.amount {
  text-align: right;
  font-weight: 750;
}
.enterprise-table tr:last-child td {
  border-bottom: 0;
}
.alert-card {
  border-left: 5px solid #98a2b3;
}
.alert-card.critical {
  border-color: var(--dc-red);
}
.alert-card.warning {
  border-color: var(--dc-amber);
}
.alert-card.info {
  border-color: var(--dc-blue);
}
.alert-card.done {
  opacity: 0.68;
}
.due-tag {
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff3df;
  color: #8b5000;
}
.due-tag.overdue {
  background: #ffe5e5;
  color: #9d2424;
}
.debt-chart {
  width: 100%;
  height: auto;
  min-height: 240px;
}
.debt-chart text {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}
.chart-scroll {
  overflow: auto;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #667085;
  margin-top: 10px;
}
.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.report-card {
  border: 1px solid #e3e9f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.report-card b {
  font-size: 20px;
  display: block;
  margin-top: 5px;
}
.gps-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.gps-history-map {
  height: 330px;
  border-radius: 16px;
  overflow: hidden;
  background: #eaf0f5;
}
.gps-timeline {
  max-height: 330px;
  overflow: auto;
}
.gps-event {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}
.gps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dc-blue);
  margin-top: 5px;
}
.gps-diagnostic li {
  margin: 8px 0;
}
.gps-queue-badge {
  font-weight: 700;
  color: var(--dc-amber);
}
.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f7f9fb;
  border-radius: 12px;
  padding: 10px;
}
.form-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #174c7e;
  font-size: 13px;
}
.print-only {
  display: none;
}
@media (max-width: 820px) {
  .exec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-cards,
  .gps-pro-grid {
    grid-template-columns: 1fr 1fr;
  }
  .exec-card {
    padding: 13px;
  }
  .exec-card b {
    font-size: 21px;
  }
  .enterprise-table-wrap {
    border: 0;
    background: transparent;
  }
  .enterprise-table,
  .enterprise-table thead,
  .enterprise-table tbody,
  .enterprise-table th,
  .enterprise-table td,
  .enterprise-table tr {
    display: block;
    min-width: 0;
  }
  .enterprise-table thead {
    display: none;
  }
  .enterprise-table tr {
    background: #fff;
    border: 1px solid #e3e9f0;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 9px;
  }
  .enterprise-table td {
    border: 0;
    padding: 5px 7px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  .enterprise-table td:before {
    content: attr(data-label);
    color: #667085;
    text-align: left;
    font-size: 12px;
  }
  .enterprise-table td.amount {
    text-align: right;
  }
  .exec-head {
    align-items: stretch;
    flex-direction: column;
  }
  .data-toolbar > * {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .exec-grid,
  .report-cards,
  .gps-pro-grid {
    grid-template-columns: 1fr;
  }
  .exec-card {
    border-radius: 15px;
  }
  .module-103 {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .gps-history-map {
    height: 270px;
  }
  .topbar .subtitle {
    display: none;
  }
}
@media print {
  .topbar,
  .bottom-nav,
  .data-toolbar,
  .module-tabs,
  .period-tabs,
  button {
    display: none !important;
  }
  .app-shell,
  main,
  .module-103 {
    padding: 0 !important;
    margin: 0 !important;
  }
  .card,
  .exec-card,
  .report-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  .enterprise-table-wrap {
    overflow: visible;
  }
  .enterprise-table {
    min-width: 0;
  }
}
