:root{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#213c49;
  background:#f4f6f8;
  font-synthesis:none;
  --ink:#102b39;
  --accent:#dbe983;
  --line:#e4e9ed;
  --muted:#748590;
  --green:#18765b
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  font-size:14px;
  line-height:1.5
}
a{
  color:inherit;
  text-decoration:none
}
button,input,select,textarea{
  font:inherit
}
button,a,input,select,textarea,summary{
  outline-offset:4px
}
button{
  cursor:pointer
}
button:disabled{
  opacity:.55;
  cursor:wait
}
button,a{
  touch-action:manipulation
}
button:hover,.button:hover{
  filter:brightness(.97)
}
h1,h2,h3,p{
  margin-top:0
}
h1{
  font-size:30px;
  font-weight:750;
  letter-spacing:-1px;
  line-height:1.25;
  margin-bottom:9px;
  color:var(--ink)
}
h2{
  font-size:18px;
  letter-spacing:-.35px;
  margin-bottom:6px;
  color:var(--ink)
}
h3{
  font-size:15px;
  margin-bottom:10px
}
p{
  margin-bottom:14px
}
small{
  font-size:12px
}
hr{
  border:0;
  border-top:1px solid var(--line);
  margin:20px 0
}
[hidden]{
  display:none!important
}
.icon{
  width:20px;
  height:20px;
  flex-shrink:0;
  vertical-align:middle
}
.app-shell{
  display:flex;
  min-height:100vh
}
.sidebar{
  width:238px;
  background:var(--ink);
  color:#eaf1f4;
  padding:32px 18px;
  position:fixed;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  z-index:30
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:750;
  font-size:21px;
  padding:0 8px;
  letter-spacing:-.4px
}
.brand small{
  display:block;
  letter-spacing:1.8px;
  font-size:9px;
  color:#9bafb9;
  font-weight:500;
  margin-top:3px
}
.brand-mark{
  display:grid;
  place-items:center;
  width:39px;
  height:42px;
  background:var(--accent);
  color:var(--ink);
  border-radius:10px;
  font-size:27px;
  font-weight:850
}
.workspace-label{
  font-size:9px;
  letter-spacing:2px;
  color:#91a7b1;
  margin:45px 14px 14px
}
.nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  color:#a9bdc7;
  padding:13px 14px;
  margin:4px 0;
  border-radius:8px;
  font-size:13px;
  font-weight:500
}
.nav-item.active{
  color:var(--ink);
  background:var(--accent);
  font-weight:650
}
.nav-item:not(.active):hover{
  background:#1d3b49;
  color:white
}
.nav-divider{
  border-top:1px solid #2a424f;
  margin:23px 12px 14px
}
.sidebar-bottom{
  display:flex;
  gap:9px;
  align-items:center;
  margin-top:auto;
  padding-top:25px
}
.sidebar-bottom strong{
  display:block;
  font-size:12px
}
.sidebar-bottom small{
  display:block;
  color:#91a7b1;
  font-size:10px
}
.sidebar-bottom form{
  margin-left:auto
}
.avatar{
  width:33px;
  height:33px;
  background:#34515d;
  color:#d8e8ec;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:13px
}
.workspace{
  margin-left:238px;
  width:calc(100% - 238px);
  min-width:0
}
.topbar{
  height:76px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
  gap:12px
}
.breadcrumb{
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:14px
}
.breadcrumb strong{
  color:#425a66;
  font-weight:550
}
.breadcrumb span{
  color:#bdc9cf
}
.topbar-right{
  display:flex;
  align-items:center;
  gap:14px
}
.workspace-pill{
  font-weight:650;
  color:#4d6470;
  font-size:11px;
  letter-spacing:.3px
}
.workspace-pill span{
  color:#a7b7c0;
  margin:0 5px
}
.version-pill{
  border:1px solid var(--line);
  border-radius:6px;
  padding:4px 8px;
  color:#7b8c96;
  font-size:10px
}
#main{
  padding:32px 36px;
  max-width:1700px;
  margin:auto;
  outline:none
}
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:1px 0 25px
}
.page-heading p{
  color:var(--muted);
  margin-bottom:0;
  font-size:13px
}
.eyebrow{
  font-size:9px!important;
  letter-spacing:2px;
  color:var(--muted);
  font-weight:650;
  margin-bottom:9px!important
}
.actions{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:41px;
  padding:10px 16px;
  background:var(--ink);
  border:1px solid var(--ink);
  color:white;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap
}
.button .icon{
  width:16px;
  height:16px
}
.button.secondary{
  background:white;
  border-color:#dce3e8;
  color:#37505d
}
.button.full{
  width:100%
}
.icon-button{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:inherit;
  border-radius:7px;
  padding:6px
}
.icon-button:hover{
  background:#d4e2e51c
}
.text-link,.text-button{
  color:#295f66;
  font-size:12px;
  font-weight:650;
  text-decoration:none
}
.text-link:hover,.text-button:hover{
  text-decoration:underline
}
.text-button{
  border:0;
  background:none;
  padding:0
}
.muted{
  color:var(--muted)
}
.danger-text{
  color:#ab4b37!important
}
.separator{
  color:#adbac1;
  margin:0 7px
}
.back-link{
  display:inline-block;
  margin-bottom:18px
}
.panel{
  padding:24px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:22px;
  min-width:0
}
.panel-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:21px;
  flex-wrap:wrap
}
.panel-title h2,.panel-title p{
  margin-bottom:0
}
.panel-title p{
  font-size:12px;
  color:var(--muted);
  margin-top:4px
}
.push-right{
  margin-left:auto
}
.count{
  background:#f0f3f5;
  border:1px solid #e6ebee;
  color:#59717b;
  font-size:11px;
  font-weight:650;
  border-radius:6px;
  min-width:25px;
  text-align:center;
  padding:2px 6px
}
.panel-title>.count{
  margin-left:auto
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:25px
}
.stat-card{
  padding:20px 21px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  transition:transform .15s,border-color .15s
}
.stat-card:hover{
  transform:translateY(-2px);
  border-color:#aebd8d
}
.stat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#6a808b;
  font-size:12px;
  gap:7px
}
.stat-icon{
  width:32px;
  height:32px;
  border-radius:8px;
  background:#edf1f5;
  color:#71828c;
  display:grid;
  place-items:center
}
.stat-icon .icon{
  width:17px;
  height:17px
}
.stat-icon.green{
  background:#eaf4e9;
  color:#649270
}
.stat-icon.amber{
  background:#f7f1e5;
  color:#b09349
}
.stat-card>strong{
  display:block;
  font-size:35px;
  line-height:1.2;
  color:var(--ink);
  font-weight:650;
  margin:13px 0 17px;
  letter-spacing:-1.5px
}
.stat-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:10px;
  color:#83939b
}
.stat-bottom .icon{
  width:14px;
  height:14px
}
.dashboard-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.title-icon{
  width:36px;
  height:36px;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#69808b
}
.reminder-panel .panel-title{
  align-items:center
}
.reminder-panel h2{
  font-size:16px
}
.reminder-row{
  display:flex;
  gap:13px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid #edf0f2;
  min-width:0
}
.reminder-row:last-child{
  border-bottom:0
}
.reminder-row:hover{
  background:#f7f9fa
}
.reminder-row>span{
  min-width:0
}
.reminder-row strong{
  font-size:12px;
  font-weight:650
}
.reminder-row small{
  display:block;
  font-size:11px;
  color:#7b8e98;
  margin-top:3px;
  overflow-wrap:anywhere
}
.row-end{
  text-align:right;
  flex-shrink:0
}
.row-end strong{
  font-size:11px
}
.row-end .icon{
  margin-top:5px;
  width:16px;
  height:16px
}
.reminder-extra{
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:14px
}
.reminder-extra summary{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  cursor:pointer
}
.reminder-extra summary .count{
  margin-left:auto
}
.reminder-extra>p{
  margin:12px 0;
  color:var(--muted);
  font-size:12px
}
.more-list summary{
  cursor:pointer;
  color:#43716d;
  font-size:12px;
  margin-top:10px
}
.dot{
  width:7px;
  height:7px;
  display:inline-block;
  border-radius:50%;
  background:#d2dbe0
}
.dot.available{
  background:#16844a
}
.dot.rented,.dot.busy{
  background:#d13438
}
.dot.overdue{
  background:#8e1524
}
.dot.planned,.dot.uncertain{
  background:#d77808
}
.dot.closed{
  background:#71808b
}
.refresh-label{
  font-size:10px;
  text-align:right;
  color:#6d818b;
  margin:0
}
.badge{
  display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;
  padding:5px 9px;border-radius:6px;white-space:nowrap
}
.badge:before{
  content:'';
  width:5px;
  height:5px;
  background:currentColor;
  border-radius:50%
}
.badge.available{
  color:#116438;
  background:#d1f3df
}
.badge.rented,.badge.workshop,.badge.inspection{
  color:#a31927;
  background:#ffdadd
}
.badge.overdue{
  color:#fff;
  background:#8e1524
}
.badge.overdue:before{
  content:'⚠';
  background:none;
  width:auto;
  height:auto
}
.badge.uncertain,.badge.planned{
  color:#854300;
  background:#ffe4bd
}
.badge.closed,.badge.cancelled{
  color:#465560;
  background:#e6ebef
}
.overdue-mark{
  color:#8e1524;
  font-size:16px
}
.company-badge{
  font-size:10px;
  font-weight:600;
  color:#637694;
  border-radius:4px;
  padding:3px 6px;
  background:#f0f3f9
}
.company-badge.mert{
  color:#89724b;
  background:#f6f2e9
}
.table-wrap{
  overflow-x:auto;
  margin:0 -24px
}
.table-wrap table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px
}
th{
  font-size:9px;
  font-weight:650;
  letter-spacing:.8px;
  color:#8697a0;
  background:#f8fafb;
  border-bottom:1px solid var(--line);
  padding:11px 16px;
  white-space:nowrap
}
td{
  padding:16px;
  vertical-align:middle;
  border-bottom:1px solid #edf0f2;
  overflow-wrap:anywhere
}
th:first-child,td:first-child{
  padding-left:24px
}
th:last-child,td:last-child{
  padding-right:24px
}
tr:last-child td{
  border-bottom:0
}
td small{
  display:block;
  color:var(--muted);
  margin-top:4px;
  font-size:10px
}
td strong{
  font-weight:600
}
.rental-contact-cell{
  display:grid;
  gap:6px;
  overflow-wrap:anywhere
}
.phone-link{
  color:var(--ink);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
  display:inline-block;
  padding:3px 0;
  font-variant-numeric:tabular-nums;
  max-width:100%
}
.rental-contact-cell .muted{
  font-size:11px
}
.rental-contact-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.rental-contact-summary>div{
  display:grid;
  align-content:start;
  gap:8px;
  overflow-wrap:anywhere
}
.contact-label{
  font-size:11px;
  color:var(--muted)
}
.rental-contact-summary strong,.rental-contact-summary .phone-link{
  font-size:16px
}
.plate-label{
  font-size:15px;
  letter-spacing:.4px;
  font-weight:750;
  color:var(--ink)
}
a.plate-label:hover{
  text-decoration:underline
}
.row-action{
  text-align:right;
  width:35px
}
.filters{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:23px;
  flex-wrap:wrap
}
.filters input,.filters select{
  min-height:39px;
  font-size:12px
}
.filters select{
  width:auto;
  max-width:180px
}
.search-input{
  flex:1;
  min-width:220px;
  position:relative
}
.search-input input{
  padding-left:36px
}
.search-input .icon{
  position:absolute;
  left:12px;
  top:11px;
  width:16px;
  height:16px;
  color:#a3b0b8
}
.pagination{
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  font-size:11px;
  color:var(--muted)
}
.empty{
  padding:40px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  color:var(--muted);
  gap:9px
}
.empty>.icon{
  width:29px;
  height:29px;
  color:#bac6cc;
  margin-bottom:3px
}
.empty strong{
  font-size:13px;
  color:#69808b
}
.empty p{
  font-size:12px;
  margin:0;
  max-width:380px
}
.empty.small{
  padding:22px 10px;
  gap:6px
}
.empty.small>.icon{
  width:22px;
  height:22px
}
.page-footer{
  padding:10px 0 5px;
  display:flex;
  justify-content:space-between;
  color:#9baab2;
  font-size:10px
}
.demo-notice,.archive-notice{
  padding:11px 15px;
  border:1px solid #e3e8d6;
  border-radius:7px;
  background:#f5f7eb;
  color:#718053;
  font-size:11px;
  margin-bottom:20px
}
.archive-notice{
  background:#f2f5f7;
  border-color:#e0e7eb;
  color:#6e838e
}
.notice{
  padding:14px 17px;
  border-radius:8px;
  background:#eef3f6;
  margin-bottom:17px;
  font-size:12px
}
.notice.error{
  background:#fbf0ed;
  border:1px solid #eed2c9;
  color:#944b38
}
.notice.success{
  background:#ecf5eb;
  border:1px solid #d2e6cc;
  color:#3f7846
}
.notice ul{
  padding-left:18px;
  margin:5px 0
}
.notice p{
  margin:6px 0 0
}
.field{
  margin-bottom:18px;
  min-width:0
}
.field>label{
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:7px;
  color:#4d6674
}
.field>small{
  font-size:11px;
  color:#83949e;
  display:block;
  margin-top:6px
}
.required{
  color:#829b55;
  margin-left:4px
}
input,select,textarea{
  width:100%;
  min-width:0;
  max-width:100%;
  border:1px solid #dce4e9;
  background:white;
  color:#213c49;
  border-radius:7px;
  padding:10px 11px;
  min-height:41px;
  transition:border-color .15s
}
input:focus,select:focus,textarea:focus{
  border-color:#829d6d;
  outline:2px solid #dce8c766;
  outline-offset:1px
}
input:disabled,select:disabled{
  background:#f2f5f7;
  color:#8799a3
}
input::placeholder,textarea::placeholder{
  color:#a1b0b9
}
textarea{
  resize:vertical
}
input[type=checkbox]{
  width:18px;
  min-height:18px;
  height:18px;
  accent-color:#63845c
}
.checkbox-field{
  display:flex;
  gap:10px;
  align-items:center
}
.checkbox-field>label{
  margin:0
}
.has-error input,.has-error select,.has-error textarea{
  border-color:#c97961
}
.field-error{
  font-size:11px;
  color:#a94b34;
  margin:6px 0 0
}
.field-error ul{
  padding:0;
  list-style:none
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 20px
}
.form-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.form-grid .field:has(textarea){
  grid-column:1/-1
}
.rental-person-fields>.field:first-child{
  grid-column:1/-1
}
.narrow{
  max-width:850px
}
.wide-form{
  max-width:1100px
}
.form-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:18px;
  border-top:1px solid var(--line);
  margin-top:10px
}
.form-footnote{
  font-size:11px;
  color:#8a9ba4;
  margin:15px 0 0
}
.section-heading{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:22px
}
.section-heading p{
  font-size:12px;
  color:var(--muted);
  margin-bottom:0
}
.section-number{
  font-size:10px;
  color:#5d7b4f;
  background:#eef2e4;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:8px
}
.form-section>summary,details.detail-group>summary{
  display:flex;
  align-items:center;
  cursor:pointer;
  font-size:15px;
  font-weight:650;
  gap:10px;
  min-height:44px;
  list-style:none;
  overflow-wrap:anywhere
}
.form-section>summary::-webkit-details-marker,details.detail-group>summary::-webkit-details-marker{
  display:none
}
.form-section>summary::before,details.detail-group>summary::before{
  content:"";
  flex:0 0 7px;
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  margin:0 4px 0 2px
}
.form-section[open]>summary::before,details.detail-group[open]>summary::before{
  transform:rotate(45deg)
}
.form-section>summary>.muted{
  font-size:10px;
  font-weight:500;
  margin-left:auto
}
.form-section[open]>summary{
  margin-bottom:22px
}
.plate-picker{
  position:relative
}
.plate-results{
  position:absolute;
  top:74px;
  z-index:15;
  width:100%;
  max-height:330px;
  overflow:auto;
  background:#fff;
  border:1px solid #cad7de;
  border-radius:8px;
  box-shadow:0 12px 30px #183a4926
}
.plate-results>button{
  display:flex;
  align-items:center;
  gap:13px;
  border:0;
  border-bottom:1px solid #edf0f2;
  background:white;
  padding:13px;
  width:100%;
  text-align:left;
  font-size:12px
}
.plate-results>button strong{
  min-width:82px
}
.plate-results>button small{
  margin-left:auto;
  color:#8799a3
}
.plate-results>button.active,.plate-results>button:hover{
  background:#edf3df
}
.plate-results>p{
  font-size:12px;
  padding:13px;
  margin:0;
  color:var(--muted)
}
.detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:18px 0
}
.detail-grid>div{
  min-width:0
}
.detail-grid.single{
  grid-template-columns:1fr
}
.detail-grid dt{
  font-size:10px;
  color:#8698a3;
  margin-bottom:4px
}
.detail-grid dd{
  font-size:12px;
  overflow-wrap:anywhere;
  margin:0
}
.detail-grid dd small{
  display:block;
  color:var(--muted)
}
.detail-group{
  border-bottom:1px solid var(--line);
  padding:17px 0
}
.detail-group>summary{
  font-size:13px;
  font-weight:650;
  cursor:pointer;
  color:#4d6774
}
details.detail-group{
  padding:4px 0
}
details.detail-group[open]>summary{
  margin-bottom:16px
}
.detail-columns{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  gap:22px
}
.detail-columns .detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.detail-columns .single{
  grid-template-columns:1fr
}
.stamp{
  font-size:10px;
  color:#90a0a9;
  margin:20px 0 0;
  line-height:1.8
}
.month-control{
  display:flex;
  align-items:center;
  gap:15px;
  margin-left:auto
}
.month-control strong{
  font-size:13px;
  min-width:105px;
  text-align:center
}
.calendar-legend{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  font-size:10px;
  color:#81959f;
  margin:0 0 15px
}
.calendar-legend>span{
  display:flex;
  align-items:center;
  gap:6px
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px
}
.weekday{
  text-align:center;
  font-size:10px;
  color:#869aa5;
  padding:5px
}
.calendar-day{
  min-height:70px;
  padding:10px 12px;
  border:1px solid #e8edf0;
  border-radius:7px;
  background:#fafbfc;
  color:#56717e;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.calendar-day span{
  font-size:12px;
  font-weight:650
}
.calendar-day small{
  font-size:9px
}
.calendar-day.available{
  background:#14733f;
  border-color:#14733f;
  color:#fff
}
.calendar-day.busy{
  background:#ad2939;
  border-color:#ad2939;
  color:#fff
}
.calendar-day.other-month{
  opacity:.65
}
.calendar-day.selected{
  outline:2px solid #6d8557;
  outline-offset:0
}
.calendar-day.today span{
  text-decoration:underline;
  text-underline-offset:4px
}
.selected-day{
  scroll-margin-top:90px;
  background:#f8fafb;
  border:1px solid var(--line);
  padding:18px;
  margin-top:22px;
  border-radius:8px
}
.selected-day>p{
  font-size:12px;
  margin:0
}
.selected-day h3{
  font-size:13px
}
.calendar-filter{
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:12px;
  margin:20px 0 8px
}
.calendar-filter .field{
  flex:1 1 150px;
  min-width:0;
  margin:0
}
.calendar-filter input{
  width:100%;
  min-width:0
}
.calendar-hint{
  font-size:11px;
  margin:12px 0 18px
}
.calendar-result-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:14px
}
.calendar-result-heading h3{
  margin:0
}
.calendar-rental{
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px;
  margin-top:14px;
  overflow-wrap:anywhere
}
.calendar-rental h4{
  margin:4px 0;
  font-size:16px
}
.calendar-rental small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:3px
}
.calendar-rental-info{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:18px 0
}
.calendar-rental-info dt{
  color:var(--muted);
  font-size:11px;
  margin-bottom:4px
}
.calendar-rental-info dd{
  margin:0;
  font-size:13px
}
.calendar-drivers{
  border-top:1px solid var(--line);
  padding-top:14px
}
.calendar-drivers h5{
  margin:0 0 10px;
  font-size:12px
}
.calendar-drivers p,.calendar-no-documents{
  font-size:12px;
  margin:8px 0 0
}
.calendar-driver{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  font-size:12px;
  margin:10px 0
}
.calendar-driver span{
  color:var(--muted)
}
.calendar-documents{
  border-top:1px solid var(--line);
  margin-top:16px;
  padding-top:14px;
  font-size:12px
}
.calendar-documents summary{
  cursor:pointer;
  font-weight:600
}
.rental-summary{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  align-items:center
}
.rental-summary small{
  font-size:9px;
  letter-spacing:.8px;
  color:var(--muted)
}
.rental-summary strong{
  display:block;
  margin-top:5px;
  font-size:13px
}
.rental-summary a{
  margin-left:auto
}
.timeline-item{
  border-left:2px solid #e0e9d5;
  padding:3px 0 18px 15px;
  margin:20px 0 0
}
.timeline-item>strong{
  display:block;
  font-size:13px
}
.timeline-item>small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px
}
.timeline-item>p{
  font-size:12px;
  margin:10px 0
}
.notes{
  padding-top:20px;
  font-size:12px;
  overflow-wrap:anywhere
}
.document-preview{
  min-height:550px;
  display:flex;
  align-items:flex-start;
  justify-content:center
}
.document-preview img{
  max-width:100%;
  height:auto;
  max-height:850px;
  object-fit:contain
}
.document-preview iframe{
  border:0;
  width:100%;
  height:650px
}
.audit-reason{
  border-left:3px solid #dbe5c6;
  background:#f7f9f3;
  padding:10px 13px;
  font-size:12px
}
.audit-event td{
  max-width:330px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.lookup-form{
  max-width:800px
}
.connection-message{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#8d4c3b;
  color:white;
  padding:15px 20px;
  border-radius:8px;
  box-shadow:0 4px 22px #0003;
  font-size:12px;
  max-width:90%;
  z-index:100
}
.auth-shell{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  gap:10vw;
  padding:7vw!important;
  max-width:1500px!important
}
.auth-intro{
  max-width:430px
}
.brand.dark{
  padding:0;
  color:var(--ink)
}
.auth-intro h1{
  font-size:43px;
  line-height:1.2;
  letter-spacing:-1.5px;
  margin:47px 0 20px
}
.auth-intro>p{
  font-size:14px;
  color:var(--muted);
  line-height:1.8;
  max-width:360px;
  margin-bottom:30px
}
.auth-feature{
  display:flex;
  align-items:center;
  gap:12px;
  color:#6b838d;
  font-size:12px;
  margin:18px 0
}
.auth-feature .icon{
  color:#739263
}
.auth-card{
  width:410px;
  max-width:100%;
  padding:35px;
  background:white;
  border:1px solid var(--line);
  border-radius:15px;
  box-shadow:0 12px 50px #1a415508
}
.auth-card h2{
  font-size:23px;
  margin-bottom:10px
}
.auth-card h1{
  font-size:26px
}
.auth-card>p{
  font-size:12px
}
.auth-card form{
  margin-top:25px
}
.auth-card .field{
  margin-bottom:20px
}
.auth-card .full{
  margin-top:5px
}
.auth-help{
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:24px!important;
  color:#8b9ca5;
  font-size:11px!important
}
.auth-card.centered{
  margin:auto
}
.auth-shell>.messages{
  position:absolute;
  top:20px;
  max-width:90%
}
.mobile-menu{
  display:none
}
.skip-link{
  position:fixed;
  top:-60px;
  left:20px;
  z-index:200;
  background:var(--accent);
  padding:10px 20px
}
.skip-link:focus{
  top:10px
}
dialog{
  border:1px solid var(--line);
  border-radius:12px;
  padding:26px;
  max-width:420px;
  width:90%;
  color:var(--ink)
}
dialog::backdrop{
  background:#102b3970
}
dialog p{
  font-size:13px;
  color:var(--muted)
}
dialog .actions{
  justify-content:flex-end
}
.htmx-request .button{
  cursor:wait
}
.operation-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.operation-grid strong{
  font-size:22px;
  display:block;
  margin:12px 0
}
.code-block{
  padding:15px;
  background:#f4f7f8;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:auto;
  white-space:pre-wrap;
  font:12px/1.6 monospace
}

/* Daily work first; optional information stays in native disclosures. */
.renter-name{
  font-size:15px;
  font-weight:750;
  line-height:1.5;
  overflow-wrap:anywhere;
  color:#193845
}
td:has(.renter-name){
  max-width:330px
}
.reminder-row small{
  color:#405d6c;
  font-size:12px;
  font-weight:600
}
.disclosure>summary,.optional-section>summary{
  cursor:pointer;
  font-weight:650;
  font-size:15px
}
.disclosure>summary .count{
  margin-left:8px
}
.disclosure[open]>summary{
  margin-bottom:22px
}
.optional-section{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:20px 0;
  margin:20px 0
}
.optional-section[open]>summary{
  margin-bottom:20px
}
.optional-section .detail-group{
  margin-bottom:8px
}
.optional-section>.detail-group:last-of-type{
  margin-bottom:20px
}
.summary-heading{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px
}
.summary-heading h2{
  font-size:22px;
  flex:1 1 240px;
  margin:0
}
.summary-contact{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:12px 24px;
  margin:20px 0 0
}
.summary-contact>div{
  min-width:0
}
.summary-contact dt{
  font-size:11px;
  color:var(--muted);
  margin-bottom:5px
}
.summary-contact dd{
  margin:0;
  font-size:15px;
  font-weight:600;
  line-height:1.6;
  overflow-wrap:anywhere
}
.summary-contact .phone-link{
  padding:0
}
.compact-rental-summary .detail-grid{
  margin:22px 0
}
.actions.wrap{
  flex-wrap:wrap
}
.filter-disclosure{
  flex:0 1 auto
}
.filter-disclosure summary{
  cursor:pointer;
  font-size:12px;
  font-weight:650;
  padding:11px
}
.filter-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px
}
.calendar-jump{
  margin:0 0 18px;
  font-size:12px
}
.calendar-jump summary{
  cursor:pointer;
  font-weight:650;
  color:#395d6b
}
.calendar-drivers summary,.calendar-documents summary{
  cursor:pointer;
  font-size:12px;
  font-weight:650;
  padding:8px 0
}
.calendar-rental-info{
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.calendar-rental h4{
  font-size:18px
}
.wizard-progress{
  display:flex;
  gap:26px;
  list-style:none;
  padding:0;
  margin:0 0 22px;
  font-size:13px;
  color:var(--muted)
}
.wizard-progress li{
  display:flex;
  align-items:center;
  gap:9px
}
.wizard-progress li span{
  border:1px solid #c2cdd2;
  border-radius:50%;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  flex-shrink:0
}
.wizard-progress [aria-current=step]{
  color:#193845;
  font-weight:700
}
.wizard-progress [aria-current=step] span{
  background:#193845;
  color:white;
  border-color:#193845
}
.rental-wizard{
  max-width:850px
}
.rental-wizard h2{
  margin-bottom:24px;
  scroll-margin-top:100px
}
.wizard-review{
  padding:17px;
  background:#f3f6f7;
  border-radius:8px;
  margin:8px 0 20px;
  overflow-wrap:anywhere
}
.wizard-review>div{
  display:flex;
  gap:10px 18px;
  flex-wrap:wrap
}
.wizard-review p{
  display:flex;
  gap:8px 18px;
  flex-wrap:wrap;
  margin:6px 0 0;
  color:#4d6674;
  font-size:13px
}
.wizard-review p:has(span:empty):has(span:last-child:empty){
  margin:0
}
.disclosure,.calendar-jump{
  scroll-margin-top:90px
}
@media(min-width:1700px){
  .page-heading{
    margin-top:12px
  }
  #main{
    padding:38px 48px
  }
}
@media(max-width:1200px){
  .sidebar{
    width:214px;
    padding:28px 13px
  }
  .brand{
    font-size:19px
  }
  .workspace{
    margin-left:214px;
    width:calc(100% - 214px)
  }
  .topbar{
    padding:0 25px
  }
  #main{
    padding:27px 25px
  }
  .stats-grid{
    gap:12px
  }
  .stat-card{
    padding:16px
  }
  .stat-top{
    font-size:11px
  }
  .stat-bottom{
    font-size:9px
  }
  .dashboard-columns{
    gap:16px
  }
  .panel{
    padding:20px
  }
  .table-wrap{
    margin:0 -20px
  }
  .detail-columns{
    grid-template-columns:1fr
  }
  .detail-columns>div{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:start
  }
  .detail-columns .panel{
    margin-bottom:0
  }
  .detail-columns{
    margin-bottom:22px
  }
  .page-heading{
    align-items:flex-start
  }
  .page-heading .actions{
    justify-content:flex-end
  }
  .form-grid.three{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .row-end{
    max-width:50%
  }
}
@media(max-width:950px){
  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .dashboard-columns{
    grid-template-columns:1fr
  }
  .detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .page-heading{
    flex-direction:column;
    gap:16px
  }
  .page-heading .actions{
    justify-content:flex-start
  }
  .breadcrumb{
    font-size:11px
  }
  .topbar-right .workspace-pill{
    display:none
  }
  .auth-shell{
    gap:5vw
  }
  .auth-intro h1{
    font-size:33px
  }
  .auth-card{
    padding:26px
  }
  .sidebar-bottom strong{
    font-size:11px
  }
  .rental-summary a{
    margin-left:0
  }
}
@media(max-width:760px){
  .sidebar{
    transform:translateX(-100%);
    transition:transform .18s;
    width:238px;
    box-shadow:10px 0 35px #102b3930
  }
  .sidebar.open{
    transform:translateX(0)
  }
  .workspace{
    margin-left:0;
    width:100%
  }
  .mobile-menu{
    display:inline-flex
  }
  .topbar{
    height:62px;
    padding:0 16px;
    position:sticky;
    top:0;
    z-index:25
  }
  .breadcrumb{
    margin-right:auto;
    gap:7px;
    font-size:10px
  }
  .topbar-right{
    gap:6px
  }
  .version-pill{
    font-size:9px;
    padding:3px 6px
  }
  #main{
    padding:24px 18px
  }
  .page-heading{
    margin-bottom:20px
  }
  h1{
    font-size:27px
  }
  .page-heading p{
    font-size:12px
  }
  .eyebrow{
    font-size:8px!important
  }
  .panel{
    padding:18px;
    margin-bottom:18px;
    border-radius:10px
  }
  .table-wrap{
    margin:0
  }
  .responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{
    display:block;
    width:100%
  }
  .responsive-table thead{
    display:none
  }
  .responsive-table tr{
    border:1px solid var(--line);
    border-radius:9px;
    padding:12px 13px;
    margin-bottom:12px
  }
  .responsive-table tr:last-child{
    margin-bottom:0
  }
  .responsive-table td{
    padding:6px 0!important;
    border:0;
    font-size:12px;
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    text-align:right;
    flex-wrap:wrap
  }
  .responsive-table td:before{
    content:attr(data-label);
    color:#8599a3;
    font-size:10px;
    text-align:left;
    margin-right:auto
  }
  .responsive-table td>small{
    margin:0;
    width:100%;
    font-size:10px
  }
  .rental-contact-cell,.rental-dates-cell{
    flex:1;
    min-width:0;
    max-width:70%
  }
  .rental-contact-cell .phone-link{
    min-height:36px;
    display:flex;
    align-items:center;
    justify-content:flex-end
  }
  .rental-contact-summary{
    grid-template-columns:1fr;
    gap:18px
  }
  .responsive-table td>.actions{
    margin-left:auto
  }
  .responsive-table td:has(.empty){
    display:block;
    text-align:center
  }
  .responsive-table td.row-action{
    padding-top:6px!important
  }
  .responsive-table td.row-action .icon-button{
    height:26px
  }
  .responsive-table td:empty{
    display:none
  }
  .stats-grid{
    gap:12px;
    margin-bottom:18px
  }
  .stat-card{
    padding:15px
  }
  .stat-card>strong{
    font-size:31px;
    margin:10px 0 12px
  }
  .stat-icon{
    width:27px;
    height:27px
  }
  .stat-top{
    font-size:11px
  }
  .stat-bottom{
    font-size:9px
  }
  .filters{
    gap:8px;
    margin-bottom:18px
  }
  .search-input{
    min-width:100%;
    flex-basis:100%
  }
  .filters select{
    flex:1;
    max-width:none;
    min-width:90px;
    padding:9px 8px;
    font-size:11px
  }
  .filters .button{
    font-size:11px;
    min-height:39px;
    padding:9px 11px
  }
  .filters>.text-link{
    font-size:11px
  }
  .button{
    font-size:11px;
    padding:10px 12px
  }
  .panel-title{
    margin-bottom:16px;
    gap:10px
  }
  .panel-title h2{
    font-size:16px
  }
  .panel-title p{
    font-size:10px
  }
  .title-icon{
    width:31px;
    height:31px
  }
  .reminder-row{
    gap:10px;
    padding:13px 0
  }
  .reminder-row strong{
    font-size:12px
  }
  .row-end strong{
    font-size:11px
  }
  .reminder-row small{
    font-size:10px
  }
  .reminder-extra summary{
    font-size:11px
  }
  .page-footer{
    font-size:9px;
    gap:10px
  }
  .page-footer span{
    max-width:55%;
    text-align:right
  }
  .form-grid,.form-grid.three{
    grid-template-columns:1fr;
    gap:0
  }
  .field{
    margin-bottom:19px
  }
  .field>label{
    font-size:12px
  }
  input,select,textarea{
    font-size:16px;
    min-height:44px
  }
  .form-section>summary{
    font-size:13px
  }
  .form-section>summary>.muted{
    font-size:9px
  }
  .form-actions{
    position:sticky;
    bottom:0;
    background:white;
    padding:15px 0 2px
  }
  .plate-results>button{
    gap:8px;
    font-size:11px;
    flex-wrap:wrap
  }
  .plate-results>button>span{
    max-width:50%
  }
  .detail-columns{
    display:block
  }
  .detail-columns>div{
    display:block
  }
  .detail-columns .panel{
    margin-bottom:18px
  }
  .detail-grid,.detail-columns .detail-grid{
    gap:17px 14px
  }
  .detail-grid dt{
    font-size:10px
  }
  .detail-grid dd{
    font-size:12px
  }
  .detail-group summary{
    font-size:12px
  }
  .calendar-grid{
    gap:2px;
    margin-inline:-14px
  }
  .calendar-day{
    min-height:52px;
    padding:7px 0;
    text-align:center
  }
  .calendar-day span{
    font-size:11px
  }
  .calendar-day small{
    font-size:8px;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.3
  }
  .calendar-legend{
    gap:10px;
    font-size:9px
  }
  .month-control{
    width:100%;
    justify-content:space-between;
    margin-top:6px
  }
  .calendar-legend .dot{
    width:6px;
    height:6px
  }
  .selected-day{
    padding:12px
  }
  .calendar-rental{
    padding:14px
  }
  .calendar-rental-info{
    grid-template-columns:1fr
  }
  .calendar-filter .button{
    width:100%
  }
  .selected-day .reminder-row{
    flex-direction:column;
    align-items:flex-start
  }
  .selected-day .row-end{
    max-width:none;
    text-align:left
  }
  .rental-summary{
    gap:17px;
    display:grid;
    grid-template-columns:1fr
  }
  .rental-summary>div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px
  }
  .rental-summary strong{
    font-size:12px;
    margin:0
  }
  .rental-summary small{
    font-size:9px
  }
  .rental-summary a{
    font-size:11px
  }
  .archive-notice,.demo-notice{
    font-size:10px;
    padding:10px 12px
  }
  .document-preview{
    min-height:250px
  }
  .document-preview iframe{
    height:480px
  }
  .audit-event td{
    max-width:none
  }
  .auth-shell{
    display:block;
    padding:30px 20px!important;
    min-height:100vh
  }
  .auth-intro{
    margin:5px auto 27px;
    max-width:410px
  }
  .auth-intro h1{
    font-size:28px;
    margin:25px 0 10px
  }
  .auth-intro>p{
    font-size:12px;
    margin-bottom:0
  }
  .auth-feature{
    display:none
  }
  .auth-card{
    margin:auto;
    padding:25px
  }
  .auth-card>h2{
    font-size:22px
  }
  .auth-card.centered{
    margin:25px auto
  }
  .auth-shell>.messages{
    position:static;
    max-width:410px;
    margin:auto
  }
  .operation-grid{
    grid-template-columns:1fr
  }
  .connection-message{
    font-size:11px;
    width:calc(100% - 32px);
    max-width:none;
    bottom:16px
  }
  .badge{
    font-size:9px
  }
  .pagination{
    font-size:10px;
    gap:8px
  }
  .pagination .button{
    font-size:10px;
    padding:8px 10px
  }
  .form-footnote{
    font-size:10px
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto!important;
    transition:none!important
  }
}

@media(max-width:700px){
  .stats-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px
  }
  .stat-card{
    padding:13px 10px
  }
  .stat-top{
    font-size:10px;
    gap:4px
  }
  .stat-card .stat-icon{
    display:none
  }
  .stat-card .stat-bottom{
    font-size:9px;
    line-height:1.5
  }
  .stat-card>strong{
    font-size:27px
  }
  .renter-name{
    font-size:15px
  }
  td:has(.renter-name){
    max-width:none
  }
  .filter-disclosure{
    flex:1 1 100%
  }
  .filter-disclosure summary{
    padding-left:0
  }
  .filter-options{
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .filter-options select{
    width:100%;
    max-width:none;
    min-width:0;
    font-size:13px
  }
  .filter-options .button{
    grid-column:1/-1
  }
  .summary-heading h2{
    font-size:21px
  }
  .compact-rental-summary .detail-grid{
    grid-template-columns:1fr
  }
  .disclosure>summary,.optional-section>summary{
    font-size:14px
  }
  .wizard-progress{
    gap:14px;
    font-size:11px
  }
  .wizard-progress li{
    gap:6px
  }
  .wizard-progress li span{
    width:25px;
    height:25px
  }
  .rental-wizard .form-actions{
    gap:10px;
    flex-wrap:wrap
  }
  .calendar-rental h4{
    font-size:16px
  }
  .calendar-day.selected{
    outline-color:#193845;
    outline-width:3px
  }
}
