/* PAC Control Tower v1.9.2 REV9.2
   Detail 360 responsive cards: no horizontal tables or scrollbars. */

.detail-panel.active.expanded.v103-drilldown-modal {
  width: clamp(660px, 44vw, 780px) !important;
  max-width: calc(100vw - 20px) !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
}

.v1926-detail360-compact,
.v1927-no-horizontal,
.v1927-detail-summary-list,
.v1927-evidence-grid {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.v1926-detail360-compact .v103-modal-header {
  padding: 16px 18px 13px !important;
}

.v1926-detail360-compact .v103-modal-header h2 {
  margin: 4px 48px 3px 0 !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.12 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v1926-detail360-compact .v103-modal-header p {
  margin: 0 48px 0 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v1926-four-kpis {
  padding: 12px 18px 2px !important;
  gap: 8px !important;
}

.v1926-four-kpis .v103-mini-metric {
  min-height: 62px !important;
  padding: 10px 12px !important;
}

.v1926-compact-summary,
.v1926-priority-evidence {
  margin: 10px 18px 0 !important;
  padding: 11px !important;
  width: calc(100% - 36px) !important;
  max-width: calc(100% - 36px) !important;
  overflow: hidden !important;
}

.v1926-compact-summary h3,
.v1926-priority-evidence h3 {
  margin: 0 0 9px !important;
}

/* Summary: one compact business row per dimension. */
.v1927-detail-summary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.v1927-detail-summary-card {
  min-width: 0;
  padding: 9px 10px 8px;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #ffffff;
}

.v1927-detail-summary-name {
  width: 100%;
  margin-bottom: 6px;
  color: #101828;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v1927-detail-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.v1927-detail-inline-metric {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f3f6f9;
}

.v1927-detail-inline-metric span,
.v1927-detail-inline-metric strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v1927-detail-inline-metric span {
  color: #667085;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.v1927-detail-inline-metric strong {
  color: #101828;
  font-size: 11px;
}

.v1927-detail-share-track {
  height: 4px;
  margin-top: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(142, 195, 203, .18);
}

.v1927-detail-share-fill {
  min-width: 2px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20c8d8, #48dca2);
}

/* Evidence: two-column card grid; no report-style DataTable. */
.v1927-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.v1927-evidence-card {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #ffffff;
}

.v1927-evidence-top,
.v1927-evidence-bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v1927-evidence-shipment,
.v1927-evidence-gp,
.v1927-evidence-client,
.v1927-evidence-value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v1927-evidence-shipment {
  color: #344054;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.v1927-evidence-gp {
  flex: 0 0 auto;
  max-width: 44%;
  color: #8ce9d0;
  font-size: 10px;
  font-weight: 800;
}

.v1927-evidence-client {
  margin: 5px 0 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.v1927-evidence-bottom {
  justify-content: flex-start;
}

.v1927-evidence-label {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 99px;
  color: #b8eef3;
  background: rgba(44, 151, 169, .20);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.v1927-evidence-value {
  color: #667085;
  font-size: 10px;
}

/* Safety: Detail 360 must not expose internal spreadsheet scrollbars. */
.v1926-detail360-compact .dash-table-container,
.v1926-detail360-compact .dash-spreadsheet-container,
.v1926-detail360-compact .dash-spreadsheet-inner,
.v1926-detail360-compact .dash-spreadsheet-inner table {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

@media (max-width: 760px) {
  .detail-panel.active.expanded.v103-drilldown-modal {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
  }
  .v1927-evidence-grid {
    grid-template-columns: 1fr;
  }
  .v1927-detail-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .v1926-four-kpis,
  .v1927-detail-summary-metrics {
    grid-template-columns: 1fr !important;
  }
  .v1926-detail360-compact .v103-modal-header h2,
  .v1926-detail360-compact .v103-modal-header p {
    white-space: normal;
  }
}

/* PAC HF6B-B2 | Detail 360 card light contract */
