/* ===== Status Badges for Consignment Statuses ===== */
:root {
  --primary-bg: #f1f5f9;
  --card-bg: #fff;
  --text-color: #22223b;
  --button-bg: #2563eb;
  --button-text: #fff;
  --action-btn-bg-default: #fff;
  --action-btn-border-default: #e5e7eb;
  --action-btn-color-default: #111827;
  --action-btn-hover-default: #f3f4f6;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--text-color);
}
body.dark-mode {
  --primary-bg: #0b0b0b;
  --card-bg: #0b0b0b;
  --text-color: #f5f5f5;
  --button-bg: #f5f5f5;
  --button-text: #0b0b0b;
  --action-btn-bg-default: #1a1a1a;
  --action-btn-border-default: #2a2a2a;
  --action-btn-color-default: #f5f5f5;
  --action-btn-hover-default: #222;
}
/* Dark mode component overrides */
body.dark-mode a { color: #e5e5e5; }
body.dark-mode .container,
body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode section.card,
body.dark-mode .card-inner,
body.dark-mode .table-wrapper {
  background: #0b0b0b !important;
  color: #f5f5f5 !important;
  border-color: #222 !important;
}
body.dark-mode .dropdown-menu { background: #161616; border-color: #2d2d2d; color: var(--text-color); }
body.dark-mode .extras-btn { background: #161616; color: var(--text-color); border-color: #2d2d2d; }
body.dark-mode .nav-tabs button.active { background: #1f1f1f; color: #fff; }
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="datetime-local"],
body.dark-mode select,
body.dark-mode textarea {
  background: #0f0f0f;
  color: var(--text-color);
  border-color: #2d2d2d;
}
body.dark-mode .table th {
  background: #0b0b0b !important;
  color: #f5f5f5 !important;
  border-color: #1f1f1f !important;
}
body.dark-mode .table td {
  background: #0b0b0b !important;
  color: #f5f5f5 !important;
  border-color: #2d2d2d !important;
}
/* Force light text for all content inside tables in dark mode */
body.dark-mode .table td *,
body.dark-mode .table th * {
  color: #f5f5f5 !important;
}
body.dark-mode .party-title,
body.dark-mode .party-line,
body.dark-mode .party-missing,
body.dark-mode .detail-cell {
  color: #f5f5f5 !important;
}

/* Force white text in dark mode for headings and labels */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode label,
body.dark-mode legend,
body.dark-mode th {
  color: #f5f5f5 !important;
}
body.dark-mode .modal-card { background: var(--card-bg); color: var(--text-color); }
.modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-card {
  background: #fff;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(40,40,80,0.18);
  text-align: center;
  max-width: 95vw;
  min-width: 320px;
  font-size: 1.14rem;
  font-weight: 500;
}
.modal-btns {
  margin-top: 2rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}
.modal-btn-yes,
.modal-btn-no,
.modal-btn-cancel,
.modal-btn-ok {
  padding: 0.6rem 1.7rem;
  border-radius: 7px;
  font-size: 1.07rem;
  font-weight: bold;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  margin: 0 0.2rem;
  transition: background 0.18s;
  outline: none;
}
.modal-btn-no,
.modal-btn-cancel {
  background: #eee;
  color: #333;
}
.modal-btn-yes:active,
.modal-btn-ok:active {
  background: #174dc5;
}
.modal-btn-no:active,
.modal-btn-cancel:active {
  background: #ddd;
}
.modal-card input[type="datetime-local"] {
  margin: 1rem auto 0.5rem auto;
  display: block;
  width: 80%;
  font-size: 1.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  outline: none;
  background: #f9fafb;
}
/* Shared brand/header helpers */
.app-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo img {
  display: block;
  width: 360px;
  height: 120px;
}
.brand-title,
.brand-subtitle {
  display: none;
}
.app-header .spacer { flex: 1; }
/* BM ConNote – Modern App Styles */

body {
  background: #f1f5f9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #22223b;
  margin: 0;
  padding: 0;
}

a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

.card, .container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  margin: 3rem auto;
  padding: 2rem;
  max-width: 1100px;
}

.brand { font-size: 2.2rem; font-weight: bold; letter-spacing: 0.5px;}
.subtitle { color: #334155; font-size: 1.1rem; margin-bottom: 2rem;}

input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

input[type="text"], input[type="password"], input[type="datetime-local"], select, textarea {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9fafb;
  transition: border-color 0.2s;
  height: 32px;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  border-color: #2563eb;
}

.login-btn, .action-btn {
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.15s ease, transform 0.05s ease;
  height: 36px;
}
.action-btn:hover { transform: translateY(-1px); }
.action-btn:active { transform: translateY(0); }
.login-btn:disabled, .action-btn:disabled { background: #a5b4fc; cursor: not-allowed;}
.action-btn.assign-btn,
.action-btn.complete-btn,
.action-btn.request-btn,
.action-btn.btn-blue,
.action-btn.view-status-btn {
  --action-btn-bg: #2563eb;
  --action-btn-hover-bg: #1d4ed8;
  --action-btn-border: #2563eb;
  --action-btn-color: #fff;
}
.action-btn.accept-btn,
.action-btn.btn-green {
  --action-btn-bg: #16a34a;
  --action-btn-hover-bg: #15803d;
  --action-btn-border: #15803d;
  --action-btn-color: #fff;
}
.action-btn.reject-btn,
.action-btn.delete-btn,
.action-btn.cancel-btn,
.action-btn.btn-red {
  --action-btn-bg: #dc2626;
  --action-btn-hover-bg: #b91c1c;
  --action-btn-border: #b91c1c;
  --action-btn-color: #fff;
}
.action-btn.pdf-btn,
.action-btn.edit-btn {
  --action-btn-bg: #fbbf24;
  --action-btn-hover-bg: #f59e0b;
  --action-btn-border: #f59e0b;
  --action-btn-color: #222;
}
.action-btn.btn-amber {
  --action-btn-bg: #f59e0b;
  --action-btn-hover-bg: #d97706;
  --action-btn-border: #d97706;
  --action-btn-color: #111;
}
.action-btn.btn-purple {
  --action-btn-bg: #7c3aed;
  --action-btn-hover-bg: #6d28d9;
  --action-btn-border: #6d28d9;
  --action-btn-color: #fff;
}
.action-btn.btn-cyan {
  --action-btn-bg: #0ea5e9;
  --action-btn-hover-bg: #0284c7;
  --action-btn-border: #0284c7;
  --action-btn-color: #fff;
}
.action-btn.btn-gray {
  --action-btn-bg: #475569;
  --action-btn-hover-bg: #334155;
  --action-btn-border: #334155;
  --action-btn-color: #fff;
}

/* Palette utilities for toolbar buttons */
.action-btn.btn-blue,
.action-btn.btn-green,
.action-btn.btn-amber,
.action-btn.btn-purple,
.action-btn.btn-cyan,
.action-btn.btn-gray,
.action-btn.btn-red {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* Layout utilities for long labels */
.btn-wide { white-space: nowrap; padding: 0.55rem 1.2rem; }
.btn-min240 { min-width: 240px; font-size: 0.95rem; }

/* Dark mode hover subtlety */
body.dark-mode .btn-amber { color:#111; }
.drag-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: grab;
  background: #ff7f00;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.12);
  border: none;
  margin: 0;
  outline: none;
  padding: 0.4rem 1.1rem;
}
.drag-btn:active {
  background: #d26900;
}
.success      { color: #16a34a;}
.errormsg     { color: #dc2626; font-size: 1rem; margin-bottom: 0.5rem; }

.nav-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.nav-tabs button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #1d4ed8;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: background 0.1s;
}
.nav-tabs button.active {
  background: #e0e7ff;
  color: #111827;
}

body.dark-mode .nav-tabs button { color: #e5e5e5; }
body.dark-mode .nav-tabs button.active { background: #262626; color: #fff; }

.section {
  display: none;
}
.section.active {
  display: block;
}

.table, .table th, .table td {
  border: 1px solid #cbd5e1 !important;
  border-collapse: collapse !important;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.table th, .table td {
  padding: 0.4rem 0.5rem;
  height: 32px;
  vertical-align: middle;
}
.table th {
  text-align: left;
  color: #6b7280;
  font-weight: 500;
}
#logsTable.table,
#archivedTable.table,
#printQueueTable.table {
  border-color: #4b5563 !important;
}

/* Manifest-style two-line rows for Current Consignments */
#logsTable .consignment-mainrow td,
#logsTable .consignment-subrow td,
#archivedTable .consignment-mainrow td,
#archivedTable .consignment-subrow td,
#printQueueTable .consignment-mainrow td,
#printQueueTable .consignment-subrow td,
#upcomingTable .consignment-mainrow td,
#upcomingTable .consignment-subrow td,
#pastPickedTable .consignment-mainrow td,
#pastPickedTable .consignment-subrow td,
#pastDeliveredTable .consignment-mainrow td,
#pastDeliveredTable .consignment-subrow td {
  background: inherit !important;
  vertical-align: top;
  border: 1px solid #4b5563 !important;
}
#logsTable .actions-cell,
#archivedTable .actions-cell,
#printQueueTable .actions-cell,
#upcomingTable .actions-cell,
#pastPickedTable .actions-cell,
#pastDeliveredTable .actions-cell {
  background: inherit !important;
  width: 280px;
  min-width: 260px;
  max-width: 340px;
  padding: 0.35em 0.5em !important;
}
#printQueueTable .select-cell {
  width: 34px;
  min-width: 32px;
  max-width: 38px;
  padding: 4px 6px !important;
  text-align: center;
}
#logsTable .consign-id-cell,
#archivedTable .consign-id-cell,
#printQueueTable .consign-id-cell,
#upcomingTable .consign-id-cell,
#pastPickedTable .consign-id-cell,
#pastDeliveredTable .consign-id-cell {
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  min-width: 90px;
  padding: 6px 8px;
}
#logsTable .consign-id,
#archivedTable .consign-id,
#printQueueTable .consign-id,
#upcomingTable .consign-id,
#pastPickedTable .consign-id,
#pastDeliveredTable .consign-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#logsTable th, #logsTable td,
#archivedTable th, #archivedTable td,
#printQueueTable th, #printQueueTable td,
#upcomingTable th, #upcomingTable td,
#pastPickedTable th, #pastPickedTable td,
#pastDeliveredTable th, #pastDeliveredTable td {
  padding: 6px 8px;
  font-size: 1.05rem;
  border-color: #4b5563 !important;
}
#logsTable th,
#archivedTable th,
#printQueueTable th,
#upcomingTable th,
#pastPickedTable th,
#pastDeliveredTable th {
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}
#logsTable .party-title,
#archivedTable .party-title,
#printQueueTable .party-title,
#upcomingTable .party-title,
#pastPickedTable .party-title,
#pastDeliveredTable .party-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #0f172a;
}
#logsTable .party-line,
#archivedTable .party-line,
#printQueueTable .party-line,
#upcomingTable .party-line,
#pastPickedTable .party-line,
#pastDeliveredTable .party-line {
  color: #475569;
  font-size: 1rem;
  line-height: 1.3;
}
#logsTable .party-missing,
#archivedTable .party-missing,
#printQueueTable .party-missing,
#upcomingTable .party-missing,
#pastPickedTable .party-missing,
#pastDeliveredTable .party-missing {
  color: #94a3b8;
  font-style: italic;
}
#logsTable .pickup-cell,
#logsTable .delivery-cell,
#archivedTable .pickup-cell,
#archivedTable .delivery-cell {
  width: 40px;
  min-width: 40px;
  max-width: 70px;
  text-align: center;
}
#printQueueTable .pickup-cell,
#printQueueTable .delivery-cell {
  width: 40px;
  min-width: 40px;
  max-width: 60px;
  text-align: center;
}
#logsTable .sender-cell,
#logsTable .receiver-cell,
#archivedTable .sender-cell,
#archivedTable .receiver-cell {
  width: 32%;
  min-width: 220px;
}
#printQueueTable .sender-cell {
  width: 30%;
  min-width: 200px;
}
#printQueueTable .receiver-cell {
  width: 38%;
  min-width: 240px;
}
#logsTable .detail-cell,
#archivedTable .detail-cell,
#printQueueTable .detail-cell {
  padding-top: 0.5em;
  padding-bottom: 0.6em;
  border-top: 1px solid #4b5563 !important;
  font-size: 1.02rem;
}
#logsTable .detail-note,
#archivedTable .detail-note,
#printQueueTable .detail-note {
  margin-top: 0.3em;
  color: #334155;
  font-size: 0.95rem;
}
#logsTable .detail-note strong,
#archivedTable .detail-note strong,
#printQueueTable .detail-note strong {
  color: #0f172a;
}
#logsTable .detail-muted,
#archivedTable .detail-muted,
#printQueueTable .detail-muted {
  color: #94a3b8;
  font-style: italic;
}
#logsTable .manifest-status,
#archivedTable .manifest-status,
#printQueueTable .manifest-status {
  font-weight: 700;
  text-align: center;
  font-size: 1.05rem;
}
#logsTable .actions-stack .action-btn,
#archivedTable .actions-stack .action-btn,
#printQueueTable .actions-stack .action-btn,
#upcomingTable .actions-stack .action-btn,
#pastPickedTable .actions-stack .action-btn,
#pastDeliveredTable .actions-stack .action-btn {
  min-width: 110px;
}

/* Admin tables: align action sizing with courier buttons */
#logsTable .actions-cell,
#archivedTable .actions-cell,
#printQueueTable .actions-cell {
  width: 180px;
  min-width: 170px;
  max-width: 200px;
  padding: 0.32em 0.35em !important;
  box-sizing: border-box;
}
#logsTable .actions-stack,
#archivedTable .actions-stack,
#printQueueTable .actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55em;
  padding: 0.5em 0.25em;
  box-sizing: border-box;
}
#logsTable .actions-stack .action-btn,
#archivedTable .actions-stack .action-btn,
#printQueueTable .actions-stack .action-btn {
  min-height: 110px;
  height: auto !important;
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.35;
  padding: 1.05em 0.55em;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#logsTable thead th:last-child,
#archivedTable thead th:last-child,
#printQueueTable thead th:last-child {
  width: 180px;
  min-width: 170px;
  max-width: 200px;
  text-align: center;
}

/* Past jobs: 2x2 action grid */
#pastPickedTable .actions-stack.past-actions,
#pastDeliveredTable .actions-stack.past-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(54px, auto);
  gap: 0.55em;
  align-items: stretch;
}
#pastPickedTable .actions-stack.past-actions .action-btn,
#pastDeliveredTable .actions-stack.past-actions .action-btn {
  width: 100%;
  height: auto !important;
  min-height: 54px;
  min-width: 0;
  padding: 0.75em 0.65em;
  font-size: 0.93rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}

/* Past tables: give actions a bit more room */
#pastPickedTable .actions-cell,
#pastDeliveredTable .actions-cell,
#pastPickedTable thead th:last-child,
#pastDeliveredTable thead th:last-child {
  width: 320px;
  min-width: 300px;
  max-width: 380px;
}

/* Upcoming table: match current jobs action sizing */
#upcomingTable .actions-cell {
  width: 180px;
  min-width: 170px;
  max-width: 200px;
  padding: 0.32em 0.35em !important;
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
}
#upcomingTable .actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55em;
  padding: 0.6em 0.25em;
  box-sizing: border-box;
}
#upcomingTable .actions-stack .action-btn {
  min-height: 110px;
  height: auto !important;
  border-radius: 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  padding: 1.2em 0.6em;
  font-weight: 700;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#logsTable thead th:nth-child(4),
#logsTable thead th:nth-child(5),
#archivedTable thead th:nth-child(4),
#archivedTable thead th:nth-child(5) {
  width: 40px;
  min-width: 40px;
  max-width: 70px;
  text-align: center;
}
#printQueueTable thead th:nth-child(1) {
  width: 34px;
  min-width: 32px;
  max-width: 38px;
  text-align: center;
  padding: 4px 6px;
}
#printQueueTable thead th:nth-child(5) {
  width: 40px;
  min-width: 40px;
  max-width: 60px;
  text-align: center;
}
#pastPickedTable thead th:last-child,
#pastDeliveredTable thead th:last-child {
  width: 200px;
  min-width: 180px;
  max-width: 240px;
}
#logsTable thead th:nth-child(2),
#logsTable thead th:nth-child(3),
#archivedTable thead th:nth-child(2),
#archivedTable thead th:nth-child(3) {
  width: 32%;
}
#printQueueTable thead th:nth-child(3) {
  width: 30%;
}
#printQueueTable thead th:nth-child(4) {
  width: 38%;
}

/* Manifest-style layout for Courier Current Jobs (keeps Move column) */
#jobsTable.table { border-color: #4b5563 !important; }
#jobsTable .consignment-mainrow td,
#jobsTable .consignment-subrow td {
  background: inherit !important;
  vertical-align: top;
  border: 1px solid #4b5563 !important;
}
#jobsTable .move-cell {
  width: 38px;
  min-width: 34px;
  max-width: 42px;
  text-align: center;
  padding: 0 !important;
  vertical-align: top;
  background: #f97316;
  border-right: 1px solid #4b5563 !important;
  position: relative;
}
#jobsTable .move-cell .drag-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 0;
  margin: 0;
  background: #f97316;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 0;
  border: none;
}
#jobsTable .actions-cell {
  background: inherit !important;
  width: 180px;
  min-width: 170px;
  max-width: 200px;
  padding: 0.38em 0.32em !important;
  box-sizing: border-box;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}
#jobsTable .consign-id-cell {
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  min-width: 90px;
  padding: 6px 8px;
}
#jobsTable th, #jobsTable td {
  padding: 6px 8px;
  font-size: 1.05rem;
  border-color: #4b5563 !important;
}
#jobsTable th {
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}
#jobsTable .party-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #0f172a;
}
#jobsTable .party-line {
  color: #475569;
  font-size: 1rem;
  line-height: 1.3;
}
#jobsTable .party-missing { color: #94a3b8; font-style: italic; }
#jobsTable .status-cell { text-align: center; min-width: 120px; }
#jobsTable .pickup-cell,
#jobsTable .delivery-cell {
  width: 40px;
  min-width: 40px;
  max-width: 70px;
  text-align: center;
}
#jobsTable .sender-cell,
#jobsTable .receiver-cell {
  width: 48%;
  min-width: 320px;
  font-size: 2.1rem;
  line-height: 1.45;
}
#jobsTable .sender-cell .party-title,
#jobsTable .receiver-cell .party-title {
  font-size: 2.2rem !important;
  line-height: 1.2;
}
#jobsTable .sender-cell .party-line,
#jobsTable .receiver-cell .party-line {
  font-size: 1.4rem !important;
  line-height: 1.35;
}
#jobsTable .party-missing { font-size: 1.3rem !important; }
#jobsTable .detail-cell {
  padding-top: 0.5em;
  padding-bottom: 0.6em;
  border-top: 1px solid #4b5563 !important;
  font-size: 1.02rem;
}
#jobsTable .manifest-status { font-weight: 700; text-align: center; font-size: 1.05rem; }
#jobsTable .actions-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.55em;
  padding: 0.6em 0.25em;
  box-sizing: border-box;
}
#jobsTable .actions-stack .action-btn {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 110px;
  height: auto !important;
  border-radius: 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  padding: 1.2em 0.6em;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
#jobsTable thead th:nth-child(1) {
  width: 38px;
  min-width: 34px;
  max-width: 42px;
  text-align: center;
  padding: 4px 6px;
}
#jobsTable thead th:nth-child(5),
#jobsTable thead th:nth-child(6) {
  width: 180px;
  min-width: 170px;
  max-width: 200px;
  text-align: center;
}
#jobsTable thead th:nth-child(3),
#jobsTable thead th:nth-child(4) {
  width: 32%;
}

/* Sender/Receiver cells: ensure multi-line, expand height, wrap long lines, no truncation or ellipsis */
/* Updated sender/receiver cell styles for new layout */
.sender-cell, .receiver-cell {
  white-space: normal !important;
  word-break: break-word !important;
  text-align: left !important;
  font-size: 1.1rem;
  padding-top: 0.6em;
  padding-bottom: 0.6em;
}

/* Highlight sender for jobs still needing pickup */
#jobsTable .sender-cell.needs-pickup {
  box-shadow: inset 0 0 0 4px #16a34a;
  border-radius: 10px;
  padding: 0.75em;
  background: #ecfdf3;
}

/* Highlight receiver for delivery-focused jobs */
#jobsTable .receiver-cell.needs-delivery,
#upcomingTable .receiver-cell.needs-delivery {
  box-shadow: inset 0 0 0 4px #16a34a;
  border-radius: 10px;
  padding: 0.75em;
  background: #ecfdf3;
}

/* Bulk freight placed list pickup/delivery outlines */
#planner3dPlacedList .planner-sender-cell,
#planner3dPlacedList .planner-receiver-cell {
  white-space: normal;
  word-break: break-word;
}

#planner3dPlacedList .planner-sender-cell.needs-pickup {
  box-shadow: inset 0 0 0 3px #16a34a;
  border-radius: 6px;
}

#planner3dPlacedList .planner-receiver-cell.needs-delivery {
  box-shadow: inset 0 0 0 3px #b91c1c;
  border-radius: 6px;
}

.consignment-mainrow td, .consignment-subrow td {
  vertical-align: top !important;
}

/* Actions column: vertical stacking, always centered */
/* Updated actions-cell, actions-stack, and action-btn rules for 3-column layout and wide labels */
.actions-cell {
  min-width: 175px;
  max-width: 230px;
  width: 100%;
  padding: 0.3em 0.4em !important;
  text-align: center;
  vertical-align: top;
}

.actions-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}

/* Compact date-time cell used on Courier tables */
.dt-cell { line-height: 1.1; text-align: center; }
.dt-cell .t { font-weight: 600; }
.dt-cell .d { font-size: 0.92em; opacity: 0.85; }

.action-btn,
.pdf-btn,
.cancel-btn,
.moreinfo-btn {
  min-width: 140px;
  max-width: 210px;
  font-size: 1.08em;
  line-height: 1.25;
  box-sizing: border-box;
  padding: 0.47em 1.3em;
  white-space: normal !important;
}

@media (max-width: 700px) {
  .actions-cell {
    min-width: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    padding: 0.14em 0.02em !important;
  }
  .actions-stack button,
  .actions-stack .status-badge {
    min-width: 70px;
    max-width: 100%;
    width: 100%;
  }
}

/* Sender/Receiver columns on desktop: each 40% */
@media (min-width: 600px) {
  .sender-cell {
    width: 41.66vw;
    max-width: 44vw;
    min-width: 200px;
  }
  .receiver-cell {
    width: 41.66vw;
    max-width: 44vw;
    min-width: 200px;
  }
  .actions-cell {
    width: 16.66vw;
    max-width: 20vw;
    min-width: 100px;
  }
}

/* Always enforce grid lines */
.consignment-mainrow td,
.consignment-subrow td {
  border: 1px solid #cbd5e1 !important;
  background: #fff;
  padding-top: 0.72em;
  padding-bottom: 0.45em;
}

.consignment-mainrow td {
  border-bottom: none !important;
}
.consignment-subrow td {
  border-top: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* Subrow: don't truncate, allow multi-line details */
.sender-details-cell,
.receiver-details-cell {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

/* Add subtle hover effect for both rows together */
.consignment-mainrow:hover, .consignment-subrow:hover {
  background: #f8fafc;
}
body.dark-mode .consignment-mainrow:hover,
body.dark-mode .consignment-subrow:hover {
  background: inherit;
}

/* Responsive: On mobile, columns stack and sender/receiver/actions get 100% width */
@media (max-width: 700px) {
  .sender-cell, .receiver-cell, .actions-cell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    display: block;
  }
}

.login-field {
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .card, .container { margin: 1rem 0.5rem; padding: 1.2rem; }
  .nav-tabs { flex-wrap: wrap; gap: 0.7rem; }
}

@media print {
  body, html {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: #fff !important;
    color: #111 !important;
  }
  .container, .card { box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
  .print-wrapper {
    zoom: 0.7; /* scale to fit 3 notes on A4 portrait */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-note {
    page-break-inside: avoid;
    break-inside: avoid-page;
    width: 180mm;
    height: 90mm;
    border: 1px solid #222;
    border-radius: 4px;
    margin-bottom: 6mm;
  }
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-card {
  background: #fff;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(40,40,80,0.18);
  text-align: center;
  max-width: 95vw;
  min-width: 320px;
  font-size: 1.14rem;
  font-weight: 500;
}
.modal-btns {
  margin-top: 2rem;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}
.modal-btn-yes,
.modal-btn-no,
.modal-btn-cancel,
.modal-btn-ok {
  padding: 0.6rem 1.7rem;
  border-radius: 7px;
  font-size: 1.07rem;
  font-weight: bold;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  margin: 0 0.2rem;
  transition: background 0.18s;
  outline: none;
}
.modal-btn-no,
.modal-btn-cancel {
  background: #eee;
  color: #333;
}
.modal-btn-yes:active,
.modal-btn-ok:active {
  background: #174dc5;
}
.modal-btn-no:active,
.modal-btn-cancel:active {
  background: #ddd;
}
.modal-card input[type="datetime-local"] {
  margin: 1rem auto 0.5rem auto;
  display: block;
  width: 80%;
  font-size: 1.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  outline: none;
  background: #f9fafb;
}


/* Added styles for ETA/Tracking Requests */
.action-btn.eta-btn {
  --action-btn-bg: #34a853;
  --action-btn-hover-bg: #2f8a46;
  --action-btn-border: #2f8a46;
  --action-btn-color: #fff;
  border-radius: 6px;
  padding: 0.55em 1.25em;
  cursor: pointer;
  font-weight: bold;
  margin-left: 0.5em;
  transition: background 0.2s;
  min-height: 42px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.09rem;
  box-shadow: 0 2px 7px rgba(52,168,83,0.10);
}
.action-btn.eta-btn:active {
  background: #258039;
}
.eta-status-msg {
  display: inline-block;
  font-size: 0.97rem;
  font-weight: 500;
  margin-left: 1.1em;
  color: #2d6a4f;
  background: #c7f9cc;
  border-radius: 6px;
  padding: 0.25em 0.75em;
  vertical-align: middle;
}
.eta-awaiting-admin {
  background: #fff3cd;
  color: #ad7d05;
}
.eta-replied {
  background: #e6ffec;
  color: #186e3b;
}
/* ===== Request ETA/Tracking Button/Status Column ===== */
.request-eta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
}

.eta-btn .eta-request-small {
  font-size: 0.72em;
  display: block;
  line-height: 1.06;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  white-space: nowrap;
}
.eta-btn .eta-request-big {
  font-size: 1.1em;
  font-weight: bold;
  display: block;
  line-height: 1.06;
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 0;
  white-space: nowrap;
}

/* Align actions in a neat card block */
.consignment-mainrow td, .consignment-subrow td {
  border: 1px solid #cbd5e1 !important;
  border-bottom: none !important; /* We'll control bottom borders for pairs below */
  background: #fff;
  padding-top: 0.72em;
  padding-bottom: 0.45em;
}
.consignment-mainrow td {
  border-bottom: none !important; /* Remove bottom on mainrow */
}
.consignment-subrow td {
  border-top: none !important; /* Remove top on subrow */
  border-bottom: 1px solid #cbd5e1 !important; /* Bottom for last row of each pair */
}
.actions-cell {
  border-left: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  background: #fff;
  vertical-align: top;
  text-align: center;
}

/* Make details row look like pills */
.keyval-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}
.keyval {
  background: #f3f4f6;
  color: #222;
  font-size: 0.97rem;
  border-radius: 16px;
  padding: 0.25em 1.05em;
  font-weight: 500;
  margin-bottom: 0.18em;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}
/* Consignment Table Row Defaults */
/* (Moved consignment-mainrow/subrow td rules above for grid strengthening) */

/* Sender/Receiver cells: allow multi-line, expand height, wrap long lines */
.sender-cell,
.receiver-cell,
.sender-details-cell,
.receiver-details-cell {
  /* Let <td> default to table-cell. Removed vertical-align from sender/receiver cells above. */
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  /* Allow cell to expand height for content */
  padding-top: 1em;
  padding-bottom: 1em;
}

@media (min-width: 800px) {
  .sender-cell,
  .receiver-cell {
    width: 40vw;
    max-width: 42vw;
  }
  .actions-cell {
    width: 20vw;
    max-width: 21vw;
  }
}

/* Add subtle hover effect for both rows together */
.consignment-mainrow:hover, .consignment-subrow:hover {
  background: #f8fafc;
  /* Don't touch borders */
}
/* WIDER action buttons for long labels like 'Attempted Delivery' */
.action-btn,
.pdf-btn,
.cancel-btn,
.view-status-btn,
.moreinfo-btn {
  display: inline-block;
  min-width: 135px;
  max-width: 210px;
  padding: 0.45em 1.1em;
  font-size: 0.97em;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 6px;
  border: none;
  margin-bottom: 0.4em;
  margin-right: 0.1em;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-align: center !important;
  background: #eee;
  color: #232323;
  cursor: pointer;
  transition: background 0.16s;
  box-sizing: border-box;
  vertical-align: middle;
  font-size: 1.07em !important;
  line-height: 1.25 !important;
  min-height: 42px !important;
}

/* Make sure PDF, Cancel, etc. look correct */
.pdf-btn    { background: #FBBF24; color: #222; }
.cancel-btn { background: #EF4444; color: #fff; }
.view-status-btn { background: #2563eb; color: #fff; }
.moreinfo-btn { background: #444; color: #fff; }

@media (max-width: 700px) {
  .action-btn,
  .pdf-btn,
  .cancel-btn,
  .view-status-btn,
  .moreinfo-btn {
    min-width: 105px;
    max-width: 100vw;
    font-size: 0.93em;
  }
}

.status-badge { display:inline-block; padding:0.22em 0.85em; font-size:1.02rem; font-weight:600; border-radius:14px; margin-left:0.1em; margin-right:0.1em; letter-spacing:0.01em; vertical-align:middle;}
.status-badge-assigned     { background:#c7f9cc; color:#166534; border:1px solid #22c55e;}
.status-badge-accepted     { background:#fff3cd; color:#ad7d05; border:1px solid #ffe066;}
.status-badge-picked-up    { background:#e0e7ff; color:#3730a3; border:1px solid #818cf8;}
.status-badge-out-for-delivery { background:#fde68a; color:#b45309; border:1px solid #fbbf24;}
.status-badge-delivered    { background:#d1fae5; color:#059669; border:1px solid #34d399;}
.status-badge-attempted-delivery { background:#ffe0e6; color:#c026d3; border:1px solid #fb7185;}
.status-badge-cancelled    { background:#fee2e2; color:#d32f2f; border:1px solid #f87171;}
.status-badge-rejected     { background:#fbcfe8; color:#be185d; border:1px solid #f472b6;}
.status-badge-depot        { background:#e0f2fe; color:#0369a1; border:1px solid #38bdf8;}
.rejected-row { background:#fee2e2 !important; }
body.dark-mode .rejected-row { background:#4c0519 !important; }
.status-rejected-cell { color:#b91c1c !important; font-weight:700; text-decoration:underline dotted; cursor:pointer; }
body.dark-mode .status-rejected-cell { color:#fecdd3 !important; }
/* --- Info Button for Job Details Modal --- */
.action-btn.info-btn {
  --action-btn-bg: #6366f1;
  --action-btn-hover-bg: #4338ca;
  --action-btn-border: #4338ca;
  --action-btn-color: #fff;
}

/* Dragula helpers */
.gu-mirror {
  position: fixed !important;
  margin: 0 !important;
  z-index: 9999 !important;
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(0.0001deg); /* iOS Safari repaint hack */
}
.gu-hide { display: none !important; }
.gu-unselectable { user-select: none !important; }
.gu-transit { opacity: 0.35; }

/* ===== Shared UI (Patch 2 completion) ===== */

/* Bulk actions toolbar used across Courier/Admin */
.toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.toolbar .action-btn { margin-right: 0.25rem; }

/* Generic tab buttons (when pages use .tablink instead of .nav-tabs button) */
.tablink {
  background: none;
  border: none;
  font-size: 1.05rem;
  color: #1d4ed8;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.tablink:hover { background: #eef2ff; }
.tablink.active {
  background: #e0e7ff;
  color: #111827;
}
body.dark-mode .tablink.active {
  background: #262626;
  color: #fff;
}
body.dark-mode .tablink {
  color: #f5f5f5;
}

/* Extras dropdown used on Admin */
.dropdown { position: relative; display: inline-block; }
.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 1000;
}
.dropdown .dropdown-menu .action-btn {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 0 0.35rem 0;
  text-align: left;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
}
.dropdown .dropdown-menu .action-btn:last-child { margin-bottom: 0; }
.dropdown.open .dropdown-menu { display: block; }
.extras-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
body.dark-mode .dropdown .dropdown-menu { background: #1f2937; border-color: #374151; }
body.dark-mode .extras-btn { background: #1f2937; color: var(--text-color); border-color: #374151; }

/* Toast notifications (shared) */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 99999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s, transform .18s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.info    { background: #1f2937; }
/* ===== Customer Dashboard polish (self-contained) ===== */
:root {
  --bg: #f5f7fb;
  --bg-card: #ffffff;
  --text: #1e293b;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #e5e7eb;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
}
body.customer-page { background: var(--bg); color: var(--text); }
body.customer-page.dark-mode { --bg: #0b0b0b; --bg-card:#0b0b0b; --text:#e5e7eb; --border:#222; --muted:#94a3b8; }

/* Layout */
.page-header { max-width: 1100px; margin: 28px auto 12px; padding: 0 16px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px 32px; }
.section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 16px 0; box-shadow: 0 1px 2px rgba(0,0,0,.03); }

/* Tabs */
.tabs { display:flex; gap: 14px; align-items:center; margin-top: 8px; flex-wrap: wrap; }
.tablink { appearance:none; border: 1px solid transparent; background: transparent; color: var(--primary); font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tablink:hover { background: rgba(37,99,235,.08); }
.tablink.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tablink.right { margin-left:auto; font-weight:500; }

/* Toolbars */
.toolbar { display:flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }

/* Forms */
.form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.form legend { font-weight: 700; color: var(--muted); padding: 0 6px; }
.login-field, .form input, .form select, .form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.form textarea { min-height: 48px; resize: vertical; }
.grid.two { display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.four { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid.five { display:grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.actions { margin-top: 10px; display:flex; gap: 10px; align-items:center; }

/* Buttons */
.action-btn {
  appearance: none;
  border: 1px solid var(--action-btn-border, var(--border, #e5e7eb));
  background: var(--action-btn-bg, var(--action-btn-bg-default, #fff));
  color: var(--action-btn-color, var(--action-btn-color-default, #111827));
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.1s ease;
}
.action-btn:hover {
  background: var(--action-btn-hover-bg, var(--action-btn-hover-default, #f3f4f6));
}

/* Tables */
.data-table { width:100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.data-table thead th { text-align:left; font-size:.9rem; color: var(--muted); background: #f8fafc; border-bottom:1px solid var(--border); padding: 10px; }
.data-table tbody td { padding: 10px; border-bottom:1px solid var(--border); }
.data-table tbody tr:hover { background: rgba(37,99,235,.04); }
body.dark-mode .data-table tbody tr:hover { background: inherit; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.status-badge { display:inline-block; font-size:.8rem; padding: 4px 8px; border-radius: 999px; border:1px solid var(--border); background:#f1f5f9; color:#0f172a; }
.status-badge-booked { background:#e0ecff; color:#1e40af; border-color:#bfdbfe; }
.status-badge-picked-up { background:#fef3c7; color:#92400e; border-color:#fde68a; }
.status-badge-delivered { background:#dcfce7; color:#166534; border-color:#bbf7d0; }
.status-badge-attempted { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.status-badge-archived { background:#e5e7eb; color:#374151; border-color:#e5e7eb; }

/* Toasts */
.toast, .success, .error { border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.success { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.error { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }

/* Depot board grouping */
.depot-group {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  background: #fff;
}
.depot-group h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}
.depot-group h5 {
  margin: 0.6rem 0 0.3rem 0;
  font-size: 0.95rem;
  color: #475569;
}
.depot-table {
  margin-bottom: 0.75rem;
}
.depot-table tr.needs-transfer {
  background: #fff7ed;
}
body.dark-mode .depot-table tr.needs-transfer {
  background: #1a1a1a;
}
body.dark-mode .depot-group {
  background: #0b0b0b;
  border-color: #222;
}
body.dark-mode .depot-group h5 {
  color: #f5f5f5;
}

/* Dark mode overrides */
.dark-mode .section { background:#0b0b0b; border-color:#222; }
.dark-mode .data-table thead th { background:#0b0b0b; }
.dark-mode .data-table tbody tr:hover { background: rgba(59,130,246,.08); }
.dark-mode .login-field, .dark-mode .form input, .dark-mode .form select, .dark-mode .form textarea { background:#0b0b0b; border-color:#222; color:#e5e7eb; }
.dark-mode .action-btn {
  border-color: var(--action-btn-border, var(--action-btn-border-default, #1f2937));
  color: var(--action-btn-color, var(--action-btn-color-default, #e5e7eb));
  box-shadow: none;
}
.dark-mode .btn-blue,
.dark-mode .action-btn.btn-blue {
  --action-btn-border: var(--primary, #2563eb);
}

.delivery-gap {
  background: #ecfdf3 !important;
  color: #0f2417 !important;
}
.delivery-gap td,
.delivery-gap td * {
  color: inherit !important;
}
body.dark-mode .delivery-gap {
  background: #0f2417 !important;
  color: #e5e5e5 !important;
}
body.dark-mode .delivery-gap td,
body.dark-mode .delivery-gap td * {
  color: #e5e5e5 !important;
}

#jobsTable .receiver-cell.needs-delivery {
  box-shadow: inset 0 0 0 3px #b91c1c;
  border-radius: 6px;
}

/* Ready-at overlays */
.ready-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 51, 32, 0.65);
  border: 2px dashed #16a34a;
  color: #f5f5f5;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 2;
  pointer-events: none;
}
.dark-mode .ready-overlay {
  background: rgba(11, 51, 32, 0.65);
  border-color: #16a34a;
  color: #f5f5f5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.bulk-overlay {
  background: rgba(15, 23, 42, 0.72);
  border-color: #ef4444;
  color: #ef4444;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.dark-mode .bulk-overlay {
  background: rgba(15, 23, 42, 0.8);
  border-color: #ef4444;
  color: #ef4444;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* Mobile */
@media (max-width: 820px) {
  .grid.five { grid-template-columns: repeat(2, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .tabs { gap:8px; }
}
/* ===== End Customer Dashboard polish ===== */
