:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #62717f;
  --line: #dbe2e8;
  --brand: #2d8ed6;
  --brand-2: #0f4b7a;
  --accent: #c77a20;
  --ok: #16834d;
  --warn: #b7791f;
  --bad: #bd3b32;
  --soft: #eef6f4;
  --shadow: 0 16px 40px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0;
  min-height: 100vh;
}

body.locked {
  display: block;
}

body.locked .sidebar,
body.locked .shell {
  display: none;
}

.login-screen {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 28, 37, 0.94), rgba(18, 105, 93, 0.86)),
    url("https://images.unsplash.com/photo-1549927681-0b673b8243ab?auto=format&fit=crop&w=1600&q=80") center/cover;
  display: none;
  min-height: 100vh;
  padding: 24px;
  justify-content: center;
}

body.locked .login-screen {
  display: flex;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 26px;
  width: 100%;
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card p {
  color: var(--muted);
}

.login-brand {
  color: var(--text);
  margin-bottom: 4px;
}

.form-message {
  color: var(--bad);
  min-height: 20px;
}

.search-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  margin-top: -2px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  z-index: 5;
}

.search-result {
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: grid;
  font-weight: 400;
  gap: 3px;
  justify-items: start;
  padding: 10px;
  text-align: left;
}

.search-result:hover {
  background: var(--soft);
}

.search-result strong {
  font-weight: 800;
}

.search-result span,
.search-empty {
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  padding: 10px;
}

.field-stack {
  display: grid;
  gap: 0;
}

.date-highlight {
  background: #fff7df;
  border: 1px solid #f0c45a;
  border-radius: 8px;
  padding: 8px;
}

.customer-thumb {
  border-radius: 6px;
  display: block;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.customer-form-shell {
  margin-bottom: 16px;
}

.customer-form-shell .panel-body {
  background: #e8f0f8;
}

.customer-form-top {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.customer-form-top strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.customer-photo-box {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

#customer-photo-preview {
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  height: 120px;
  object-fit: cover;
  place-items: center;
  width: 120px;
}

.customer-photo-box button {
  background: #438cc9;
  min-height: 34px;
  padding: 7px 10px;
  width: 100%;
}

.file-list {
  display: grid;
  gap: 6px;
}

.file-list a {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 2px;
  padding: 8px;
  text-decoration: none;
}

.file-list a:hover {
  background: var(--soft);
}

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

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

button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 14px;
}

button:hover {
  background: #0d5147;
}

.danger {
  background: #fdebea;
  color: var(--bad);
}

.danger:hover {
  background: #f7d4d0;
}

.ghost {
  background: #eef2f5;
  color: var(--text);
}

.ghost:hover {
  background: #e1e8ee;
}

.sidebar {
  background: #d9ecf8;
  color: #fff;
  min-height: 100vh;
  padding: 20px 16px;
  position: sticky;
  top: 0;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.brand img {
  background: #fff;
  border: 1px solid #b7d5e8;
  border-radius: 8px;
  display: block;
  height: 58px;
  object-fit: contain;
  padding: 4px;
  width: 92px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #173b52;
}

.brand small {
  color: #446171;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav button {
  align-items: center;
  background: transparent;
  color: #1f5878;
  display: flex;
  font-weight: 600;
  gap: 10px;
  justify-content: flex-start;
  min-height: 38px;
  padding: 9px 10px;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: #2d8ed6;
  color: #fff;
}

.nav .icon {
  width: 22px;
}

.shell {
  min-width: 0;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar h1,
.topbar p {
  margin: 0;
}

.topbar h1 {
  font-size: 30px;
}

.module-dock {
  background: linear-gradient(180deg, #b9dcea 0%, #9fc9dc 100%);
  border: 1px solid #8db7ca;
  display: grid;
  gap: 2px;
  grid-auto-columns: minmax(104px, 118px);
  grid-auto-flow: column;
  margin: -4px -12px 22px;
  overflow-x: auto;
  padding: 10px 12px 8px;
  scrollbar-width: thin;
}

.module-dock-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #1d70aa;
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 82px;
  min-width: 104px;
  padding: 6px 8px;
  text-align: center;
}

.module-dock-button:hover,
.module-dock-button.active {
  background: rgba(255, 255, 255, 0.48);
  color: #074f83;
}

.module-dock-icon {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #dbeef8 100%);
  border: 1px solid rgba(29, 112, 170, 0.18);
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(36, 69, 88, 0.12);
  color: #2794e4;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 56px;
}

.module-dock-button.active .module-dock-icon,
.module-dock-button:hover .module-dock-icon {
  background: #ffffff;
  border-color: #2d8ed6;
  color: #0b76bd;
}

.module-dock svg,
.nav svg {
  display: block;
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 21px;
}

.module-dock-button span:last-child {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.module-dock .module-dock-icon svg {
  height: 32px;
  width: 32px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.user-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 0 12px;
}

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

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric,
.panel,
.module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.metric small {
  color: var(--muted);
}

.availability-dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr;
}

.availability-bars {
  display: grid;
  gap: 14px;
}

.availability-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr 54px;
}

.availability-label strong,
.availability-label span {
  display: block;
}

.availability-label strong {
  color: var(--text);
  font-size: 14px;
}

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

.availability-track {
  background: #e8eef2;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
}

.availability-track span {
  display: block;
  height: 100%;
}

.availability-percent {
  font-size: 14px;
  text-align: right;
}

.availability-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.availability-card {
  border-radius: 8px;
  color: #fff;
  padding: 14px;
}

.availability-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.availability-card strong {
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

.availability-row.available .availability-track span,
.availability-card.available {
  background: #2e9f63;
}

.availability-row.rented .availability-track span,
.availability-card.rented {
  background: #d94a3a;
}

.availability-row.reserved .availability-track span,
.availability-card.reserved {
  background: #2f80d8;
}

.availability-row.maintenance .availability-track span,
.availability-card.maintenance {
  background: #e08a24;
}

.ops-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.ops-tabs .tab-list {
  background: #2d8ed6;
}

.ops-tabs .tab-button {
  background: #2d8ed6;
  color: #fff;
  font-weight: 700;
}

.ops-tabs .tab-button:hover,
.ops-tabs .tab-button.active {
  background: #0f6fb8;
  color: #fff;
}

.ops-tabs .tab-panel {
  background: #fff;
  grid-template-columns: 1fr;
}

.ops-search {
  background: #f3f8fc;
  border: 1px solid #d5e3ed;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px;
}

.ops-search input {
  background: #fff;
  border: 1px solid #c9d7e1;
  min-height: 38px;
}

.empty-state {
  background: #f8fafb;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  overflow: hidden;
}

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

.panel-head h2 {
  font-size: 19px;
  margin: 4px 0 0;
}

.panel-body {
  padding: 16px;
}

.toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 190px 190px auto;
  margin-bottom: 14px;
}

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

.row-actions button,
.row-actions .file-action {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
}

.module-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.fleet-tabs {
  align-items: stretch;
  background: #9fc8d8;
  display: flex;
  gap: 4px;
  margin: -28px -28px 0;
  min-height: 42px;
}

.fleet-tab-link,
.fleet-tabs strong,
.fleet-home {
  align-items: center;
  background: #d7e8f1;
  border-radius: 0;
  color: #2b5368;
  display: inline-flex;
  min-height: 42px;
  padding: 0 20px;
}

.fleet-tab-link {
  border-radius: 0;
  font-weight: 600;
}

.fleet-tab-link:hover {
  background: #c5deeb;
}

.fleet-tabs strong {
  background: #eaf4f8;
  color: #000;
  gap: 10px;
  font-weight: 600;
}

.fleet-tabs strong button,
.fleet-home {
  background: transparent;
  border: 0;
  color: inherit;
  min-height: auto;
  padding: 0;
}

.fleet-home {
  background: var(--brand);
  color: #fff;
  justify-content: center;
  width: 56px;
}

.fleet-list-bar {
  align-items: center;
  background: #c8e0eb;
  border-bottom: 1px solid #94b5c5;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 -28px 16px;
  min-height: 42px;
  padding: 0 16px;
}

.fleet-list-bar span {
  color: #6c7780;
  flex: 1;
}

.fleet-list-bar a,
.fleet-add {
  background: transparent;
  color: #0085c7;
  min-height: auto;
  padding: 0;
  text-decoration: none;
}

.fleet-list-panel {
  background: #eef4f9;
  border: 1px solid #d2dce5;
}

.fleet-list-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 18px;
}

.fleet-list-tools label {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 400;
  gap: 8px;
}

.fleet-list-tools select {
  min-height: 26px;
  padding: 3px 6px;
  width: 44px;
}

.fleet-list-tools input {
  min-height: 28px;
  width: 140px;
}

.fleet-list-panel table {
  background: #fff;
  border-top: 1px solid #d8d8d8;
}

.fleet-list-panel th,
.fleet-list-panel td {
  border-right: 1px solid #d8d8d8;
  padding: 9px 8px;
}

.fleet-list-panel th {
  background: #f7f7f7;
  color: #666;
  font-size: 13px;
  text-transform: none;
}

.fleet-list-panel th:not(:last-child)::after {
  color: #666;
  content: "◆";
  float: right;
  font-size: 9px;
  margin-top: 3px;
}

.fleet-list-panel td {
  font-size: 13px;
  vertical-align: middle;
}

.fleet-status {
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.fleet-status.ok {
  background: #6fab5d;
}

.fleet-status.bad {
  background: #d84b3f;
}

.fleet-status.warn {
  background: #c78d22;
}

.fleet-status.closed {
  background: #111;
  color: #fff;
}

.fleet-pagination {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.fleet-pagination div {
  display: flex;
  gap: 0;
}

.fleet-pagination button,
.fleet-page-gap {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 0;
  color: #2b6ea5;
  min-height: 34px;
  padding: 8px 12px;
}

.fleet-pagination button.active {
  background: #5aa6d9;
  color: #fff;
}

.fleet-pagination button:disabled {
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
}

.icon-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.icon-button {
  align-items: center;
  background: #eef2f5;
  border: 1px solid var(--line);
  color: var(--text);
  display: inline-flex;
  font-size: 17px;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.icon-button:hover {
  background: #e1e8ee;
}

.icon-button.duplicate {
  color: #a56add;
}

.icon-button.edit {
  color: #579d3d;
}

.icon-button.replace {
  color: #2f80d8;
}

.icon-button.fine {
  color: #e08a24;
}

.icon-button.print {
  color: #4a6572;
}

.icon-button.danger {
  color: var(--bad);
}

.rental-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  overflow: hidden;
}

.rental-tabs .tab-list {
  align-content: start;
  background: #e8edf2;
  border-bottom: 0;
  border-right: 1px solid #c8d5df;
  display: grid;
}

.rental-tabs .tab-button {
  background: #f5f6f7;
  border-bottom: 1px solid #c8d5df;
  color: #6d7881;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 12px;
  text-align: left;
}

.rental-tabs .tab-button.active {
  background: #fff;
  border-left: 3px solid var(--brand);
  color: #385367;
}

.rental-tabs .tab-panel {
  background: #fff;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 300px;
  padding: 18px;
}

.rental-tabs .tab-panel h3 {
  border-bottom: 1px solid #cfe0d0;
  color: #5ca23b;
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 6px;
  padding-bottom: 8px;
}

.rental-tabs .tab-panel .full {
  grid-column: 1 / -1;
}

.rental-tabs .rental-plan-panel {
  align-content: start;
  column-gap: 24px;
  grid-template-columns: 400px minmax(260px, 1.35fr) minmax(260px, 1.35fr);
  row-gap: 16px;
}

.rental-tabs .compact-rental-panel {
  align-content: start;
  column-gap: 24px;
  grid-template-columns: repeat(2, minmax(260px, 360px));
  justify-content: start;
  row-gap: 16px;
}

.compact-rental-panel label {
  max-width: 360px;
}

.rental-tabs .rental-finance-panel {
  align-content: start;
  column-gap: 24px;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1.2fr) minmax(160px, 0.6fr) minmax(170px, 0.6fr);
  row-gap: 16px;
}

.rental-finance-panel .span-2 {
  grid-column: span 2;
}

.finance-subtabs {
  border-bottom: 1px solid #b9cad8;
  display: flex;
  gap: 0;
  margin: 42px 0 10px;
}

.finance-subtabs button {
  background: #f4f7fa;
  border: 1px solid #b9cad8;
  border-bottom: 0;
  border-radius: 0;
  color: #7b8790;
  min-height: 36px;
}

.finance-subtabs button.active {
  background: #fff;
  border-top: 3px solid var(--brand);
  color: #385367;
}

.finance-subpanel {
  display: none;
}

.finance-subpanel.active {
  display: grid;
  gap: 16px;
}

.finance-launch-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(140px, 0.55fr) minmax(150px, 0.6fr) 42px;
}

.add-square {
  border-radius: 0;
  font-size: 22px;
  font-weight: 800;
  min-height: 38px;
  padding: 0;
}

.field-help {
  color: var(--brand);
  cursor: help;
  font-weight: 800;
}

.inline-add-field {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-add-field button {
  min-height: 38px;
}

.customer-tabs {
  margin-top: 4px;
}

.customer-tabs .tab-list {
  background: #e8f0f8;
  border-bottom: 1px solid #c8d5df;
}

.customer-tabs .tab-button {
  background: #7fb7df;
  color: #fff;
  margin-right: 3px;
  padding: 0 14px;
}

.customer-tabs .tab-button.active {
  background: #fff;
  color: #2b6ea5;
}

.customer-data-panel {
  background: #e8f0f8;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.customer-data-panel label {
  grid-column: span 1;
}

.customer-data-panel .wide {
  grid-column: span 4;
}

.customer-data-panel .span-2 {
  grid-column: span 2;
}

.customer-data-panel .full,
.customer-data-panel .customer-section {
  grid-column: 1 / -1;
}

.customer-section {
  align-items: start;
  border-bottom: 1px solid #c8d5df;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding-top: 10px;
}

.customer-section h3 {
  color: #3488d8;
  font-size: 23px;
  font-weight: 400;
  margin: 0;
}

.tab-list {
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.tab-button {
  background: transparent;
  border-radius: 0;
  color: var(--muted);
  min-height: 38px;
}

.tab-button:hover,
.tab-button.active {
  background: #fff;
  color: var(--brand);
}

.tab-panel {
  display: none;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.tab-panel.active {
  display: grid;
}

.camera-modal {
  align-items: center;
  background: rgba(17, 28, 37, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 30;
}

.camera-box {
  background: #fff;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px;
  width: min(92vw, 560px);
}

.camera-box video {
  background: #111c25;
  border-radius: 6px;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.tab-panel .full {
  grid-column: 1 / -1;
}

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

input,
select,
textarea {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

input[type="checkbox"] {
  min-height: auto;
  width: 18px;
}

.phone-input {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 190px) 1fr;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.badge.ok {
  background: #e5f5ee;
  color: var(--ok);
}

.badge.warn {
  background: #fff4df;
  color: var(--warn);
}

.badge.bad {
  background: #fdebea;
  color: var(--bad);
}

.badge.info {
  background: #e8f2fb;
  color: var(--brand-2);
}

.stack {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.item {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.item strong,
.item span {
  display: block;
}

.item span,
.item p {
  color: var(--muted);
  margin: 4px 0 0;
}

.timeline {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.timeline .item {
  border-left: 4px solid var(--brand);
}

.bars {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
}

.bar {
  background: #e7edf1;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.bar span {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  display: block;
  height: 100%;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.rental-main-fields {
  background: #d9e6f1;
  border: 1px solid #bdd0df;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  padding: 12px;
}

.rental-main-fields label {
  color: #152535;
}

.rental-main-fields input,
.rental-main-fields select {
  background: #fff;
}

.summary-box {
  background: var(--soft);
  border: 1px solid #cce4de;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.rental-values-grid {
  background: #d4e2ef;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  padding: 10px;
}

.rental-values-grid fieldset {
  border: 1px solid #7f909e;
  margin: 0;
  min-width: 0;
  padding: 24px 18px 18px;
}

.rental-values-grid legend {
  color: #111827;
  font-weight: 800;
  padding: 0 10px;
}

.rental-values-grid .summary-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.summary-section-title {
  font-weight: 800;
  margin-top: 12px;
  text-transform: uppercase;
}

.rental-service-fees {
  align-content: start;
  display: grid;
  gap: 8px;
}

.service-fee-option {
  align-items: center;
  color: #17202a;
  display: flex;
  flex-direction: row;
  font-size: 14px;
  gap: 8px;
  min-height: 18px;
}

.service-fee-option input {
  flex: 0 0 auto;
}

.summary-line {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  border-top: 1px solid #cce4de;
  font-size: 22px;
  font-weight: 800;
  padding-top: 10px;
}

.module-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
}

.company-form {
  grid-template-columns: 180px repeat(4, minmax(0, 1fr));
}

.company-form .span-2 {
  grid-column: span 2;
}

.company-logo-box {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-row: span 3;
}

.company-logo-box img {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 120px;
  object-fit: contain;
  padding: 8px;
  width: 160px;
}

.module-card h3 {
  margin: 0;
}

.module-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-row {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.check-row input {
  min-height: auto;
  width: 18px;
}

.toast {
  background: #102233;
  border-radius: 8px;
  bottom: 18px;
  color: #fff;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

@media (max-width: 1120px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics,
  .grid.two,
  .grid.three,
  .module-grid,
  .availability-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-main-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-tabs {
    grid-template-columns: 1fr;
  }

  .rental-tabs .tab-list {
    border-right: 0;
  }

  .rental-tabs .tab-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-tabs .rental-plan-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-tabs .compact-rental-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-tabs .rental-finance-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .shell {
    padding: 16px;
  }

  .topbar,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav,
  .metrics,
  .grid.two,
  .grid.three,
  .module-grid,
  .availability-dashboard,
  .availability-cards,
  .toolbar,
  .form-grid,
  .customer-data-panel {
    grid-template-columns: 1fr;
  }

  .rental-main-fields {
    grid-template-columns: 1fr;
  }

  .rental-tabs .tab-panel {
    grid-template-columns: 1fr;
  }

  .rental-tabs .rental-plan-panel {
    grid-template-columns: 1fr;
  }

  .rental-tabs .compact-rental-panel {
    grid-template-columns: 1fr;
  }

  .rental-tabs .rental-finance-panel {
    grid-template-columns: 1fr;
  }

  .rental-finance-panel .span-2 {
    grid-column: 1 / -1;
  }

  .rental-values-grid {
    grid-template-columns: 1fr;
  }

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

  .company-form .span-2,
  .company-logo-box {
    grid-column: 1 / -1;
  }

  .finance-launch-grid {
    grid-template-columns: 1fr;
  }

  .availability-row {
    grid-template-columns: 1fr;
  }

  .availability-percent {
    text-align: left;
  }

  .customer-data-panel label,
  .customer-data-panel .wide,
  .customer-data-panel .span-2 {
    grid-column: 1 / -1;
  }

  .customer-section {
    display: grid;
    gap: 12px;
  }

  .phone-input {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
