/* ── VINUT Carrier Portal ──────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --navy: #0F1B2E;
  --navy2: #162544;
  --orange: #FF4D1A;
  --orange2: #FF6B35;
  --lime: #C6FF2B;
  --bg: #F0F2F5;
  --success: #0EAD69;
  --warn: #E8A317;
  --danger: #E5484D;
  --ink: #0F1B2E;
  --muted: #6B7A90;
  --line: #E2E8F0;
  --card: #FFFFFF;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit
}

/* ── Top bar ─────────────────────────────────────────────────────── */
.topbar {
  height: 56px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--orange);
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  color: #fff
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .6;
  font-weight: 600;
  margin-top: -2px
}

.topbar-nav {
  margin-left: 28px;
  display: flex;
  gap: 4px
}

.topbar-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: .7;
  color: #fff
}

.topbar-nav a.active {
  background: #ffffff14;
  opacity: 1
}

.topbar-nav a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .35
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px
}

.carrier-pill {
  background: #ffffff14;
  border: 1px solid #ffffff22;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff
}

.carrier-pill b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  border: 0
}

.account-menu {
  position: relative
}

.account-menu summary::-webkit-details-marker {
  display: none
}

.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(15, 27, 46, .14);
  display: flex;
  flex-direction: column;
  gap: 6px
}

.account-popover strong {
  font-size: 13px;
  color: var(--ink)
}

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

.account-popover button {
  margin-top: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer
}

.account-popover button:hover {
  background: var(--bg)
}

/* ── Shell ───────────────────────────────────────────────────────── */
.portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px)
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow: auto
}

.side-label {
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted);
  margin: 18px 0 8px
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155
}

.side-link.active {
  background: var(--navy);
  color: #fff
}

.side-link .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: #F1F5F9;
  flex-shrink: 0
}

.side-link.active .ico {
  background: var(--orange);
  color: #fff
}

.side-link.muted-link {
  opacity: .55
}

.side-link.muted-link:hover {
  opacity: 1;
  background: #F8FAFC
}

.kpi-mini {
  margin-top: 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 14px
}

.kpi-mini-label {
  font-size: 10px;
  letter-spacing: .12em;
  opacity: .7
}

.kpi-mini h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  line-height: 1;
  margin-top: 4px
}

.kpi-mini p {
  font-size: 11px;
  opacity: .7;
  margin-top: 4px
}

.kpi-mini .bar {
  height: 6px;
  background: #ffffff22;
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden
}

.kpi-mini .bar i {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--lime);
  border-radius: 999px
}

.main-content {
  padding: 22px 22px 40px;
  min-width: 0
}

/* ── Page head ───────────────────────────────────────────────────── */
.page-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px
}

.page-head h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  line-height: .95;
  letter-spacing: -.02em
}

.page-head h1 span {
  color: var(--orange)
}

.page-head p {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  margin-top: 6px
}

.page-actions {
  margin-left: auto;
  display: flex;
  gap: 8px
}

.btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff
}

.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff
}

.btn.ghost {
  background: transparent
}

.btn:disabled {
  opacity: .45;
  pointer-events: none
}

.btn:hover {
  filter: brightness(.98)
}

/* ── KPI row ─────────────────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 27, 46, .09);
  border-color: var(--orange-border, #FDBA74);
}

a.kpi.kpi-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.kpi::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  opacity: .7
}

.kpi label {
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted)
}

.kpi strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  display: block;
  margin-top: 4px
}

.kpi strong em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  margin-left: 6px
}

.kpi .trend {
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px
}

.trend.up {
  background: #E6F7ED;
  color: #0E7A4B
}

.trend.warn {
  background: #FFF4D6;
  color: #8A6D00
}

.kpi.accent {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy)
}

.kpi.accent label {
  color: #9AB0D0
}

.kpi.accent strong {
  color: #fff
}

.kpi.accent .trend {
  background: #ffffff14;
  color: #C6FF2B
}

/* ── Filters ─────────────────────────────────────────────────────── */
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px
}

.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--ink)
}

.search input::placeholder {
  color: var(--muted)
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink)
}

.chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy)
}

.chip.dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle
}

.chip.warn::before {
  background: var(--warn)
}

.chip.danger::before {
  background: var(--danger)
}

.segment {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px
}

.segment button,
.segment a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink)
}

.segment button.active,
.segment a.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

/* ── Table ───────────────────────────────────────────────────────── */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden
}

.table-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap
}

.table-head h3 {
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 800
}

.table-head small {
  color: var(--muted);
  font-size: 12px
}

.table-head .right {
  margin-left: auto;
  display: flex;
  gap: 8px
}

.table-scroll {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

thead th {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: left;
  padding: 10px 14px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid #EEF2F7;
  vertical-align: top
}

tbody tr:hover {
  background: #F8FAFF
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .02em
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid transparent;
  white-space: nowrap
}

.badge.ok {
  background: #E6F7ED;
  color: #0E7A4B;
  border-color: #BFE8CD
}

.badge.hold {
  background: #FFF4D6;
  color: #7A5D00;
  border-color: #F5D98A
}

.badge.fail {
  background: #FFE2E2;
  color: #9B1C1C;
  border-color: #F5B5B5
}

.badge.neutral {
  background: #EEF2F7;
  color: #334155;
  border-color: #E2E8F0
}

.badge.st-pending {
  background: #F1F5F9;
  color: #475569;
  border-color: #CBD5E1
}

.badge.st-assigned {
  background: #DBEAFE;
  color: #1D4ED8;
  border-color: #93C5FD
}

.badge.st-accepted {
  background: #D1FAE5;
  color: #047857;
  border-color: #6EE7B7
}

.badge.st-driver {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #7DD3FC
}

.badge.st-eir-submitted {
  background: #FFEDD5;
  color: #C2410C;
  border-color: #FDBA74
}

.badge.st-eir-verified {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC
}

.badge.st-to-factory {
  background: #EDE9FE;
  color: #6D28D9;
  border-color: #C4B5FD
}

.badge.st-gate-in {
  background: #CCFBF1;
  color: #0F766E;
  border-color: #5EEAD4
}

.badge.st-sealed {
  background: #ECFCCB;
  color: #4D7C0F;
  border-color: #BEF264
}

.badge.st-gate-out {
  background: #DDF4FF;
  color: #0F3A5C;
  border-color: #7DD3FC
}

.badge.st-cancelled {
  background: #F3F4F6;
  color: #111827;
  border-color: #9CA3AF
}

.badge.st-exception {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5
}

.cont-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent
}

.cont-pill i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 10px
}

.cont-pill.cont-size-20 {
  background: #155D3A;
  border-color: #197044
}

.cont-pill.cont-size-20 i {
  background: #C6FF2B;
  color: #123D2A
}

.cont-pill.cont-size-40 {
  background: #075985;
  border-color: #0E7490
}

.cont-pill.cont-size-40 i {
  background: #BAE6FD;
  color: #0C4A6E
}

.cont-pill.cont-size-45 {
  background: #5B2A86;
  border-color: #7C3AED
}

.cont-pill.cont-size-45 i {
  background: #E9D5FF;
  color: #581C87
}

.cont-pill.cont-size-other {
  background: #334155;
  border-color: #475569
}

.cont-pill.cont-size-other i {
  background: #E2E8F0;
  color: #334155
}

.cont-type {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #F8FAFC;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle
}

.cont-type.cont-type-dry {
  border-color: #BBF7D0;
  background: #F0FDF4;
  color: #166534
}

.cont-type.cont-type-hc {
  border-color: #BAE6FD;
  background: #F0F9FF;
  color: #075985
}

.cont-type.cont-type-rf {
  border-color: #C4B5FD;
  background: #F5F3FF;
  color: #5B21B6
}

.cont-type.cont-type-ot {
  border-color: #FDBA74;
  background: #FFF7ED;
  color: #9A3412
}

.cont-type.cont-type-other {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #475569
}

.row-title {
  font-weight: 700
}

.row-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px
}

.evidence {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center
}

.ev {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #94A3B8;
  font-weight: 800;
  letter-spacing: .02em;
  transition: all .15s ease
}

.ev.ok {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #15803D;
  box-shadow: 0 1px 2px rgba(22, 101, 52, .04)
}

.ev.ok::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #16A34A;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 3px rgba(22, 163, 74, .3)
}

.ev.missing {
  border-style: dashed;
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #94A3B8
}

.ev:hover {
  transform: translateY(-1px)
}

.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer
}

.icon-btn:hover {
  background: var(--bg)
}

.row-select {
  width: 16px;
  height: 16px;
  accent-color: var(--navy)
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #F8FAFC;
  flex-wrap: wrap
}

.pager-info {
  font-size: 12px;
  color: var(--muted)
}

.pager-actions {
  display: flex;
  gap: 8px
}

/* ── States ──────────────────────────────────────────────────────── */
.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted)
}

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

.alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid transparent
}

.alert-error {
  background: #FFE2E2;
  border-color: #F5B5B5;
  color: #7A1A1A
}

.alert-success {
  background: #E6F7ED;
  border-color: #BFE8CD;
  color: #0E7A4B
}

/* ── Drawer ──────────────────────────────────────────────────────── */
.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30
}

.drawer.open {
  display: block
}

.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 46, .45);
  backdrop-filter: blur(4px)
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(520px, 92vw);
  background: #fff;
  overflow: auto;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column
}

.drawer-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2
}

.drawer-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px
}

.drawer-body {
  padding: 16px;
  flex: 1
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.field {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 0
}

.field label {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700
}

.field b {
  font-size: 13px;
  display: block;
  margin-top: 4px;
  word-break: break-word
}

.timeline {
  margin-top: 16px;
  border-left: 2px solid var(--line);
  padding-left: 14px;
  display: grid;
  gap: 14px
}

.tl {
  position: relative
}

.tl::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  position: absolute;
  left: -20px;
  top: 4px
}

.tl.done::before {
  background: var(--success);
  border-color: var(--success)
}

.tl.fail::before {
  background: var(--danger);
  border-color: var(--danger)
}

.tl h4 {
  font-size: 13px
}

.tl p {
  font-size: 12px;
  color: var(--muted)
}

.depot-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #F8FAFC;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end
}

.depot-block h4 {
  font-size: 12px;
  letter-spacing: .08em
}

.depot-block select {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  width: 100%
}

.depot-block select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy)
}

.depot-block .btn {
  justify-self: end
}

.qr-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #F8FAFC;
  display: grid;
  gap: 8px
}

.qr-block h4 {
  font-size: 12px;
  letter-spacing: .08em
}

.qr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.fleet-dialog {
  border: none;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
  max-width: 560px;
  width: calc(100% - 32px);
  margin: auto
}

.fleet-dialog::backdrop {
  background: rgba(15, 27, 46, .45)
}

.fleet-dialog h3 {
  margin-top: 0;
  font-family: 'Bricolage Grotesque', sans-serif
}

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

.fleet-form-grid .span-2 {
  grid-column: 1 / -1
}

.fleet-form-grid label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px
}

.fleet-form-grid input,
.fleet-form-grid textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  resize: vertical
}

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

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

  .fleet-form-grid .span-2 {
    grid-column: auto
  }
}

/* ── Modal ───────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open {
  display: flex !important;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 46, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.modal-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(560px, 94vw);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  z-index: 10;
  margin: auto !important;
  box-shadow: 0 25px 60px -12px rgba(15, 27, 46, .35), 0 0 0 1px rgba(226, 232, 240, .8);
  animation: fleetModalPop .22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-head {
  padding: 18px 18px 0
}

.modal-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px
}

.modal-body {
  padding: 16px;
  display: grid;
  gap: 10px
}

.modal-foot {
  padding: 12px 16px;
  background: #F8FAFC;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.form-field {
  display: grid;
  gap: 6px
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink)
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  font-family: inherit
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy)
}

.form-alert {
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFE2E2;
  border: 1px solid #F5B5B5;
  color: #7A1A1A;
  font-size: 13px
}

/* ── Login ───────────────────────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(900px 500px at 10% 0%, #FFECD2 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #D6E4FF 0%, transparent 60%), var(--bg)
}

.login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch
}

.login-intro {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden
}

.login-intro::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 77, 26, .45), transparent 65%)
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .02em
}

.login-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .6;
  margin-top: -2px
}

.login-copy h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px;
  line-height: .95;
  letter-spacing: -.02em
}

.login-copy h1 em {
  font-style: normal;
  color: var(--lime)
}

.login-copy p {
  font-size: 13px;
  opacity: .85;
  margin-top: 10px;
  max-width: 36ch
}

.login-route {
  height: 64px;
  border-radius: 999px;
  background: #ffffff12;
  border: 1px solid #ffffff18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px
}

.login-route span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  display: block
}

.login-route i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  margin: 0 8px
}

.login-route b {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-size: 14px
}

.login-note {
  font-size: 11px;
  opacity: .6
}

.login-panel {
  display: grid;
  place-items: center
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(15, 27, 46, .08)
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted)
}

.login-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  line-height: 1
}

.login-subtitle {
  font-size: 13px;
  color: var(--muted)
}

.login-submit {
  width: 100%;
  justify-content: center;
  padding-block: 12px
}

.login-help {
  font-size: 11px;
  color: var(--muted);
  text-align: center
}

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  max-width: min(92vw, 560px);
  text-align: center
}

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

/* ── Responsive ──────────────────────────────────────────────────── */
@media(max-width:980px) {
  .portal-shell {
    grid-template-columns: 1fr
  }

  .sidebar {
    display: none
  }

  .kpis {
    grid-template-columns: 1fr 1fr
  }

  .topbar-nav {
    display: none
  }

  .login-shell {
    grid-template-columns: 1fr
  }
}

@media(max-width:560px) {
  .kpis {
    grid-template-columns: 1fr
  }

  .page-head h1 {
    font-size: 26px
  }

  table {
    font-size: 12px
  }

  .login-copy h1 {
    font-size: 28px
  }
}

/* === EVIDENCE CARDS & LIGHTBOX === */
.evidence-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 6px
}

.evidence-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 27, 46, .04);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease
}

.evidence-card:hover {
  box-shadow: 0 4px 12px rgba(15, 27, 46, .08)
}

.evidence-card-header {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
  background: #FAFCFE
}

.evidence-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.evidence-size {
  font-size: 10px;
  color: var(--muted);
  font-family: monospace
}

.evidence-card-thumb {
  height: 130px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden
}

.evidence-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease
}

.evidence-card-thumb:hover img {
  transform: scale(1.04)
}

.thumb-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 27, 46, .75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .15s ease
}

.evidence-card-thumb:hover .thumb-zoom-hint {
  opacity: 1
}

.evidence-pdf-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--navy)
}

.evidence-card-body {
  padding: 9px 10px;
  font-size: 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.evidence-filename {
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block
}

.evidence-card-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #F1F5F9;
  background: #FAFCFE
}

.carrier-img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 27, 46, .75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px
}

.carrier-img-modal-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25)
}

.carrier-img-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFE
}

.carrier-img-modal-body {
  padding: 14px;
  text-align: center;
  overflow: auto;
  max-height: calc(90vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F1B2E
}

.carrier-img-modal-body img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px
}

/* ── Camera Permission Modal & Banner for Mobile ── */
.carrier-cam-banner {
  background: #FFF7ED;
  border: 1.5px solid #FDBA74;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.carrier-cam-banner-content b {
  font-size: 12px;
  color: #9A3412;
  display: block;
}

.carrier-cam-banner-content p {
  font-size: 11px;
  color: #C2410C;
  margin-top: 2px;
}

/* ── Toast Notification ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F1B2E;
  color: #fff;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 27, 46, 0.28);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  z-index: 10000;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 440px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Guide Modal Card Styles ────────────────────────────────────── */
.modal-guide-card {
  width: min(720px, 94vw);
  max-height: 88vh;
}

.modal-guide-card .modal-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFE;
}

.modal-guide-card .modal-head h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

.modal-guide-card .modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  gap: 16px;
}

.guide-notice {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.guide-notice.warn {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.guide-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.guide-step-item {
  background: #F8FAFC;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guide-step-badge {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-info {
  flex: 1;
}

.guide-step-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
}

.guide-step-info p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.guide-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.guide-checklist li {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.guide-checklist li::before {
  content: "✔";
  color: var(--success);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── Fleet Enhanced UI & Modals ──────────────────────────────────── */
.fleet-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.fleet-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.fleet-stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .02);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.fleet-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  transition: opacity .2s;
}

.fleet-stat-card.stat-total::before {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.fleet-stat-card.stat-active::before {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.fleet-stat-card.stat-warn::before {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.fleet-stat-card.stat-inactive::before {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.fleet-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, .1), 0 4px 10px -2px rgba(15, 23, 42, .04);
  border-color: #CBD5E1;
}

.fleet-stat-card.is-active {
  border-color: #0284C7;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 2px #0284C7, 0 10px 24px -4px rgba(2, 132, 199, .15);
}

.fleet-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .06);
  transition: transform .2s ease;
}

.fleet-stat-card:hover .fleet-stat-icon {
  transform: scale(1.08);
}

.fleet-stat-card .val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.fleet-stat-card .lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
}

/* ── Fleet Toolbar & Search ─────────────────────────────────────── */
.fleet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .02);
}

.fleet-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.fleet-search-box {
  position: relative;
  min-width: 260px;
  max-width: 380px;
  flex: 1;
}

.fleet-search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 11px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: all .18s ease;
}

.fleet-search-box input:focus {
  background: #fff;
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .15);
}

.fleet-search-box .search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
}

.fleet-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fleet-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

.fleet-chip:hover {
  background: #E2E8F0;
  color: var(--navy);
}

.fleet-chip.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15, 27, 46, .2);
}

.fleet-counter-pill {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  background: #F8FAFC;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
}

/* ── License Plates (Vietnamese Transport Style) ─────────────────── */
.fleet-plate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #FEF08A 0%, #FDE047 100%);
  border: 1.5px solid #CA8A04;
  color: #713F12;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(202, 138, 4, .2), inset 0 1px 0 rgba(255, 255, 255, .6);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .06em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.fleet-plate-pill.trailer-mode {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1.5px solid #94A3B8;
  color: #0F172A;
  box-shadow: 0 2px 5px rgba(100, 116, 139, .15), inset 0 1px 0 rgba(255, 255, 255, 1);
  text-shadow: none;
}

.fleet-plate-pill .plate-bolt {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94A3B8;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4);
}

.fleet-depot-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px solid #BFDBFE;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 58, 138, .1);
}

/* ── Modern Action Buttons in Table ─────────────────────────────── */
.fleet-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid #BAE6FD;
  background: #F0F9FF;
  color: #0284C7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-btn-edit:hover {
  background: #0284C7;
  border-color: #0284C7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, .3);
  transform: translateY(-1px);
}

.fleet-btn-edit:active {
  transform: scale(0.96);
}

.fleet-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid #FECDD3;
  background: #FFF1F2;
  color: #E11D48;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-btn-toggle:hover {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  border-color: #BE123C;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, .32);
  transform: translateY(-1px);
}

.fleet-btn-toggle:active {
  transform: scale(0.96);
}

.fleet-btn-activate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid #BBF7D0;
  background: #F0FDF4;
  color: #15803D;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-btn-activate:hover {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  border-color: #15803D;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .32);
  transform: translateY(-1px);
}

.fleet-btn-activate:active {
  transform: scale(0.96);
}

/* ── Table Row Polish ────────────────────────────────────────────── */
.table-wrap table tbody tr {
  transition: background-color .15s ease;
}

.table-wrap table tbody tr:hover {
  background-color: #F8FAFC !important;
}

.table-wrap table tbody td {
  padding: 13px 14px;
}

/* ── Modal v2 System ─────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex !important;
}

.modal .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fleetFadeIn .2s ease forwards;
}

@keyframes fleetFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fleet-modal-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: auto !important;
  z-index: 10;
  width: 90%;
  max-width: 540px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 60px -12px rgba(15, 27, 46, .35), 0 0 0 1px rgba(226, 232, 240, .8);
  overflow: hidden;
  animation: fleetModalPop .22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fleetModalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fleet-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid #F1F5F9;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fleet-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fleet-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.fleet-modal-head h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}

.fleet-modal-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.fleet-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #64748B;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}

.fleet-modal-close:hover {
  background: #F1F5F9;
  color: var(--ink);
  border-color: #CBD5E1;
}

.fleet-form-body {
  padding: 20px 24px;
  display: grid;
  gap: 14px;
  max-height: 72vh;
  overflow-y: auto;
}

.fleet-field {
  display: grid;
  gap: 6px;
}

.fleet-field label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fleet-field label .req {
  color: #E11D48;
  font-size: 13px;
}

.fleet-field input,
.fleet-field select,
.fleet-field textarea {
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  transition: all .15s;
  font-family: inherit;
}

.fleet-field input:focus,
.fleet-field select:focus,
.fleet-field textarea:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, .15);
  outline: none;
}

.fleet-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fleet-date-wrap input.fleet-date-mask {
  padding-right: 38px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .02em;
}

.fleet-date-wrap .fleet-date-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #64748B;
  transition: all .15s ease;
  user-select: none;
}

.fleet-date-wrap .fleet-date-btn:hover {
  background: #E2E8F0;
  color: #0284C7;
}

.fleet-date-wrap input[type="date"].fleet-hidden-picker {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

.fleet-toggle-card {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #F1F5F9;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}

.fleet-toggle-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.fleet-toggle-card.danger-mode {
  background: #FFF1F2;
  border-color: #FECDD3;
}

.fleet-toggle-card.danger-mode label {
  color: #9F1239;
}

.fleet-modal-foot {
  padding: 14px 24px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.fleet-btn-cancel {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .15s;
}

.fleet-btn-cancel:hover {
  background: #F1F5F9;
  color: var(--ink);
}

.fleet-btn-submit {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1E3A8A 0%, #0284C7 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(2, 132, 199, .3);
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-btn-submit:hover {
  box-shadow: 0 6px 16px rgba(2, 132, 199, .45);
  transform: translateY(-1px);
}

/* ── Fleet Confirmation Modal (Centric & High-End) ───────────────── */
.fleet-confirm-card {
  max-width: 440px !important;
  border-radius: 24px !important;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 30px 70px -10px rgba(15, 27, 46, .45), 0 0 0 1px rgba(255, 255, 255, .8) inset !important;
  border: 1px solid rgba(226, 232, 240, .8);
}

.fleet-confirm-body {
  padding: 30px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fleet-confirm-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 18px;
  transition: transform .2s ease;
  animation: fleetIconFloat 2.5s ease-in-out infinite alternate;
}

@keyframes fleetIconFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.fleet-confirm-icon-wrap.mode-danger {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border: 1.5px solid #FECDD3;
  color: #E11D48;
  box-shadow: 0 10px 24px -4px rgba(225, 29, 72, .25);
}

.fleet-confirm-icon-wrap.mode-success {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1.5px solid #BBF7D0;
  color: #16A34A;
  box-shadow: 0 10px 24px -4px rgba(22, 163, 74, .25);
}

.fleet-confirm-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.fleet-confirm-body p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}

.fleet-confirm-body p b {
  color: #0F172A;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid #E2E8F0;
  letter-spacing: .02em;
}

.fleet-confirm-subnote {
  width: 100%;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #64748B;
  line-height: 1.5;
}

.fleet-confirm-actions {
  padding: 16px 26px 24px;
  background: #FAFBFD;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.fleet-confirm-actions button {
  flex: 1;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.fleet-btn-confirm-danger {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(225, 29, 72, .35);
}

.fleet-btn-confirm-danger:hover {
  box-shadow: 0 6px 18px rgba(225, 29, 72, .5);
  transform: translateY(-1px);
}

.fleet-btn-confirm-danger:active {
  transform: scale(0.97);
}

.fleet-btn-confirm-success {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}

.fleet-btn-confirm-success:hover {
  box-shadow: 0 6px 18px rgba(22, 163, 74, .5);
  transform: translateY(-1px);
}

.fleet-btn-confirm-success:active {
  transform: scale(0.97);
}