.logo img {
  margin: 0;
  width: 160px;
  height: auto;
}
.logo a {
  color: var(--text);
  text-decoration: none;
}

.content {
  background: var(--text);
}

.page-header {
  display: flex;
  align-items: baseline;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.page-header h2 {
  margin: 0;
  font-size: 18px;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 375px;
}
.muted {
  color: var(--muted);
}

.input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
  margin-left: 24px;
}
.input:focus {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25) inset;
}

.btn {
  background: #1a212b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  background: #111720;
}
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--bg);
  font-weight: 700;
  width: 180px;
}
.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  background: #0f151a;
  border-color: var(--border);
}
.btn-danger {
  background: var(--accent2);
  color: var(--bg);
}

.rentals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 2 columns */
  gap: 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
}
.rentals-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.empty-state.hidden,
.error-state.hidden {
  display: none;
}
.empty-card,
.error-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

/* Rental card */
.rental-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.rental-card:where(:hover, :focus-visible) {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25) inset;
  transform: translateY(-1px);
  outline: none;
}

/* Top row: customer docs + identity */

/* Two doc thumbs stacked (license + ID) */
.doc-thumbs {
  /* display: grid; */
  grid-row: 1 / span 3 !important;
}
.doc-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
}
.thumb-fallback {
  width: 100%;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #1a2130 0%, #101826 100%);
  color: #c9d4df;
  font-weight: 700;
  font-size: 12px;
}

.title {
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 1rem;
  color: white;
  font-size: 12px;
  line-height: 1.2;
  background-color: #f0f0f0;
  padding: 12px 0px;
  border-radius: 8px;
  margin-top: 12px;
}

.row {
  display: grid;
  text-align: center;
}
.k {
  color: #1a1a1a;
}
.v {
  color: #1a1a1a;
  font-weight: bold;
}

.border_rl {
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
}

/* Bottom row: dates + money + status + actions */
.rental-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-wrap: wrap;
  grid-row: 1;
}
.tag {
  font-size: 12px;
  line-height: 1;
  color: #1a1a1a;
}


.actions {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  text-align: center;
  grid-column: 1 / span 2;
  gap: 8px;
  margin-top: 12px;
}

/* Signature on card bottom */
.sig-wrap {
  border-top: 1px dashed var(--accent);
  padding-top: 8px;
}
.sig-img {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.rental-info {
  display: grid;
  align-items: center;
}

/* Status badge */
.status-badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1;
  justify-self: flex-end;
  align-self: flex-end;
  grid-row: 1;
  top: 20px;
}
.badge-muted {
  color: white;
  background: rgb(9, 131, 179);
  border-color: transparent;
}
.badge-success {
  color: white;
  background: green;
  border-color: transparent;
}
.badge-warning {
  color: white;
  background: var(--accent2);
  border-color: transparent;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 50;
}
.modal[aria-hidden="false"] {
  display: grid;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal-dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: 540px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.modal-title {
  font-size: 16px;
  margin: 0;
}
.modal-body {
  padding: 12px 14px;
  display: grid;
  gap: 12px;
}
.modal-close {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.detail-card h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input,
select,
textarea {
  width: 100%;
  color: var(--text);
  font-family: inherit;
  font-weight: bold;
  width: 210px;
}
textarea.input {
  min-height: 90px;
  resize: vertical;
}

/* ——— Top row: show DL + vehicle images side-by-side, identity at right ——— */
/* .rental-top {
  display: grid;
  grid-template-columns: 100px 100px 1fr;
  gap: 12px;
  align-items: start;
} */

/* First two columns = thumbnails. Use either .dl-thumb or .id-thumb for the DL image */
.rental-top > .vehicle-thumb {
  grid-column: 2;
}
.rental-top > .dl-thumb,
.rental-top > .id-thumb {
  grid-column: 1;
}

/* Identity block on the right */
.rental-top > .identity {
  grid-column: 3;
}

/* ——— Move Status + Due to the TOP-RIGHT (badge first, due below) ——— */
.rental-card {
  display: grid;
  grid-template-rows: auto;
  /* grid-template-rows: auto; */
}

.rental-card .tags .status-badge {
  margin: 0;
}
.rental-card .tags span:last-child {
  font-weight: 700;
}

/* Optional: keep bottom row tight now that .tags is lifted out */
.rental-bottom {
  padding-top: 4px;
}

/* 3-col rental row. Adjust widths as you like. */
.rental-card .rental-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 12px;
  align-items: start;
}

/* Keep images block intact (uses your existing .doc-thumbs/.doc-thumb styles) */
.rental-card .col-1 {
}

/* Identity column (title + meta) — uses existing .title/.meta/.row styles */
.rental-card .col-2 {
}

.rental-card .col-3 .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rental-top {
  grid-template-rows: auto;
}

.title {
  font-size: 18px;
}

.tag {
  min-width: 100px;
  text-align: center;
}

.actions .btn {
  font-family: inherit;
  color: var(--bg);
  font-weight: 400;
  justify-content: center;
  background-color: #1a1a1a;
}
.btn {
  color: var(--bg);
  font-family: inherit;
  font-weight: 600;
}

.btn-danger {
  border: none;
}

#amountCollected {
  width: 165px;
  margin-left: 10px;
}
#gasReturn {
  margin-left: 20px;
  width: 200px;
}

#returnDate {
  width: 285px;
}
#returnTime {
  width: 275px;
}

#returnCondition {
  width: 840px;
  margin-top: 12px;
}
#customerReview {
  width: 840px;
  margin-top: 12px;
}

#receivedWash {
  width: 290px;
}
#receivedBy {
  width: 300px;
}

.form-row {
  margin: 12px 0;
}

label {
  font-weight: bold;
}
