:root {
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --button-text: #fff;
  --bg: #f5f7fa;
  --surface: #fff;
  --surface-alt: #f8fafb;
  --text: #182739;
  --muted: #66758a;
  --border: #e1e7ef;
  --accent: #087f70;
  --accent-hover: #066b5e;
  --accent-soft: #e7f6f1;
  --shadow: 0 3px 16px #17314c06;
  --focus: #138cba;
  --amber-bg: #fff5df;
  --amber: #875b0b;
  --blue-bg: #eaf2ff;
  --blue: #3262ac;
  --red-bg: #fcebec;
  --red: #b43a4b;
  color: var(--text);
  background: var(--bg);
}
:root[data-theme="dark"] {
  --button-text: #0b2722;
  --bg: #0f1722;
  --surface: #172231;
  --surface-alt: #1c293b;
  --text: #e6edf7;
  --muted: #a1afc2;
  --border: #2b3a4d;
  --accent: #6bdfc2;
  --accent-hover: #8ae9d1;
  --accent-soft: #193d39;
  --shadow: 0 4px 18px #00000015;
  --focus: #8acbff;
  --amber-bg: #3c3220;
  --amber: #efc16b;
  --blue-bg: #1e3452;
  --blue: #9ac3ff;
  --red-bg: #42262f;
  --red: #ffa7b4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  margin: 3px 3px 3px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.16s,
    transform 0.16s,
    border-color 0.16s;
}
button:hover {
  background: var(--accent-hover);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button[aria-busy="true"]::after {
  content: "";
  height: 12px;
  width: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 10px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 12px;
}
section,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.8px;
  line-height: 1.8;
  margin-top: 5px;
}
.brandMark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  letter-spacing: -3px;
  border-radius: 10px;
  padding-right: 3px;
}
.brandMark span {
  position: absolute;
  bottom: 8px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9efdc;
}
[data-theme="dark"] .brandMark {
  color: #0b2722;
}
.headerActions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.feedbackLink {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.themeControl {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding-left: 10px;
  color: var(--muted);
  background: var(--surface-alt);
}
.themeControl select {
  width: auto;
  min-height: 34px;
  padding: 6px 24px 6px 0;
  border: 0;
  margin: 0;
  background: transparent;
  font-size: 12px;
}
.ghost,
.secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.ghost:hover,
.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.primaryLink {
  display: inline-flex;
  padding: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
main {
  width: 100%;
  margin: 0 auto;
}
.appShell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
.workspaceSidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 32px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.workspaceLabel {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: var(--muted);
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.liveDot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.workspaceName {
  font-size: 14px;
  font-weight: 650;
  padding: 0 12px;
  margin-top: -14px;
}
.workspaceName small {
  font-size: 10px;
  font-weight: 400;
}
.workspaceSidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.workspaceSidebar nav button {
  justify-content: flex-start;
  background: transparent;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  min-height: 45px;
  padding: 11px 12px;
  white-space: nowrap;
}
.workspaceSidebar nav button:hover,
.workspaceSidebar nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.navCount {
  margin-left: auto;
  background: var(--surface);
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 6px;
}
.sidebarNote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 15px 12px;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.sidebarNote .icon {
  width: 15px;
  color: var(--accent);
}
.sidebarNote small {
  font-size: 10px;
}
.userCard {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 16px 8px 0;
}
.userCard strong {
  font-size: 11px;
}
.userCard small {
  font-size: 10px;
  text-transform: capitalize;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.workspaceMain {
  min-width: 0;
  max-width: 1550px;
  width: 100%;
  padding: 34px clamp(18px, 3vw, 44px);
}
.pageHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.pageHeading p {
  font-size: 12px;
  margin-bottom: 0;
}
.pageHeading button {
  white-space: nowrap;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.storageNote {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.stat {
  display: block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 16px 14px;
  margin: 0;
  min-height: 112px;
  font-weight: 400;
  transition:
    box-shadow 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
.stat:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stat.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.statTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.statTop .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.stat.failed .statTop .icon {
  color: var(--red);
}
.statBottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-top: 12px;
}
.statBottom strong {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1px;
}
.statBottom > span {
  font-size: 8px;
  color: var(--muted);
}
.boardHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.boardHeading h2 {
  font-size: 18px;
}
.boardHeading p {
  font-size: 11px;
  margin: 0;
}
.boardHeading button {
  font-size: 11px;
  min-height: 34px;
}
.orderToolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.searchField {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-left: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.searchField input {
  margin: 0;
  border: 0;
  background: transparent;
  min-width: 0;
  min-height: 43px;
  font-size: 12px;
  padding-left: 0;
}
.filterField {
  margin: 0;
}
.filterField select {
  margin: 0;
  width: auto;
  font-size: 12px;
  min-height: 45px;
}
.orderCard {
  padding: 0;
  overflow: hidden;
}
.orderTop,
.orderSummary,
.orderActionRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}
.orderTop {
  padding-bottom: 12px;
}
.orderIdentity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.orderIcon {
  width: 40px;
  height: 40px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.orderIdentity b {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  display: block;
  font-size: 13px;
  letter-spacing: 0.4px;
}
.orderIdentity small {
  font-size: 10px;
}
.overline {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.created,
.badge.picked {
  background: var(--amber-bg);
  color: var(--amber);
}
.badge.warehouse,
.badge.transit {
  background: var(--blue-bg);
  color: var(--blue);
}
.badge.failed {
  background: var(--red-bg);
  color: var(--red);
}
.orderSummary {
  padding-top: 7px;
  padding-bottom: 15px;
}
.orderDestination h3 {
  font-size: 14px;
  margin-bottom: 3px;
}
.orderDestination p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.orderDestination a {
  font-size: 11px;
}
.orderFacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.journey {
  list-style: none;
  display: flex;
  margin: 0 24px 18px;
  padding: 14px 0;
  align-items: flex-start;
  border-top: 1px solid var(--border);
}
.journey li {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
}
.journey li::after {
  content: "";
  position: absolute;
  left: calc(50% + 15px);
  right: calc(-50% + 15px);
  top: 12px;
  height: 2px;
  background: var(--border);
}
.journey li:last-child::after {
  display: none;
}
.journey li > span {
  width: 25px;
  height: 25px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  z-index: 1;
}
.journey small {
  font-size: 10px;
  margin: 0;
}
.journey .done > span,
.journey .current > span {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.journey .done::after {
  background: var(--accent);
}
.journey .current small,
.journey .done small {
  color: var(--text);
}
.journey .icon {
  width: 12px;
  height: 12px;
}
.orderActionRow {
  background: var(--surface-alt);
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
}
.orderActionRow button {
  font-size: 10px;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.nextStep {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.nextStep .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 550;
  color: var(--text);
  padding: 10px 0;
}
details > summary::marker {
  color: var(--muted);
}
.orderWorkflow {
  margin: 0;
  border-top: 1px solid var(--border);
}
.orderWorkflow > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  font-size: 11px;
  gap: 12px;
  list-style: none;
}
.orderWorkflow > summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.orderWorkflow > summary > span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.orderWorkflow > summary .icon {
  width: 14px;
  height: 14px;
}
.orderWorkflow > summary::after {
  content: "+";
  color: var(--accent);
  margin-left: auto;
  font-size: 17px;
}
.orderWorkflow[open] > summary::after {
  content: "−";
}
.orderWorkflow > summary::-webkit-details-marker {
  display: none;
}
.orderBody {
  padding: 10px 24px 24px;
  border-top: 1px solid var(--border);
}
.orderBody h3 {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.assignmentLabel {
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
}
.card {
  background: var(--surface-alt);
  padding: 16px;
  box-shadow: none;
}
.card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.card b {
  font-size: 12px;
}
.card form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.card form select {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.card button {
  font-size: 11px;
}
.card form button {
  white-space: nowrap;
}
.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  font-size: 12px;
}
.item small {
  font-size: 10px;
}
.row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 43px;
  padding: 10px 12px;
  margin: 6px 0 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
  font-size: 13px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input::placeholder {
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:user-invalid {
  border-color: var(--red);
}
input[type="checkbox"] {
  accent-color: var(--accent);
  height: 18px;
  width: 18px;
  min-height: 18px;
}
input[type="file"] {
  padding: 9px;
  font-size: 12px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 8px 0;
  color: var(--text);
}
.check input {
  margin: 0;
  flex-shrink: 0;
}
.auth {
  max-width: 460px;
  margin: 70px auto;
  padding: 32px;
}
.auth h1 {
  font-size: 26px;
}
.auth p {
  color: var(--muted);
  font-size: 13px;
}
.auth button {
  margin-top: 8px;
}
.auth form > button {
  width: 100%;
}
.loadingState {
  max-width: 500px;
  margin: 70px auto;
  text-align: center;
  color: var(--muted);
}
.emptyState {
  text-align: center;
  padding: 40px;
}
.emptyState > .icon {
  height: 32px;
  width: 32px;
  color: var(--muted);
  margin-bottom: 12px;
}
.emptyState h3 {
  font-size: 17px;
}
.emptyState p {
  font-size: 12px;
}
.workspaceFooter {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: calc(100vw - 32px);
  width: 460px;
  max-height: 90vh;
  padding: 28px;
  box-shadow: 0 20px 100px #0004;
  overflow: auto;
}
dialog::backdrop {
  background: #07121f99;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
}
canvas {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  touch-action: none;
  background: #fff;
  max-width: 100%;
}
.barcode {
  max-width: 100%;
  width: 320px;
  background: #fff;
  padding: 8px;
}
#labelContent {
  max-width: 380px;
  padding: 12px;
  background: #fff;
  color: #172e3b;
}
#labelContent p {
  color: #172e3b;
}
.demoBanner {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px 30px;
  background: var(--amber-bg);
  color: var(--amber);
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 20%, transparent);
  font-size: 10px;
}
.demoBanner strong {
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.demoBanner > span {
  flex: 1;
  min-width: 180px;
  max-width: 650px;
}
.demoBanner label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--amber);
}
.demoBanner select {
  margin: 0;
  min-height: 32px;
  width: auto;
  padding: 5px 8px;
  font-size: 10px;
}
.demoBanner button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: var(--amber) !important;
  min-height: 30px;
  font-size: 10px;
  padding: 5px 9px;
  margin: 0;
}
.demoBanner > a {
  color: var(--amber);
  font-size: 10px;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 40px #0002;
  max-width: calc(100vw - 32px);
  font-size: 13px;
}
.toast[data-type="error"] {
  border-color: var(--red);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1700px) {
  .workspaceMain {
    margin: auto;
  }
}
@media (max-width: 1250px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .statBottom > span {
    font-size: 10px;
  }
  .statTop {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .appShell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .workspaceSidebar {
    padding: 24px 10px 16px;
  }
  .workspaceSidebar nav button {
    font-size: 11px;
    padding: 10px;
  }
  .workspaceName {
    font-size: 12px;
  }
  .workspaceName small {
    font-size: 9px;
  }
  .pageHeading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .orderToolbar {
    flex-wrap: wrap;
  }
  .searchField {
    flex-basis: 100%;
  }
  .filterField {
    flex: 1;
  }
  .filterField select {
    width: 100%;
  }
  .statBottom > span {
    display: none;
  }
  .orderTop,
  .orderSummary,
  .orderActionRow {
    padding-left: 18px;
    padding-right: 18px;
  }
  .orderWorkflow > summary,
  .orderBody {
    padding-left: 18px;
    padding-right: 18px;
  }
  .card form {
    flex-wrap: wrap;
  }
  .orderFacts {
    font-size: 10px;
  }
  .demoBanner {
    padding: 12px 20px;
  }
  .feedbackLink {
    max-width: 140px;
    line-height: 1.4;
  }
  .headerActions {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .topbar {
    position: relative;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 68px;
  }
  .brand {
    font-size: 24px;
  }
  .brandMark {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .brand small {
    font-size: 7px;
  }
  .headerActions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .feedbackLink {
    font-size: 10px;
    max-width: 110px;
  }
  .themeControl {
    padding-left: 7px;
  }
  .themeControl select {
    font-size: 11px;
    max-width: 90px;
  }
  .headerActions > button {
    font-size: 11px;
    padding: 7px;
    min-height: 32px;
  }
  .appShell {
    display: block;
  }
  .workspaceSidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    gap: 0;
  }
  .workspaceSidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    scrollbar-width: none;
  }
  .workspaceSidebar nav button {
    min-height: 38px;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .workspaceSidebar nav button .icon {
    width: 15px;
    height: 15px;
  }
  .workspaceLabel,
  .workspaceName,
  .sidebarNote,
  .userCard {
    display: none;
  }
  .workspaceMain {
    padding: 24px 16px;
  }
  .pageHeading h1 {
    font-size: 25px;
    letter-spacing: -0.7px;
  }
  .pageHeading p {
    font-size: 11px;
  }
  .pageHeading > .primary {
    min-height: 38px;
    font-size: 12px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .storageNote {
    margin-bottom: 18px;
    font-size: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }
  .stat {
    padding: 13px;
    min-height: 89px;
  }
  .statTop {
    font-size: 10px;
  }
  .statBottom {
    margin-top: 7px;
  }
  .statBottom strong {
    font-size: 25px;
  }
  .boardHeading h2 {
    font-size: 18px;
  }
  .orderToolbar {
    gap: 8px;
  }
  .orderIdentity b {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .orderTop {
    gap: 10px;
    padding: 16px 14px 10px;
  }
  .orderIcon {
    height: 32px;
    width: 32px;
  }
  .orderTop .badge {
    font-size: 9px;
    padding: 5px 7px;
  }
  .orderIdentity {
    gap: 8px;
  }
  .orderSummary {
    padding: 8px 14px 15px;
    align-items: flex-start;
  }
  .orderDestination h3 {
    font-size: 13px;
  }
  .orderDestination p {
    font-size: 11px;
  }
  .orderFacts {
    font-size: 9px;
    max-width: 110px;
    text-align: right;
  }
  .journey {
    margin: 0 14px 10px;
  }
  .journey small {
    font-size: 8px;
  }
  .orderActionRow {
    align-items: flex-start;
    padding: 10px 14px;
    gap: 8px;
  }
  .nextStep {
    font-size: 10px;
    max-width: 65%;
  }
  .orderActionRow button {
    font-size: 9px;
    min-height: 30px;
    padding: 6px 8px;
    margin: 0;
  }
  .orderWorkflow > summary {
    padding: 12px 14px;
    font-size: 10px;
  }
  .orderWorkflow > summary > span:last-child {
    font-size: 9px;
  }
  .orderBody {
    padding: 10px 14px 18px;
  }
  .card {
    padding: 13px;
  }
  .item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  section {
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .demoBanner {
    padding: 10px 16px;
    gap: 10px;
    font-size: 9px;
  }
  .demoBanner > span {
    min-width: 200px;
    flex-basis: 75%;
    line-height: 1.5;
  }
  .demoBanner label {
    flex: 1;
    max-width: 100%;
    font-size: 9px;
  }
  .demoBanner select {
    min-width: 0;
    max-width: 220px;
    flex: 1;
    font-size: 9px;
  }
  .demoBanner button {
    font-size: 9px;
  }
  .auth {
    margin: 32px 16px;
  }
  .workspaceFooter {
    font-size: 9px;
    gap: 10px;
  }
  .toast {
    bottom: 15px;
    font-size: 12px;
    width: calc(100% - 32px);
  }
  dialog {
    padding: 22px;
  }
  .check {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  :root {
    color-scheme: light !important;
  }
  body > * {
    display: none !important;
  }
  #label[open] {
    display: block !important;
    position: absolute;
    inset: 0;
    border: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background: #fff;
    color: #172e3b;
    width: auto;
  }
  #label button {
    display: none !important;
  }
  #labelContent p {
    color: #172e3b;
  }
  @page {
    margin: 12mm;
  }
}
/* Fleet control, driver tools, scanning and reports. */
.fleetSection {
  padding: 22px;
  margin-bottom: 26px;
}
.fleetMapHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  gap: 12px;
}
.fleetMapHeading button {
  min-height: 30px;
  font-size: 10px;
  padding: 5px 10px;
}
#driverMap {
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 1;
  margin-top: 10px;
  background: var(--surface-alt);
}
.mapNotice,
.fleetDefinitions {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 14px;
}
.fleetDefinitions {
  margin-bottom: 0;
}
.tableScroll {
  max-width: 100%;
  overflow: auto;
  min-width: 0;
}
.tableScroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  min-width: 780px;
}
.tableScroll th {
  padding: 12px 10px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2px;
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
}
.tableScroll td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tableScroll td small {
  font-size: 10px;
  max-width: 210px;
}
.tableScroll td button {
  font-size: 10px;
  min-height: 30px;
  padding: 5px 9px;
}
.tableScroll details {
  margin: 0;
}
.tableScroll summary {
  padding: 0;
  font-size: 11px;
  white-space: nowrap;
}
.tableScroll details p {
  font-size: 10px;
  min-width: 120px;
  margin-top: 10px;
}
.driverMarker {
  background: transparent;
  border: 0;
}
.driverMarker > span {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  color: var(--button-text);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 10px #0004;
  display: grid;
  place-items: center;
}
.driverMarker > .stale {
  background: #74849a;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--text);
}
.leaflet-popup-content p {
  font-size: 11px;
  margin: 8px 0;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.locationState {
  font-size: 10px;
  font-weight: 600;
}
.locationState.fresh {
  color: var(--accent);
}
.locationState.stale {
  color: var(--amber);
}
[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.75) saturate(0.75);
}
.driverConsole {
  background: var(--accent-soft);
  border-color: var(--accent);
  margin-bottom: 24px;
}
.driverConsole h2 {
  font-size: 21px;
}
.driverConsole > p {
  font-size: 10px;
  margin-bottom: 0;
}
.driverConsole .eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
}
.driverCounters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  font-size: 11px;
  color: var(--muted);
}
.driverCounters strong {
  display: block;
  font-size: 23px;
  color: var(--text);
}
.locationTools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.locationTools span {
  font-size: 11px;
  color: var(--muted);
}
.locationTools button {
  font-size: 11px;
}
.tripState {
  margin: 12px 0;
}
.tripState small {
  font-size: 10px;
}
#scanVideo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  margin-bottom: 10px;
}
.scanFile {
  margin: 12px 0;
}
.scanFile input {
  margin-bottom: 0;
}
.claimCard {
  padding: 16px;
  margin: 15px 0 0;
  background: var(--surface-alt);
}
.claimCard p {
  font-size: 12px;
}
.claimCard button {
  width: 100%;
}
.reportFilters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.reportFilters button {
  align-self: end;
  margin-bottom: 12px;
}
.reportDetail {
  max-width: 900px;
  padding: 12px;
}
.reportDetail h3 {
  margin-top: 20px;
  color: var(--accent);
}
.reportDetail p {
  font-size: 12px;
}
.reportTimeline {
  list-style: none;
  padding-left: 0;
}
.reportTimeline li {
  position: relative;
  padding: 0 0 20px 22px;
  border-left: 2px solid var(--border);
  margin-left: 5px;
}
.reportTimeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  height: 8px;
  width: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.reportTimeline span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 850px) {
  .reportFilters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reportFilters button {
    grid-column: 1/-1;
  }
  .fleetSection {
    padding: 18px;
  }
  #driverMap {
    height: 270px;
  }
}
@media (max-width: 600px) {
  .fleetSection {
    padding: 14px;
  }
  .fleetSection .boardHeading {
    align-items: flex-start;
  }
  .fleetSection .boardHeading h2 {
    font-size: 17px;
  }
  .fleetSection .boardHeading p {
    font-size: 10px;
  }
  .driverConsole {
    padding: 18px;
  }
  .driverConsole h2 {
    font-size: 19px;
  }
  .driverConsole .row {
    align-items: flex-start;
  }
  .driverConsole .row > button {
    width: 100%;
  }
  .driverCounters {
    font-size: 10px;
  }
  .driverCounters strong {
    font-size: 22px;
  }
  .reportFilters {
    gap: 8px;
  }
  .reportFilters label {
    font-size: 11px;
  }
  #driverMap {
    height: 240px;
  }
  .fleetMapHeading {
    font-size: 9px;
  }
  .fleetMapHeading button {
    font-size: 9px;
  }
  .mapNotice,
  .fleetDefinitions {
    font-size: 9px;
  }
}
.orderNotes {
  margin: 0 24px 16px;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 12px;
}
.orderNotes p {
  margin: 5px 0;
}
.occasionReview {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}
.occasionReview label {
  flex: 1;
}
.occasionReview button {
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .orderNotes {
    margin: 0 14px 14px;
  }
  .occasionReview {
    flex-wrap: wrap;
  }
}

/* Individual driver workloads and reviewable monitoring signals. */
.monitoringSummary,
.driverProfile {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 18px 0;
  background: var(--surface);
}
.monitoringSummary button {
  margin: 4px;
}
.driverProfile .driverCounters {
  flex-wrap: wrap;
}
.driverFlag {
  border-left: 4px solid #d89225;
  padding: 12px 18px;
  margin: 12px 0;
  background: var(--surface);
}
.driverFlag.reviewed {
  border-color: #22a88b;
}
.driverFlag form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 12px;
}
.driverFlag label {
  flex: 1;
  min-width: 180px;
}
.driverProfileButton {
  text-align: left;
}
.driverProfile {
  scroll-margin-top: 24px;
}

/* Mawada palette and ribbon language, from the supplied April 2024 guide. */
:root {
  font-family: "Attila Sans Classic", "Segoe UI", sans-serif;
  --bg: #fcf6f2;
  --surface: #fff;
  --surface-alt: #f7f2fa;
  --text: #37172f;
  --muted: #796474;
  --border: #e8dce5;
  --accent: #5f174b;
  --accent-hover: #7c2464;
  --accent-soft: #ebe6ff;
  --focus: #87316d;
  --shadow: 0 8px 32px #5f174b09;
}
:root[data-theme="dark"] {
  --bg: #1d1420;
  --surface: #2a1e2c;
  --surface-alt: #342437;
  --text: #fcf6f2;
  --muted: #c7b5c7;
  --border: #50384f;
  --accent: #e2b8d7;
  --accent-hover: #f0d1e9;
  --accent-soft: #453049;
  --button-text: #37172f;
  --focus: #e2b8d7;
}
.workspaceSidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.workspaceName {
  color: var(--accent);
}
.brandMark {
  background: #5f174b;
  color: white;
  border-radius: 50% 50% 16% 50%;
}
.stat,
.orderCard,
.driverConsole {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.stat {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.stat:hover,
.pulseCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #5f174b14;
}
.mawadaHero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  background: #ebe6ff;
  color: #5f174b;
  border-radius: 26px;
  margin: 0 0 20px;
  isolation: isolate;
}
.heroCopy {
  position: relative;
  z-index: 1;
}
.mawadaHero h2 {
  color: #5f174b;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -1.8px;
  font-weight: 500;
  line-height: 1.08;
  margin: 16px 0;
}
.mawadaHero p {
  margin-bottom: 20px;
}
.heroDate {
  display: inline-block;
  border: 1px solid #5f174b30;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 11px;
}
.ribbonArt {
  position: absolute;
  border: 25px solid #fcf6f2;
  width: 420px;
  height: 180px;
  border-radius: 50%;
  transform: rotate(-40deg);
  top: 20px;
  right: 90px;
  opacity: 0.6;
  z-index: -1;
}
.ribbonArt:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 110px;
  border: 18px solid #5f174b;
  border-radius: 50%;
  left: 80px;
  top: 110px;
  transform: rotate(65deg);
  opacity: 0.17;
}
.deliveryProgress {
  align-self: center;
  text-align: center;
  display: grid;
  gap: 8px;
  min-width: 180px;
  z-index: 1;
}
.progressRing {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #ebe6ff 79%, transparent 80%),
    conic-gradient(#5f174b var(--progress), #5f174b18 0);
}
.progressRing strong {
  font-size: 31px;
  font-weight: 500;
}
.deliveryProgress small {
  opacity: 0.8;
}
.mawadaPulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pulseCard {
  position: relative;
  display: grid;
  text-align: left;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--surface);
  transition: transform 0.18s;
}
.pulseCard strong {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.2;
}
.pulseCard small {
  color: var(--muted);
  font-weight: 400;
}
.pulseArrow {
  position: absolute;
  right: 18px;
  top: 16px;
  color: var(--accent);
}
.pulse2 {
  background: var(--accent-soft);
}
.mawadaWorkload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 4px 24px;
  font-size: 12px;
  color: var(--muted);
}
.monitoringSummary {
  background: var(--surface-alt);
}
@media (min-width: 1100px) {
  .fleetSection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 0 20px;
  }
  #mawadaOverview,
  .fleetSection > .boardHeading,
  .fleetMapHeading,
  #fleetTable,
  #driverProfile,
  .fleetDefinitions {
    grid-column: 1 / -1;
  }
  #driverMap {
    grid-column: 1;
    height: 350px;
  }
  #fleetAlerts {
    grid-column: 2;
    grid-row: 4 / 6;
    max-height: 410px;
    overflow: auto;
  }
  #fleetAlerts .monitoringSummary {
    margin-top: 0;
  }
  .mapNotice {
    grid-column: 1;
  }
}
@media (max-width: 700px) {
  .mawadaHero {
    padding: 24px;
    gap: 12px;
  }
  .deliveryProgress {
    min-width: 100px;
    font-size: 11px;
  }
  .progressRing {
    width: 90px;
    height: 90px;
  }
  .progressRing strong {
    font-size: 24px;
  }
  .mawadaPulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pulseCard {
    padding: 16px;
  }
  .pulseCard strong {
    font-size: 28px;
  }
  .heroDate {
    font-size: 9px;
  }
  .mawadaHero .eyebrow {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat,
  .pulseCard {
    transition: none;
  }
}
/* Alternative atmospheres and data visualisation. */
:root[data-theme="dark"][data-palette="midnight"] {
  --bg: #09080c;
  --surface: #151118;
  --surface-alt: #201823;
  --text: #f8f2fa;
  --muted: #bdaebf;
  --border: #38263c;
  --accent: #d99ac7;
  --accent-hover: #edbfdf;
  --accent-soft: #391c34;
  --button-text: #220e1d;
}
:root[data-theme="dark"][data-palette="orchid"] {
  --bg: #100b1c;
  --surface: #1c142c;
  --surface-alt: #281d3e;
  --text: #faf5ff;
  --muted: #beb0cf;
  --border: #43325e;
  --accent: #c3a0ff;
  --accent-hover: #dcc6ff;
  --accent-soft: #382451;
}
:root[data-theme="dark"][data-palette="cream"] {
  --bg: #231321;
  --surface: #311e2c;
  --surface-alt: #402738;
  --accent: #dda9cf;
  --accent-soft: #503047;
}
:root[data-theme="dark"] .mawadaHero {
  background: linear-gradient(115deg, var(--surface-alt), var(--bg));
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 16px 70px #0004;
}
:root[data-theme="dark"] .mawadaHero h2 {
  color: var(--accent);
}
:root[data-theme="dark"] .progressRing {
  background:
    radial-gradient(closest-side, var(--surface) 79%, transparent 80%),
    conic-gradient(var(--accent) var(--progress), #ffffff18 0);
}
:root[data-theme="dark"] .heroDate {
  border-color: var(--border);
}
:root[data-theme="dark"] .ribbonArt {
  opacity: 0.15;
  border-color: white;
}
:root[data-theme="dark"] .ribbonArt:after {
  border-color: var(--accent);
  opacity: 1;
}
#dashboardCharts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chartCard {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  min-width: 0;
}
.chartCard h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 10px 0;
}
.chartRow {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  padding: 9px 0;
  text-align: left;
  font-size: 11px;
}
.chartTrack {
  height: 12px;
  border-radius: 20px;
  background: var(--surface-alt);
  overflow: hidden;
}
.chartFill,
.stacked i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
  min-width: 0;
  transform-origin: left;
  animation: growBar 0.8s ease both;
}
.chartColour0 {
  opacity: 0.45;
}
.chartColour1 {
  opacity: 0.6;
}
.chartColour2 {
  opacity: 0.75;
}
.chartColour4 {
  background: var(--red);
}
.chartColour5 {
  background: #b7a2ed;
}
.stacked {
  display: flex;
  height: 16px;
}
.stacked i + i {
  background: #b7a2ed;
}
.driverChartRow {
  display: grid;
  gap: 9px;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  width: 100%;
  padding: 12px 0;
}
.driverChartRow small {
  color: var(--muted);
}
.chartKey {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background: var(--accent);
}
.deliveredKey {
  background: #b7a2ed;
}
.themeGallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.themePreview {
  background: var(--preview-bg);
  color: var(--preview-accent);
  padding: 22px;
  border-radius: 22px;
  border: 2px solid transparent;
  text-align: left;
  display: grid;
  gap: 12px;
}
.themePreview[aria-pressed="true"] {
  border-color: var(--accent);
  outline: 2px solid var(--border);
  outline-offset: 4px;
}
.themePreview small {
  color: #eee;
  font-weight: 400;
}
.miniWorkspace {
  height: 110px;
  display: grid;
  grid-template-columns: 20% 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
}
.miniWorkspace i {
  grid-row: span 2;
  background: #ffffff10;
  border-radius: 5px;
}
.miniWorkspace span {
  background: var(--preview-accent);
  opacity: 0.5;
  border-radius: 8px;
}
.miniWorkspace span:first-of-type {
  grid-column: span 2;
  opacity: 0.8;
}
.appearanceSettings {
  max-width: 1100px;
}
.appearanceSettings h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
}
.appearanceSettings form {
  max-width: 600px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.colourChoices {
  display: flex;
  gap: 24px;
}
.colourChoices input {
  width: 100px;
  height: 45px;
  padding: 4px;
}
@keyframes growBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes revealPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mawadaHero,
.chartCard {
  animation: revealPanel 0.55s ease both;
}
:root[data-motion="off"] *,
:root[data-motion="off"] *:before {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 800px) {
  #dashboardCharts,
  .themeGallery {
    grid-template-columns: 1fr;
  }
  .chartRow {
    grid-template-columns: 105px minmax(0, 1fr) 22px;
  }
  .chartCard {
    padding: 18px;
  }
}

@media (min-width: 1100px) {
  #fleetAlerts {
    grid-row: 5 / 7;
  }
}
.mawadaLogo {
  width: 136px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}
.fleetSection > #mawadaOverview,
.fleetSection > #dashboardCharts {
  display: none;
}
@media (min-width: 1100px) {
  #fleetAlerts {
    grid-row: 3 / 5;
  }
}
.executiveHero {
  border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--accent-soft), var(--surface));
  padding: 32px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.executiveHero h2 {
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: -1px;
}
.whiteBow {
  color: white;
  font-size: 100px;
  opacity: 0.8;
  transform: rotate(-15deg);
  text-shadow: 0 3px 30px #5f174b44;
}
.dailyMetrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dailyMetrics article {
  display: grid;
  gap: 10px;
}
.dailyMetrics strong {
  font-size: 38px;
  font-weight: 500;
  color: var(--accent);
}
.dailyMetrics small {
  color: var(--muted);
}
#overviewCharts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.previousDay {
  margin-bottom: 20px;
}
.executiveDashboard .chartCard {
  position: relative;
  overflow: hidden;
}
.executiveDashboard .chartCard:after {
  content: "";
  position: absolute;
  right: -32px;
  top: -35px;
  width: 100px;
  height: 60px;
  border: 7px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-35deg);
  opacity: 0.05;
  pointer-events: none;
}
@media (max-width: 750px) {
  .dailyMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overviewCharts {
    grid-template-columns: 1fr;
  }
  .executiveHero {
    padding: 22px;
  }
  .whiteBow {
    font-size: 60px;
  }
  .mawadaLogo {
    width: 110px;
    height: 52px;
  }
}
.permissionChecklist {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.permissionChecklist label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.permissionChecklist input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.demoAccountNotice {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
}

/* Decorative gift ribbon: vector curves, independent of installed fonts. */
.mawadaRibbon {
  width: clamp(110px, 18vw, 220px);
  flex-shrink: 0;
  color: var(--accent);
  transform: rotate(-10deg);
  opacity: 0.75;
}
.mawadaRibbon svg {
  display: block;
  width: 100%;
  height: auto;
}
:root[data-theme="dark"] .mawadaRibbon {
  color: #fcf6f2;
}
@media (max-width: 600px) {
  .mawadaRibbon {
    width: 85px;
  }
}
/* Original bow and flowing ribbon paths from the Mawada brand guide. */
.mawadaRibbon.brandBow {
  aspect-ratio: 300 / 195;
  background: currentColor;
  mask: url("/brand/mawada-bow.svg") center / contain no-repeat;
  -webkit-mask: url("/brand/mawada-bow.svg") center / contain no-repeat;
  transform: none;
  opacity: 0.9;
}
.executiveDashboard .chartCard:after {
  content: none;
}
.ribbonArt {
  border: 0;
  border-radius: 0;
  width: 70%;
  height: 100%;
  right: -4%;
  top: 0;
  transform: none;
  background: currentColor;
  color: var(--accent);
  mask: url("/brand/mawada-ribbons.svg") center / cover no-repeat;
  -webkit-mask: url("/brand/mawada-ribbons.svg") center / cover no-repeat;
  opacity: 0.09;
}
.ribbonArt:after {
  content: none;
}
:root[data-theme="dark"] .ribbonArt {
  border: 0;
  background: #fcf6f2;
  opacity: 0.09;
}
.executiveHero {
  position: relative;
  isolation: isolate;
}
.executiveHero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--accent);
  mask: url("/brand/mawada-ribbons.svg") center / cover no-repeat;
  -webkit-mask: url("/brand/mawada-ribbons.svg") center / cover no-repeat;
  opacity: 0.055;
}
.appearanceSettings {
  position: relative;
  isolation: isolate;
}
.appearanceSettings:before {
  content: "";
  position: absolute;
  top: -20px;
  right: 0;
  width: 200px;
  height: 160px;
  z-index: -1;
  background: var(--accent);
  mask: url("/brand/mawada-ribbons.svg") right / cover no-repeat;
  -webkit-mask: url("/brand/mawada-ribbons.svg") right / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
