:root {
  --bg: #dbe8f2;
  --panel: #f8fbfd;
  --text: #071f35;
  --muted: #536579;
  --line: #9fbdd1;
  --primary: #087eb7;
  --primary-dark: #075678;
  --success: #17a56b;
  --warning: #e8b008;
  --danger: #d94343;
  --purple: #8a3ffc;
  --dark: #344054;
  --radius: 3px;
  --chrome: #e7f1f8;
  --chrome-dark: #0a4b70;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 8px;
  min-height: 34px;
  background: linear-gradient(180deg, #fff, #f6fbff);
  color: var(--text);
}
textarea { resize: vertical; }
label { display: grid; gap: 4px; color: #263b50; font-weight: 700; }
label input, label select, label textarea { font-weight: 400; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #c7d9e6; padding: 7px 9px; text-align: left; vertical-align: middle; }
th { background: linear-gradient(180deg, #eaf4fb, #d9eaf5); color: #073f60; font-size: 12px; text-transform: uppercase; }

.app-shell { min-height: 100vh; display: block; }
.win-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  color: #fff;
  background: linear-gradient(180deg, #11698f, #06435f);
  border-bottom: 1px solid #022d42;
}
.win-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.win-title strong { font-size: 13px; }
.win-title span:last-child {
  opacity: .9;
  font-size: 12px;
}
.win-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #16a7d4;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.win-session {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.win-session form { margin: 0; }
.win-session button {
  min-height: 22px;
  padding: 2px 12px;
  border: 1px solid #0b3950;
  background: linear-gradient(180deg, #f9fcff, #cbe2f0);
  color: #06344b;
  font-weight: 800;
  cursor: pointer;
}
.win-session button:hover {
  background: linear-gradient(180deg, #fff, #dff1fb);
}
.win-menu {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 39;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  background: linear-gradient(180deg, #f9fcff, #d8eaf5);
  border-bottom: 1px solid #9fbdd1;
}
.win-menu details {
  position: relative;
}
.win-menu summary,
.win-menu-home {
  list-style: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  color: #073f60;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.win-menu-home {
  display: inline-flex;
  align-items: center;
  height: 26px;
  text-decoration: none;
}
.win-menu summary::-webkit-details-marker {
  display: none;
}
.win-menu details[open] summary,
.win-menu summary:hover,
.win-menu-home:hover,
.win-menu-home.active {
  border-color: #9fbdd1;
  background: #fff;
}
.win-menu-panel {
  position: absolute;
  top: 27px;
  left: 0;
  min-width: 190px;
  z-index: 80;
  display: grid;
  padding: 3px;
  background: #f8fcff;
  border: 1px solid #7ba8c2;
  box-shadow: 2px 3px 8px rgba(7, 54, 83, .22);
}
.win-menu-panel a {
  display: block;
  padding: 7px 10px;
  border: 1px solid transparent;
  color: #073047;
  white-space: nowrap;
}
.win-menu-panel a:hover {
  background: #087eb7;
  border-color: #075678;
  color: #fff;
}
.sidebar {
  background: linear-gradient(180deg, #d9edf8 0%, #c5dfef 100%);
  color: #073047;
  padding: 12px 10px;
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 224px;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  z-index: 20;
  border-right: 1px solid #7ba8c2;
}
.sidebar::-webkit-scrollbar { width: 10px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .32); border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 7px; background: #f8fcff; border: 1px solid #9fbdd1; }
.brand span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, #13b6e7, #057db7);
  color: #fff;
  font-weight: 800;
}
.brand.large { color: var(--text); }
.brand.large span { width: 48px; height: 48px; }
.sidebar nav { display: grid; gap: 2px; padding-bottom: 18px; }
.sidebar a {
  padding: 8px 9px;
  border-radius: 2px;
  border: 1px solid transparent;
  color: #073047;
  font-weight: 700;
  background: rgba(255,255,255,.38);
}
.sidebar a:hover { border-color: #7ba8c2; background: #fff; }
.sidebar a.active { background: linear-gradient(180deg, #148dc1, #0870a0); color: #fff; border-color: #075678; }
.app-shell .sidebar { display: none !important; }
.content { padding: 12px; min-width: 0; margin-left: 0; padding-top: 72px; }
.topbar {
  background: linear-gradient(180deg, #f8fcff, #dfeff8);
  border: 1px solid #9fbdd1;
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.topbar small { color: var(--muted); font-weight: 700; }
.panel {
  background: var(--panel);
  border: 1px solid #9fbdd1;
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 #fff;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.metrics article {
  background: linear-gradient(180deg, #ffffff, #eef7fc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.metrics small, .metrics span, .muted { color: var(--muted); }
.metrics strong { display: block; font-size: 23px; margin: 5px 0 3px; color: var(--primary-dark); }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 9px; align-items: end; }
.grid-form .full { grid-column: 1 / -1; }
.form-section {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 7px 9px;
  border-radius: 2px;
  border: 1px solid #9fbdd1;
  background: linear-gradient(180deg, #eaf5fb, #d8ebf6);
  color: #075b89;
  font-size: 14px;
}
.settings-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
.vehicle-toggle {
  grid-column: 1 / -1;
}
.vehicle-fields {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 9px;
  padding: 9px;
  border: 1px solid #9fbdd1;
  border-radius: 3px;
  background: #eef7fc;
}
.vehicle-fields.is-active {
  display: grid;
}
.finance-direction {
  display: grid;
  gap: 7px;
}
.finance-direction > span {
  font-size: 14px;
  font-weight: 800;
}
.finance-direction label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, #f8fcff, #dceff8);
  color: #075b89;
  cursor: pointer;
}
.finance-direction input {
  width: auto;
}
.finance-direction label:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.finance-reservation-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.finance-reservation-form .finance-field {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.finance-reservation-note {
  grid-column: span 3;
  display: grid;
  gap: 6px;
  align-content: end;
  min-height: 64px;
}
.finance-reservation-note small {
  color: var(--muted);
  line-height: 1.25;
}
.finance-reservation-form .direction-field { grid-column: span 3; }
.finance-reservation-form .finance-field:not(.direction-field) { grid-column: span 3; }
.finance-reservation-form .description-field { grid-column: span 8; }
.finance-reservation-form .finance-submit {
  grid-column: span 4;
  min-height: 38px;
  align-self: end;
}
.finance-reservation-form .finance-direction {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finance-reservation-form .finance-direction > span {
  grid-column: 1 / -1;
}
.finance-reservation-form .finance-direction label {
  min-height: 40px;
}
.finance-company-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
}
.finance-company-form label,
.finance-company-form .finance-field {
  display: grid;
  gap: 4px;
  font-weight: 800;
}
.finance-company-form .direction-field {
  grid-column: span 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finance-company-form .direction-field > span {
  grid-column: 1 / -1;
}
.finance-company-form > label {
  grid-column: span 3;
}
.finance-company-form > label.full {
  grid-column: span 9;
}
.finance-company-form .btn {
  grid-column: span 3;
  min-height: 34px;
}
.panel-subtitle {
  margin: 2px 0 10px;
  color: var(--primary-dark);
  font-weight: 800;
}
.stack .vehicle-fields {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}
.stack { display: grid; gap: 12px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.toolbar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar label { min-width: 180px; }
.btn {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #e8f2f8);
  color: var(--text);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}
.btn:hover { border-color: #5d9dbc; background: #fff; }
.btn.primary { background: linear-gradient(180deg, #159cd0, #0877aa); border-color: #07628c; color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: linear-gradient(180deg, #ffffff, #edf6fb); color: var(--primary-dark); }
.btn.danger { background: #fff1f2; border-color: #fecdd3; color: #b91c1c; }
.btn.danger:hover { background: #ffe4e6; }
.btn.small { padding: 5px 9px; min-height: 28px; font-size: 12px; }
.alert {
  padding: 9px 11px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: #eaf7ee;
  color: #0d6b43;
  border: 1px solid #bfe7ce;
}
.alert.danger { background: #fff1f1; color: #a11d1d; border-color: #ffd1d1; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f6;
  color: var(--dark);
  white-space: nowrap;
}
.badge.primary, .dot.primary, .busy.primary { background: var(--primary); color: #fff; }
.badge.success, .dot.success, .busy.success { background: var(--success); color: #fff; }
.badge.warning, .dot.warning, .busy.warning { background: var(--warning); color: #3d2d00; }
.badge.danger, .dot.danger, .busy.danger { background: var(--danger); color: #fff; }
.badge.dark, .dot.dark, .busy.dark { background: var(--dark); color: #fff; }
.badge.muted, .dot.muted, .busy.muted { background: #98a2b3; color: #fff; }
.badge.purple, .dot.purple, .busy.purple { background: var(--purple); color: #fff; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid #9fbdd1; border-radius: 2px; background: #fff; }
.table-link {
  color: #075b89;
  font-weight: 800;
}
.table-link:hover {
  text-decoration: underline;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, max-content) 1fr;
  align-items: end;
  gap: 0;
}
.tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabs > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #f8fcff, #dceff8);
  color: #075b89;
  cursor: pointer;
  margin-right: 3px;
}
.tabs > label span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #075b89;
  font-size: 12px;
}
.tabs > .tab-panel {
  display: none;
  grid-column: 1 / -1;
}
.tabs > input:checked + label {
  background: var(--primary);
  color: #fff;
}
.tabs > input:checked + label span {
  color: var(--primary-dark);
}
.tabs > input:checked + label + .tab-panel {
  display: block;
}
.operation-switch {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 0;
}
.operation-switch > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.operation-switch > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, #f8fcff, #dceff8);
  color: #075b89;
  cursor: pointer;
  font-weight: 800;
}
.operation-switch > label:first-of-type {
  border-radius: 2px 0 0 0;
}
.operation-switch > label:last-of-type {
  border-radius: 0 2px 0 0;
}
.operation-panel {
  display: none;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 0 2px 2px 2px;
  padding: 10px;
  background: #fff;
}
#op-reservation:checked + label,
#op-walkin:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
#op-reservation:checked ~ .operation-panel:nth-of-type(1),
#op-walkin:checked ~ .operation-panel:nth-of-type(2) {
  display: block;
}
.inline { display: flex; gap: 8px; align-items: center; }
.inline select { min-width: 130px; padding: 7px; }
.table-actions { flex-wrap: wrap; }
.table-actions form { margin: 0; }
.login-wrap {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #dbe8f2;
}
.login-screen {
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 390px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #bfd6e7;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(7, 54, 83, .18);
}
.login-visual {
  padding: 26px;
  background: linear-gradient(180deg, #d9edf8 0%, #eff8fd 100%);
  border-right: 1px solid #c7ddeb;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-width: 0;
}
.window-bar {
  height: 34px;
  background: linear-gradient(180deg, #0277ad, #075b89);
  border-radius: 2px 2px 0 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.25);
}
.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: #d9f4ff;
}
.window-bar strong { margin-left: 8px; }
.mini-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 8px;
}
.mini-toolbar b {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #b8d4e7;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #d6edf8);
  color: #075b89;
  font-size: 12px;
  text-align: center;
}
.mini-map {
  display: grid;
  grid-template-columns: 126px repeat(20, minmax(18px, 1fr));
  align-content: start;
  background: #fff;
  border: 1px solid #b8d4e7;
  border-radius: 2px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px #edf7fc;
}
.mini-map > div {
  min-height: 29px;
  border-right: 1px solid #e1edf5;
  border-bottom: 1px solid #e1edf5;
}
.mini-room {
  padding: 7px 9px;
  background: linear-gradient(180deg, #e7f5fc, #cae7f5);
  color: #064a70;
  font-weight: 800;
  position: sticky;
  left: 0;
}
.mini-busy {
  background: #0a35d9;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}
.mini-busy.c0 { background: #0a35d9; }
.mini-busy.c1 { background: #fff200; }
.mini-busy.c2 { background: #f36d2d; }
.mini-busy.c3 { background: #8b1b8f; }
.login-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.login-stats article {
  background: rgba(255,255,255,.72);
  border: 1px solid #bdd8e9;
  border-radius: 2px;
  padding: 10px;
}
.login-stats strong {
  display: block;
  font-size: 24px;
  color: #075b89;
}
.login-stats span { color: var(--muted); font-weight: 700; }
.login-card {
  width: 100%;
  background: #fff;
  padding: 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card h1 {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.05;
}
.login-subtitle {
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0 20px;
}
.login-card input {
  min-height: 38px;
  background: #f9fcfe;
}
.login-card .btn {
  min-height: 40px;
  width: 100%;
  margin-top: 4px;
}
.login-hint {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 2px;
  background: #edf7fc;
  color: #31566d;
}
.reservation-map { overflow: auto; border: 1px solid #9fbdd1; border-radius: 2px; background: #fff; }
.map-row {
  display: grid;
  grid-template-columns: 230px repeat(var(--days, 21), 28px);
  min-width: max-content;
}
.map-row > div {
  border-right: 1px solid #e5edf5;
  border-bottom: 1px solid #e5edf5;
  min-height: 28px;
}
.map-row > a {
  border-right: 1px solid #e5edf5;
  border-bottom: 1px solid #e5edf5;
  min-height: 28px;
  display: block;
}
.map-head > div {
  background: linear-gradient(180deg, #eaf4fb, #d9eaf5);
  color: #15506e;
  font-weight: 800;
  text-align: center;
  padding: 6px 4px;
}
.room-name { padding: 6px 8px; background: #e3f1f9; font-weight: 800; position: sticky; left: 0; z-index: 1; }
.map-cell.busy { border-radius: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.map-cell.busy:hover {
  filter: brightness(.9);
  outline: 2px solid #073b5a;
  outline-offset: -2px;
}
.legend { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 7px; }
.room-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px;
  min-height: 82px;
  display: grid;
  gap: 5px;
  background: linear-gradient(180deg, #fff, #f3f9fd);
  color: var(--text);
}
.room-card:hover {
  outline: 2px solid #5d9dbc;
  outline-offset: -2px;
}
.room-card strong { font-size: 21px; }
.room-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-card.livre { border-left: 5px solid var(--success); }
.room-card.reservado { border-left: 5px solid var(--primary); }
.room-card.ocupado { border-left: 5px solid var(--danger); }
.room-card.governanca { border-left: 5px solid var(--warning); }
.room-card.bloqueado { border-left: 5px solid var(--purple); }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}
.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px;
  background: linear-gradient(180deg, #fff, #f3f9fd);
}
.detail-grid small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}
.detail-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 16px;
  color: var(--primary-dark);
}
.detail-grid span {
  color: #475467;
}
.reservation-detail-old {
  display: none;
}
.reservation-summary {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.reservation-summary table {
  width: 100%;
  border-collapse: collapse;
}
.reservation-summary th {
  width: 140px;
  background: #e3f1f9;
  color: #075b89;
  font-size: 12px;
  text-transform: uppercase;
  padding: 9px;
  vertical-align: top;
}
.reservation-summary td {
  width: 35%;
  padding: 9px;
  vertical-align: top;
  background: #fff;
}
.reservation-summary strong {
  color: var(--text);
  font-size: 15px;
}
.reservation-summary span {
  color: var(--muted);
  display: inline-block;
  margin-top: 4px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.check { display: flex; grid-auto-flow: column; align-items: center; justify-content: start; gap: 8px; }
.check input { width: auto; }
.bars { min-height: 240px; display: flex; align-items: end; gap: 14px; padding-top: 26px; overflow: auto; }
.bar {
  width: 58px;
  background: linear-gradient(180deg, #0b7fba, #17a56b);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  color: #fff;
}
.bar span {
  position: absolute;
  top: -24px;
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}
.bar small { transform: translateY(22px); color: var(--muted); white-space: nowrap; }
.report-cover p {
  margin: 8px 0;
  color: #344054;
}
.report-metrics {
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .app-shell { display: block; padding-top: 60px; }
  .sidebar { position: static; width: auto; height: auto; overflow: visible; }
  .content { margin-left: 0; padding-top: 12px; }
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-form, .two-columns, .detail-grid, .vehicle-fields, .stack .vehicle-fields, .finance-reservation-form, .finance-company-form { grid-template-columns: 1fr; }
  .finance-reservation-form .direction-field,
  .finance-reservation-note,
  .finance-reservation-form .finance-field:not(.direction-field),
  .finance-reservation-form .description-field,
  .finance-reservation-form .finance-submit,
  .finance-company-form .direction-field,
  .finance-company-form > label,
  .finance-company-form > label.full,
  .finance-company-form .btn { grid-column: 1 / -1; }
  .reservation-summary th,
  .reservation-summary td {
    display: block;
    width: 100%;
  }
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-card { min-height: 560px; }
}

@media (max-height: 720px) {
  .login-screen {
    min-height: 0;
  }
  .login-visual {
    display: none;
  }
  .login-screen {
    grid-template-columns: minmax(360px, 460px);
    width: min(460px, 100%);
  }
  .login-card {
    min-height: auto;
    padding: 34px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12px;
  }
  .win-chrome, .win-menu, .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; margin-left: 0; }
  .panel {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 10px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics article {
    box-shadow: none;
    border: 1px solid #999;
  }
  .two-columns {
    grid-template-columns: 1fr 1fr;
  }
  th {
    background: #eee !important;
    color: #000;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  a {
    color: #000;
  }
}
