.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(18, 58, 107, 0.18), rgba(243, 238, 230, 0.96) 220px),
    #f3eee6;
  padding-bottom: env(safe-area-inset-bottom);
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-top));
  background: linear-gradient(90deg, #0b2748, #123a6b 58%, #ee5a22);
  color: var(--white);
  box-shadow: 0 2px 0 #ee5a22;
}

.app-bar img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #0b2748;
  border-radius: 12px;
  padding: 2px;
  border: 2px solid #ee5a22;
}

.app-bar-text {
  flex: 1;
  min-width: 0;
}

.app-bar-text p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.app-bar-text h1 {
  margin: 0;
  font-size: 18px;
}

.app-shell button.ghost.app-signout {
  background: #fff !important;
  color: #123a6b !important;
  white-space: nowrap;
}

.app-main {
  padding: 14px;
  max-width: 720px;
  margin: 0 auto;
}

/* Shown inside the PC desktop overview: the desktop sidebar replaces the bar and menu. */
.app-embed .app-bar,
.app-embed #appWorkspace > .app-menu-label {
  display: none;
}

.app-embed .app-main {
  max-width: 1100px;
  padding: 18px 24px;
}

.app-card,
.app-workspace-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 58, 107, 0.08);
}

.app-hero {
  margin: 0 -16px 16px;
  height: 150px;
  overflow: hidden;
  background: #123a6b;
}

.app-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.app-welcome .app-hero {
  height: 210px;
}

.refuel-hero {
  height: auto;
  background: transparent;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}

.refuel-hero > img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.tanker-level-digital {
  display: grid;
  gap: 0.2rem;
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #0b2748;
  color: #e8f0ff;
  font-variant-numeric: tabular-nums;
}

.tanker-digital-readout {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.tanker-digital-readout strong {
  color: #f0d35a;
  font-size: 1.7rem;
}

.tanker-digital-meta {
  font-size: 0.88rem;
  color: #b8c7db;
}

.tanker-load-form {
  margin: 0.75rem 0 1.1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #c9d2dc;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.tanker-load-form .takeon-btn {
  display: flex;
  width: 100%;
  flex: none;
  min-height: 4.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.app-shell .app-form button[type="submit"],
.app-shell .app-card > button,
.app-shell #appWelcomeContinue,
.app-shell #appPendingLogin,
.app-shell #appFingerprintEnable {
  background: #ee5a22;
  color: #fff;
}

.app-shell .app-form button[type="submit"]:hover,
.app-shell .app-card > button:hover,
.app-shell #appWelcomeContinue:hover,
.app-shell #appPendingLogin:hover,
.app-shell #appFingerprintEnable:hover {
  background: #d94c18;
}

.app-or {
  margin: 4px 0 0;
  text-align: center;
  color: #123a6b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-shell .app-form button.app-fingerprint {
  background: #123a6b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.app-shell .app-form button.app-fingerprint:hover {
  background: #0b2748;
}

.app-fingerprint svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell button.ghost {
  background: #123a6b !important;
  color: #fff !important;
}

.app-form,
.app-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-form {
  gap: 12px;
}

.app-form select,
.app-form input,
.app-form textarea,
.app-menu-label select {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  border-color: #e0d4c4;
}

.app-menu-label select,
.app-form select,
body.app-role-mechanic .app-menu-label select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 52px;
  padding: 12px 46px 12px 16px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background-color: #123a6b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ee5a22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  border: 2px solid #ee5a22;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(18, 58, 107, 0.14);
}

.app-menu-label select option,
.app-form select option {
  background: #0b2748;
  color: #fff;
  font-weight: 700;
}

.app-form textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.app-form select:focus,
.app-form input:focus,
.app-form textarea:focus,
.app-menu-label select:focus {
  outline: none;
  border-color: #ee5a22;
  box-shadow: 0 0 0 3px rgba(238, 90, 34, 0.28);
}

.app-form button,
.app-signout {
  min-height: 48px;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 52px;
}

.app-shell .password-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #123a6b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-shell .password-eye:hover,
.app-shell .app-form button.password-eye {
  background: transparent;
}

.password-eye svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #123a6b;
  letter-spacing: 0.04em;
}

.app-menu-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.app-menu-button,
.app-menu-label select,
.app-form select,
body.app-role-mechanic .app-menu-label select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 46px 12px 16px;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  color: #fff;
  background-color: #123a6b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ee5a22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  border: 2px solid #ee5a22;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(18, 58, 107, 0.14);
}

.app-menu-button.open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ee5a22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 15l-6-6-6 6'/%3E%3C/svg%3E");
}

.app-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  background: #f3eee6;
  border: 2px solid #ee5a22;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(18, 58, 107, 0.16);
}

.app-menu-option {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: #123a6b;
  color: #fff;
  border: 2px solid #123a6b;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.app-menu-option.selected,
.app-menu-option:hover,
.app-menu-option:active {
  background: #ee5a22;
  border-color: #ee5a22;
  color: #fff;
}

.app-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.app-doc-card,
.app-wo-card,
.app-hod-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.app-doc-card header,
.app-wo-card header,
.app-hod-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.app-doc-card ul,
.app-wo-card ul,
.app-hod-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.app-doc-card img,
.app-wo-card img,
.app-hod-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 8px;
}

.app-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-board a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.finance-row {
  display: grid;
  grid-template-columns: 56px minmax(70px, 0.7fr) 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.app-board .finance-row a {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
}

.finance-row img,
.finance-row .empty-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.finance-row strong {
  font-size: 16px;
}

.finance-row > span {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.finance-switch {
  display: grid;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.finance-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finance-switch i {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 99px;
  background: #b42318;
  transition: background 0.2s;
}

.finance-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.finance-switch.on i {
  background: #2f9e5b;
}

.finance-switch.on i::after {
  transform: translateX(24px);
}

.finance-switch b {
  font-size: 11px;
  color: #b42318;
  white-space: nowrap;
}

.finance-switch.on b {
  color: #157347;
}

.finance-switch input:focus-visible + i {
  outline: 3px solid #ee5a22;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .finance-row {
    grid-template-columns: 56px 1fr auto;
  }

  .finance-row > a:first-child {
    grid-row: 1 / span 3;
    align-self: start;
  }

  .finance-row > span {
    grid-column: 2;
  }

  .finance-switch {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
}

.diesel-cost-select {
  display: grid;
  gap: 0.35rem;
  max-width: 22rem;
  margin: 0.75rem 0 1rem;
  font-weight: 600;
}

.diesel-cost-select select {
  font: inherit;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border: 1px solid #9aa4b2;
  border-radius: 8px;
  background: #fff;
}

.diesel-usage-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  flex-wrap: wrap;
}

.diesel-usage-tab {
  border: 1px solid #9aa4b2;
  background: #f4f6f8;
  color: #1f2937;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.diesel-usage-tab.on {
  background: #0b3d2e;
  border-color: #0b3d2e;
  color: #fff;
}

.diesel-usage-placeholder {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px dashed #9aa4b2;
  background: rgba(255, 255, 255, 0.7);
}

.diesel-usage-placeholder h3 {
  margin: 0 0 0.35rem;
}

.diesel-usage-status {
  font-weight: 700;
  font-size: 0.9rem;
  align-self: center;
}

.diesel-usage-status.ok {
  color: #157347;
}

.diesel-usage-status.no {
  color: #b42318;
}

.finance-row small {
  color: #6b5e4e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-board a.status-ready,
.app-board a.status-pending,
.app-board a.status-stop,
.app-board a.status-recall,
.app-board a.status-offsite {
  color: inherit;
}

.app-board a em {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: var(--pass);
  white-space: nowrap;
}

.app-board a.status-ready em { background: #157347; }
.app-board a.status-pending em { background: #ee5a22; }
.app-board a.status-stop em { background: #b42318; }
.app-board a.status-recall em,
.app-board a.status-offsite em { background: #e67a00; }

.app-board a.status-ready { border-color: #157347; background: #e8f6ee; }
.app-board a.status-pending { border-color: #ee5a22; background: #fff1ea; }
.app-board a.status-stop { border-color: #b42318; background: #fdecea; }
.app-board a.status-recall,
.app-board a.status-offsite { border-color: #e67a00; background: #fff6eb; }

.app-board img,
.app-board .empty-thumb,
#detailReportPanel .table-thumb,
#detailReportPanel .empty-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #efe6d8;
  flex: 0 0 56px;
  display: block;
}

.app-shell .total-fleet-actions #fleetSignOut,
.app-shell #detailReportSignOut,
.app-shell #hodSignOut,
.app-shell #mechanicSignOut,
.app-shell #detailReportPanel .pin-change {
  display: none;
}

.app-welcome h2,
.app-card h2 {
  margin-top: 0;
  color: #123a6b;
}

.app-register-link {
  margin: 14px 0 0;
}

.app-register-link button {
  width: 100%;
}

.register-face {
  margin-top: 4px;
}

.register-face-capture {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.register-face-video {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 320px;
  overflow: hidden;
  border-radius: 14px;
  background: #0b1a2e;
}

.register-face-video video,
.register-face-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.register-face-count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.78);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  max-width: 90%;
}

.register-face-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: #0b1a2e;
}

.app-doc-card .register-face-thumb {
  float: right;
  margin: 0 0 8px 10px;
}

.app-form fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-form fieldset[hidden],
.app-card[hidden],
.app-shell [hidden] {
  display: none !important;
}

.app-form legend {
  font-size: 13px;
  color: var(--muted);
}

.inline-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

#addMachineForm input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.add-machine-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-machine-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-machine-row input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
}

.add-machine-row input[type="date"]:disabled {
  opacity: 0.45;
}

.removed-machine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggest-card {
  border: 1px solid #e0d4c4;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 12px;
  background: #fff;
}

.suggest-card.unread {
  border-color: #f05a22;
  box-shadow: 0 0 0 2px rgba(240, 90, 34, 0.15);
}

.suggest-head {
  margin: 0 0 8px;
}

.suggest-new {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #f05a22;
  border-radius: 999px;
  padding: 2px 8px;
}

.suggest-msg {
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.suggest-msg p {
  margin: 0;
}

.suggest-msg.from-user {
  background: #f4efe8;
}

.suggest-msg.from-admin {
  background: #e6eef8;
  border-left: 4px solid #123a6b;
}

.suggest-msg .suggest-who {
  font-size: 0.75rem;
  color: #6b6259;
  margin-bottom: 2px;
  white-space: normal;
}

.suggest-wait {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.suggest-reply {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.suggest-reply textarea {
  flex: 1;
  min-height: 44px;
}

.suggest-reply button {
  flex: 0 0 auto;
}

.todo-group h3 {
  margin: 16px 0 6px;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e0d4c4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #efe6da;
}

.todo-row:last-child {
  border-bottom: 0;
}

.todo-check {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.todo-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: #f05a22;
}

.todo-check small {
  display: block;
  font-weight: 400;
  color: #6b6259;
}

.todo-row.done .todo-check span {
  text-decoration: line-through;
  color: #8a8178;
}

.todo-remove {
  flex: 0 0 auto;
  min-height: 32px;
  width: 32px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.suggest-close {
  width: 100%;
  margin-top: 8px;
}

.removed-machine-list li {
  border: 1px solid #e0d4c4;
  border-radius: 10px;
  padding: 10px 12px;
}

#addMachineForm .add-machine-na {
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
}

.pick-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-box {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7cbb8;
  border-radius: 12px;
  background: #fff;
  color: #123a6b;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.pick-box input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pick-box span {
  pointer-events: none;
}

.pick-box.selected,
.pick-box:has(input:checked) {
  background: #ee5a22;
  border-color: #ee5a22;
  color: #fff;
}

#appWorkspace {
  background:
    linear-gradient(180deg, rgba(18, 58, 107, 0.12), #f3eee6 160px),
    #f3eee6;
  border: 1px solid #e0d4c4;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(18, 58, 107, 0.08);
}

body.app-role-mechanic .app-main {
  padding: 0;
  max-width: none;
}

body.app-role-mechanic #appWorkspace {
  min-height: calc(100dvh - 72px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 16px 28px;
}

#mechanicPanel.tcs-mechanic-theme .tab-note,
body.desk-mechanic #mechanicPanel .tab-note,
#detailReportPanel.tcs-mechanic-theme .tab-note {
  color: #123a6b;
}

#mechanicPanel.tcs-mechanic-theme .report-list,
body.desk-mechanic #mechanicPanel .report-list,
#detailReportPanel.tcs-mechanic-theme .report-list,
body.app-role-mechanic #detailReportPanel .report-list {
  padding-left: 0;
  padding-right: 0;
}

#mechanicPanel.tcs-mechanic-theme .report-card,
body.desk-mechanic #mechanicPanel .report-card,
#detailReportPanel.tcs-mechanic-theme .report-card,
body.app-role-mechanic #detailReportPanel .report-card {
  background: #fff;
  border-color: #e0d4c4;
  box-shadow: 0 6px 16px rgba(18, 58, 107, 0.08);
}

#detailReportPanel .report-card .pad,
#detailReportPanel .detail-docs {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

#detailReportPanel .spark-labeled {
  padding-left: 0;
  padding-right: 0;
}

#performancePanel.tcs-mechanic-theme .tab-note {
  color: #123a6b;
}

#performancePanel.tcs-mechanic-theme .report-list {
  padding-left: 0;
  padding-right: 0;
}

#performancePanel.tcs-mechanic-theme .report-card {
  background: #fff;
  border-color: #e0d4c4;
  box-shadow: 0 6px 16px rgba(18, 58, 107, 0.08);
}
#performancePanel .supervisor-qr-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: #123a6b;
  background: #fff;
}
#performancePanel .supervisor-qr-card header,
#performancePanel .supervisor-one-qr header,
#mechanicPanel .report-card header,
#detailReportPanel .report-card header {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.supervisor-fleet-number,
#performancePanel .supervisor-fleet-number,
#mechanicPanel .supervisor-fleet-number,
#detailReportPanel .supervisor-fleet-number {
  margin: 0;
  color: #123a6b !important;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
#performancePanel .supervisor-fleet-link {
  color: #123a6b;
  text-decoration: none;
}
#performancePanel .supervisor-qr-card header,
#performancePanel .supervisor-one-qr header {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}
#performancePanel .supervisor-fleet-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 72px;
  background: #efe6d8;
  display: block;
}
#performancePanel .supervisor-qr-card:active {
  border-color: #ee5a22;
}
#performancePanel .supervisor-one-qr {
  text-align: center;
}
#performancePanel .supervisor-qr-image {
  display: block;
  width: min(320px, 100%);
  max-width: 320px;
  margin: 8px auto 16px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
}

#performancePanel .perf-week {
  padding: 0 16px 10px;
}

#performancePanel .perf-week .spark-col {
  flex-direction: column;
  align-items: center;
  height: auto;
}

#performancePanel .perf-week em {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  color: #5b6d82;
}

#performancePanel .supervisor-month {
  min-height: 180px;
}
#performancePanel .supervisor-month .month-val {
  color: #123a6b;
  font-weight: 800;
  margin-bottom: 2px;
}

.app-decide,
.app-decide-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}

.app-shell .app-form .app-decide-row button[type="submit"],
.app-shell .app-form button.app-approve {
  background: #ee5a22;
  color: #fff;
}

.app-shell .app-form button.app-reject {
  background: #0b2748;
  color: #fff;
}

.app-shell .app-form button.app-reject:hover {
  background: #0a203c;
}

.app-doc-card [data-user-edit] {
  background: #ee5a22;
  color: #fff;
}

.app-doc-card [data-user-remove] {
  background: #0b2748;
  color: #fff;
}

.app-remove-confirm {
  border: 2px solid #c62828;
  border-radius: 12px;
  background: #fdecea;
  padding: 10px 12px;
  margin: 8px 0;
}

.app-remove-confirm p {
  margin: 0 0 6px;
}

.app-remove-confirm [data-remove-yes] {
  background: #c62828;
  color: #fff;
}

.app-remove-confirm [data-remove-cancel] {
  background: #fff;
  color: #0b2748;
  border: 1px solid #0b2748;
}

#serverPanel.tcs-mechanic-theme {
  color: #123a6b;
}

#serverPanel .tab-note {
  color: #123a6b;
}

#serverPanel h2 {
  margin: 8px 0 6px;
  color: #123a6b;
}

.server-report-card {
  background: #fff;
  border: 1px solid #e0d4c4;
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin: 12px 0;
  box-shadow: 0 6px 16px rgba(18, 58, 107, 0.08);
}

.server-report-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.server-report-card header strong {
  color: #123a6b;
  font-size: 16px;
}

.server-report-card header em {
  color: #ee5a22;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.server-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 6px;
  color: #123a6b;
}

.server-metric span {
  color: #6b5e4e;
}

.server-meter {
  display: flex;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3eee6;
  border: 1px solid #e0d4c4;
}

.server-meter-used {
  display: block;
  height: 100%;
  background: #123a6b;
}

.server-meter-left {
  display: block;
  height: 100%;
  background: #ee5a22;
}

.server-meter[data-remain="warn"] .server-meter-left {
  background: #d94c18;
}

.server-meter[data-remain="low"] .server-meter-left {
  background: #b42318;
}

.server-space-line {
  margin: 10px 0 6px;
  color: #123a6b;
  font-size: 16px;
}

.server-legend {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: #6b5e4e;
  font-size: 13px;
}

.server-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.server-legend .used {
  background: #123a6b;
}

.server-legend .left {
  background: #ee5a22;
}

.server-drive {
  margin-top: 12px;
}

.server-drive.is-tcs {
  padding: 8px;
  border-radius: 12px;
  background: #f3eee6;
}

.server-cpu {
  margin: 8px 0 0;
  font-size: 12px;
}

.server-refresh {
  width: 100%;
  margin-top: 8px;
  background: #ee5a22 !important;
  color: #fff !important;
}

.notify-push {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f3eee6;
}

.notify-push.on {
  background: #e7f6ec;
}

.notify-push p {
  margin: 0 0 8px;
}

.notify-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #ee5a22;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.notify-btn.alt {
  background: #123a6b;
}

.push-offer-wrap {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 22, 40, 0.55);
}

.push-offer {
  width: 100%;
  max-width: 380px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.push-offer h3 {
  margin: 0 0 8px;
  color: #123a6b;
}

.push-offer p {
  margin: 0 0 12px;
}

.push-offer .notify-btn + .notify-btn,
.push-offer .error + .notify-btn {
  margin-top: 8px;
}

.takeon-form fieldset {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
}

.takeon-form legend {
  padding: 0 6px;
  font-weight: 800;
  color: #123a6b;
}

.takeon-photo {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px dashed #c9d0db;
  border-radius: 12px;
  background: #f8f9fb;
}

.takeon-photo.picked {
  border-style: solid;
  border-color: #ee5a22;
  background: #fff6f1;
}

.takeon-photo.done {
  border-style: solid;
  border-color: #2f9e5b;
  background: #eef8f1;
}

.takeon-photo.saving {
  opacity: 0.6;
}

.takeon-photo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.takeon-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #c9d0db;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.takeon-photo.done .takeon-tick {
  border-color: #2f9e5b;
  background: #2f9e5b;
}

.takeon-preview img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin: 0 0 8px;
  border-radius: 8px;
}

.takeon-pdf {
  display: inline-block;
  margin: 0 0 8px;
  font-weight: 700;
}

.takeon-photo-btns,
.takeon-done-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.takeon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #ee5a22;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.takeon-btn.alt {
  background: #123a6b;
}

.autoup-start {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.autoup-camera {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  font-size: 18px;
  cursor: pointer;
}

.autoup-tip {
  font-size: 13px;
}

.autoup-reading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
}

.autoup-reading img,
.autoup-photo img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background: #eef0f4;
}

.autoup-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 3px solid #f3c2a8;
  border-top-color: #ee5a22;
  border-radius: 50%;
  animation: autoup-spin 0.8s linear infinite;
}

@keyframes autoup-spin {
  to {
    transform: rotate(360deg);
  }
}

.autoup-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.autoup-photo {
  display: block;
}

.autoup-found {
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
}

.autoup-found small {
  display: block;
  margin-top: 4px;
  opacity: 0.9;
  font-size: 12px;
}

.autoup-found.ok {
  background: #2f9e5b;
}

.autoup-found.unsure {
  background: #ee5a22;
}

.autoup-machine {
  display: flex;
  align-items: center;
  gap: 12px;
}

.autoup-machine:empty {
  display: none;
}

.autoup-machine img,
.autoup-nophoto {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.autoup-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f4;
  color: #7a8594;
  font-size: 12px;
}

.maintdocs-search {
  width: 100%;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  font-size: 15px;
}

.maintdocs-list {
  display: grid;
  gap: 8px;
}

.maintdocs-machine {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.maintdocs-machine[hidden] {
  display: none;
}

.maintdocs-machine img,
.maintdocs-machine .autoup-nophoto {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.maintdocs-label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.maintdocs-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.maintdocs-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cfd6e0;
  border-radius: 999px;
  background: #f7f9fb;
}

.maintdocs-kind:has(input:checked) {
  border-color: #1f6feb;
  background: #e8f0fe;
  font-weight: 600;
}

.maintdocs-photo {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.maintdocs-photo img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: contain;
}

.autoup-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.autoup-result > span {
  flex: 1 1 100%;
  font-weight: 700;
}

.autoup-pass,
.autoup-fail {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 2px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.autoup-pass:has(input:checked) {
  border-color: #2f9e5b;
  background: #e8f6ee;
}

.autoup-fail:has(input:checked) {
  border-color: #b3261e;
  background: #fdecea;
}

.autoup-valid {
  margin: 4px 0;
}

.autoup-defects,
.autoup-where {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6f1;
  border: 1px solid #f3c2a8;
}

.autoup-where {
  background: #eef4fb;
  border-color: #c8d8ec;
}

.autoup-where p,
.autoup-defects ul {
  margin: 4px 0 0;
}

.autoup-text pre {
  max-height: 200px;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: #f6f7f9;
  white-space: pre-wrap;
  font-size: 12px;
}

.logbook-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.logbook-tools input {
  flex: 1 1 180px;
}

.logbook-tools input,
.logbook-tools select {
  padding: 9px 10px;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  font: inherit;
}

.logbook-total {
  margin: 0 0 8px;
}

.refuel-scan {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.refuel-video {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0b2748;
  aspect-ratio: 1 / 1;
  max-height: 60vh;
}

.refuel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.refuel-frame {
  position: absolute;
  inset: 18%;
  border: 3px solid #ee5a22;
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(11, 39, 72, 0.35);
  animation: refuel-pulse 1.4s ease-in-out infinite;
}

@keyframes refuel-pulse {
  50% { border-color: #fff; }
}

.refuel-manual {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.refuel-auto,
.refuel-calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.refuel-auto div,
.refuel-calc div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef0f4;
}

.refuel-calc div {
  background: #e8f6ee;
  border: 1px solid #2f9e5b;
}

.refuel-auto span,
.refuel-calc span {
  font-size: 12px;
  color: #6b5e4e;
}

.refuel-auto strong,
.refuel-calc strong {
  font-size: 17px;
}

.refuel-calc strong.bad {
  color: #b42318;
}

.refuel-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 12px;
}

.refuel-photo img {
  grid-column: 1 / -1;
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: contain;
}

.refuel-approval {
  display: grid;
  gap: 2px;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid;
}

.refuel-approval strong {
  font-size: 19px;
}

.refuel-approval.ok {
  background: #e8f6ee;
  border-color: #2f9e5b;
  color: #157347;
}

.refuel-approval.no {
  background: #fdecea;
  border-color: #b42318;
  color: #b42318;
  animation: refuel-alert 1.2s ease-in-out 3;
}

@keyframes refuel-alert {
  50% { box-shadow: 0 0 0 6px rgba(180, 35, 24, 0.25); }
}

.refuel-saved {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f6ee;
  border: 1px solid #2f9e5b;
}

.refuel-saved p {
  margin: 4px 0 0;
}

.logbook-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
}

.logbook {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}

.logbook th,
.logbook td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f4;
  text-align: left;
  vertical-align: top;
}

.logbook th {
  position: sticky;
  top: 0;
  background: #123a6b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.logbook td:nth-child(1),
.logbook td:nth-child(2) {
  white-space: nowrap;
}

.logbook td:nth-child(n + 4) {
  text-align: right;
  white-space: nowrap;
}

.logbook th:nth-child(n + 4) {
  text-align: right;
}

.logbook tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.logbook th:nth-child(10),
.logbook td:nth-child(10) {
  text-align: left;
  white-space: normal;
  min-width: 190px;
}

.logbook th:nth-child(4),
.logbook td.logbook-operator {
  text-align: left;
  font-weight: 600;
}

.logbook tbody tr.logbook-suspicious {
  background: #fdecea;
  box-shadow: inset 4px 0 0 #c62828;
}

.logbook tbody tr.logbook-truck-takeon {
  background: #fff4d6;
  box-shadow: inset 4px 0 0 #c49a1a;
}

.logbook-flag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85em;
}

.logbook-flag.ok {
  background: #e3f4e8;
  color: #1b6e3a;
}

.logbook-flag.bad {
  background: #c62828;
  color: #fff;
}

.logbook-flag.truck {
  background: #c49a1a;
  color: #fff;
}

.fleet-list-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.fleet-list-filters section {
  padding: 12px;
  border: 1px solid #d7cbb8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.fleet-list-filters h3 {
  margin: 0 0 4px;
  color: #123a6b;
  font-size: 1.05rem;
}

.fleet-list-filters .muted {
  margin: 0 0 10px;
}

.fleet-list-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.fleet-list-picks .pick-box {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.logbook-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
}

.logbook-downloads .takeon-btn {
  flex: 0 1 180px;
}

.logbook-tolerance {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #f4f7fb;
}

.logbook-tolerance label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.logbook-tolerance input {
  width: 120px;
  padding: 9px 10px;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  font: inherit;
}

.takeon-mechanics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.takeon-mechanics-title {
  font-weight: 700;
}

.takeon-mechanics [data-mechanic-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.takeon-mechanic {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.takeon-mechanic:has(input:checked) {
  border-color: #ee5a22;
  background: #fff3ec;
}

.takeon-btn.danger {
  background: #b3261e;
}

.takeon-btn:disabled {
  opacity: 0.55;
}

.takeon-chip.cancelled {
  background: #7a8594;
}

.app-confirm-wrap {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 22, 40, 0.6);
}

.app-confirm {
  width: 100%;
  max-width: 400px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: #1c2633;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.app-confirm h3 {
  margin: 0 0 10px;
}

.app-confirm-body p {
  margin: 0 0 8px;
}

.app-confirm-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.removal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #f6f7f9;
}

.removal-pick {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #1c2633;
  text-align: left;
  font: inherit;
}

.removal-pick small {
  display: block;
  margin-top: 2px;
}

.removal-pick.chosen {
  border-color: #ee5a22;
  background: #fff3ec;
}

.removal-pick:disabled {
  opacity: 0.5;
}

.removal-row small {
  display: block;
}

.removal-row .link-btn {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #b3261e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.removal-review {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #f3c2a8;
  border-radius: 12px;
  background: #fff6f1;
}

.removal-review p {
  margin: 0 0 4px;
}

.takeon-na {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.takeon-na-note {
  color: #b23b12;
  font-size: 13px;
  font-weight: 700;
}

.takeon-submit {
  width: 100%;
  font-size: 17px;
}

.takeon-open,
.takeon-done {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fff6f1;
  border: 1px solid #f3c2a8;
}

.takeon-done.ok {
  background: #eef8f1;
  border-color: #a9dbbb;
}

.takeon-open h3,
.takeon-done h3 {
  margin: 0 0 8px;
}

.takeon-open-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f3d6c6;
}

.takeon-open-item p {
  margin: 2px 0 0;
}

.takeon-open-item .takeon-btn {
  flex: 0 0 auto;
}

.takeon-check {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.takeon-check li {
  padding: 3px 0;
}

.takeon-check .yes {
  color: #1f7a45;
}

.takeon-check .no {
  color: #b23b12;
  font-weight: 700;
}

.takeon-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
  color: #1c2633;
  text-align: left;
  font: inherit;
}

.takeon-request-row small {
  display: block;
  margin-top: 2px;
}

.takeon-chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #7a8594;
}

.takeon-chip.pending {
  background: #ee5a22;
}

.takeon-chip.rejected {
  background: #b23b12;
}

.takeon-chip.approved {
  background: #2f9e5b;
}

.takeon-banner {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
}

.takeon-banner.pending {
  background: #ee5a22;
}

.takeon-banner.rejected {
  background: #b23b12;
}

.takeon-banner.approved {
  background: #2f9e5b;
}

.takeon-reason {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: #8a2a0c;
}

.takeon-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}

.takeon-hero img,
.takeon-hero-empty {
  width: 130px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.takeon-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f4;
  color: #7a8594;
  font-size: 13px;
  text-align: center;
}

.takeon-hero h2 {
  margin: 0 0 4px;
}

.takeon-hero p {
  margin: 0 0 2px;
}

.takeon-details {
  width: 100%;
  margin: 0 0 14px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.takeon-details th,
.takeon-details td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef0f4;
  text-align: left;
  vertical-align: top;
}

.takeon-details th {
  width: 45%;
  color: #4a5668;
  font-weight: 600;
}

.takeon-missing {
  color: #b23b12;
  font-weight: 700;
}

.takeon-allok {
  color: #1f7a45;
  font-weight: 700;
}

.takeon-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.takeon-doc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
  color: #1c2633;
  text-decoration: none;
}

.takeon-doc.missing {
  border-color: #f3c2a8;
  background: #fff6f1;
}

.takeon-doc img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.takeon-doc-na,
.takeon-doc-pdf,
.takeon-doc-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border-radius: 8px;
  background: #eef0f4;
  font-weight: 800;
}

.takeon-doc-missing {
  background: #fde3d6;
  color: #b23b12;
}

.takeon-doc-title {
  font-size: 13px;
  font-weight: 700;
}

.takeon-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dfe3ea;
}

.takeon-review label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.takeon-approve {
  background: #2f9e5b;
  font-size: 16px;
}

.takeon-cancel {
  width: 100%;
  margin-top: 8px;
}

.login-history {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.login-history th,
.login-history td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e8ee;
  text-align: left;
}

.login-history th {
  background: #123a6b;
  color: #fff;
  font-size: 14px;
}

.login-history td:last-child {
  white-space: nowrap;
}

.notify-steps {
  margin-top: 10px;
}

.notify-steps ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.notify-steps li {
  margin-bottom: 6px;
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
  color: #1c2633;
  text-align: left;
  font: inherit;
}

.notify-item.unread {
  border-color: #ee5a22;
  border-left-width: 5px;
  background: #fff6f1;
}

.notify-title {
  font-weight: 700;
}

.notify-body {
  font-size: 14px;
  color: #3a4656;
}

.notify-when {
  font-size: 12px;
  color: #7a8594;
}

.driver-lic-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6ebf2;
}

.driver-fleet-pick {
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

@media (max-width: 720px) {
  .driver-lic-row {
    grid-template-columns: 1fr;
  }
}

/* Admin client presentation */
.pres-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 70vh;
}

.pres-toolbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pres-toolbar h2 {
  margin: 0;
}

.pres-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.pres-count {
  font-weight: 700;
  color: #5d5650;
}

.pres-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px 24px 32px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(238, 90, 34, 0.22), transparent 55%),
    linear-gradient(145deg, #0b2748 0%, #123a6b 55%, #0a1f38 100%);
  color: #fff;
  min-height: 420px;
  box-shadow: 0 16px 40px rgba(11, 39, 72, 0.28);
}

.pres-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb089;
}

.pres-slide h3 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.15;
  color: #fff;
  max-width: 18ch;
}

.pres-body {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.pres-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pres-points li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  line-height: 1.35;
}

.pres-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ee5a22;
  transform: translateY(-50%);
}

.pres-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  opacity: 0.92;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pres-brand img {
  width: 36px;
  height: 36px;
}

.pres-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pres-nav > button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #0b2748;
  color: #fff;
  font-weight: 800;
}

.pres-nav > button:disabled {
  opacity: 0.35;
}

.pres-dots {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pres-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfc4b6;
}

.pres-dot.active {
  background: #ee5a22;
  transform: scale(1.25);
}

.pres-shell.pres-fs,
.pres-shell:fullscreen {
  background: #0a1f38;
  padding: 24px;
  min-height: 100vh;
  box-sizing: border-box;
}

.pres-shell:fullscreen .pres-slide,
.pres-shell.pres-fs .pres-slide {
  min-height: calc(100vh - 160px);
}

.pres-shell:fullscreen .pres-toolbar h2,
.pres-shell.pres-fs .pres-toolbar h2,
.pres-shell:fullscreen .pres-toolbar .tab-note,
.pres-shell.pres-fs .pres-toolbar .tab-note,
.pres-shell:fullscreen .pres-count,
.pres-shell.pres-fs .pres-count {
  color: #fff;
}

.pres-shell:fullscreen .pres-toolbar .tab-note,
.pres-shell.pres-fs .pres-toolbar .tab-note {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .pres-slide {
    padding: 22px 16px 26px;
    min-height: 360px;
  }
  .pres-slide h3 {
    max-width: none;
  }
}
