/* WCS Portal — Tactile Navigator Design System */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primary & Accents */
  --primary: #006096;
  --primary-container: #177ab9;
  --primary-10: rgba(0,96,150,0.1);
  --primary-20: rgba(0,96,150,0.2);
  --secondary: #406904;
  --secondary-10: rgba(64,105,4,0.1);
  --tertiary: #7f5300;
  --tertiary-10: rgba(127,83,0,0.1);
  --error: #ba1a1a;
  --error-10: rgba(186,26,26,0.1);

  /* Surfaces — "Paper on Glass" */
  --bg: #faf9f3;
  --surface: #faf9f3;
  --surface-dim: #dbdad4;
  --surface-container-low: #f5f4ee;
  --surface-container: #efeee8;
  --surface-container-high: #e9e8e2;
  --surface-container-highest: #e3e3dd;
  --surface-container-lowest: #ffffff;

  /* Text */
  --on-surface: #1b1c19;
  --on-surface-variant: #404750;
  --outline: #707881;
  --outline-variant: #c0c7d1;

  /* Radii */
  --radius: 0.5rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — Ambient Glows only */
  --shadow-sm: 0 1px 4px rgba(27,28,25,0.04);
  --shadow-md: 0 8px 24px rgba(27,28,25,0.06);
  --shadow-lg: 0 20px 40px rgba(27,28,25,0.08);

  --transition: 0.2s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-container-highest); border-radius: 10px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-10) 0%, transparent 70%);
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary-10) 0%, transparent 70%);
  border-radius: 50%;
}
.login-container { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 1; }
.login-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 64px; margin-bottom: 12px; }
.login-logo h1 { font-family: 'Manrope', sans-serif; font-size: 20px; color: var(--primary); font-weight: 800; }
.login-logo p { color: var(--on-surface-variant); font-size: 12px; margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--on-surface-variant);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--on-surface);
  background: var(--surface-container-high);
  transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px var(--primary-10);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, #006096 0%, #177ab9 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(0,96,150,0.2);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,96,150,0.3); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  background: var(--surface-container-high);
  border: none;
  color: var(--on-surface);
}
.btn-outline:hover { background: var(--surface-container-highest); }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-small { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== ERROR ===== */
.error-msg {
  color: var(--error);
  font-size: 13px;
  margin: 8px 0;
  padding: 12px 16px;
  background: var(--error-10);
  border-radius: var(--radius);
}

/* ===== APP LAYOUT ===== */
.app { display: flex; min-height: 100vh; }

/* ===== SIDEBAR — Light "Tactile" Style ===== */
.sidebar {
  width: 256px;
  background: var(--surface-container-low);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  padding: 24px 0;
}
.sidebar-header {
  padding: 20px 16px 28px;
  text-align: center;
}
.sidebar-header img { height: auto; width: 160px; max-width: 100%; display: block; margin: 0 auto; }
.sidebar-header h2 { display: none; }
.sidebar-subtitle { display: none; }
.nav-links {
  list-style: none;
  padding: 0 0 0 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #57606a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}
.nav-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}
.nav-link.active {
  color: var(--primary);
  background: var(--surface-container-lowest);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
/* Material Symbols base */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
.nav-link.active .material-symbols-outlined,
.nav-link:hover .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.nav-icon { font-size: 20px; width: 24px; text-align: center; }


.sidebar-footer {
  padding: 16px 24px;
  margin-top: auto;
}
.user-info { margin-bottom: 8px; }
#userDisplayName {
  display: block;
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--primary-10);
  color: var(--primary);
  margin-top: 4px;
}
.small-link {
  color: var(--on-surface-variant);
  font-size: 12px;
  text-decoration: none;
  transition: color var(--transition);
}
.small-link:hover { color: var(--primary); }

/* ===== MAIN CONTENT ===== */
.content {
  flex: 1;
  margin-left: 256px;
  padding: 32px 40px;
  min-height: 100vh;
  max-width: calc(100vw - 256px);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.record-count {
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 500;
  background: var(--surface-container);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-bar input[type="text"] {
  flex: 1;
  min-width: 240px;
  padding: 11px 20px;
  font-size: 13px;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-container-low);
  color: var(--on-surface);
  outline: none;
  transition: all var(--transition);
}
.filter-bar input[type="text"]:focus {
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px var(--primary-10);
}
.filter-bar input[type="text"]::placeholder { color: var(--on-surface-variant); }
.filter-bar select, .filter-bar input[type="date"] {
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-container-low);
  color: var(--on-surface);
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-bar select:focus, .filter-bar input[type="date"]:focus {
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px var(--primary-10);
}
.search-bar { margin-bottom: 16px; }
.search-bar input {
  width: 100%;
  padding: 11px 20px;
  font-size: 13px;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-container-low);
  color: var(--on-surface);
  outline: none;
}
.search-bar input:focus { background: var(--surface-container-lowest); box-shadow: 0 0 0 3px var(--primary-10); }
.search-bar input::placeholder { color: var(--on-surface-variant); }

/* ===== CARDS — "Paper on Glass" ===== */
.card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  border: none;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* ===== TABLES — No Grid Lines, Alternating Tones ===== */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--primary);
  border: none;
  font-weight: 700;
}
thead tr th:first-child { border-radius: var(--radius) 0 0 var(--radius); }
thead tr th:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
td {
  padding: 14px 20px;
  border: none;
  font-size: 13px;
  color: var(--on-surface);
}
tbody tr {
  border-radius: var(--radius);
}
tbody tr:nth-child(even) { background: var(--surface-container-low); }
tbody tr:nth-child(odd) { background: transparent; }
tr.clickable { cursor: pointer; transition: all 0.3s; }
tr.clickable:hover {
  background: var(--primary-10) !important;
  transform: translateX(2px);
}

/* ===== STATUS BADGES — Pill with Left Accent ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-active, .status-open, .status-planned { background: var(--primary-10); color: var(--primary); }
.status-active::before, .status-open::before, .status-planned::before { background: var(--primary); }
.status-inwarehouse, .status-received { background: var(--secondary-10); color: var(--secondary); }
.status-inwarehouse::before, .status-received::before { background: var(--secondary); }
.status-completed, .status-delivered, .status-paid, .status-arrived { background: #e8f5e9; color: #2e7d32; }
.status-completed::before, .status-delivered::before, .status-paid::before, .status-arrived::before { background: #2e7d32; }
.status-pending, .status-intransit, .status-booked, .status-sailed { background: var(--tertiary-10); color: var(--tertiary); }
.status-pending::before, .status-intransit::before, .status-booked::before, .status-sailed::before { background: var(--tertiary); }
.status-loaded { background: #e3f2fd; color: #1565c0; }
.status-loaded::before { background: #1565c0; }
.status-cancelled, .status-overdue { background: var(--error-10); color: var(--error); }
.status-cancelled::before, .status-overdue::before { background: var(--error); }
.status-releasereceived { background: #e8f5e9; color: #2e7d32; }
.status-releasereceived::before { background: #2e7d32; }

/* ===== HAZMAT BADGE ===== */
.badge-hazmat {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--error-10);
  color: var(--error);
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== ATTACHMENT CATEGORIES ===== */
.attachment-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  text-align: center;
}
.cat-bol { background: var(--primary-10); color: var(--primary); }
.cat-waybill { background: var(--secondary-10); color: var(--secondary); }
.cat-loading_guide { background: var(--tertiary-10); color: var(--tertiary); }
.cat-imo_declaration { background: var(--error-10); color: var(--error); }
.cat-validated_title { background: #ede9fe; color: #5b21b6; }
.cat-other { background: var(--surface-container); color: var(--on-surface-variant); }

/* ===== DETAIL VIEW ===== */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.detail-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--primary);
}
.detail-header-actions { display: flex; align-items: center; gap: 12px; }
.back-btn {
  cursor: pointer;
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-container);
  transition: all var(--transition);
}
.back-btn:hover { background: var(--surface-container-high); color: var(--primary); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.detail-field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
  font-weight: 500;
}
.detail-field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
}

/* ===== ITEMS TABLE ===== */
.items-section { margin-top: 28px; }
.items-section h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--on-surface);
}

/* ===== ATTACHMENTS ===== */
.attachments-section { margin-top: 28px; }
.attachments-section h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--on-surface);
}
.attachments-section h4 {
  margin-top: 16px;
  font-size: 12px;
  color: var(--on-surface-variant);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.attachment-card {
  background: var(--surface-container-low);
  border: none;
  border-radius: var(--radius-xl);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.attachment-card:hover {
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.attachment-icon { font-size: 28px; margin-bottom: 8px; color: var(--secondary); }
.attachment-icon .material-symbols-outlined { font-size: 32px; }
.attachment-name {
  font-size: 11px;
  color: var(--on-surface-variant);
  word-break: break-all;
  line-height: 1.3;
}

/* ===== LOADING & EMPTY ===== */
.loading { text-align: center; padding: 60px 20px; color: var(--on-surface-variant); font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--on-surface-variant); }
.empty-state p { font-size: 15px; margin-bottom: 8px; }

/* ===== SHIPMENT PROGRESS BAR ===== */
.progress-roadmap {
  margin-bottom: 24px;
  padding: 28px 32px;
  background: var(--surface-container-lowest);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.progress-roadmap h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
  font-weight: 700;
}
.progress-steps {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.progress-step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: -50%;
  right: 50%;
  height: 4px;
  background: var(--surface-container-highest);
  z-index: 0;
  border-radius: var(--radius-full);
}
.progress-step:first-child::before { display: none; }
.progress-step.done::before { background: var(--secondary); }
.progress-step.current::before { background: var(--secondary); }
.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-container);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: all 0.3s;
}
.progress-step.done .progress-dot {
  background: var(--secondary);
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(64,105,4,0.2);
}
.progress-step.current .progress-dot {
  background: var(--surface-container-lowest);
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-20), var(--shadow-md);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-20), var(--shadow-md); }
  50% { box-shadow: 0 0 0 8px rgba(0,96,150,0.08), var(--shadow-md); }
}
.progress-label {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface-variant);
  line-height: 1.3;
}
.progress-step.done .progress-label { color: var(--secondary); font-weight: 600; }
.progress-step.current .progress-label { color: var(--primary); font-weight: 700; }

/* ===== VIN LINK ===== */
.vin-link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-20);
  transition: all var(--transition);
  font-size: 13px;
}
.vin-link:hover {
  color: var(--primary-container);
  border-bottom-style: solid;
}

/* ===== VIN MODAL ===== */
.modal-wide {
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; }

.vin-timeline { position: relative; padding-left: 28px; }
.vin-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--surface-container-highest);
}
.vin-step {
  position: relative;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--surface-container-low);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.vin-step:hover {
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.vin-step::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.vin-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.vin-step-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.vin-step-type.type-pk { background: var(--tertiary-10); color: var(--tertiary); }
.vin-step-type.type-wh { background: var(--primary-10); color: var(--primary); }
.vin-step-type.type-sh { background: var(--secondary-10); color: var(--secondary); }
.vin-step-number { font-weight: 600; font-size: 14px; color: var(--primary); }
.vin-step-meta { font-size: 12px; color: var(--on-surface-variant); }
.vin-step-meta span { margin-right: 14px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,28,25,0.92);
  backdrop-filter: blur(12px);
}
.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px 100px;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 36px;
  cursor: pointer; z-index: 10;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none; color: #fff;
  font-size: 24px; padding: 16px 14px;
  cursor: pointer; z-index: 10;
  border-radius: var(--radius-xl);
  opacity: 0.6;
  transition: all var(--transition);
}
.lightbox-nav:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-loading { color: #fff; font-size: 14px; }
.lightbox-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
}
.lightbox-footer span { opacity: 0.8; }
.lightbox-actions { display: flex; gap: 8px; }
.lightbox-actions .btn { color: #fff; border-color: rgba(255,255,255,0.25); font-size: 12px; background: rgba(255,255,255,0.1); }
.lightbox-actions .btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-actions .btn-primary { background: linear-gradient(135deg, #006096, #177ab9); }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,28,25,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.modal-content h3 {
  margin-bottom: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* ===== DATE RANGE PICKER ===== */
.drp-pill-wrap { position: relative; display: inline-block; }
.drp-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--on-surface-variant);
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}
.drp-pill:hover { border-color: var(--primary); background: var(--primary-10); }
.drp-pill.active { border-color: var(--primary); color: var(--on-surface); font-weight: 500; }
.drp-icon { font-size: 15px; }
.drp-chevron { font-size: 10px; opacity: 0.5; }
.drp-reset {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--primary);
  font-family: 'Inter', sans-serif; padding: 4px 8px;
  transition: color 0.2s;
}
.drp-reset:hover { color: var(--error); }

.drp-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  background: #1e2330;
  border-radius: 16px;
  padding: 16px;
  min-width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  color: #e0e4ec;
  font-family: 'Inter', sans-serif;
}

.drp-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.drp-presets button {
  flex: 1;
  padding: 6px 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #c0c7d1;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.drp-presets button:hover { background: rgba(100,160,230,0.25); color: #fff; border-color: rgba(100,160,230,0.4); }

.drp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.drp-nav button {
  background: none; border: none; cursor: pointer;
  color: #8b95a6; font-size: 20px; padding: 4px 10px;
  border-radius: 8px; transition: all 0.2s;
}
.drp-nav button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.drp-month-label { font-weight: 600; font-size: 15px; color: #e0e4ec; }

.drp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #6b7585;
  margin-bottom: 4px;
}
.drp-weekdays span { padding: 4px 0; }

.drp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.drp-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #c0c7d1;
  transition: all 0.15s;
}
.drp-day:hover:not(.drp-empty) { background: rgba(100,160,230,0.2); color: #fff; }
.drp-day.drp-empty { cursor: default; }
.drp-day.drp-today { border: 1px solid rgba(255,255,255,0.2); }
.drp-day.drp-start, .drp-day.drp-end {
  background: #5b9bd5;
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}
.drp-day.drp-in-range {
  background: rgba(91,155,213,0.2);
  border-radius: 4px;
  color: #a8cff0;
}
.drp-day.drp-hover-range {
  background: rgba(91,155,213,0.15);
  border-radius: 4px;
  color: #a8cff0;
}
.drp-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7585;
  font-style: italic;
}

/* Filter bar date picker integration */
.filter-bar .drp-pill-wrap { margin-left: auto; }
.filter-bar .drp-pill { padding: 6px 12px; font-size: 12px; }
.filter-bar .drp-dropdown { min-width: 290px; }

/* ===== DASHBOARD ===== */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.dash-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}
.accent-primary { background: var(--primary); }
.accent-secondary { background: var(--secondary); }
.accent-tertiary { background: var(--tertiary); }
.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.icon-primary { background: var(--primary-10); }
.icon-secondary { background: var(--secondary-10); }
.icon-tertiary { background: var(--tertiary-10); }
.dash-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}
.dash-stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.1;
}
.dash-stat-sub {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 12px;
}

/* Charts */
.dash-charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.dash-chart-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dash-chart-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
}
.dash-chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--on-surface-variant);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Bottom Row */
.dash-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

/* Status Breakdown */
.dash-status-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.dash-status-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 20px;
}
.dash-status-bars { display: flex; flex-direction: column; gap: 14px; }
.dash-status-row { display: flex; align-items: center; gap: 12px; }
.dash-status-label { width: 120px; font-size: 12px; font-weight: 500; color: var(--on-surface-variant); flex-shrink: 0; }
.dash-status-track {
  flex: 1;
  height: 8px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dash-status-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}
.dash-status-count { width: 50px; text-align: right; font-size: 13px; font-weight: 600; color: var(--on-surface); }

/* Customers Widget */
.dash-customers-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s;
}
.dash-customers-card:hover { box-shadow: var(--shadow-md); }
.dash-view-all {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.dash-customer-list { display: flex; flex-direction: column; gap: 4px; }
.dash-customer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.dash-customer-row:nth-child(even) { background: var(--surface-container-low); }
.dash-customer-row:hover { background: var(--primary-10); }
.dash-customer-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-variant);
  flex-shrink: 0;
}
.dash-customer-info { flex: 1; min-width: 0; }
.dash-customer-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-customer-meta {
  font-size: 11px;
  color: var(--on-surface-variant);
}
.dash-customer-revenue {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}
.dash-revenue-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--outline-variant);
  font-size: 13px;
  color: var(--on-surface-variant);
  text-align: right;
}
.dash-revenue-total strong {
  color: var(--secondary);
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
}

@media (max-width: 1024px) {
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-bottom-row { grid-template-columns: 1fr; }
}

/* ===== AIR SHIPMENTS ===== */
.air-track-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  background: var(--primary-10); border: 1px solid var(--primary); border-radius: var(--radius-full);
  color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.air-track-btn:hover { background: var(--primary); color: white; }
.air-attention {
  background: var(--surface-container-low); border-radius: 24px; padding: 28px;
}
.air-attention-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.air-attention-icon {
  width: 40px; height: 40px; background: rgba(186,26,26,0.1); border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center; color: var(--error);
}
.air-attention-header h3 { font-family: 'Manrope'; font-weight: 800; font-size: 18px; }
.air-attention-header p { font-size: 13px; color: var(--on-surface-variant); }
.air-attention-badges { margin-left: auto; display: flex; gap: 8px; }
.air-badge-error { background: var(--error); color: white; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.air-badge-warn { background: var(--tertiary); color: white; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); }
.air-alert-item {
  display: flex; align-items: center; gap: 20px; padding: 18px;
  background: var(--surface-container-lowest); border-radius: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
}
.air-alert-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.air-alert-bar { width: 4px; height: 44px; border-radius: 4px; flex-shrink: 0; }
.bar-error { background: var(--error); }
.bar-warn { background: var(--tertiary); }
.air-alert-body { flex: 1; }
.air-alert-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.air-alert-title strong { font-size: 14px; }
.air-alert-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; }
.tag-error { background: rgba(186,26,26,0.1); color: var(--error); }
.tag-warn { background: rgba(127,83,0,0.1); color: var(--tertiary); }
.air-alert-body p { font-size: 13px; color: var(--on-surface-variant); }
.air-alert-time { text-align: right; }
.air-alert-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--on-surface-variant); }
.air-alert-hours { font-size: 18px; font-weight: 800; color: var(--error); font-family: 'Manrope'; }

/* Air Shipment Detail — Bento */
.air-bento { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 24px; align-items: start; }
.air-bento-main { grid-column: 1; }
.air-bento-side { grid-column: 2; }
.air-section-title {
  font-family: 'Manrope'; font-size: 16px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* Schedule Card (dark primary) */
.air-schedule-card {
  background: linear-gradient(135deg, #006096, #177ab9);
  color: white; border-radius: var(--radius-xl); padding: 28px; position: relative; overflow: hidden;
}
.air-schedule-card::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; background: rgba(255,255,255,0.06);
  border-radius: 50%; filter: blur(40px);
}
.air-schedule-timeline { display: flex; flex-direction: column; gap: 20px; }
.air-schedule-step { display: flex; gap: 14px; position: relative; }
.air-timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(164,213,106,0.8);
  flex-shrink: 0; margin-top: 4px;
}
.air-timeline-dot.filled { background: #a4d56a; }
.air-timeline-line {
  position: absolute; left: 5px; top: 16px; width: 2px; height: calc(100% + 10px);
  border-left: 2px dashed rgba(255,255,255,0.2);
}

/* Notes footer */
.air-notes-footer {
  background: var(--surface-container-low); border-radius: 20px; padding: 28px;
  border-top: 4px solid var(--primary); margin-bottom: 16px;
}

/* Air Progress Steps */
.air-prog-steps {
  display: flex; justify-content: space-between; gap: 4px;
}
.air-prog-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative;
}
.air-prog-step::after {
  content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px;
  background: var(--surface-container-highest); z-index: 0;
}
.air-prog-step:last-child::after { display: none; }
.air-prog-step.air-prog-done::after { background: var(--secondary); }
.air-prog-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-container-highest); color: var(--on-surface-variant); z-index: 1; transition: all 0.3s;
}
.air-prog-done .air-prog-dot { background: var(--secondary); color: white; }
.air-prog-current .air-prog-dot { background: var(--primary); color: white; box-shadow: 0 0 0 4px var(--primary-10); }
.air-prog-pending .air-prog-dot { background: var(--surface-container-highest); color: var(--outline); }
.air-prog-label { font-size: 10px; font-weight: 600; color: var(--on-surface-variant); text-align: center; }
.air-prog-done .air-prog-label { color: var(--secondary); }
.air-prog-current .air-prog-label { color: var(--primary); font-weight: 700; }

.air-cargo-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface-container-lowest); border-radius: 12px; margin-bottom: 8px;
  transition: all 0.2s;
}
.air-cargo-item[onclick] { cursor: pointer; }
.air-cargo-item[onclick]:hover { background: var(--primary-10); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* Air Requirements Grid */
.air-req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.air-req-card {
  background: var(--surface-container-low); border-radius: var(--radius-xl); padding: 20px;
}
.air-req-items { display: flex; flex-direction: column; gap: 8px; }
.air-req-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: white; border-radius: 10px; cursor: pointer;
  transition: box-shadow 0.2s;
}
.air-req-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.air-req-complete {
  background: var(--secondary-10) !important;
  border: 2px solid var(--secondary);
}
.air-req-complete .air-req-item { background: rgba(255,255,255,0.8); }

@media (max-width: 1024px) {
  .air-bento { grid-template-columns: 1fr; }
  .air-bento-main, .air-bento-side { grid-column: 1; }
  .air-req-grid { grid-template-columns: 1fr; }
}

/* ===== NEW PICKUP FORM ===== */
.pu-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-surface-variant); margin-bottom: 4px; }
.pu-breadcrumb a { color: var(--primary); cursor: pointer; font-weight: 500; }
.pu-breadcrumb a:hover { text-decoration: underline; }
.pu-subtitle { font-size: 14px; color: var(--on-surface-variant); margin-top: 4px; }
.pu-required-note {
  display: flex; align-items: center; gap: 8px; background: var(--surface-container-low);
  padding: 10px 16px; border-radius: var(--radius-xl); border-left: 4px solid var(--secondary);
  font-size: 12px; font-weight: 500; color: var(--on-surface-variant);
}

.pu-form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.pu-form-main { display: flex; flex-direction: column; gap: 24px; }
.pu-form-sidebar {}

.pu-form-section {
  background: var(--surface-container-lowest); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid rgba(192,199,209,0.1);
}
.pu-section-muted { background: var(--surface-container-low); box-shadow: none; border: none; }
.pu-section-dashed { background: var(--surface-container); border: 1px dashed var(--outline); box-shadow: none; }

.pu-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pu-step-header h3 { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; flex: 1; }
.pu-step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.pu-step-optional { background: var(--tertiary); }
.pu-optional-badge {
  padding: 3px 12px; background: rgba(127,83,0,0.1); color: var(--tertiary);
  font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: var(--radius-full);
}

.pu-cargo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pu-cargo-btn {
  display: flex; flex-direction: column; align-items: center; padding: 20px 12px;
  border-radius: var(--radius-xl); border: 2px solid transparent;
  background: var(--surface-container-lowest); cursor: pointer; transition: all 0.25s;
  font-size: 13px; font-weight: 600; color: var(--on-surface-variant);
}
.pu-cargo-btn .material-symbols-outlined { font-size: 32px; margin-bottom: 8px; color: var(--on-surface-variant); }
.pu-cargo-btn:hover { border-color: rgba(192,199,209,0.5); }
.pu-cargo-btn.active {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,96,150,0.05);
  color: var(--on-surface);
}
.pu-cargo-btn.active .material-symbols-outlined { color: var(--primary); }

.pu-field label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--on-surface-variant); margin-bottom: 6px;
}
.pu-field input, .pu-field textarea {
  width: 100%; padding: 12px 14px; background: var(--surface-container-high); border: none;
  border-radius: var(--radius-xl); font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--on-surface); transition: all 0.2s;
}
.pu-field input:focus, .pu-field textarea:focus {
  outline: none; background: var(--surface-container-lowest); box-shadow: 0 0 0 3px var(--primary-10);
}
.pu-field input::placeholder, .pu-field textarea::placeholder { color: #aaa; }

.pu-input-icon-wrap { position: relative; }
.pu-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--outline); font-size: 20px; }
.pu-input-icon-wrap input { padding-left: 44px; }

.pu-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pu-field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.pu-textarea {
  width: 100%; padding: 12px; background: var(--surface-container-high); border: none;
  border-radius: var(--radius-xl); font-family: 'Inter', sans-serif; font-size: 13px;
  color: var(--on-surface); resize: vertical;
}
.pu-textarea:focus { outline: none; background: var(--surface-container-lowest); box-shadow: 0 0 0 3px var(--primary-10); }

.pu-vehicle-row { padding: 16px 0; }
.pu-vehicle-row + .pu-vehicle-row { border-top: 1px solid var(--surface-container-high); }
.pu-vehicle-label { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }

.pu-vin-status {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.pu-vin-status .material-symbols-outlined[style*="animation"] { display: inline-block; }

.pu-add-vehicle-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; margin-top: 12px;
  background: none; border: 1px dashed var(--outline-variant); border-radius: var(--radius-full);
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary);
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.pu-add-vehicle-btn:hover { background: var(--primary-10); border-color: var(--primary); }
.pu-add-vehicle-btn .material-symbols-outlined { font-size: 18px; }

.pu-auction-warning {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 20px;
  background: rgba(127,83,0,0.08); border-radius: var(--radius-xl);
}
.pu-auction-warning .material-symbols-outlined { color: var(--tertiary); margin-top: 2px; }
.pu-auction-warning p { font-size: 13px; font-weight: 500; color: var(--tertiary); line-height: 1.5; }

/* Destination Card */
.pu-dest-card {
  background: var(--surface-container-lowest); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid rgba(192,199,209,0.1);
  position: sticky; top: 20px;
}
.pu-dest-options { display: flex; flex-direction: column; gap: 8px; }
.pu-dest-option {
  display: flex; align-items: center; padding: 14px 16px;
  background: var(--surface-container-lowest); border-radius: var(--radius-xl);
  border: 1px solid var(--outline-variant); cursor: pointer; transition: all 0.2s;
}
.pu-dest-option:hover { border-color: rgba(64,105,4,0.3); }
.pu-dest-option.active { border-color: var(--secondary); background: var(--surface-container-low); }
.pu-dest-option input[type=radio] {
  accent-color: var(--secondary); width: 18px; height: 18px; margin-right: 14px; flex-shrink: 0;
}
.pu-dest-name { font-size: 14px; font-weight: 700; color: var(--on-surface); }
.pu-dest-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--on-surface-variant); font-weight: 600; }

.pu-dest-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--outline-variant); }
.pu-submit-btn {
  width: 100%; padding: 14px; background: linear-gradient(135deg, #006096, #177ab9);
  color: white; border: none; border-radius: var(--radius-full); font-size: 14px;
  font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,96,150,0.25);
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.pu-submit-btn:hover { box-shadow: 0 6px 24px rgba(0,96,150,0.35); transform: translateY(-1px); }
.pu-submit-btn:active { transform: scale(0.98); }
.pu-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.pu-draft-btn {
  width: 100%; margin-top: 8px; padding: 10px; background: none; border: none;
  font-size: 13px; font-weight: 600; color: var(--on-surface-variant); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: color 0.2s;
}
.pu-draft-btn:hover { color: var(--primary); }
.pu-success {
  display: flex; align-items: center; gap: 8px; padding: 16px; margin-top: 16px;
  background: var(--secondary-10); border-radius: var(--radius); color: var(--secondary);
  font-size: 13px; font-weight: 600;
}
.pu-success .material-symbols-outlined { font-size: 20px; }

/* Additional Parts toggle button */
.pu-parts-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 8px 16px; border: 1px solid var(--outline-variant); border-radius: 99px;
  background: transparent; font-size: 12px; font-weight: 600; color: var(--on-surface-variant);
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.pu-parts-btn:hover { border-color: var(--primary); color: var(--primary); }
.pu-parts-btn.active {
  background: var(--primary); color: white; border-color: var(--primary);
}

/* File upload drop zone */
.pu-drop-zone {
  border: 2px dashed var(--outline-variant); border-radius: var(--radius);
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pu-drop-zone:hover, .pu-drop-zone.dragover {
  border-color: var(--primary); background: var(--primary-10);
}
.pu-file-list { margin-top: 8px; }
.pu-file-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--surface-container-low); border-radius: 8px; margin-top: 6px; font-size: 13px;
}
.pu-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pu-file-size { color: var(--on-surface-variant); font-size: 11px; white-space: nowrap; }
.pu-file-remove { cursor: pointer; color: var(--error); font-size: 16px !important; }
.pu-file-remove:hover { opacity: 0.7; }

@media (max-width: 1024px) {
  .pu-form-layout { grid-template-columns: 1fr; }
  .pu-cargo-grid { grid-template-columns: 1fr; }
  .pu-field-row-3 { grid-template-columns: 1fr; }
}

/* ===== WR DOCUMENT VIEW (editable PDF-like) ===== */
.wr-doc {
  background: white; width: 8.5in; min-height: 11in; margin: 0 auto; padding: 0.5in;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08); border-radius: 4px; font-size: 12px;
  font-family: 'Inter', Helvetica, sans-serif; color: #1b1c19;
  box-sizing: border-box;
  display: flex; flex-direction: column;
}
.wr-doc-body { flex: 1; }
.wr-doc-footer { margin-top: auto; }
.wr-doc-header { display: flex; justify-content: space-between; margin-bottom: 24px; }
.wr-doc-company { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.wr-doc-addr { font-size: 10px; color: #555; }
.wr-doc-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.wr-doc-info-table { border-collapse: collapse; font-size: 11px; }
.wr-doc-info-table td { padding: 3px 8px; border: 1px solid #ccc; }
.wr-doc-info-label { font-size: 9px; color: #666; white-space: nowrap; }
.wr-doc-info-val { font-weight: 600; }

.wr-doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 16px; }
.wr-doc-party { border: 1px solid #ccc; }
.wr-doc-party-title {
  background: #f0f0f0; padding: 4px 10px; text-align: center;
  font-size: 11px; font-weight: 700; border-bottom: 1px solid #ccc;
}
.wr-doc-party-body {
  padding: 8px 10px; min-height: 50px; font-size: 11px; line-height: 1.5;
}
.wr-doc-party-body[contenteditable]:focus { outline: 2px solid var(--primary); outline-offset: -2px; }

.wr-doc-section-title { text-align: center; font-weight: 700; font-size: 12px; margin: 12px 0 8px; }

.wr-doc-carrier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 16px; }
.wr-doc-carrier-cell {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  border: 1px solid #ddd; font-size: 10px;
}
.wr-doc-carrier-cell span { font-weight: 600; white-space: nowrap; color: #555; }
.wr-doc-input {
  flex: 1; border: none; background: transparent; font-size: 11px;
  font-family: 'Inter', sans-serif; padding: 2px 0;
}
.wr-doc-input:focus { outline: none; border-bottom: 1px solid var(--primary); }

.wr-doc-items { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.wr-doc-items th {
  background: #f5f5f5; padding: 4px 6px; border: 1px solid #ccc;
  font-size: 9px; font-weight: 700; text-transform: uppercase; text-align: left;
}
.wr-doc-cell { padding: 4px 6px; border: 1px solid #ddd; font-size: 11px; vertical-align: top; }

.wr-doc-totals {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 16px; border-top: 2px solid #333;
}
.wr-doc-sig { font-size: 11px; color: #555; }
.wr-doc-total-box { display: flex; align-items: center; gap: 4px; }
.wr-doc-total-cell { padding: 4px 12px; border: 1px solid #ccc; text-align: center; font-size: 11px; }
.wr-doc-total-label { font-size: 8px; font-weight: 700; text-transform: uppercase; color: #666; }

@media print {
  .page-header, .sidebar, nav, .btn, .btn-new-pickup, .btn-outline { display: none !important; }
  .wr-doc { box-shadow: none; margin: 0; padding: 20px; max-width: 100%; }
}

/* ===== WR FORM COMPONENTS ===== */
.wr-select, .wr-select-sm {
  width: 100%; padding: 12px 14px; background: var(--surface-container-high); border: none;
  border-radius: var(--radius-xl); font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--on-surface); cursor: pointer; transition: all 0.2s; appearance: auto;
}
.wr-select:focus, .wr-select-sm:focus { outline: none; background: var(--surface-container-lowest); box-shadow: 0 0 0 3px var(--primary-10); }
.wr-select-sm { padding: 10px 8px; font-size: 13px; }

/* Searchable dropdown */
.wr-search-wrap { position: relative; }
.wr-search-list {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--surface-container-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 200px; overflow-y: auto;
}
.wr-search-item {
  padding: 10px 14px; font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.wr-search-item:hover { background: var(--primary-10); }

.wr-addr-preview {
  font-size: 11px; color: var(--on-surface-variant); margin-top: 6px;
  display: flex; align-items: center; gap: 4px;
}

/* Item type toggle */
.wr-type-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius-full); border: 2px solid var(--outline-variant);
  background: var(--surface-container-lowest); cursor: pointer;
  font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--on-surface-variant); transition: all 0.2s;
}
.wr-type-btn:hover { border-color: var(--primary); }
.wr-type-btn.active { border-color: var(--primary); background: var(--primary-10); color: var(--primary); }

/* Vehicle data section */
.wr-vehicle-section {
  margin-top: 16px; padding: 16px; background: var(--surface-container-low);
  border-radius: var(--radius-xl); border-left: 3px solid var(--primary);
}

/* EEI section */
.wr-eei-section {
  margin-top: 12px; padding: 14px; background: var(--surface-container-lowest);
  border-radius: var(--radius); border: 1px dashed var(--outline-variant);
}

/* ===== NEW PICKUP BUTTON ===== */
.btn-new-pickup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #006096, #177ab9);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,96,150,0.25);
  transition: all 0.2s;
}
.btn-new-pickup:hover { box-shadow: 0 6px 20px rgba(0,96,150,0.35); transform: translateY(-1px); }
.btn-new-pickup:active { transform: scale(0.97); }
.btn-new-pickup .material-symbols-outlined { font-size: 18px; }

/* ===== TITLE BADGE ===== */
.badge-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-title.has-title { background: var(--secondary-10); color: var(--secondary); }
.badge-title.no-title { background: var(--error-10); color: var(--error); }

/* ===== CLIENT DASHBOARD ===== */
.cdash-widget {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.cdash-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cdash-widget-header h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  flex: 1;
}
.cdash-widget-icon { font-size: 22px; }
.cdash-widget-count {
  background: var(--primary-10);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.cdash-days-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.cdash-days-badge.normal { background: var(--primary-10); color: var(--primary); }
.cdash-days-badge.urgent { background: var(--tertiary-10); color: var(--tertiary); }
.cdash-days-badge.overdue { background: var(--error-10); color: var(--error); }
.cdash-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  background: var(--secondary-10);
  border-radius: var(--radius);
}
.cdash-empty .material-symbols-outlined { font-size: 20px; }
.cdash-more {
  text-align: center;
  font-size: 12px;
  color: var(--on-surface-variant);
  padding-top: 8px;
}

/* ===== GET A QUOTE ===== */
.quote-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.quote-main { display: flex; flex-direction: column; gap: 24px; }
.quote-sidebar { display: flex; flex-direction: column; gap: 16px; }

.quote-section {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.quote-section-muted { background: var(--surface-container-low); box-shadow: none; }
.quote-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.quote-section-title h3 { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 700; }
.quote-accent { width: 4px; height: 22px; border-radius: var(--radius-full); }

.quote-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quote-mode-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 12px; border-radius: var(--radius-xl); border: 2px solid transparent;
  background: var(--surface-container); cursor: pointer; transition: all 0.25s;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--on-surface);
}
.quote-mode-btn .material-symbols-outlined { font-size: 28px; margin-bottom: 8px; color: var(--primary); transition: transform 0.25s; }
.quote-mode-btn:hover { background: var(--primary-10); }
.quote-mode-btn:hover .material-symbols-outlined { transform: scale(1.12); }
.quote-mode-btn.active { background: rgba(0,96,150,0.08); border-color: rgba(0,96,150,0.2); }
.quote-mode-btn.active .material-symbols-outlined { transform: scale(1.12); }
.quote-mode-btn.active span:last-child { color: var(--primary); }

.quote-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-field label, .quote-field-label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--on-surface-variant); margin-bottom: 8px; padding-left: 2px;
}
.quote-input-wrap { position: relative; }
.quote-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; opacity: 0.5; }
.quote-input-wrap input {
  width: 100%; background: var(--surface-container-lowest); border: none; border-radius: var(--radius-xl);
  padding: 14px 14px 14px 44px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--on-surface); transition: box-shadow 0.2s;
}
.quote-input-wrap input:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-10); }
.quote-input-wrap input::placeholder { color: #aaa; }

.quote-commodity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-commodity-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-xl); border: 2px solid transparent;
  background: var(--surface-container-low); cursor: pointer; transition: all 0.2s; text-align: left;
}
.quote-commodity-btn:hover { background: var(--surface-container); }
.quote-commodity-btn.active { border-color: rgba(0,96,150,0.2); background: rgba(0,96,150,0.05); }
.quote-commodity-icon {
  width: 40px; height: 40px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; background: var(--surface-container-high);
}
.quote-commodity-name { font-size: 13px; font-weight: 700; color: var(--on-surface); }
.quote-commodity-sub { font-size: 10px; color: var(--on-surface-variant); }

.quote-counter {
  display: flex; align-items: center; background: var(--surface-container-high);
  border-radius: var(--radius-xl); padding: 2px 6px;
}
.quote-counter button {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer; font-size: 20px; font-weight: 700;
  color: var(--primary); transition: background 0.2s; border-radius: var(--radius);
}
.quote-counter button:hover { background: var(--primary-10); }
.quote-counter input {
  width: 100%; background: transparent; border: none; text-align: center;
  font-size: 16px; font-weight: 800; color: var(--on-surface); font-family: 'Manrope', sans-serif;
}
.quote-counter input:focus { outline: none; }

.quote-size-grid { display: flex; gap: 6px; }
.quote-size-btn {
  flex: 1; padding: 10px; border-radius: var(--radius); border: none;
  background: var(--surface-container); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; color: var(--on-surface);
}
.quote-size-btn:hover { background: var(--surface-container-high); }
.quote-size-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }

.quote-textarea {
  width: 100%; background: var(--surface-container-lowest); border: none;
  border-radius: var(--radius-xl); padding: 14px; font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--on-surface); resize: vertical; transition: box-shadow 0.2s;
}
.quote-textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--primary-10); }
.quote-textarea::placeholder { color: #aaa; font-style: italic; }

.quote-summary-card {
  background: var(--surface-container-lowest); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-md); border-top: 4px solid var(--primary);
  position: sticky; top: 20px;
}
.quote-summary-card h3 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.quote-summary-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.quote-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.quote-summary-row span { color: var(--on-surface-variant); }
.quote-summary-row strong { display: flex; align-items: center; gap: 4px; }
.quote-summary-note {
  font-size: 10px; color: #999; font-style: italic; padding-top: 16px;
  border-top: 1px dashed var(--outline-variant); margin-bottom: 20px;
}

.quote-submit-btn {
  width: 100%; background: linear-gradient(135deg, #006096, #177ab9);
  color: white; border: none; border-radius: var(--radius-full); padding: 16px 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; box-shadow: var(--shadow-md); transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.quote-submit-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.quote-submit-btn:active { transform: scale(0.98); }
.quote-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.quote-success {
  display: flex; align-items: center; gap: 8px; padding: 16px;
  background: var(--secondary-10); border-radius: var(--radius); color: var(--secondary);
  font-size: 13px; font-weight: 600; margin-top: 12px;
}
.quote-success .material-symbols-outlined { font-size: 20px; }

.quote-support {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: rgba(64,105,4,0.08); border-radius: var(--radius-xl);
}
.quote-support-icon {
  width: 44px; height: 44px; background: var(--secondary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quote-support-title { font-size: 12px; font-weight: 700; color: var(--on-surface); }
.quote-support-sub { font-size: 10px; color: var(--on-surface-variant); line-height: 1.4; }

.quote-vehicle-label {
  font-size: 12px; font-weight: 600; color: var(--on-surface-variant);
  margin-bottom: 6px; padding-left: 2px;
}
.quote-vehicle-row + .quote-vehicle-row { padding-top: 12px; border-top: 1px solid var(--surface-container-high); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-mode-grid { grid-template-columns: 1fr; }
  .quote-route-grid { grid-template-columns: 1fr; }
  .quote-commodity-grid { grid-template-columns: 1fr; }
}

/* ===== ADMIN ===== */
.admin-form { max-width: 500px; }
.admin-form .form-group { margin-bottom: 12px; }
.user-actions { display: flex; gap: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { width: 72px; padding: 16px 0; }
  .sidebar-header { padding: 0 12px 16px; text-align: center; }
  .sidebar-header img { height: 28px; }
  .sidebar-footer .small-link, #userDisplayName, #userRole { display: none; }
  .nav-link span:not(.nav-icon) { display: none; }
  .nav-link { padding: 12px; justify-content: center; border-radius: var(--radius); }
  .nav-links { padding: 0 8px; }
  .content { margin-left: 72px; padding: 16px; }
  .progress-steps { flex-wrap: wrap; gap: 8px; }
  .progress-step { min-width: 60px; }
}

/* =============================================================
   SHIPMENT FORM — Bento Grid Layout (.sh-* namespace)
   ============================================================= */

/* Page header */
.sh-page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.sh-page-header-left {}
.sh-status-badge {
  display: inline-block; padding: 4px 10px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--surface-container-highest); color: var(--on-surface-variant);
  border-radius: 4px; margin-bottom: 4px;
}
.sh-title {
  font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--on-surface); margin: 0;
}
.sh-subtitle { font-size: 13px; color: var(--on-surface-variant); margin-top: 2px; }
.sh-header-actions { display: flex; gap: 12px; align-items: center; }
.sh-btn-cancel {
  padding: 10px 24px; border-radius: 9999px; font-size: 13px; font-weight: 600;
  background: var(--surface-container-highest); border: none; cursor: pointer;
  color: var(--on-surface); transition: background var(--transition);
  font-family: 'Inter', sans-serif;
}
.sh-btn-cancel:hover { background: var(--surface-dim); }
.sh-btn-primary {
  padding: 10px 32px; border-radius: 9999px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #006096, #177ab9); color: white; border: none;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,96,150,0.25);
  transition: transform var(--transition); font-family: 'Inter', sans-serif;
}
.sh-btn-primary:hover { transform: scale(1.02); }
.sh-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Main layout: content + right sidebar */
.sh-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* Bento grid */
.sh-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.sh-col-12 { grid-column: span 12; }
.sh-col-8 { grid-column: span 8; }
.sh-col-4 { grid-column: span 4; }

/* Section card */
.sh-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(192,199,209,0.08);
}

/* Section header: green accent bar + title */
.sh-section-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.sh-accent { width: 4px; height: 24px; background: var(--secondary); border-radius: 4px; flex-shrink: 0; }
.sh-section-hdr h2 {
  font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700;
  color: var(--on-surface); margin: 0; flex: 1;
}
.sh-section-hdr .sh-section-actions { display: flex; gap: 12px; align-items: center; }
.sh-add-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px;
  background: linear-gradient(135deg, #006096, #177ab9); color: white;
  border: none; border-radius: 9999px; font-size: 12px; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,96,150,0.2);
  transition: transform var(--transition); font-family: 'Inter', sans-serif;
}
.sh-add-btn:hover { transform: scale(1.03); }
.sh-add-btn-outline {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px;
  background: var(--surface-container-high); border: none; border-radius: 9999px;
  font-size: 12px; font-weight: 700; color: var(--on-surface); cursor: pointer;
  transition: background var(--transition); font-family: 'Inter', sans-serif;
}
.sh-add-btn-outline:hover { background: var(--surface-dim); }

/* Field grids inside sections */
.sh-fields-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
.sh-fields-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.sh-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.sh-span-2 { grid-column: span 2; }
.sh-span-4 { grid-column: span 4; }

/* Labels */
.sh-label {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--on-surface-variant); margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

/* Inputs */
.sh-input, .sh-select {
  width: 100%; background: var(--surface-container-high); border: none;
  border-radius: 9999px; font-size: 13px; padding: 10px 16px;
  transition: background var(--transition), box-shadow var(--transition);
  font-family: 'Inter', sans-serif; color: var(--on-surface);
  box-sizing: border-box;
}
.sh-input:focus, .sh-select:focus {
  background: var(--surface-container-lowest); outline: none;
  box-shadow: 0 0 0 3px var(--primary-10);
}
.sh-input-icon-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-container-high); border-radius: 9999px; padding: 0 16px;
}
.sh-input-icon-wrap .sh-input { background: transparent; padding-left: 0; padding-right: 0; }
.sh-input-icon-wrap .sh-input:focus { box-shadow: none; }
.sh-input-icon-wrap:focus-within {
  background: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px var(--primary-10);
}
textarea.sh-input { resize: vertical; min-height: 80px; border-radius: 16px; }

/* Search wraps (reuse existing wr-search patterns) */
.sh-search-wrap { position: relative; }
.sh-search-wrap .wr-search-list { border-radius: 8px; }

/* Port pair visual */
.sh-port-pair {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface-container-low); border-radius: 12px; padding: 24px;
}
.sh-port { flex: 1; }
.sh-port.right { text-align: right; }
.sh-port-name { font-size: 15px; font-weight: 700; color: var(--primary); }
.sh-port-sub { font-size: 11px; color: var(--on-surface-variant); margin-top: 2px; }
.sh-port-arrow { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.sh-port-arrow .material-symbols-outlined { color: var(--secondary); font-size: 28px; }

/* Container cards */
.sh-cnt-card {
  padding: 16px; background: var(--surface-container-low); border-radius: 12px;
  border-left: 4px solid var(--secondary); margin-bottom: 12px;
}
.sh-cnt-card.empty {
  opacity: 0.6; border-left-color: var(--outline-variant);
  border-style: dashed; border-width: 2px; border-left-width: 4px;
}
.sh-cnt-card .sh-cnt-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.sh-cnt-card .sh-cnt-num { font-weight: 700; font-size: 14px; color: var(--on-surface); }
.sh-cnt-badge {
  display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.sh-cnt-badge.loaded { background: #bdef80; color: #446e0a; }
.sh-cnt-badge.empty-badge { background: var(--surface-container-highest); color: var(--on-surface-variant); }
.sh-cnt-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-surface-variant); }
.sh-cnt-add-btn {
  width: 100%; padding: 14px; border: 2px dashed var(--outline-variant); border-radius: 12px;
  background: none; font-size: 13px; font-weight: 500; color: var(--on-surface-variant);
  cursor: pointer; transition: background var(--transition); font-family: 'Inter', sans-serif;
  margin-top: 12px;
}
.sh-cnt-add-btn:hover { background: var(--surface-container-low); }
.sh-cnt-remove {
  background: none; border: none; cursor: pointer; color: var(--on-surface-variant);
  font-size: 14px; padding: 2px; transition: color var(--transition);
}
.sh-cnt-remove:hover { color: var(--error); }

/* Cargo manifest table */
.sh-cargo-table { width: 100%; text-align: left; border-collapse: separate; border-spacing: 0 8px; }
.sh-cargo-table thead th {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--on-surface-variant); padding: 0 16px 8px;
  font-family: 'Inter', sans-serif;
}
.sh-cargo-table tbody td {
  padding: 12px 16px; font-size: 13px; background: var(--surface-container-low);
  transition: background var(--transition); vertical-align: middle;
}
.sh-cargo-table tbody tr:hover td { background: var(--surface-container-high); }
.sh-cargo-table tbody td:first-child { border-radius: 12px 0 0 12px; }
.sh-cargo-table tbody td:last-child { border-radius: 0 12px 12px 0; }
.sh-cargo-table input {
  background: transparent; border: none; font-size: 13px; width: 100%; padding: 4px 0;
  color: var(--on-surface); font-family: 'Inter', sans-serif;
}
.sh-cargo-table input:focus { outline: none; border-bottom: 2px solid var(--primary); }
.sh-cargo-table input.sh-vin-input { font-family: monospace; font-weight: 500; }
.sh-cargo-delete {
  background: none; border: none; cursor: pointer; color: var(--on-surface-variant);
  transition: color var(--transition); padding: 4px;
}
.sh-cargo-delete:hover { color: var(--error); }

/* Right sidebar */
.sh-sidebar { position: sticky; top: 20px; align-self: start; }
.sh-sidebar-section { margin-bottom: 28px; }
.sh-sidebar-section h3 {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--on-surface-variant); margin: 0 0 12px 0;
  font-family: 'Inter', sans-serif;
}
.sh-sidebar-card {
  background: var(--surface-container-lowest); border-radius: var(--radius-xl);
  padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(192,199,209,0.08);
}
.sh-sidebar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--surface-container-low); border-radius: 9999px;
  margin-bottom: 8px; font-size: 12px;
}
.sh-sidebar-row:last-child { margin-bottom: 0; }
.sh-sidebar-row .sh-row-label { font-weight: 500; color: var(--on-surface); }
.sh-sidebar-row .sh-row-value { font-weight: 700; }
.sh-sidebar-row .sh-row-value.success { color: var(--secondary); }
.sh-compliance-badge {
  display: inline-block; padding: 2px 8px; font-size: 10px; font-weight: 700;
  border-radius: 4px; text-transform: uppercase;
}
.sh-compliance-badge.pending { background: #ffdad6; color: #93000a; }
.sh-compliance-badge.sent { background: #bdef80; color: #446e0a; }
.sh-compliance-badge.na { background: var(--surface-container-highest); color: var(--on-surface-variant); }

/* Compliance widget coloring */
.sh-compliance-widget { transition: background var(--transition), border-color var(--transition); border: 2px solid transparent; }
.sh-compliance-widget.sh-widget-warn { border-color: #ffdad6; background: #fffbfa; }
.sh-compliance-widget.sh-widget-ok { border-color: #bdef80; background: #f8fff0; }
.sh-status-row.done { background: #f2ffe0; }
.sh-status-row.done .sh-row-label { color: #2e4f00; }

/* Master B/L card (dark blue) */
.sh-master-card {
  background: linear-gradient(135deg, #004a75 0%, #006096 60%, #177ab9 100%) !important;
  border: none !important;
}
.sh-master-card .sh-section-hdr h2 { color: white; }
.sh-input-master {
  background: var(--bg) !important; color: var(--on-surface) !important;
}
.sh-input-master::placeholder { color: var(--on-surface-variant) !important; }
.sh-input-master:focus {
  background: var(--surface-container-lowest) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2) !important;
}
.sh-master-card .sh-party-info-btn { background: rgba(255,255,255,0.15); color: white; }
.sh-master-card .sh-party-info-btn:hover { background: rgba(255,255,255,0.25); }
.sh-add-btn-master { border-color: rgba(255,255,255,0.3) !important; color: rgba(255,255,255,0.6) !important; }
.sh-add-btn-master:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.5) !important; color: white !important; }
.sh-master-card .wr-search-list { background: white; color: var(--on-surface); }
.sh-cargo-table-master thead th { color: rgba(255,255,255,0.6) !important; }
.sh-cargo-table-master tbody td { background: rgba(255,255,255,0.1); color: white; }
.sh-cargo-table-master tbody tr:hover td { background: rgba(255,255,255,0.18); }
.sh-cargo-table-master input { color: white; }
.sh-cargo-table-master input::placeholder { color: rgba(255,255,255,0.4); }
.sh-cargo-table-master .sh-cargo-delete { color: rgba(255,255,255,0.5); }
.sh-cargo-table-master .sh-cargo-delete:hover { color: #ffdad6; }
.sh-cargo-table-master .sh-vin-input { color: white; }
.sh-master-card .sh-cnt-card { background: rgba(255,255,255,0.12); border-left-color: rgba(255,255,255,0.4); }
.sh-master-card .sh-cnt-card .sh-input { background: var(--bg); color: var(--on-surface); }
.sh-master-card .sh-cnt-card .sh-input::placeholder { color: var(--on-surface-variant); }
.sh-master-card .sh-cnt-card .sh-select { background: var(--bg); color: var(--on-surface); }
.sh-master-card .sh-cnt-card .sh-cnt-num { color: white; }
.sh-master-card .sh-cnt-remove { color: rgba(255,255,255,0.5); }
.sh-master-card .sh-cnt-remove:hover { color: #ffdad6; }

/* Document cards inside master */
.sh-doc-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(255,255,255,0.1); border-radius: 12px;
  transition: background var(--transition);
}
.sh-doc-card:hover { background: rgba(255,255,255,0.16); }
.sh-doc-icon { font-size: 22px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.sh-doc-info { flex: 1; min-width: 0; }
.sh-doc-name {
  font-size: 12px; font-weight: 700; color: white; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-doc-status { font-size: 10px; margin: 2px 0 0; }
.sh-doc-status.pending { color: rgba(255,255,255,0.4); }
.sh-doc-status.ready { color: #bdef80; }
.sh-doc-action {
  background: rgba(255,255,255,0.1); border: none; border-radius: 8px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.6); flex-shrink: 0;
  transition: background var(--transition);
}
.sh-doc-action:hover { background: rgba(255,255,255,0.2); color: white; }
.sh-doc-action:disabled { opacity: 0.4; cursor: not-allowed; }
.sh-doc-uploaded { margin-bottom: 8px; }

/* House document cards (light background) */
.sh-doc-card-house { background: rgba(0,96,150,0.06); }
.sh-doc-card-house:hover { background: rgba(0,96,150,0.1); }
.sh-doc-card-house .sh-doc-icon { color: var(--primary); }
.sh-doc-card-house .sh-doc-name { color: var(--on-surface); }
.sh-doc-card-house .sh-doc-status.pending { color: var(--on-surface-variant); }
.sh-doc-action-house { background: rgba(0,96,150,0.08); color: var(--on-surface-variant); }
.sh-doc-action-house:hover { background: rgba(0,96,150,0.15); color: var(--error); }

/* Master action buttons (Send AES, Send SI) */
.sh-master-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 9999px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.9); color: var(--primary); border: none;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background var(--transition), transform var(--transition);
}
.sh-master-action-btn:hover { background: white; transform: scale(1.03); }

/* House action buttons */
.sh-house-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700;
  background: var(--primary-10); color: var(--primary); border: none;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background var(--transition), transform var(--transition);
}
.sh-house-action-btn:hover { background: var(--primary-20); transform: scale(1.03); }

/* House B/L card (light blue) */
.sh-house-card {
  background: #e8f4fd;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #cce5ff;
}
.sh-action-btn {
  width: 100%; text-align: left; padding: 10px 16px; font-size: 12px; font-weight: 700;
  background: var(--surface-container-highest); border: none; border-radius: 9999px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition); margin-bottom: 8px; color: var(--on-surface);
  font-family: 'Inter', sans-serif;
}
.sh-action-btn:last-child { margin-bottom: 0; }
.sh-action-btn:hover { background: var(--surface-dim); }
.sh-action-btn.accent { background: var(--primary-10); color: var(--primary); }
.sh-action-btn.accent:hover { background: var(--primary-20); }

/* VIN status in table */
.sh-vin-cell { position: relative; }
.sh-vin-status {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 14px;
}

/* Party field with info button */
.sh-party-field { display: flex; align-items: flex-start; gap: 6px; }
.sh-party-info-btn {
  width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-10); border: none; border-radius: 8px;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  color: var(--primary);
}
.sh-party-info-btn:hover { background: var(--primary-20); transform: scale(1.05); }
.sh-party-info-btn .material-symbols-outlined { font-size: 18px; }
.sh-party-add-btn {
  width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px dashed var(--outline-variant); border-radius: 8px;
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
  color: var(--outline);
}
.sh-party-add-btn:hover { background: var(--surface-container-high); border-color: var(--outline); color: var(--on-surface); }
.sh-party-add-btn .material-symbols-outlined { font-size: 16px; }

/* Party profile modal */
.sh-modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,28,25,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.sh-modal-panel {
  background: var(--surface-container-lowest); border-radius: 20px;
  width: 680px; max-width: 90vw; max-height: 85vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  padding: 32px;
}
.sh-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.sh-modal-close {
  background: var(--surface-container-highest); border: none; border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition);
}
.sh-modal-close:hover { background: var(--surface-dim); }
.sh-modal-close .material-symbols-outlined { font-size: 18px; }
.sh-role-badge {
  display: inline-block; padding: 3px 10px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; border-radius: 9999px;
  background: var(--primary-10); color: var(--primary); margin-right: 6px;
}
.sh-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sh-profile-section {
  background: var(--surface-container-low); border-radius: 12px; padding: 20px;
}
.sh-profile-section-title {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--on-surface); margin: 0 0 16px; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sh-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sh-profile-val {
  font-size: 13px; color: var(--on-surface); margin: 2px 0 0; font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
  .sh-layout { grid-template-columns: 1fr; }
  .sh-sidebar { position: static; }
  .sh-col-8, .sh-col-4 { grid-column: span 12; }
  .sh-fields-4 { grid-template-columns: 1fr 1fr; }
  .sh-fields-3 { grid-template-columns: 1fr 1fr; }
  .sh-profile-grid { grid-template-columns: 1fr; }
}
