:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #68756e;
  --line: #dfe6df;
  --accent: #0d766e;
  --accent-dark: #075c56;
  --warn: #a74708;
  --done: #166534;
  --shadow: 0 14px 34px rgba(23, 32, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.app-shell {
  width: min(100%, 540px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px 14px 28px;
}

.app-shell.locked {
  display: none;
}

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

.login-panel {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.login-panel h1 {
  margin-bottom: 16px;
}

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

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-form select,
.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 10px 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.05;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 22px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mode-switch button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.mode-switch button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  padding: 6px 0;
}

.admin-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.admin-panel {
  display: block;
}

.captain-strip,
.toolbar,
.date-card,
.segmented,
.admin-form,
.admin-row,
.transfer-card,
.summary-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
}

.captain-strip {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
}

.captain-strip label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.captain-strip input,
.captain-strip select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcfb;
  color: var(--ink);
}

.admin-form {
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.compact-form label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.password-form {
  margin-top: 12px;
}

.compact-form input,
.compact-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 10px 12px;
}

.fleet-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.fleet-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fleet-tools input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 10px 12px;
}

.fleet-count {
  align-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.mini-segmented {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mini-segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-segmented button:last-child {
  border-right: 0;
}

.mini-segmented button.active {
  background: var(--accent);
  color: #fff;
}

.vehicle-class-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.vehicle-class-tabs button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 900;
}

.vehicle-class-tabs button.active {
  background: #303943;
  border-color: #303943;
  color: #fff;
}

.chip-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.manage-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfb;
}

.manage-chip span {
  min-width: 0;
  overflow: hidden;
  padding: 7px 4px 7px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-chip button {
  width: 30px;
  height: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--warn);
  font-size: 18px;
  font-weight: 800;
}

.manage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.manage-row span {
  min-width: 0;
  grid-column: 1;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.manage-row select {
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 13px;
}

.manual-plate-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 6px;
}

.manual-plate-tools input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.manual-plate-tools button {
  width: auto;
  height: 40px;
  grid-column: auto;
  grid-row: auto;
  border: 0;
  border-radius: 8px;
  background: #303943;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.manage-row > .remove-captain {
  grid-column: 2;
  grid-row: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff2ec;
  color: var(--warn);
  font-size: 18px;
  font-weight: 800;
}

.vehicle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
  border-left: 7px solid #9aa59f;
}

.vehicle-row:has(.vehicle-edit-form:not(.hidden)) {
  grid-template-columns: 1fr;
}

.vehicle-row.vehicle-vito {
  border-left-color: #1769aa;
}

.vehicle-row.vehicle-minibus {
  border-left-color: #1f7a4d;
}

.vehicle-row.vehicle-midibus {
  border-left-color: #b85b14;
}

.vehicle-row.vehicle-bus {
  border-left-color: #303943;
}

.vehicle-row div {
  min-width: 0;
}

.vehicle-row span,
.vehicle-row small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.vehicle-row span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.vehicle-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.vehicle-meta b {
  border-radius: 999px;
  background: #edf2ef;
  color: #334139;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
}

.vehicle-actions {
  display: grid;
  gap: 6px;
}

.vehicle-actions button,
.vehicle-edit-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.vehicle-edit {
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 0 8px;
  font-size: 11px;
}

.vehicle-delete {
  width: 38px;
  background: #fff2ec;
  color: var(--warn);
  font-size: 18px;
}

.vehicle-edit-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.vehicle-edit-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vehicle-edit-form input,
.vehicle-edit-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 9px;
}

.vehicle-edit-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vehicle-save {
  background: var(--accent);
  color: #fff;
}

.vehicle-cancel {
  background: #edf2ef;
  color: var(--muted);
}

.form-head,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.form-head h2,
.admin-list-head h2 {
  margin: 0;
  font-size: 21px;
}

.form-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 10px 12px;
}

.form-grid textarea {
  resize: vertical;
  line-height: 1.35;
}

.import-form {
  border-left: 8px solid #1769aa;
}

.import-form > label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.import-form input[type="file"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 9px 10px;
}

.form-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.primary-action,
.secondary-action {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
}

.primary-action:disabled {
  background: #9aa59f;
}

.secondary-action {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-dark);
  padding: 0 10px;
  font-size: 12px;
}

.wide-button {
  width: 100%;
  margin-top: 10px;
}

.save-message {
  min-height: 20px;
  margin-top: 8px;
  color: var(--done);
  font-size: 13px;
  font-weight: 700;
}

.admin-list-head {
  margin: 18px 2px 10px;
}

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

.tracking-list {
  display: grid;
  gap: 12px;
}

.tracking-summary {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tracking-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.tracking-filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.tracking-filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tracking-vehicle-filter {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.tracking-vehicle-filter input,
.tracking-vehicle-filter select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.tracking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.tracking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tracking-head h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.tracking-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tracking-type {
  border-radius: 999px;
  background: #303943;
  color: #fff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.job-vehicle-change {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.job-vehicle-change select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.tracking-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.tracking-job-status {
  border-radius: 999px;
  color: #fff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.tracking-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.tracking-counts span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.tracking-stops {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.tracking-stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.tracking-stop strong,
.tracking-stop span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.tracking-stop strong {
  font-size: 12px;
}

.tracking-stop span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.tracking-stop em {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 8px;
  background: #edf7f5;
  color: var(--accent-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.tracking-stop.delayed em {
  background: #fff7ed;
  color: var(--warn);
}

.tracking-stop.passengerOut em {
  background: #eaf6ff;
  color: #1769aa;
}

.tracking-stop.noShow em {
  background: #fff1f1;
  color: #8b2f2f;
}

.tracking-stop.picked em {
  background: #f0f8f3;
  color: var(--done);
}

.admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
}

.admin-row h3 {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.2;
}

.admin-time {
  color: var(--accent-dark);
  font-size: 18px;
}

.admin-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.summary-grid article {
  min-height: 76px;
  border-radius: 8px;
  padding: 12px;
}

.summary-grid span {
  display: block;
  font-size: 25px;
  font-weight: 800;
}

.summary-grid p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.day-approval {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #b8ddf7;
  border-left: 8px solid #1769aa;
  border-radius: 8px;
  background: #eaf6ff;
}

.day-approval strong {
  display: block;
  color: #12344d;
  font-size: 14px;
}

.day-approval p {
  margin-top: 4px;
  color: #33566f;
  font-size: 12px;
  line-height: 1.35;
}

.day-approval button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1769aa;
  color: #fff;
  font-weight: 900;
}

.day-approval button:disabled {
  background: #8aa8bc;
  cursor: not-allowed;
}

.toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.date-card {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
}

.date-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.date-card input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.date-card strong {
  grid-column: 1 / -1;
  font-size: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 8px;
  overflow: hidden;
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--muted);
  font-weight: 700;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--accent);
  color: #fff;
}

.transfer-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.transfer-card {
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.transfer-card-arr {
  background: #eaf6ff;
  border: 1px solid #b8ddf7;
  border-left: 8px solid #1769aa;
}

.transfer-card-depar {
  background: #fff3e8;
  border: 1px solid #ffd0aa;
  border-left: 8px solid #b85b14;
}

.transfer-card-tur {
  background: #effaf2;
  border: 1px solid #bfe6c9;
  border-left: 8px solid #2f8f4e;
}

.transfer-card-ara {
  background: #fff9d9;
  border: 1px solid #f4dd7d;
  border-left: 8px solid #c9a227;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.card-head::after {
  content: "Detay";
  flex: 0 0 auto;
  align-self: flex-end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfb;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.transfer-card:not(.collapsed) .card-head::after {
  content: "Kapat";
}

.transfer-card.collapsed .card-body {
  display: none;
}

.time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf7f5;
  color: var(--accent-dark);
  font-weight: 800;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.direction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 4px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  background: #303943;
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.work-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.work-type-private {
  background: #f0f7ff;
  color: #1769aa;
  border: 1px solid #cce3f9;
}

.work-type-shuttle {
  background: #fff3e8;
  color: #a14b10;
  border: 1px solid #ffd7b5;
}

.direction-arr {
  background: #1769aa;
}

.direction-depar {
  background: #b85b14;
}

.direction-tur {
  background: #2f8f4e;
}

.direction-ara {
  background: #c9a227;
  color: #24302a;
}

h2 {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.status-pill {
  flex: 0 0 auto;
  max-width: 116px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.status-pending {
  background: #57625c;
}

.status-started {
  background: #075c56;
}

.status-delayed {
  background: #a74708;
}

.status-passengerOut {
  background: #075d9b;
}

.status-noShow {
  background: #7f1d1d;
}

.status-done {
  background: #14532d;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 0;
}

.details div {
  min-width: 0;
}

.wide-detail {
  grid-column: 1 / -1;
}

.terminal-info {
  border-radius: 8px;
  background: #f8faf9;
  border: 1px solid var(--line);
  color: #24302a;
  padding: 9px 10px;
  font-weight: 900;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.payment-due {
  grid-column: 1 / -1;
  border: 1px solid #f2c46d;
  border-radius: 8px;
  background: #fff8e8;
  padding: 10px;
}

.payment-due dt,
.payment-due dd {
  color: #7a4a08;
}

a {
  color: var(--accent-dark);
}

.notes {
  margin-top: 14px;
  border-left: 3px solid var(--line);
  padding-left: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.shuttle-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  overflow: hidden;
}

.shuttle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.shuttle-head strong {
  font-size: 14px;
}

.shuttle-head span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.shuttle-stops {
  display: grid;
}

.shuttle-stop {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 66px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
}

.shuttle-stop:last-child {
  border-bottom: 0;
}

.stop-time {
  border-radius: 6px;
  background: #edf7f5;
  color: var(--accent-dark);
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.stop-main {
  min-width: 0;
}

.stop-main strong,
.stop-main span {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.stop-main strong {
  font-size: 12px;
}

.stop-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stop-actions {
  display: grid;
  gap: 3px;
}

.stop-actions button {
  min-height: 25px;
  border: 0;
  border-radius: 7px;
  background: #075c56;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.stop-actions .delayed-action {
  background: #a74708;
}

.stop-actions .no-show-action {
  background: #7f1d1d;
}

.shuttle-stop.picked {
  background: #ccebd7;
  border-left: 5px solid #14532d;
  color: #092d1a;
}

.shuttle-stop.picked .picked-action {
  background: #14532d;
}

.shuttle-stop.delayed {
  background: #fed7aa;
  border-left: 5px solid #9a3412;
  color: #431407;
}

.shuttle-stop.delayed .delayed-action {
  background: #9a3412;
}

.shuttle-stop.delayed .picked-action {
  background: #6b7280;
}

.shuttle-stop.passengerOut {
  background: #c7e6ff;
  border-left: 5px solid #075d9b;
  color: #082f49;
}

.shuttle-stop.passengerOut .delayed-action {
  background: #075d9b;
}

.shuttle-stop.passengerOut .picked-action {
  background: #6b7280;
}

.shuttle-stop.noShow {
  background: #fecaca;
  border-left: 5px solid #7f1d1d;
  color: #450a0a;
}

.shuttle-stop.noShow .no-show-action {
  background: #7f1d1d;
}

.shuttle-stop.noShow .picked-action {
  background: #6b7280;
}

.shuttle-stop.picked .stop-time,
.shuttle-stop.delayed .stop-time,
.shuttle-stop.passengerOut .stop-time,
.shuttle-stop.noShow .stop-time {
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
}

.shuttle-stop.picked .stop-main span,
.shuttle-stop.delayed .stop-main span,
.shuttle-stop.passengerOut .stop-main span,
.shuttle-stop.noShow .stop-main span {
  color: inherit;
  font-weight: 800;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.actions button {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.actions .start {
  background: #075c56;
}

.actions .delay {
  background: #a74708;
}

.actions .no-show {
  background: #7f1d1d;
}

.actions .finish {
  background: var(--done);
}

.actions button:disabled {
  cursor: not-allowed;
  background: #9aa59f;
  color: #edf2ef;
  opacity: 0.72;
}

@media (max-width: 430px) {
  .actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.empty-state {
  padding: 30px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.compact-empty {
  padding: 16px 12px;
  font-size: 13px;
}

@media (min-width: 700px) {
  .app-shell {
    padding-top: 28px;
  }
}

@media (max-width: 390px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .fleet-tools {
    grid-template-columns: 1fr;
  }

  .mini-segmented,
  .vehicle-class-tabs {
    grid-column: auto;
  }

  .vehicle-class-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-edit-form {
    grid-template-columns: 1fr;
  }
}
