:root {
  --ink: #1b286d;
  --muted: #66708f;
  --soft-muted: #8b94ae;
  --line: #dce1ef;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --background: #f0f3fa;
  --teal: #079ca0;
  --teal-dark: #087d83;
  --teal-soft: #dcf3f2;
  --amber: #c8791f;
  --amber-soft: #fff4df;
  --red: #bd4b4d;
  --shadow: 0 12px 30px rgba(29, 44, 112, 0.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(179, 229, 230, 0.5), transparent 32rem),
    var(--background);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(209, 225, 221, 0.75);
  display: flex;
  justify-content: space-between;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand,
.connection-state,
.card-heading,
.search-field,
.form-actions,
.filter-topline,
.section-heading,
.report-card-main,
.report-card-side,
.report-id-line,
.report-meta,
.status-badge,
.button,
.banner-copy {
  align-items: center;
  display: flex;
}

.brand {
  gap: 11px;
}

.brand-mark {
  align-items: flex-end;
  background: #1b286d;
  border-radius: 10px;
  display: flex;
  gap: 3px;
  height: 36px;
  justify-content: center;
  padding: 8px;
  width: 36px;
}

.brand-mark span {
  background: #72d5d2;
  border-radius: 4px 4px 2px 2px;
  display: block;
  height: 13px;
  width: 5px;
}

.brand-mark span:nth-child(2) {
  background: #ffffff;
  height: 19px;
}

.brand-mark span:nth-child(3) {
  height: 10px;
}

.brand-name,
h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 11px;
  margin-top: -1px;
}

.connection-state {
  color: var(--muted);
  font-size: 12px;
  gap: 7px;
}

.connection-dot {
  background: var(--teal);
  border: 3px solid var(--teal-soft);
  border-radius: 50%;
  height: 11px;
  width: 11px;
}

main {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 20px 70px;
}

.main-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  margin-bottom: 42px;
  padding-top: 9px;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 3px 13px;
  position: relative;
}

.tab-button.active {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.tab-icon {
  font-size: 20px;
  font-weight: 400;
  margin-right: 6px;
  vertical-align: -1px;
}

.tab-count {
  background: var(--amber);
  border-radius: 20px;
  color: white;
  font-size: 11px;
  margin-left: 5px;
  padding: 2px 6px;
}

.view[hidden] {
  display: none;
}

.page-intro {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.intro-copy {
  color: var(--muted);
  margin: 9px 0 0;
}

.date-chip {
  background: var(--teal-soft);
  border-radius: 100px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  white-space: nowrap;
}

.form-card,
.filter-card,
.stat-card,
.report-card {
  background: var(--surface);
  border: 1px solid rgba(214, 230, 226, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  margin-bottom: 14px;
  padding: 25px;
}

.card-heading {
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
}

.step-number {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 8px;
  color: var(--teal-dark);
  display: flex;
  flex: 0 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.card-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two-up {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label,
.filter-input span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field-label em {
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  margin-left: 5px;
}

input,
select,
textarea {
  background: #fbfdfc;
  border: 1px solid #cddedb;
  border-radius: 9px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 13px;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  width: 100%;
}

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

input::placeholder,
textarea::placeholder {
  color: #a4b4b2;
}

input:focus,
select:focus,
textarea:focus {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #db8b8c;
}

.field-hint {
  color: var(--soft-muted);
  font-size: 11px;
}

.search-field {
  position: relative;
}

.search-field input {
  padding-left: 38px;
}

.search-icon {
  color: var(--muted);
  font-size: 23px;
  left: 13px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 10px;
  transform: rotate(-20deg);
}

.form-actions {
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.button {
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  transition: background 160ms, box-shadow 160ms, transform 160ms;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--teal);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.16);
  color: white;
}

.button-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.24);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.compact-button {
  min-height: 40px;
  padding: 9px 14px;
}

.open-banner {
  align-items: center;
  background: var(--amber-soft);
  border: 1px solid #f0d9ad;
  border-radius: 13px;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 15px;
}

.banner-symbol {
  align-items: center;
  background: var(--amber);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  height: 25px;
  justify-content: center;
  width: 25px;
}

.banner-copy {
  align-items: flex-start;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
}

.banner-copy strong {
  color: #835016;
  font-size: 13px;
}

.banner-copy span {
  color: #a16b2b;
  font-size: 12px;
}

.banner-link,
.text-button {
  background: transparent;
  border: 0;
  color: #935a17;
  font-size: 12px;
  font-weight: 700;
  padding: 5px;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.stat-card {
  padding: 17px 18px;
}

.stat-label,
.stat-meta {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 6px 0 3px;
}

.accent-value {
  color: var(--amber);
}

.filter-card {
  margin-bottom: 31px;
  padding: 20px;
}

.filter-topline {
  justify-content: space-between;
  margin-bottom: 17px;
}

.filter-topline h2 {
  font-size: 15px;
}

.filter-topline p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.text-button {
  color: var(--teal);
}

.filter-mode {
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
  padding: 3px;
}

.filter-mode-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 8px;
}

.filter-mode-button.active {
  background: white;
  box-shadow: 0 1px 5px rgba(28, 72, 66, 0.08);
  color: var(--teal-dark);
}

.filter-inputs {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.filter-input {
  gap: 5px;
}

.filter-input input,
.filter-input select {
  min-height: 40px;
  padding: 8px 10px;
}

.route-filter {
  grid-column: span 1;
}

.status-filter {
  grid-column: span 1;
}

.reports-section {
  min-width: 0;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 13px;
}

.section-heading h2 {
  font-size: 19px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.reports-list {
  display: grid;
  gap: 10px;
}

.report-card {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
  padding: 17px 18px;
}

.report-card-main {
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.report-card-side {
  align-items: flex-end;
  flex-direction: column;
  gap: 13px;
  margin-left: 15px;
  min-width: 118px;
}

.report-id-line {
  gap: 9px;
  margin-bottom: 7px;
}

.report-id {
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.status-badge {
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  padding: 4px 8px;
}

.status-badge.open {
  background: var(--amber-soft);
  color: #97601e;
}

.status-badge.closed {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.report-route {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-description {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  max-width: 580px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-meta {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 11px;
  gap: 5px 10px;
  margin-top: 10px;
}

.report-meta span::before {
  color: #b3c2c0;
  content: "•";
  margin-right: 10px;
}

.report-meta span:first-child::before {
  display: none;
}

.report-time {
  color: var(--muted);
  font-size: 11px;
}

.close-report-button {
  background: transparent;
  border: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 0;
}

.close-report-button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.empty-state {
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed #c9dbd7;
  border-radius: var(--radius);
  color: var(--muted);
  padding: 45px 20px;
  text-align: center;
}

.empty-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  display: flex;
  font-size: 23px;
  height: 44px;
  justify-content: center;
  margin: 0 auto 12px;
  width: 44px;
}

.empty-state strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 12px;
  margin: 0;
}

.toast {
  align-items: center;
  background: #173f3d;
  border-radius: 10px;
  bottom: 22px;
  box-shadow: 0 10px 30px rgba(18, 52, 49, 0.22);
  color: white;
  display: flex;
  font-size: 13px;
  gap: 9px;
  left: 50%;
  max-width: calc(100% - 32px);
  opacity: 0;
  padding: 12px 15px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition: opacity 200ms, transform 200ms;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  align-items: center;
  background: #76c9ae;
  border-radius: 50%;
  color: #17433e;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  width: 18px;
}

@media (max-width: 650px) {
  .topbar {
    padding: 15px 16px;
  }

  .connection-state span:last-child {
    display: none;
  }

  main {
    padding: 0 14px 50px;
  }

  .main-tabs {
    gap: 22px;
    margin-bottom: 31px;
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .dashboard-intro {
    align-items: flex-start;
    flex-direction: row;
  }

  .dashboard-intro .compact-button {
    align-self: flex-end;
    font-size: 0;
    gap: 0;
    padding: 8px 12px;
  }

  .dashboard-intro .compact-button span {
    font-size: 20px;
  }

  .form-card {
    padding: 20px 17px;
  }

  .two-up,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .two-up {
    gap: 0;
  }

  .date-chip {
    font-size: 11px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .button {
    flex: 1;
  }

  .open-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .banner-link {
    margin-left: 37px;
    padding-left: 0;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 13px 15px;
  }

  .stat-label {
    align-self: end;
    grid-row: span 2;
  }

  .stat-value {
    font-size: 21px;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    text-align: right;
  }

  .stat-meta {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .filter-card {
    padding: 16px;
  }

  .filter-mode {
    overflow-x: auto;
  }

  .filter-mode-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .filter-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .route-filter {
    grid-column: span 2;
  }

  .status-filter {
    grid-column: span 2;
  }

  .report-card {
    display: block;
    padding: 15px;
  }

  .report-card-side {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    margin: 11px 0 0;
  }

  .report-description {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none;
  }

  .filter-inputs {
    display: block;
  }

  .filter-input {
    margin-bottom: 10px;
  }
}

/* Route, lift and end-of-shift controls */
fieldset {
  border: 0;
  min-width: 0;
  padding: 0;
}

.route-fieldset.invalid-field {
  border-radius: 9px;
  outline: 2px solid rgba(189, 75, 77, 0.45);
  outline-offset: 5px;
}

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

.check-option {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid #d8dfed;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  transition: background 160ms, border-color 160ms, color 160ms;
}

.check-option:has(input:checked) {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.check-option input {
  accent-color: var(--teal);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  min-height: 0;
  width: 16px;
}

.error-hint {
  color: var(--red);
}

.route-customer-preview {
  background: var(--surface-2);
  border: 1px solid #e0e5f0;
  border-radius: 10px;
  margin-top: 4px;
  padding: 11px 13px;
}

.preview-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.customer-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-chip {
  background: var(--teal-soft);
  border-radius: 100px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
}

.customer-chip.placeholder-chip {
  background: #eaedf5;
  color: var(--muted);
}

.lift-fields {
  background: #f4f8ff;
  border: 1px solid #d6e2f6;
  border-radius: 12px;
  margin: 2px 0 20px;
  padding: 15px;
}

.lift-fields-heading {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.lift-symbol {
  align-items: center;
  background: #dce5fb;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex: 0 0 auto;
  font-size: 20px;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.lift-fields-heading strong,
.lift-fields-heading span {
  display: block;
}

.lift-fields-heading strong {
  font-size: 13px;
}

.lift-fields-heading span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.delay-note {
  color: var(--teal-dark);
  font-size: 11px;
  margin: -7px 0 0;
}

.button-secondary {
  background: #e8ecf8;
  color: var(--ink);
}

.button-secondary:hover {
  background: #dce3f5;
}

.priority-note {
  background: var(--amber-soft);
  border-radius: 100px;
  color: #97601e;
  display: inline-block;
  font-size: 10px;
  margin-left: 5px;
  padding: 3px 7px;
  vertical-align: 1px;
}

.shift-preview-card,
.summary-card {
  background: var(--surface);
  border: 1px solid rgba(214, 220, 238, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shift-preview-card {
  margin-top: 14px;
  padding: 22px;
}

.preview-placeholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

.preview-placeholder strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.preview-placeholder p {
  font-size: 12px;
  margin: 3px 0 0;
}

.preview-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal-dark);
  display: flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.shift-preview-top {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.shift-preview-top .eyebrow {
  margin-bottom: 6px;
}

.shift-preview-top h2 {
  font-size: 18px;
}

.remaining-total {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 11px;
  color: var(--teal-dark);
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 9px 12px;
}

.remaining-total strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 27px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.remaining-total span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.round-progress {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
  margin: 21px 0 17px;
}

.round-progress span {
  background: var(--surface-2);
  border-radius: 100px;
  color: var(--soft-muted);
  font-size: 11px;
  padding: 6px;
  text-align: center;
}

.round-progress small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.85;
}

.round-progress span.done {
  background: var(--teal);
  color: white;
}

.remaining-list {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.remaining-row {
  align-items: center;
  border-bottom: 1px solid #edf0f6;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 9px 0;
}

.remaining-row:last-child {
  border-bottom: 0;
}

.remaining-row strong {
  color: var(--teal-dark);
  font-size: 11px;
}

.summary-card {
  margin-top: 30px;
  padding: 22px;
}

.summary-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.summary-card-heading .eyebrow {
  margin-bottom: 5px;
}

.summary-help {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 16px;
}

.summary-date-field {
  max-width: 240px;
}

.generated-summary {
  background: #f7f9fd;
  border: 1px solid #dbe3f2;
  border-radius: 10px;
  margin-top: 17px;
  overflow: hidden;
}

.summary-output-heading {
  align-items: center;
  border-bottom: 1px solid #dbe3f2;
  color: var(--ink);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 10px 13px;
}

.copy-summary-button {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px;
}

.generated-summary pre {
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-height: 430px;
  overflow: auto;
  padding: 15px;
  white-space: pre-wrap;
}

.shift-history-section {
  margin-top: 31px;
}

.shift-history {
  display: grid;
  gap: 10px;
}

.shift-history-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(214, 220, 238, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: 15px 17px;
}

.shift-history-card .report-id-line {
  margin-bottom: 6px;
}

.shift-history-card > div:first-child > strong {
  display: block;
  font-size: 13px;
}

.shift-history-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 0;
}

.shift-history-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 15px;
}

.shift-history-side > span {
  color: var(--muted);
  font-size: 11px;
}

.shift-history-side > strong {
  color: var(--teal-dark);
  font-size: 11px;
}

@media (max-width: 650px) {
  .main-tabs {
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .main-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .route-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-preview-top,
  .summary-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .remaining-total {
    align-self: flex-start;
  }

  .shift-history-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .shift-history-side {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 0;
  }
}

.afs-notice{background:#fff6df!important;border-color:#f3d99f!important}.afs-notice p{margin:.5rem 0 0}.afs-table-wrap{overflow-x:auto}.afs-table{border-collapse:collapse;width:100%;margin:1rem 0;font-size:.9rem}.afs-table th,.afs-table td{padding:.7rem .55rem;border-bottom:1px solid #dce2eb;text-align:left}.afs-table th{background:#eef3fa}.afs-action{border:0;border-radius:9px;padding:12px 18px;background:#182868;color:white;cursor:pointer}#scanFrame{display:block;width:100%;height:1350px;border:0;border-radius:14px;background:#f2f5fb}@media(max-width:600px){#scanFrame{height:1520px}.main-tabs{flex-wrap:wrap}}
