/* clean dashboard layout build 20260627033500 */
:root {
  --bg: #eef7fc;
  --bg-2: #e3f0f8;
  --panel: #ffffff;
  --panel-2: #f8fcff;
  --panel-3: #edf7fd;
  --line: #b9d3e5;
  --line-strong: #8fb9d2;
  --line-soft: rgba(47, 111, 159, 0.14);
  --text: #142236;
  --muted: #52697e;
  --primary: #2f6f9f;
  --primary-dark: #245a83;
  --primary-soft: #d8ecf7;
  --secondary: #5a9ab8;
  --accent: #174a78;
  --success: #2f7a58;
  --warning: #83671f;
  --danger: #a33a3a;
  --grid-line: rgba(47, 111, 159, 0.075);
  --grid-line-soft: rgba(47, 111, 159, 0.035);
  --body-start: #f8fcff;
  --body-mid: #eef7fc;
  --body-end: #e3f0f8;
  --shadow: 0 10px 24px rgba(45, 86, 115, 0.1);
  --radius: 8px;
  --radius-lg: 10px;
  --font: "Segoe UI", Tahoma, Verdana, sans-serif;
}

body[data-dashboard-theme="halloween"] {
  --bg: #f5f1fb;
  --bg-2: #e9e0f4;
  --line: #cab8df;
  --line-strong: #9d82bd;
  --primary: #6b4d8d;
  --primary-dark: #52386f;
  --primary-soft: #e5dbf1;
  --secondary: #886ea5;
  --accent: #442e61;
  --grid-line: rgba(107, 77, 141, 0.065);
  --grid-line-soft: rgba(107, 77, 141, 0.035);
  --body-start: #fbf9ff;
  --body-mid: #f5f1fb;
  --body-end: #e9e0f4;
}

body[data-dashboard-theme="aibizshop"] {
  --bg: #05070d !important;
  --bg-2: #08111e !important;
  --panel: rgba(8, 17, 30, 0.96) !important;
  --panel-2: rgba(255, 255, 255, 0.07) !important;
  --panel-3: rgba(255, 255, 255, 0.11) !important;
  --line: rgba(255, 255, 255, 0.14) !important;
  --line-strong: rgba(101, 228, 255, 0.35) !important;
  --line-soft: rgba(101, 228, 255, 0.14) !important;
  --text: #f7fbff !important;
  --muted: #aab8c8 !important;
  --primary: #42f58d !important;
  --primary-dark: #22a7ff !important;
  --primary-soft: rgba(66, 245, 141, 0.13) !important;
  --secondary: #65e4ff !important;
  --accent: #65e4ff !important;
  --success: #42f58d !important;
  --warning: #ffb24a !important;
  --danger: #ff5c73 !important;
  --grid-line: rgba(101, 228, 255, 0.065) !important;
  --grid-line-soft: rgba(101, 228, 255, 0.032) !important;
  --body-start: #05070d !important;
  --body-mid: #07120d !important;
  --body-end: #08111e !important;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.34) !important;
}

body[data-dashboard-theme="aibizshop"] *,
body[data-dashboard-theme="aibizshop"] *::before,
body[data-dashboard-theme="aibizshop"] *::after {
  --accent: #65e4ff !important;
}

body[data-dashboard-theme="aibizshop"] .ops-top,
body[data-dashboard-theme="aibizshop"] .panel,
body[data-dashboard-theme="aibizshop"] .subpanel,
body[data-dashboard-theme="aibizshop"] .panel-lite,
body[data-dashboard-theme="aibizshop"] .approval-panel,
body[data-dashboard-theme="aibizshop"] .public-approval-card,
body[data-dashboard-theme="aibizshop"] .client-portal-card,
body[data-dashboard-theme="aibizshop"] .portal-panel,
body[data-dashboard-theme="aibizshop"] .document-shell,
body[data-dashboard-theme="aibizshop"] .share-shell,
body[data-dashboard-theme="aibizshop"] .print-shell,
body[data-dashboard-theme="aibizshop"] .login-card {
  background:
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    var(--panel);
  border-color: var(--line);
}

body[data-dashboard-theme="aibizshop"] .build-chip,
body[data-dashboard-theme="aibizshop"] .kicker,
body[data-dashboard-theme="aibizshop"] .share-kicker,
body[data-dashboard-theme="aibizshop"] th {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--line-strong);
}

body[data-dashboard-theme="aibizshop"] label,
body[data-dashboard-theme="aibizshop"] .check,
body[data-dashboard-theme="aibizshop"] .inline-check,
body[data-dashboard-theme="aibizshop"] .rate-row label {
  color: var(--text);
}

body[data-dashboard-theme="aibizshop"] input,
body[data-dashboard-theme="aibizshop"] select,
body[data-dashboard-theme="aibizshop"] textarea,
body[data-dashboard-theme="aibizshop"] .currency-input,
body[data-dashboard-theme="aibizshop"] .check,
body[data-dashboard-theme="aibizshop"] .inline-check,
body[data-dashboard-theme="aibizshop"] .rate-row label,
body[data-dashboard-theme="aibizshop"] .table-wrap,
body[data-dashboard-theme="aibizshop"] .compact-wrap,
body[data-dashboard-theme="aibizshop"] .tight-table,
body[data-dashboard-theme="aibizshop"] .twilliojr-table-wrap,
body[data-dashboard-theme="aibizshop"] .twilliojr-device-table-wrap,
body[data-dashboard-theme="aibizshop"] table,
body[data-dashboard-theme="aibizshop"] .message,
body[data-dashboard-theme="aibizshop"] .status-toast,
body[data-dashboard-theme="aibizshop"] .badge,
body[data-dashboard-theme="aibizshop"] .status,
body[data-dashboard-theme="aibizshop"] .time-clock-badge,
body[data-dashboard-theme="aibizshop"] .schedule-chip,
body[data-dashboard-theme="aibizshop"] .online-job-alert-badge,
body[data-dashboard-theme="aibizshop"] .session-box,
body[data-dashboard-theme="aibizshop"] .on-deck-card,
body[data-dashboard-theme="aibizshop"] .mini-card,
body[data-dashboard-theme="aibizshop"] .metric,
body[data-dashboard-theme="aibizshop"] .meta-card,
body[data-dashboard-theme="aibizshop"] .portal-action-card,
body[data-dashboard-theme="aibizshop"] .portal-method-grid form,
body[data-dashboard-theme="aibizshop"] .party-card,
body[data-dashboard-theme="aibizshop"] .approval-snapshot,
body[data-dashboard-theme="aibizshop"] .member-summary {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

body[data-dashboard-theme="aibizshop"] input::placeholder,
body[data-dashboard-theme="aibizshop"] textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

body[data-dashboard-theme="aibizshop"] input:focus,
body[data-dashboard-theme="aibizshop"] select:focus,
body[data-dashboard-theme="aibizshop"] textarea:focus,
body[data-dashboard-theme="aibizshop"] .currency-input:focus-within {
  outline-color: rgba(101, 228, 255, 0.24);
}

body[data-dashboard-theme="aibizshop"] .ops-nav a,
body[data-dashboard-theme="aibizshop"] .nav-action-button,
body[data-dashboard-theme="aibizshop"] .language-toggle,
body[data-dashboard-theme="aibizshop"] .secondary-link,
body[data-dashboard-theme="aibizshop"] .secondary-button,
body[data-dashboard-theme="aibizshop"] .portal-actions a,
body[data-dashboard-theme="aibizshop"] .form-link,
body[data-dashboard-theme="aibizshop"] button.secondary,
body[data-dashboard-theme="aibizshop"] .secondary,
body[data-dashboard-theme="aibizshop"] .table-link.secondary,
body[data-dashboard-theme="aibizshop"] .client-portal-nav a {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

body[data-dashboard-theme="aibizshop"] .ops-nav a:hover,
body[data-dashboard-theme="aibizshop"] .nav-action-button:hover,
body[data-dashboard-theme="aibizshop"] .language-toggle:hover,
body[data-dashboard-theme="aibizshop"] .secondary-link:hover,
body[data-dashboard-theme="aibizshop"] .secondary-button:hover,
body[data-dashboard-theme="aibizshop"] .portal-actions a:hover,
body[data-dashboard-theme="aibizshop"] .form-link:hover,
body[data-dashboard-theme="aibizshop"] button.secondary:hover,
body[data-dashboard-theme="aibizshop"] .secondary:hover,
body[data-dashboard-theme="aibizshop"] .table-link.secondary:hover,
body[data-dashboard-theme="aibizshop"] .client-portal-nav a:hover {
  background: var(--primary-soft);
  border-color: var(--line-strong);
  color: var(--primary);
}

body[data-dashboard-theme="aibizshop"] .ops-nav a.active,
body[data-dashboard-theme="aibizshop"] .language-toggle[aria-pressed="true"],
body[data-dashboard-theme="aibizshop"] .client-portal-nav a.active,
body[data-dashboard-theme="aibizshop"] button,
body[data-dashboard-theme="aibizshop"] .tool-link,
body[data-dashboard-theme="aibizshop"] .file-upload-button,
body[data-dashboard-theme="aibizshop"] .table-link,
body[data-dashboard-theme="aibizshop"] .job-focus-link,
body[data-dashboard-theme="aibizshop"] .table-save-filed,
body[data-dashboard-theme="aibizshop"] input[type="submit"] {
  background: linear-gradient(135deg, #42f58d, #65e4ff);
  border-color: rgba(101, 228, 255, 0.55);
  color: #03120a;
  box-shadow: 0 10px 24px rgba(66, 245, 141, 0.14);
}

body[data-dashboard-theme="aibizshop"] .ops-nav a.active:hover,
body[data-dashboard-theme="aibizshop"] button:hover,
body[data-dashboard-theme="aibizshop"] .tool-link:hover,
body[data-dashboard-theme="aibizshop"] .file-upload-button:hover,
body[data-dashboard-theme="aibizshop"] .table-link:hover,
body[data-dashboard-theme="aibizshop"] .job-focus-link:hover,
body[data-dashboard-theme="aibizshop"] .table-save-filed:hover,
body[data-dashboard-theme="aibizshop"] input[type="submit"]:hover {
  background: linear-gradient(135deg, #65e4ff, #42f58d);
  border-color: rgba(66, 245, 141, 0.68);
  color: #03120a;
}

body[data-dashboard-theme="aibizshop"] tr:hover td,
body[data-dashboard-theme="aibizshop"] .clickable-row:hover td,
body[data-dashboard-theme="aibizshop"] .is-clickable:hover {
  background: rgba(101, 228, 255, 0.08);
}

body[data-dashboard-theme="aibizshop"] .currency-input > span,
body[data-dashboard-theme="aibizshop"] .nav-count {
  color: var(--primary);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, var(--body-start) 0%, var(--body-mid) 48%, var(--body-end) 100%);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 5px;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.ops-shell {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 10px;
}

.ops-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    var(--panel);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: var(--shadow);
  padding: 14px;
}

.ops-top p {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.ops-top > *,
.panel > *,
.subpanel > *,
main,
section,
article,
form {
  min-width: 0;
}

.ops-top-right {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-logo,
.login-brand-logo {
  max-height: 44px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.build-chip,
.kicker,
.share-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-box,
.on-deck-card,
.mini-card,
.metric,
.meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
}

.session-box,
.on-deck-card {
  min-width: 138px;
  text-align: right;
}

.session-box strong,
.on-deck-card strong,
.mini-card b,
.metric strong,
.meta-card strong {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.session-box span,
.on-deck-card span,
.on-deck-card em,
.mini-card span,
.metric span,
.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.session-box a {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.ops-nav {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.ops-nav-links,
.ops-nav-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 2px;
}

.ops-nav-controls {
  justify-content: flex-start;
  width: 100%;
}

.nav-button-form {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

.ops-nav a,
.nav-action-button,
.language-toggle,
.secondary-link,
.secondary-button,
.portal-actions a,
.form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent);
  padding: 8px 11px;
  box-shadow: 0 2px 7px rgba(45, 86, 115, 0.08);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ops-nav a:hover,
.nav-action-button:hover,
.language-toggle:hover,
.secondary-link:hover,
.secondary-button:hover,
.portal-actions a:hover,
.form-link:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--accent);
}

.ops-nav a.active,
.language-toggle[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.nav-action-button,
.language-toggle {
  min-width: 94px;
}

.nav-count {
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.nav-count[hidden],
[hidden] {
  display: none !important;
}

.messages {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 8px;
  z-index: 50;
  margin: 10px 0;
}

.message,
.status-toast,
.field-error {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  font-weight: 900;
}

.message.success,
.status-toast.success,
.ok,
.badge.ok {
  border-color: rgba(47, 122, 88, 0.35);
  color: var(--success);
}

.message.warning,
.status-toast.warning,
.warn,
.warning,
.badge.warn {
  border-color: rgba(131, 103, 31, 0.35);
  color: var(--warning);
}

.message.error,
.status-toast.error,
.field-error,
.danger,
.badge.danger {
  border-color: rgba(163, 58, 58, 0.35);
  background: #fff7f7;
  color: var(--danger);
}

.status-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  width: min(420px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.status-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel,
.subpanel,
.panel-lite,
.approval-panel,
.public-approval-card,
.client-portal-card,
.portal-panel,
.document-shell,
.share-shell,
.print-shell,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(47, 111, 159, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(47, 111, 159, 0.035) 1px, transparent 1px),
    var(--panel);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: var(--shadow);
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.panel,
.approval-panel,
.public-approval-card,
.client-portal-card,
.document-shell,
.share-shell,
.print-shell {
  margin: 10px 0;
  padding: 14px;
}

.subpanel,
.panel-lite,
.portal-panel {
  background-color: var(--panel-2);
  box-shadow: none;
  padding: 14px;
}

.panel-head,
.compact-head,
.seo-card-head,
.twilliojr-section-head,
.client-portal-head,
.driver-location-top,
.job-tracker-sidebar-head,
.document-header,
.report-head,
.share-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head p,
.form-help,
.muted,
.field-note,
.comms-note,
.driver-location-note,
.route-line-status,
.job-tracker-sync-status,
.twilliojr-message-meta {
  color: var(--muted);
  font-weight: 700;
}

.grid,
.party-grid,
.portal-grid,
.meta-grid,
.metrics-grid,
.driver-app-grid,
.driver-location-grid,
.record-detail-grid,
.billing-filter-grid,
.approval-action-grid,
.garage-focus-grid,
.focus-repair-ledger,
.twilliojr-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.grid.two,
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wide,
.wide-panel,
.full {
  grid-column: 1 / -1;
}

.module-strip,
.garage-focus-strip,
.button-row,
.filter-row,
.inline-actions,
.screen-actions,
.stacked-actions,
.share-actions,
.twilliojr-actions,
.time-clock-actions,
.time-clock-times,
.schedule-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.module-strip > *,
.garage-focus-strip > *,
.button-row > *,
.filter-row > *,
.inline-actions > *,
.screen-actions > *,
.stacked-actions > *,
.share-actions > *,
.twilliojr-actions > *,
.time-clock-actions > *,
.time-clock-times > *,
.schedule-detail-actions > * {
  min-width: 0;
  max-width: 100%;
}

.filter-row label {
  flex: 1 1 220px;
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

form {
  margin: 0;
}

.ops-form,
.twilliojr-form,
.schedule-cell-form,
.schedule-detail-form,
.inline-form,
.garage-close-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

label {
  display: grid;
  gap: 5px;
  color: #000000;
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #a9c8dc;
  border-radius: var(--radius);
  background: #ffffff;
  color: #000000;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.currency-input:focus-within {
  border-color: var(--primary);
  outline: 2px solid rgba(47, 111, 159, 0.18);
  outline-offset: 1px;
}

input::placeholder,
textarea::placeholder {
  color: #000000;
  opacity: 0.65;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: 0;
}

.check,
.inline-check,
.rate-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #000000;
  padding: 8px 10px;
}

.check-stack {
  display: grid;
  gap: 8px;
}

.currency-input {
  display: flex;
  align-items: center;
  border: 1px solid #a9c8dc;
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.currency-input > span {
  padding: 0 10px;
  color: #000000;
  font-weight: 900;
}

.currency-input input {
  border: 0;
  border-radius: 0;
}

button,
.tool-link,
.file-upload-button,
.table-link,
.job-focus-link,
.table-save-filed,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  padding: 8px 12px;
  box-shadow: 0 5px 12px rgba(47, 111, 159, 0.16);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

button:hover,
.tool-link:hover,
.file-upload-button:hover,
.table-link:hover,
.job-focus-link:hover,
.table-save-filed:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

button.secondary,
.secondary,
.secondary-button,
.secondary-link,
.table-link.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--accent);
  box-shadow: 0 2px 7px rgba(45, 86, 115, 0.08);
}

button.secondary:hover,
.secondary:hover,
.secondary-button:hover,
.secondary-link:hover,
.table-link.secondary:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--accent);
}

button.danger,
.danger-zone button,
.sms-delete-queued-form button {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.table-wrap,
.compact-wrap,
.tight-table,
.twilliojr-table-wrap,
.twilliojr-device-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.table-wrap .job-focus-link,
.table-wrap .table-link,
.table-wrap .tool-link,
.compact-wrap .job-focus-link,
.compact-wrap .table-link,
.compact-wrap .tool-link,
.tight-table .job-focus-link,
.tight-table .table-link,
.tight-table .tool-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  padding-left: 6px;
  padding-right: 6px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--primary-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

tr:hover td,
.clickable-row:hover td,
.is-clickable:hover {
  background: #f5fbff;
}

.clickable-row,
.is-clickable {
  cursor: pointer;
}

.badge,
.status,
.time-clock-badge,
.schedule-chip,
.online-job-alert-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pre-line {
  white-space: pre-line;
}

.wrap {
  overflow-wrap: anywhere;
}

.amount,
.totals,
.document-number {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 18px;
}

.login-card {
  width: min(94vw, 540px);
  padding: 20px;
}

.login-card.member-card,
.client-portal-card {
  width: min(96vw, 980px);
}

.login-card h1 {
  margin: 8px 0 4px;
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-support {
  border-left: 3px solid var(--line-strong);
  padding-left: 10px;
}

.portal-actions,
.client-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-action-card,
.portal-method-grid form,
.party-card,
.approval-snapshot,
.member-summary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 12px;
}

.client-portal-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent);
  padding: 8px 11px;
  font-weight: 900;
  text-decoration: none;
}

.client-portal-nav a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.document-shell,
.share-shell,
.print-shell {
  width: min(980px, calc(100vw - 24px));
  margin: 12px auto;
}

.document-header,
.document-footer,
.brand-row,
.brand-contact,
.report-meta,
.share-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.document-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 16px;
  padding-top: 10px;
}

.record-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.approval-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.twilliojr-app,
.job-tracker-page,
.billing-desk,
.analytics-page,
.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.billing-type-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.billing-type-controls label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: #000000;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.billing-type-controls input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.billing-type-controls span {
  display: inline-block;
  white-space: nowrap;
}

.twilliojr-hero,
.twilliojr-panel,
.twilliojr-thread-panel,
.comms-gateway-panel,
.billing-files-section,
.driver-app-card,
.driver-location-card,
.job-tracker-sidebar,
.job-tracker-map-panel,
.analytics-section-panel,
.seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.twilliojr-grid,
.job-tracker-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
}

.twilliojr-kpis,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.twilliojr-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 10px;
}

.twilliojr-kpi strong {
  display: block;
  font-size: 24px;
}

.twilliojr-thread-head,
.twilliojr-thread-actions,
.twilliojr-search-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.twilliojr-thread-messages {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px;
}

.twilliojr-message {
  width: max-content;
  max-width: min(680px, 92%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 8px 10px;
}

.twilliojr-message.outbound {
  margin-left: auto;
  background: #eaf5fb;
}

.twilliojr-message-body {
  white-space: pre-wrap;
}

.job-tracker-layout {
  align-items: stretch;
}

.job-tracker-sidebar {
  min-width: 0;
  max-height: 74vh;
  overflow: auto;
}

.job-tracker-list {
  display: grid;
  gap: 8px;
}

.job-tracker-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 10px;
  cursor: pointer;
}

.job-tracker-row:hover,
.job-tracker-row:focus {
  border-color: var(--primary);
  background: #f5fbff;
}

.job-tracker-row .job-meta,
.job-tracker-row .job-address {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.job-tracker-map-panel,
.driver-location-map-preview,
.trip-map {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 0;
}

.job-tracker-map,
.trip-map,
.map {
  min-height: 520px;
  width: 100%;
}

.map-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}

.route-toggle,
.route-line-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.route-toggle[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.map-empty,
.map-loading-fallback {
  position: absolute;
  inset: 16px;
  z-index: 2;
  display: grid;
  place-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.9);
  color: var(--accent);
  text-align: center;
}

.schedule-board-panel,
.schedule-table,
.schedule-date-head,
.schedule-cell-form,
.schedule-detail-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.schedule-table {
  display: table;
  padding: 0;
}

.schedule-date-head,
.schedule-cell-form {
  padding: 8px;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 150px;
}

.schedule-table th:not(:first-child),
.schedule-table td:not(:first-child) {
  width: calc((100% - 150px) / 14);
}

.schedule-employee {
  color: var(--text);
  font-weight: 950;
}

.schedule-mobile-date {
  display: none;
}

.schedule-date-day,
.schedule-date-stamp,
.schedule-inline-status,
.schedule-shift-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-toggle {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 8px 6px;
  border-width: 2px;
  border-radius: var(--radius);
  white-space: normal;
  box-shadow: none;
}

.schedule-toggle-state {
  display: block;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.05;
}

.schedule-toggle-next {
  display: block;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: none;
}

.schedule-off,
.schedule-toggle.schedule-off,
.schedule-chip.schedule-toggle.schedule-off {
  background: #d92d20;
  border-color: #a61f16;
  color: #ffffff;
}

.schedule-on,
.schedule-toggle.schedule-on,
.schedule-chip.schedule-toggle.schedule-on {
  background: #16803c;
  border-color: #0f5c2b;
  color: #ffffff;
}

.schedule-on-call,
.schedule-toggle.schedule-on-call,
.schedule-chip.schedule-toggle.schedule-on-call {
  background: #1769d6;
  border-color: #0f4fa8;
  color: #ffffff;
}

.schedule-off:hover,
.schedule-on:hover,
.schedule-on-call:hover {
  filter: brightness(1.08);
}

.schedule-shift-note {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 6px;
  text-align: left;
}

.schedule-shift-time {
  color: var(--text);
  font-weight: 950;
}

.schedule-shift-notes {
  color: var(--muted);
  font-weight: 800;
}

.bay-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.bay-card,
.driver-location-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 10px;
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-photo-thumb,
.job-photo-mini-thumb {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  padding: 8px;
  text-decoration: none;
}

.seo-photo-thumb {
  width: 150px;
}

.seo-photo-thumb img,
.job-photo-mini-thumb img,
.thumb-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: #ffffff;
}

.analytics-title-row,
.analytics-module-head,
.analytics-header-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-title-media img,
.analytics-clock-media img,
.analytics-graph-mini img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-data-grid,
.admin-section-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.admin-tool-links {
  margin-bottom: 12px;
}

.focused-admin-editor,
.focused-employee-panel,
.focused-member-panel,
.focused-job-panel,
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.storage-row-editor,
.garage-focus-block,
.transport-ready-panel,
.additional-repair-panel,
.trip-history-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 12px;
}

.trip-controls,
.trip-playback,
.trip-point-readout,
.trip-route-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 920px) {
  .ops-top,
  .panel-head,
  .compact-head,
  .seo-card-head,
  .client-portal-head,
  .document-header,
  .report-head,
  .share-head {
    display: grid;
  }

  .ops-top-right,
  .grid.two,
  .split,
  .twilliojr-grid,
  .job-tracker-layout {
    grid-template-columns: 1fr;
  }

  .ops-top-right {
    display: grid;
    width: 100%;
  }

  .session-box,
  .on-deck-card {
    text-align: left;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 14px;
  }

  .ops-shell {
    width: 100%;
    padding: 8px;
  }

  .ops-top,
  .panel,
  .subpanel,
  .login-card {
    padding: 12px;
  }

  .ops-nav a,
  .nav-action-button,
  .language-toggle,
  button,
  .tool-link,
  .secondary-link {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }

  th,
  td {
    padding: 7px 6px;
    font-size: 11px;
  }

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table th,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: grid;
    gap: 10px;
  }

  .schedule-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 8px;
  }

  .schedule-table td {
    border-bottom: 0;
    padding: 5px 0;
  }

  .schedule-employee {
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    padding: 8px;
  }

  .schedule-cell-form {
    display: grid;
    grid-template-columns: minmax(56px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 6px;
  }

  .schedule-mobile-date {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .schedule-chip {
    width: 100%;
  }

  .schedule-shift-note {
    grid-column: 1 / -1;
  }
}

@page {
  size: auto;
  margin: 0.45in;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .ops-nav,
  .ops-top-right,
  .messages,
  .button-row,
  .screen-actions,
  .share-actions,
  .portal-actions {
    display: none !important;
  }

  .panel,
  .subpanel,
  .document-shell,
  .print-shell,
  .share-shell {
    border-color: #cccccc !important;
    box-shadow: none !important;
  }
}
