﻿:root {
      --bg: #f4f6f8;
      --panel: #ffffff;
      --ink: #16202a;
      --muted: #6a7480;
      --line: #dde3ea;
      --line-soft: #eef2f5;
      --accent: #2764e7;
      --red: #f04438;
      --green: #16803c;
      --orange: #f79009;
      --shadow: 0 12px 34px rgba(22, 32, 42, 0.08);
      --radius: 8px;
      --label-width: 210px;
      --day-width: 112px;
      --row-height: 42px;
      --job-lane-height: 48px;
      --job-strip-height: 110px;
      --day-count: 13;
    }

    * {
      box-sizing: border-box;
    }

    html {
      height: 100%;
      overflow: hidden;
    }

    body {
      margin: 0;
      height: 100%;
      overflow: hidden;
      background: var(--bg);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    .dashboard {
      display: flex;
      flex-direction: column;
      height: 100vh;
      min-width: 0;
      padding: 22px 24px 24px;
      overflow: hidden;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      width: 100%;
      margin: 0 0 16px;
      flex: 0 0 auto;
    }

    .title-wrap {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      min-width: 0;
    }

    .title-copy {
      flex: 0 0 auto;
    }

    .eyebrow {
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      font-size: 30px;
      line-height: 1.15;
      font-weight: 760;
      letter-spacing: 0;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
    }

    .menu-toggle {
      display: inline-grid;
      place-items: center;
      gap: 4px;
      width: 38px;
      padding: 0;
    }

    .menu-toggle span {
      display: block;
      width: 17px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
    }

    .menu-backdrop {
      position: fixed;
      inset: 0;
      z-index: 35;
      background: rgba(22, 32, 42, 0.28);
    }

    .side-menu {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 40;
      display: flex;
      flex-direction: column;
      width: min(260px, 100vw);
      height: 100vh;
      padding: 18px;
      border-left: 1px solid var(--line);
      background: var(--panel);
      box-shadow: -18px 0 48px rgba(22, 32, 42, 0.18);
      transform: translateX(100%);
      transition: transform 180ms ease;
    }

    .side-menu.open {
      transform: translateX(0);
    }

    .side-menu-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex: 0 0 auto;
    }

    .side-menu-header {
      margin-bottom: 14px;
    }

    .side-menu-header h2 {
      margin: 0;
      font-size: 19px;
      line-height: 1.2;
    }

    .menu-item {
      justify-content: flex-start;
      width: 100%;
      height: 42px;
      text-align: left;
    }

    .employee-modal,
    .email-modal {
      position: fixed;
      inset: 0;
      z-index: 45;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(22, 32, 42, 0.28);
    }

    .employee-modal.open {
      display: flex;
    }

    .email-modal.open {
      display: flex;
    }

    .employee-modal-panel,
    .email-panel {
      width: min(620px, 100%);
      max-height: min(760px, calc(100vh - 40px));
      overflow: auto;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: 0 22px 60px rgba(22, 32, 42, 0.22);
    }

    .email-panel {
      width: min(900px, 100%);
    }

    .employee-form {
      width: min(440px, 100%);
    }

    .checkbox-field {
      display: flex;
      align-items: center;
      gap: 9px;
      min-height: 38px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
    }

    .checkbox-field input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--accent);
    }

    .colour-options {
      display: grid;
      grid-template-columns: repeat(6, 32px);
      gap: 8px;
    }

    .colour-option {
      position: relative;
      display: grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--customer-colour);
      cursor: pointer;
    }

    .colour-option input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .colour-option span {
      width: 14px;
      height: 14px;
      border: 3px solid #fff;
      border-radius: 999px;
      box-shadow: 0 0 0 1px rgba(22, 32, 42, 0.22);
      opacity: 0;
    }

    .colour-option input:checked + span {
      opacity: 1;
    }

    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .modal-header h2 {
      margin: 0;
      font-size: 19px;
      line-height: 1.2;
    }

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

    .employee-list-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      width: 100%;
      min-height: 56px;
      padding: 9px 10px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      background: #fbfcfd;
      color: var(--ink);
      text-align: left;
    }

    .employee-list-item strong,
    .employee-list-item span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .employee-list-item span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .customer-list-item {
      grid-template-columns: minmax(0, 1fr) 30px;
    }

    .customer-colour-preview {
      width: 24px;
      height: 24px;
      border: 2px solid #fff;
      border-radius: 999px;
      background: var(--customer-colour);
      box-shadow: 0 0 0 1px rgba(22, 32, 42, 0.18);
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .settings-card {
      display: grid;
      gap: 10px;
      min-width: 0;
      padding: 12px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      background: #fbfcfd;
    }

    .settings-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .settings-card h3 {
      margin: 0;
      font-size: 14px;
      font-weight: 780;
    }

    .settings-add {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
    }

    .settings-list {
      display: grid;
      gap: 7px;
    }

    .settings-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 34px;
      padding: 0 8px 0 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      font-size: 13px;
      font-weight: 700;
    }

    .settings-option button {
      width: 28px;
      height: 28px;
      padding: 0;
      color: #b42318;
    }

    .assignment-warning {
      flex: 0 0 auto;
      margin: -4px 0 12px;
      padding: 10px 13px;
      border: 1px solid #fedf89;
      border-radius: var(--radius);
      background: #fffaeb;
      color: #93370d;
      font-size: 13px;
      font-weight: 700;
    }

    .board {
      flex: 1 1 auto;
      min-height: 0;
      width: 100%;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      scrollbar-color: rgba(106, 116, 128, 0.35) transparent;
      scrollbar-width: thin;
    }

    .board::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    .board::-webkit-scrollbar-track {
      background: transparent;
    }

    .board::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: rgba(106, 116, 128, 0.28);
      background-clip: padding-box;
    }

    .board::-webkit-scrollbar-thumb:hover {
      background: rgba(106, 116, 128, 0.45);
      background-clip: padding-box;
    }

    .board::-webkit-scrollbar-corner {
      background: transparent;
    }

    .job-strip {
      position: sticky;
      top: 0;
      z-index: 12;
      display: grid;
      grid-template-columns: var(--label-width) repeat(var(--day-count), var(--day-width));
      grid-auto-rows: var(--job-lane-height);
      gap: 0;
      width: max-content;
      min-width: 100%;
      height: var(--job-strip-height);
      padding-top: 14px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
    }

    .job-marker-layer {
      position: relative;
      z-index: 14;
      display: grid;
      grid-template-columns: var(--label-width) repeat(var(--day-count), var(--day-width));
      grid-auto-rows: var(--job-lane-height);
      grid-column: 1 / -1;
      grid-row: 1 / -1;
      pointer-events: none;
    }

    .job-strip-label {
      position: sticky;
      left: 0;
      z-index: 13;
      grid-column: 1;
      grid-row: 1 / span 3;
      display: flex;
      align-items: flex-start;
      padding: 3px 18px 0;
      background: #fff;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .job {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 24px;
      margin: 0 8px 10px;
      padding: 0 10px;
      border-radius: 999px;
      color: #fff;
      font-size: 12px;
      font-weight: 750;
      box-shadow: 0 10px 20px rgba(22, 32, 42, 0.13);
    }

    .job-label,
    .assignment-label {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .job small {
      flex: 0 0 auto;
      opacity: 0.9;
      font-size: 11px;
      font-weight: 700;
    }

    .vehicle-marker {
      position: relative;
      top: -22px;
      z-index: 2;
      justify-self: start;
      align-self: center;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      height: 16px;
      padding: 0 5px;
      border: 1px solid color-mix(in srgb, var(--marker-color, #26313d) 46%, #fff);
      border-radius: 999px;
      background: color-mix(in srgb, var(--marker-color, #26313d) 18%, #fff);
      color: color-mix(in srgb, var(--marker-color, #26313d) 72%, #111);
      font-size: 10px;
      font-weight: 800;
      line-height: 1;
      box-shadow: 0 4px 10px rgba(22, 32, 42, 0.14);
      transform: translateX(-50%);
      pointer-events: none;
    }

    .vehicle-marker.depart {
      top: auto;
      bottom: -13px;
    }

    .vehicle-marker svg {
      width: 10px;
      height: 10px;
      stroke-width: 2.4;
    }

    .planner {
      display: grid;
      grid-template-columns: var(--label-width) repeat(var(--day-count), var(--day-width));
      width: max-content;
      min-width: 100%;
    }

    .corner,
    .day,
    .employee,
    .cell {
      min-width: 0;
      border-bottom: 1px solid var(--line-soft);
    }

    .corner {
      position: sticky;
      top: var(--job-strip-height);
      left: 0;
      z-index: 11;
      display: flex;
      align-items: center;
      grid-column: 1;
      grid-row: 1;
      min-height: 56px;
      padding: 0 18px;
      background: #fbfcfd;
      border-right: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      font-weight: 740;
    }

    .day {
      position: sticky;
      top: var(--job-strip-height);
      z-index: 7;
      grid-row: 1;
      min-height: 56px;
      padding: 10px 8px 9px;
      border-right: 1px solid var(--line-soft);
      background: #fbfcfd;
    }

    .day strong,
    .day span {
      display: block;
      text-align: center;
      line-height: 1.1;
      white-space: nowrap;
    }

    .day strong {
      font-size: 14px;
      font-weight: 760;
    }

    .day span {
      margin-top: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .employee {
      position: sticky;
      left: 0;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      grid-column: 1;
      min-height: var(--row-height);
      padding: 0 18px;
      border-right: 1px solid var(--line);
      background: var(--panel);
      color: #26313d;
      font-size: 13px;
      font-weight: 720;
      white-space: nowrap;
    }

    .employee span,
    .employee small {
      display: block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .employee small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 650;
    }

    .cell {
      position: relative;
      min-height: var(--row-height);
      border-right: 1px solid var(--line-soft);
      cursor: pointer;
      background:
        linear-gradient(90deg, rgba(39, 100, 231, 0.06) 0 0) no-repeat,
      var(--panel);
      transition: background-color 160ms ease, box-shadow 160ms ease;
    }

    .cell:hover {
      background-color: #f1f6ff;
      box-shadow: inset 0 0 0 1px rgba(39, 100, 231, 0.28);
    }

    .cell::before {
      content: "";
      position: absolute;
      inset: 13px 18px;
      border-radius: 999px;
      background: transparent;
      transition: background-color 160ms ease;
    }

    .cell:not(.assigned):hover::before {
      background: #e8eefb;
    }

    .assignment-block {
      position: relative;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      align-self: center;
      height: 28px;
      margin: 0 8px;
      padding: 0 8px;
      overflow: hidden;
      border-radius: 999px;
      color: #fff;
      font-size: 12px;
      font-weight: 760;
      line-height: 1;
      white-space: nowrap;
      text-overflow: ellipsis;
      box-shadow: 0 8px 16px rgba(22, 32, 42, 0.12);
      cursor: pointer;
    }

    .assignment-block span {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .assignment-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }

    .assignment-status {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 1px;
      width: 24px;
      height: 20px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      color: #26313d;
      box-shadow: 0 2px 6px rgba(22, 32, 42, 0.12);
    }

    .assignment-status.warning {
      color: #b54708;
      background: #fff7cc;
    }

    .assignment-status.assigned {
      color: #166534;
      background: #dcfce7;
    }

    .assignment-status svg {
      width: 11px;
      height: 11px;
      stroke-width: 2.4;
    }

    .assignment-block small {
      flex: 0 0 auto;
      margin-left: 10px;
      opacity: 0.88;
      font-size: 11px;
      font-weight: 760;
    }

    .employee:nth-of-type(4n + 1),
    .cell.alt {
      background-color: #fbfcfd;
    }

    .assignment-dialog {
      position: fixed;
      inset: 0;
      z-index: 45;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(22, 32, 42, 0.28);
    }

    .assignment-dialog.open {
      display: flex;
    }

    .assignment-panel {
      width: min(460px, 100%);
      max-height: min(720px, calc(100vh - 40px));
      overflow: auto;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: 0 22px 60px rgba(22, 32, 42, 0.22);
    }

    .job-dialog {
      position: fixed;
      inset: 0;
      z-index: 30;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(22, 32, 42, 0.28);
    }

    .job-dialog.open {
      display: flex;
    }

    .job-panel {
      width: min(680px, 100%);
      max-height: min(760px, calc(100vh - 40px));
      overflow: auto;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: 0 22px 60px rgba(22, 32, 42, 0.22);
    }

    .job-panel-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .send-job-email {
      flex: 0 0 auto;
    }

    .send-job-email svg {
      width: 17px;
      height: 17px;
      stroke-width: 2.2;
    }

    .job-panel h2 {
      margin: 0 0 4px;
      font-size: 18px;
      line-height: 1.2;
    }

    .job-panel p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .vehicle-section {
      display: grid;
      gap: 10px;
      margin: 14px 0;
      padding-top: 12px;
      border-top: 1px solid var(--line-soft);
    }

    .vehicle-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .vehicle-section-header h3 {
      margin: 0;
      font-size: 14px;
      font-weight: 780;
    }

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

    .vehicle-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
      gap: 8px;
      align-items: end;
      padding: 10px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      background: #fbfcfd;
    }

    .requirement-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 120px 34px;
      gap: 8px;
      align-items: end;
      padding: 10px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      background: #fbfcfd;
    }

    .vehicle-row .field,
    .requirement-row .field {
      margin-bottom: 0;
    }

    .vehicle-row .trailer-field[hidden] {
      display: none;
    }

    .vehicle-row .remove-vehicle {
      grid-column: 3;
      grid-row: 1 / span 2;
      align-self: center;
    }

    .requirement-row .remove-requirement {
      grid-column: 3;
      align-self: center;
    }

    .vehicle-row .datetime-field input {
      font-size: 13px;
    }

    .date-range-fields,
    .vehicle-datetime-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
    }

    .date-range-fields {
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .date-range-fields input {
      border: 0;
      border-radius: 0;
    }

    .date-range-fields input + input {
      border-left: 1px solid var(--line);
    }

    .vehicle-datetime-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
      grid-column: 1 / span 2;
    }

    .vehicle-datetime-row .field {
      grid-column: auto;
    }

    .icon-button {
      display: inline-grid;
      place-items: center;
      width: 34px;
      padding: 0;
      font-size: 18px;
      line-height: 1;
    }

    .recipient-select {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: start;
    }

    .recipient-pills {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      min-height: 38px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }

    .recipient-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      max-width: 100%;
      height: 25px;
      padding: 0 8px;
      border-color: #bfdbfe;
      border-radius: 999px;
      background: #eff6ff;
      color: #1d4ed8;
      font-size: 12px;
      font-weight: 760;
    }

    .recipient-pill span {
      font-size: 13px;
      line-height: 1;
    }

    .recipient-empty {
      align-self: center;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .recipient-dropdown-toggle {
      white-space: nowrap;
    }

    .recipient-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 55;
      display: grid;
      gap: 6px;
      max-height: 260px;
      overflow: auto;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: 0 14px 34px rgba(22, 32, 42, 0.16);
    }

    .recipient-dropdown[hidden] {
      display: none;
    }

    .recipient-option {
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      padding: 8px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius);
      background: #fbfcfd;
      cursor: pointer;
    }

    .recipient-option input {
      width: 16px;
      height: 16px;
      margin: 2px 0 0;
      padding: 0;
      cursor: pointer;
    }

    .recipient-option strong,
    .recipient-option span,
    .recipient-option small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .recipient-option strong {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .assigned-pill {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      height: 18px;
      padding: 0 7px;
      border-radius: 999px;
      background: #ecfdf3;
      color: #067647;
      font-size: 10px;
      font-weight: 800;
    }

    .recipient-option span {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .recipient-option small {
      margin-top: 5px;
      color: #344250;
      font-size: 12px;
      font-weight: 700;
    }

    .recipient-option .missing-email {
      color: #b42318;
    }

    .email-composer {
      min-width: 0;
    }

    .send-confirmation {
      margin: 0 0 12px;
      padding: 10px 12px;
      border: 1px solid #abefc6;
      border-radius: var(--radius);
      background: #ecfdf3;
      color: #067647;
      font-size: 13px;
      font-weight: 700;
    }

    input,
    textarea {
      width: 100%;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      color: var(--ink);
      font: inherit;
      font-size: 14px;
      font-weight: 650;
    }

    input {
      height: 38px;
    }

    textarea {
      min-height: 220px;
      padding: 10px;
      line-height: 1.4;
      resize: vertical;
    }

    .customer-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .customer-swatch {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: var(--accent);
    }

    .popover-meta {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .field {
      display: grid;
      gap: 6px;
      margin-bottom: 12px;
    }

    .field label {
      color: #344250;
      font-size: 12px;
      font-weight: 740;
    }

    select {
      width: 100%;
      height: 38px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      color: var(--ink);
      font: inherit;
      font-size: 14px;
      font-weight: 650;
    }

    .actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 4px;
    }

    button {
      height: 36px;
      padding: 0 13px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      color: #344250;
      font: inherit;
      font-size: 13px;
      font-weight: 740;
      cursor: pointer;
    }

    button.primary {
      border-color: var(--accent);
      background: var(--accent);
      color: #fff;
    }

    button.danger {
      margin-right: auto;
      border-color: #fed7d2;
      color: #b42318;
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.48;
    }

    @media (max-width: 900px) {
      :root {
        --label-width: 180px;
        --day-width: 92px;
      }

      .dashboard {
        padding: 16px 14px 18px;
      }

      .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      h1 {
        font-size: 25px;
      }

      .settings-grid {
        grid-template-columns: 1fr;
      }

      .vehicle-row {
        grid-template-columns: 1fr 34px;
      }

      .recipient-select {
        grid-template-columns: 1fr;
      }

      .vehicle-row .remove-vehicle {
        grid-column: 2;
        grid-row: 1 / span 3;
      }

      .vehicle-row .trailer-field,
      .vehicle-datetime-row,
      .date-range-fields {
        grid-column: 1;
        grid-template-columns: 1fr;
      }

      .vehicle-datetime-row .field {
        grid-column: 1;
      }
    }
