/* Original-design review: consistent outline menu icons only. */
body .pm-app-sidebar .pm-sidebar-link .pm-link-icon {
  background-image:none!important;
  background-color:transparent!important;
  color:#cbd5e1!important;
}
body .pm-app-sidebar .pm-sidebar-link.active .pm-link-icon {
  color:#ffffff!important;
}
body .pm-app-sidebar .pm-sidebar-link .pm-link-icon::before {
  display:none!important;
}
body .pm-app-sidebar .pm-sidebar-link .pm-link-icon svg {
  display:block!important;
  width:22px!important;
  height:22px!important;
  fill:none!important;
}
body .pm-app-sidebar .pm-sidebar-link .pm-link-icon svg * {
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Keep the client's dashboard layout; soften color and improve reading. */
body .pm-dashboard-blue-shell {
  background:#2563eb!important;
}
body .pm-ref-kpi-card.is-blue { background:#1457f5!important; }
body .pm-ref-kpi-card.is-amber { background:#e49a00!important; }
body .pm-ref-kpi-card.is-red { background:#e60019!important; }
body .pm-ref-kpi-card.is-green { background:#009846!important; }
body .pm-ref-kpi-card.is-purple { background:#9b00d9!important; }
body .pm-ref-kpi-card.is-orange { background:#e84a00!important; }
body .pm-ref-kpi-card.is-indigo { background:#5146e8!important; }
/* Comparison badges are omitted in the approved dashboard presentation. */
body .pm-ref-kpi-change { display:none!important; }
body .pm-ref-card h2,
body .pm-dashboard-quick-actions h2 {
  font-family:'Segoe UI',Arial,sans-serif;
  text-transform:none!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.5;
  text-wrap:balance;
}
body .pm-ref-card-title-row { align-items:flex-start; }
body .pm-ref-card-title-row>button { flex-shrink:0; white-space:nowrap; }
body .pm-ref-table-wrap { overflow-x:auto!important; position:relative; }
body .pm-ref-table {
  table-layout:auto!important;
  min-width:390px!important;
  font-variant-numeric:tabular-nums;
}
body .pm-ref-table th {
  font-family:'Segoe UI',Arial,sans-serif;
  font-size:12px!important;
  font-weight:600!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  padding:10px 8px!important;
  line-height:1.4;
}
body .pm-ref-table td {
  font-size:12px!important;
  font-weight:500!important;
  padding:10px 8px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
}
body .pm-courier-today-table th,
body .pm-courier-today-table td { width:auto!important; }
body .pm-recent-receipt-table { min-width:440px!important; }
body .pm-overdue-parcel-table { min-width:1000px!important; }
body .pm-ref-table tfoot td { background:#2563eb!important; font-weight:600!important; }
body .pm-ref-card-title-row button { font-size:12px; }

/* Fit the compact dashboard tables; long reports still scroll within their card. */
body .pm-ref-table { table-layout:fixed!important; min-width:0!important; }
body .pm-ref-table th { padding-inline:4px!important; overflow-wrap:anywhere; }
body .pm-ref-table td { padding-inline:4px!important; }
body .pm-recent-receipt-table { min-width:0!important; }
body .pm-recent-receipt-table th:nth-child(1) { width:15%; }
body .pm-recent-receipt-table th:nth-child(2) { width:19%; }
body .pm-recent-receipt-table th:nth-child(3) { width:17%; }
body .pm-recent-receipt-table th:nth-child(4) { width:29%; }
body .pm-recent-receipt-table th:nth-child(5) { width:20%; }
body .pm-overdue-parcel-table { min-width:1000px!important; }
body .pm-courier-today-table th:nth-child(1),body .pm-courier-today-table td:nth-child(1) { width:20%!important; }
body .pm-courier-today-table th:nth-child(2),body .pm-courier-today-table td:nth-child(2),body .pm-courier-today-table th:nth-child(3),body .pm-courier-today-table td:nth-child(3),body .pm-courier-today-table th:nth-child(6),body .pm-courier-today-table td:nth-child(6) { width:14%!important; }
body .pm-courier-today-table th:nth-child(4),body .pm-courier-today-table td:nth-child(4),body .pm-courier-today-table th:nth-child(5),body .pm-courier-today-table td:nth-child(5) { width:19%!important; }
body .pm-courier-today-table th { padding-inline:2px!important; }

/* Compact widths keep words and identifiers intact. */
body .pm-ref-table th,
body .pm-ref-table td { overflow-wrap:normal!important; word-break:normal!important; }
body .pm-ref-table th { font-size:11px!important; padding-inline:2px!important; }
body .pm-courier-today-table th { white-space:nowrap!important; }
body .pm-recent-receipt-table th:nth-child(2),
body .pm-recent-receipt-table td:nth-child(2) { width:22%!important; white-space:nowrap!important; }
body .pm-recent-receipt-table th:nth-child(3),
body .pm-recent-receipt-table td:nth-child(3) { width:16%!important; white-space:nowrap!important; }
body .pm-recent-receipt-table th:nth-child(4),
body .pm-recent-receipt-table td:nth-child(4) { width:27%!important; }
body .pm-type-pill { white-space:nowrap!important; font-size:10px!important; padding-inline:5px!important; }
body .pm-ref-split:has(.pm-exception-cards:empty) { grid-template-columns:minmax(0,1fr); }
body .pm-exception-cards:empty { display:none; }
body .pm-ref-split:has(.pm-exception-cards:empty) .pm-exception-list-card { grid-column:1; min-height:0; }
body .pm-exception-empty { color:#64748b; margin:0; font-size:13px; }
@media (max-width:1350px) { body .pm-ref-table td { font-size:11px!important; padding-inline:2px!important; } }

/* Match the original sidebar to the preview header's navy. */
body .pm-app-sidebar {
  background:#0f172a!important;
}

/* Compact menu rows with consistent spacing between adjacent items. */
body .pm-app-sidebar .pm-sidebar-link {
  min-height:44px!important;
  padding-block:8px!important;
}
body .pm-sidebar-nav { gap:4px!important; }
body .pm-sidebar-scroll>.pm-sidebar-link { margin-top:4px!important; }
body .pm-sidebar-section-label { margin-top:16px!important; margin-bottom:8px!important; }

/* Premium navigation states: quiet at rest, clear on hover and selection. */
body .pm-app-sidebar .pm-sidebar-link:hover .pm-link-icon,
body .pm-app-sidebar .pm-sidebar-link:focus-visible .pm-link-icon {
  color:#ffffff!important;
}
body .pm-app-sidebar .pm-sidebar-link.active {
  color:#ffffff!important;
}

body .pm-app-sidebar .pm-sidebar-link { font-size:14px!important; }
body .pm-sidebar-section-label { font-size:11px!important; }
body .pm-ref-split:has(.pm-exception-cards:empty) .pm-exception-list-card:has(.pm-ref-card-title-row:last-child)::after { content:"No exceptions to display."; display:block; color:#64748b; font-size:13px; }
