/* assets/styles.css — small extras */
:root {
  --brand: #0d6efd;
  --taxi-ink: #172033;
  --taxi-muted: #667085;
  --taxi-line: rgba(33, 37, 41, .1);
  --taxi-panel: #fff;
  --taxi-soft: #f7fbff;
}

html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, .08), transparent 32rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

a,
p,
span,
small,
strong,
td,
th,
label,
input,
textarea,
select,
.card,
.card-body,
.alert,
.modal-content,
.dropdown-menu,
.btn {
  overflow-wrap: anywhere;
}

.container,
.container-fluid,
.row,
[class^="col-"],
[class*=" col-"],
.card,
.card-body,
.modal,
.modal-dialog,
.modal-content,
.table-responsive,
.dashboard-grid,
.dashboard-main,
.dashboard-sidebar,
.schedule-panel,
.schedule-board {
  min-width: 0;
  max-width: 100%;
}

.btn {
  white-space: normal;
  line-height: 1.2;
}

.form-control,
.form-select,
textarea,
input,
select {
  max-width: 100%;
  min-width: 0;
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  max-width: 100%;
}

.navbar .nav-link {
  font-weight: 800;
}

.mobile-quick-nav {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 1030;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  padding: .4rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(17, 24, 39, .94);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
  backdrop-filter: blur(14px);
}

.mobile-quick-nav:has(a:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-quick-nav a {
  display: grid;
  gap: .05rem;
  min-height: 50px;
  align-content: center;
  border-radius: 14px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.mobile-quick-nav a:focus,
.mobile-quick-nav a:hover {
  background: rgba(255, 255, 255, .12);
}

.mobile-quick-nav span {
  font-size: .88rem;
  font-weight: 900;
}

.mobile-quick-nav small {
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 800;
}

.driver-start-panel,
.my-shift-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--taxi-line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.driver-start-copy h1,
.my-shift-panel h2 {
  margin: .2rem 0 .35rem;
  color: var(--taxi-ink);
  font-weight: 950;
  letter-spacing: -.03em;
}

.driver-start-copy h1 {
  max-width: 760px;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.02;
}

.driver-start-copy p,
.my-shift-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--taxi-muted);
  font-size: 1rem;
  font-weight: 700;
}

.driver-kicker {
  display: inline-flex;
  width: fit-content;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.driver-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.driver-step {
  display: grid;
  gap: .25rem;
  min-height: 120px;
  padding: .85rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 15px;
  background: #fff;
}

.driver-step strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  font-weight: 950;
}

.driver-step span {
  color: var(--taxi-ink);
  font-size: 1rem;
  font-weight: 950;
}

.driver-step small {
  color: var(--taxi-muted);
  font-weight: 750;
}

.my-shift-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #eefaf3 100%);
}

.my-shift-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.my-shift-item {
  display: grid;
  gap: .15rem;
  min-width: 160px;
  padding: .75rem .85rem;
  border: 1px solid rgba(25, 135, 84, .22);
  border-radius: 14px;
  background: #fff;
  color: var(--taxi-ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.my-shift-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-shift-item span {
  color: #137348;
  font-weight: 950;
}
.hero {
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
}
.login-hero {
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
}
.password-policy-note {
  padding: .65rem .75rem;
  border: 1px solid rgba(13, 110, 253, .16);
  border-radius: 10px;
  background: #f7fbff;
  color: #5c667a;
  font-size: .9rem;
  font-weight: 700;
}
@media (min-width: 992px) {
  .login-hero {
    height: 100%;
    min-height: 360px;
  }
}
.table-sticky thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.badge-dot { display:inline-flex; align-items:center; gap:.4rem; }
.badge-dot:before { content:""; width:.6rem; height:.6rem; border-radius:50%; background: currentColor; display:inline-block; }
.card-glow { box-shadow: 0 10px 30px rgba(13,110,253,.15); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "side"
    "main";
  gap: 1rem;
  align-items: start;
}

.dashboard-main {
  grid-area: main;
  min-width: 0;
}

.dashboard-sidebar {
  grid-area: side;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.dashboard-card {
  width: 100%;
}

.dashboard-date-form {
  margin-left: .375rem;
}

.booking-section-label {
  margin-bottom: .45rem;
  color: #344054;
  font-weight: 700;
  font-size: .95rem;
}

.booking-car-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  max-height: 430px;
  overflow: auto;
  padding-right: .15rem;
}

.booking-car-option {
  position: relative;
  display: grid;
  gap: .35rem;
  padding: .85rem;
  border: 1px solid rgba(33, 37, 41, .12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}

.booking-car-option:hover,
.booking-car-option:focus-within {
  border-color: rgba(13, 110, 253, .38);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.booking-car-option:has(.booking-car-radio:checked),
.booking-car-option.is-selected {
  border-color: #0d6efd;
  background: #f5f9ff;
  box-shadow: 0 12px 28px rgba(13, 110, 253, .16);
}

.booking-car-radio {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.booking-car-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}

.booking-car-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #172033;
  font-weight: 800;
}

.booking-car-name > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-car-reg {
  width: fit-content;
  padding: .18rem .48rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.booking-car-summary {
  color: #667085;
  font-size: .88rem;
}

.booking-car-timeline {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.booking-car-timeline > span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #0d6efd;
}

.booking-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.booking-presets .btn {
  min-height: 36px;
  padding-left: .35rem;
  padding-right: .35rem;
  font-weight: 700;
}

.availability-panel {
  padding: .9rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 12px;
  background: #f7fbff;
}

.availability-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.availability-kicker {
  margin-bottom: .15rem;
  color: #0b5ed7;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.availability-results {
  display: grid;
  gap: .65rem;
  margin-top: .8rem;
}

.availability-status,
.availability-summary,
.availability-empty {
  padding: .65rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
}

.availability-status {
  border: 1px solid rgba(13, 110, 253, .18);
  background: #eef6ff;
  color: #0b5ed7;
}

.availability-summary {
  border: 1px solid rgba(25, 135, 84, .2);
  background: #eefaf3;
  color: #137348;
}

.availability-empty {
  border: 1px solid rgba(108, 117, 125, .2);
  background: #fff;
  color: #5c667a;
}

.availability-empty.is-error {
  border-color: rgba(220, 53, 69, .28);
  background: #fff5f6;
  color: #b4232f;
}

.available-car-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}

.available-car-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 58px;
  padding: .7rem .75rem;
  border: 1px solid rgba(33, 37, 41, .1);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.available-car-card:hover,
.available-car-card:focus {
  border-color: rgba(13, 110, 253, .38);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.available-car-card strong,
.available-car-card small {
  display: block;
  min-width: 0;
}

.available-car-card strong {
  color: #172033;
  font-size: .94rem;
}

.available-car-card small {
  width: fit-content;
  margin-top: .18rem;
  padding: .12rem .42rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.available-car-action {
  flex: 0 0 auto;
  padding: .32rem .58rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0b5ed7;
  font-size: .82rem;
  font-weight: 800;
}

.availability-shell {
  display: grid;
  gap: 1rem;
}

.availability-page-hero,
.availability-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.availability-page-hero h1 {
  margin: 0 0 .35rem;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 900;
}

.availability-page-hero p {
  max-width: 760px;
  margin: 0;
  color: #667085;
}

.availability-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
}

.car-view-tabs {
  display: inline-flex;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 999px;
  background: #f8fafc;
}

.car-view-tabs a {
  padding: .45rem .85rem;
  border-radius: 999px;
  color: #344054;
  font-weight: 800;
  text-decoration: none;
}

.car-view-tabs a.is-active {
  background: #0d6efd;
  color: #fff;
}

.availability-period-title {
  color: #172033;
  font-weight: 900;
}

.fleet-week-card-board {
  display: grid;
  gap: .95rem;
}

.fleet-car-week-card {
  display: grid;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.fleet-car-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.fleet-car-week-head h2 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
}

.fleet-car-week-head span {
  display: inline-flex;
  width: fit-content;
  margin-top: .25rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
}

.fleet-car-week-head span.is-assigned {
  background: #eefaf3;
  color: #137348;
}

.fleet-car-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: .65rem;
}

.fleet-day-inline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(33, 37, 41, .08);
}

.fleet-day-inline-head strong {
  color: #172033;
  font-size: .9rem;
  font-weight: 900;
}

.fleet-day-inline-head span {
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
}

.fleet-week-board {
  display: grid;
  gap: .65rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: thin;
}

.fleet-week-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(7, minmax(190px, 1fr));
  gap: .65rem;
  min-width: 1580px;
}

.fleet-week-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fleet-week-car-head,
.fleet-week-day-head,
.fleet-week-car,
.fleet-week-cell {
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.fleet-week-car-head,
.fleet-week-day-head {
  padding: .75rem;
  font-weight: 900;
}

.fleet-week-day-head {
  display: grid;
  gap: .15rem;
}

.fleet-week-day-head span {
  color: #667085;
  font-size: .82rem;
}

.fleet-week-day-head.is-today,
.fleet-week-cell.is-today {
  border-color: rgba(13, 110, 253, .5);
}

.fleet-week-car {
  display: grid;
  align-content: center;
  gap: .35rem;
  min-width: 0;
  padding: .85rem;
}

.fleet-week-car strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-week-car span {
  width: fit-content;
  padding: .16rem .46rem;
  border-radius: 999px;
  background: #f1f3f5;
  font-size: .86rem;
  font-weight: 800;
}

.fleet-week-cell {
  display: grid;
  align-content: start;
  gap: .6rem;
  min-height: 142px;
  min-width: 0;
  padding: .75rem;
}

.fleet-week-cell.is-free {
  background: #f3fbf6;
  border-color: rgba(25, 135, 84, .22);
}

.fleet-week-cell.has-bookings {
  background: #fffdfa;
  border-color: rgba(255, 193, 7, .3);
}

.fleet-week-cell.is-full {
  background: #fff5f6;
  border-color: rgba(220, 53, 69, .24);
}

.fleet-cell-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .18rem .45rem;
}

.fleet-cell-status strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
  font-size: .92rem;
  font-weight: 900;
}

.fleet-cell-status small {
  grid-column: 2;
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
}

.fleet-status-dot {
  width: .68rem;
  height: .68rem;
  border-radius: 999px;
  background: #198754;
}

.fleet-week-cell.has-bookings .fleet-status-dot,
.fleet-mobile-car.has-bookings em {
  background: #fff3cd;
  color: #8a5d00;
}

.fleet-week-cell.has-bookings .fleet-status-dot {
  background: #ffc107;
}

.fleet-week-cell.is-full .fleet-status-dot,
.fleet-mobile-car.is-full .fleet-status-dot {
  background: #dc3545;
}

.fleet-cell-section {
  display: grid;
  gap: .35rem;
}

.fleet-cell-section > span {
  color: #667085;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.fleet-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  min-width: 0;
}

.fleet-free-label,
.fleet-free-pill {
  color: #137348;
  font-weight: 900;
  font-size: .9rem;
}

.fleet-free-pill {
  width: fit-content;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #eefaf3;
  font-size: .8rem;
}

.fleet-book-link,
.fleet-day-link {
  width: fit-content;
  padding: .28rem .58rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0b5ed7;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.fleet-book-link {
  margin-top: auto;
}

.fleet-busy-pill {
  width: fit-content;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #fff1f2;
  color: #b4232f;
  font-size: .82rem;
  font-weight: 900;
}

.fleet-more-pill {
  width: fit-content;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #344054;
  font-size: .8rem;
  font-weight: 900;
}

.fleet-week-mobile {
  display: none;
}

.fleet-mobile-day {
  display: grid;
  gap: .8rem;
  padding: .85rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.fleet-mobile-day.is-today {
  border-color: rgba(13, 110, 253, .55);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12), 0 8px 24px rgba(15, 23, 42, .06);
}

.fleet-mobile-day-head {
  display: grid;
  gap: .55rem;
}

.fleet-mobile-day-head strong,
.fleet-mobile-day-head span {
  display: block;
}

.fleet-mobile-day-head strong {
  color: #172033;
  font-weight: 900;
}

.fleet-mobile-day-head span {
  color: #667085;
  font-size: .88rem;
  font-weight: 800;
}

.fleet-mobile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.fleet-mobile-stats span {
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #344054;
  font-size: .78rem;
  font-weight: 900;
}

.fleet-mobile-car-list {
  display: grid;
  gap: .55rem;
}

.fleet-mobile-car {
  display: grid;
  gap: .55rem;
  padding: .7rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 10px;
  background: #fff;
}

.fleet-mobile-car.is-free {
  background: #f3fbf6;
  border-color: rgba(25, 135, 84, .22);
}

.fleet-mobile-car.has-bookings {
  background: #fffdfa;
  border-color: rgba(255, 193, 7, .3);
}

.fleet-mobile-car.is-full {
  background: #fff5f6;
  border-color: rgba(220, 53, 69, .24);
}

.fleet-mobile-car header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}

.fleet-mobile-car header strong {
  display: block;
  color: #172033;
  font-size: .94rem;
  font-weight: 900;
}

.fleet-mobile-car header span {
  display: inline-block;
  margin-top: .18rem;
  padding: .14rem .42rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #667085;
  font-size: .76rem;
  font-weight: 900;
}

.fleet-mobile-car header span.is-assigned {
  background: #eefaf3;
  color: #137348;
}

.fleet-mobile-car em {
  flex: 0 0 auto;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #eefaf3;
  color: #137348;
  font-size: .78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fleet-mobile-car.is-full em {
  background: #fff1f2;
  color: #b4232f;
}

.fleet-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.fleet-month-day {
  display: grid;
  gap: .65rem;
  align-content: start;
  min-height: 220px;
  padding: .85rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.fleet-month-day.is-today {
  border-color: rgba(13, 110, 253, .55);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12), 0 8px 24px rgba(15, 23, 42, .06);
}

.fleet-month-day header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .65rem;
}

.fleet-month-day header strong,
.fleet-month-day header span {
  display: block;
}

.fleet-month-day header strong {
  color: #172033;
  font-weight: 900;
}

.fleet-month-day header span:not(.fleet-free-count) {
  color: #667085;
  font-size: .84rem;
  font-weight: 800;
}

.fleet-free-count {
  flex: 0 0 auto;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #eefaf3;
  color: #137348;
  font-size: .78rem;
  font-weight: 900;
}

.fleet-month-meta {
  color: #667085;
  font-size: .88rem;
  font-weight: 700;
}

.fleet-free-car-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.fleet-free-car-list span {
  max-width: 100%;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #344054;
  font-size: .78rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-free-car-list span.is-assigned {
  background: #eefaf3;
  color: #137348;
}

.fleet-month-empty {
  padding: .65rem;
  border: 1px dashed rgba(33, 37, 41, .18);
  border-radius: 10px;
  background: #f8f9fa;
  color: #667085;
  font-size: .88rem;
}

@media (max-width: 1199.98px) {
  .fleet-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-users-table-wrap {
    display: none;
  }

  .admin-user-card-list {
    display: grid;
  }
}

@media (max-width: 991.98px) {
  .availability-page-hero,
  .availability-period-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .availability-page-actions {
    justify-content: flex-start;
  }

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

  .fleet-car-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .availability-page-actions .btn,
  .availability-page-actions .car-view-tabs,
  .availability-page-actions .car-view-tabs a,
  .availability-period-bar .btn {
    width: 100%;
  }

  .availability-page-actions .car-view-tabs {
    border-radius: 12px;
  }

  .availability-page-actions .car-view-tabs a {
    text-align: center;
  }

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

  .fleet-car-week-card {
    padding: .75rem;
  }

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

  .fleet-week-cell {
    min-height: auto;
  }

  .fleet-mobile-car header {
    display: grid;
  }

  .fleet-mobile-car em {
    width: fit-content;
  }
}

.booking-conflict-warning {
  margin-top: .65rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(220, 53, 69, .28);
  border-radius: 10px;
  background: #fff5f6;
  color: #b4232f;
  font-size: .9rem;
  font-weight: 700;
}

.assignment-car-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.assignment-car-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .75rem;
  min-height: 78px;
  padding: .85rem;
  border: 1px solid rgba(33, 37, 41, .12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.assignment-car-card:hover,
.assignment-car-card:focus-within {
  border-color: rgba(13, 110, 253, .38);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.assignment-car-card:has(input:checked) {
  border-color: #0d6efd;
  background: #f5f9ff;
  box-shadow: 0 12px 28px rgba(13, 110, 253, .14);
}

.assignment-car-card .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.assignment-car-main {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: .2rem;
}

.assignment-car-card .badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.assignment-car-model {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
  font-weight: 800;
}

.assignment-car-reg {
  width: fit-content;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.admin-user-card-list {
  display: none;
}

.admin-users-table {
  table-layout: fixed;
}

.admin-users-table th,
.admin-users-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.admin-users-table th:nth-child(1) { width: 14%; }
.admin-users-table th:nth-child(2) { width: 19%; }
.admin-users-table th:nth-child(3) { width: 12%; }
.admin-users-table th:nth-child(4) { width: 9%; }
.admin-users-table th:nth-child(5) { width: 15%; }
.admin-users-table th:nth-child(6) { width: 15%; }
.admin-users-table th:nth-child(7) { width: 16%; }

.admin-user-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(33, 37, 41, .08);
  background: #fff;
}

.admin-user-card:last-child {
  border-bottom: 0;
}

.admin-user-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.admin-user-card-head h3 {
  margin: 0 0 .15rem;
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-user-card-head a {
  color: #0b5ed7;
  font-size: .9rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
}

.admin-user-facts > div {
  min-width: 0;
  padding: .7rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #f8fafc;
}

.admin-user-facts dt {
  margin-bottom: .25rem;
  color: #667085;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.admin-user-facts dd {
  display: grid;
  gap: .25rem;
  margin: 0;
  color: #172033;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-user-muted {
  color: #667085;
  font-size: .86rem;
  font-weight: 750;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.admin-user-actions form,
.admin-user-actions button {
  flex: 0 1 auto;
}

.admin-user-all-cars {
  align-self: center;
  padding: .28rem .5rem;
}

.schedule-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.schedule-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}

.vehicle-card {
  border: 1px solid rgba(33, 37, 41, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.vehicle-card.is-inactive {
  opacity: .72;
}

.vehicle-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(33, 37, 41, .08);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.vehicle-head-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem;
}

.vehicle-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
}

.vehicle-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-bookings {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .9rem 1rem 1rem;
}

.vehicle-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(33, 37, 41, .08);
  background: #fffdfa;
}

.vehicle-help span {
  color: #344054;
  font-weight: 850;
}

.booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: start;
  padding: .85rem;
  border: 1px solid rgba(13, 110, 253, .14);
  border-radius: 10px;
  background: #f8fbff;
}

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

.booking-time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, .24);
  background: #eaf3ff;
  color: #0b5ed7;
  font-weight: 800;
  font-size: .92rem;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  margin-top: .45rem;
  font-size: .92rem;
}

.booking-note {
  margin-top: .35rem;
  color: #5c667a;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.vehicle-empty,
.empty-assignment {
  padding: .9rem;
  border: 1px dashed rgba(33, 37, 41, .2);
  border-radius: 10px;
  background: #f8f9fa;
  color: #6c757d;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .schedule-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-car-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    grid-template-areas: "main side";
    gap: 1.25rem;
  }

}

@media (min-width: 1400px) {
  .schedule-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 575.98px) {
  body {
    padding-bottom: 5rem;
  }

  .mobile-quick-nav {
    display: grid;
  }

  main.container {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .driver-start-panel,
  .my-shift-panel {
    padding: .85rem;
    border-radius: 16px;
  }

  .driver-steps,
  .my-shift-panel {
    grid-template-columns: 1fr;
  }

  .driver-step {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: auto;
    align-items: center;
  }

  .driver-step small {
    grid-column: 2;
  }

  .my-shift-list {
    justify-content: stretch;
  }

  .my-shift-item {
    width: 100%;
  }

  .schedule-panel-head,
  .vehicle-card-head,
  .booking-card,
  .vehicle-help {
    align-items: stretch;
  }

  .schedule-panel-head,
  .vehicle-card-head,
  .vehicle-help {
    flex-direction: column;
  }

  .vehicle-help .btn {
    width: 100%;
  }

  .dashboard-date-form {
    width: 100%;
    margin-left: 0;
  }

  .dashboard-date-form input {
    min-width: 0;
  }

  .booking-card {
    grid-template-columns: 1fr;
  }

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

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

  .booking-actions .btn,
  .booking-actions form,
  .booking-actions form .btn {
    width: 100%;
  }

  .card-body {
    padding: .95rem;
  }

  .row {
    --bs-gutter-x: .75rem;
  }

  .d-flex.flex-wrap.gap-2,
  .d-flex.justify-content-end.flex-wrap.gap-2 {
    align-items: stretch;
  }

  .d-flex.flex-wrap.gap-2 > .btn,
  .d-flex.justify-content-end.flex-wrap.gap-2 > .btn,
  .d-flex.justify-content-end.flex-wrap.gap-2 > form,
  .d-flex.justify-content-end.flex-wrap.gap-2 > form .btn {
    width: 100%;
  }

  .table-responsive {
    border-radius: 12px;
  }

  .table-responsive > .table:not(.admin-users-table) {
    min-width: 620px;
  }

  .admin-user-card {
    padding: .85rem;
  }

  .admin-user-card-head,
  .admin-user-actions {
    display: grid;
  }

  .admin-user-facts {
    grid-template-columns: 1fr;
  }

  .admin-user-actions form,
  .admin-user-actions button,
  .admin-user-actions .btn {
    width: 100%;
  }
}

/* Bilikon små och snygga */
.car-ico {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: .4rem;
  flex: 0 0 auto;
  display: inline-block;
}

/* Bilcell: vänster (ikon+regnr) och höger (statusbadge) i perfekt linje */
.bil-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.bil-left {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}
.bil-status {
  white-space: nowrap;     /* håller badgen kompakt och linjerad */
}
