.web-desktop .vehicle-card.vehicle-available{background:#f0faf3;border:1px solid #9bceb0;border-top:4px solid #27834e}
.web-desktop .vehicle-card.vehicle-rented{background:#fff2f2;border:1px solid #e4aaaa;border-top:4px solid #c74343}
.web-desktop .vehicle-available .vehicle-status,.web-desktop .calendar-car-status.available{background:#d6efdf;color:#185b34;font-weight:700}
.web-desktop .vehicle-rented .vehicle-status,.web-desktop .calendar-car-status.rented{background:#f8d9d9;color:#942a2a;font-weight:700}
.web-desktop .calendar .carlabel.vehicle-available{background:#edf8f0;border-left:4px solid #27834e}
.web-desktop .calendar .carlabel.vehicle-rented{background:#fff0f0;border-left:4px solid #c74343}
.web-desktop .car-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.web-desktop .car-quick-actions button{min-width:0;padding:10px 5px}
.web-desktop .contract-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end}
.web-desktop .contract-filters .field{min-width:280px;flex:1;margin:0}
.web-desktop .contract-filters .toolbar{flex-wrap:wrap}
.web-desktop .rental-payment-table th:last-child,.web-desktop .rental-payment-actions{text-align:center;white-space:nowrap}
.web-desktop .rental-payment-actions input[type=checkbox],.web-desktop .rental-payment-actions button{box-sizing:border-box;width:30px;height:30px;min-height:30px;min-width:30px;padding:0;margin:0 5px;vertical-align:middle;line-height:28px;border-radius:5px}
.web-desktop .rental-payment-actions button{font-size:24px;display:inline-block}
.web-desktop .rental-payment-table .deposit-row td:nth-child(2){text-align:center;vertical-align:middle}
.web-desktop .booking-contract-window [data-contract-pdf][hidden]{display:none!important}
.web-desktop .template-file-card{padding:22px;margin-bottom:18px}
.web-desktop .template-file-card h2{margin:0 0 8px}
.web-desktop .template-file-card details{margin-top:16px}
.web-desktop .template-file-card summary{cursor:pointer;color:#52665c}
.web-desktop .template-file-card input:disabled{cursor:wait}
.web-desktop .template-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.web-desktop .template-legend>div{display:grid;grid-template-columns:180px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #e5e9e5;align-items:center}
.web-desktop .template-legend code{color:#16553f;user-select:all;font-size:13px}
.web-desktop .template-upload-status{display:grid;gap:10px;color:#285b49}
.web-desktop .template-upload-status progress{width:100%;height:12px;accent-color:#255d49}
.web-desktop .template-upload-success{color:#167044;font-weight:600}
.web-desktop .template-file-card[aria-busy=true] .upload-label{opacity:.55;pointer-events:none}
.web-desktop .booking-inline-pdf{margin-right:auto;display:flex;align-items:center;gap:8px;max-width:260px;flex-wrap:wrap}
.web-desktop .booking-inline-pdf a{color:#16553f;font-weight:600}
.web-desktop .calendar-agenda{padding:12px 16px;margin-bottom:12px}
.web-desktop .calendar-agenda h2{font-size:17px;margin:0 0 8px}.web-desktop .calendar-agenda h2 small{font-size:13px;color:#63776c;margin-left:10px;font-weight:400}
.web-desktop .agenda-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.web-desktop .agenda-columns h3{font-size:13px;margin:0 0 6px}.web-desktop .agenda-columns p{margin:4px 0}
.web-desktop .agenda-entry{width:100%;justify-content:flex-start;padding:6px 8px;margin-top:4px;text-align:left;gap:10px}.web-desktop .agenda-entry span{flex:1}.web-desktop .agenda-entry b{font-size:12px;margin-left:6px}.web-desktop .agenda-entry small{white-space:nowrap}
.web-desktop .calendar-row>.carlabel{position:relative;padding-right:34px}.web-desktop .calendar-order{position:absolute;right:3px;top:4px;display:flex;flex-direction:column;gap:2px}.web-desktop .calendar-order button{width:25px;height:23px;min-height:0;padding:0;border-radius:4px;font-size:15px}.web-desktop .calendar-order button:disabled{cursor:default;opacity:.25}
.web-desktop .calendar-heading{display:grid;grid-template-columns:minmax(230px,1fr) minmax(390px,1.45fr);align-items:center;gap:20px;margin-bottom:14px}
.web-desktop .calendar-heading>.calendar-agenda{margin:0;padding:12px 14px;min-width:0}.web-desktop .calendar-heading .agenda-columns{gap:14px;max-height:160px;overflow-y:auto}.web-desktop .calendar-heading .agenda-entry{flex-wrap:wrap;font-size:12px;gap:5px}.web-desktop .calendar-heading .agenda-entry span{flex-basis:70%}.web-desktop .calendar-heading .agenda-entry b{display:block;margin:2px 0 0}.web-desktop .calendar-heading h1{font-size:28px}
@media(min-width:761px) and (max-width:1050px){.web-desktop .calendar-heading{grid-template-columns:minmax(180px,1fr) minmax(310px,1.4fr);gap:12px}.web-desktop .calendar-heading h1{font-size:24px}.web-desktop .calendar-heading .calendar-agenda h2{font-size:15px}.web-desktop .calendar-heading .agenda-columns{gap:8px}}
.web-desktop .clients-tools{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}.web-desktop .clients-tools .search{flex:1;min-width:180px}.web-desktop .clients-tools .actions{display:flex;flex-wrap:nowrap;gap:6px}.web-desktop .clients-tools .actions button{padding:9px 10px;white-space:nowrap;font-size:13px}
.web-desktop .phone-row{position:relative;padding-bottom:36px}.web-desktop .max-phone-control{position:absolute;left:0;bottom:0;right:0;display:flex;align-items:center;gap:8px}.web-desktop .max-phone-button{padding:3px 8px;height:30px;color:#70757c;border-color:#d5d6da;background:#f0f1f2;font-size:12px;flex-shrink:0}.web-desktop .max-phone-button img{width:22px;height:22px;filter:grayscale(1);opacity:.65}.web-desktop .max-phone-button.verified{color:#fff;background:linear-gradient(120deg,#148bff,#8546ed);border-color:transparent}.web-desktop .max-phone-button.verified img{filter:none;opacity:1}.web-desktop .max-phone-control>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.web-desktop .max-phone-control>span.error{white-space:normal;max-height:34px;overflow:auto;font-size:11px}.web-desktop .max-settings{padding:16px;margin-bottom:14px}.web-desktop .max-settings h2{margin:0}.web-desktop .max-connect [data-max-qr] img{display:block;max-width:100%;max-height:470px;margin:10px auto}.web-desktop .max-account-confirm{display:block;margin:15px 0}.web-desktop .max-connect [hidden]{display:none!important}
.web-desktop .finance-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:16px}.web-desktop .finance-filters label{display:grid;gap:4px}.web-desktop .finance-chart{display:flex;gap:12px;overflow-x:auto;min-height:168px;padding:18px 4px 0}.web-desktop .finance-column{flex:1;min-width:40px;text-align:center}.web-desktop .finance-bars{height:120px;display:flex;gap:3px;align-items:end;justify-content:center}.web-desktop .finance-bars>div{width:12px;border-radius:3px 3px 0 0}.web-desktop .finance-column small{white-space:nowrap;font-size:10px}.web-desktop .finance-cancelled{color:#737d7b;background:#f5f5f5}.web-desktop .finance-cancelled td:nth-child(5){text-decoration:line-through}.web-desktop .panel>h2{padding:14px 0 0}.web-desktop #finance-filter+ .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.web-desktop .finance-filters>select{width:auto;min-width:220px;flex:1}.web-desktop .finance-filters>.actions{flex-basis:100%}.web-desktop .finance-chart{border-bottom:1px solid #e5e9e7}.web-desktop .finance-chart+.small{padding:0 12px 12px}.web-desktop #content>section.panel>p,.web-desktop #content>section.panel>h2{margin-left:14px;margin-right:14px}

/* Compact money dashboard, preserving the shared green/white design. */
.web-desktop #content:has(#finance-filter) .pagehead{margin-bottom:12px}
.web-desktop #content:has(#finance-filter) .panel{margin-bottom:12px}
.web-desktop #content:has(#finance-filter) h2{font-size:16px;margin-top:0;padding-top:0}
.web-desktop #content:has(#finance-filter) .panelhead{padding:12px 14px}
.web-desktop #content:has(#finance-filter) td,.web-desktop #content:has(#finance-filter) th{padding:8px 12px;font-size:13px}
.web-desktop #content:has(#finance-filter) button{padding:7px 10px;min-height:32px;font-size:13px}
.web-desktop #content:has(#finance-filter) .stat{padding:12px 16px}
.web-desktop #content:has(#finance-filter) .stat .value{font-size:25px;margin:5px 0}
.web-desktop #content:has(#finance-filter) .stats{gap:10px;margin-bottom:8px}
.web-desktop .finance-filters{gap:8px;padding:12px;margin-bottom:10px}
.web-desktop .finance-filters input,.web-desktop .finance-filters select{padding:7px 9px;min-height:34px}
.web-desktop .finance-filters>.actions{flex-basis:auto;gap:4px;flex-wrap:wrap}
.web-desktop .finance-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px}
.web-desktop .finance-overview>.panel{padding:12px;min-width:0}
.web-desktop .finance-overview p{font-size:12px;margin:6px 0}
.web-desktop .finance-overview .scroll{max-height:220px;overflow:auto}
.web-desktop .finance-chart{min-height:0;padding:4px 0 0;gap:7px}
.web-desktop .finance-column{min-width:26px}
.web-desktop .finance-chart+.small{padding:0;margin-top:6px}
.web-desktop .finance-history>summary{padding:12px 14px;cursor:pointer;font-weight:600}
.web-desktop .finance-history>.panel{border:0;box-shadow:none;margin:0!important}
.web-desktop .finance-history .scroll{max-height:300px;overflow:auto}
.web-desktop .finance-day-details>summary{padding:12px 14px;cursor:pointer;font-weight:600}
.web-desktop .finance-day-details>p,.web-desktop .finance-history>p{margin:8px 14px 12px;line-height:1.5}
.web-desktop .finance-day-details .scroll{max-height:340px;overflow:auto}
.web-desktop .finance-day-details tfoot{background:#edf3ee}
.web-desktop .service-work-scroll{max-height:min(410px,50vh);overflow:auto}
.web-desktop .service-work-table{table-layout:fixed;width:100%}
.web-desktop .service-work-table th:first-child{width:155px}.web-desktop .service-work-table th:last-child{width:150px}
.web-desktop .service-work-table td,.web-desktop .service-work-table th{padding:8px;vertical-align:middle}
.web-desktop .service-work-table textarea{resize:vertical;min-height:58px;width:100%;box-sizing:border-box}
.web-desktop .service-work-table input{width:100%;box-sizing:border-box}
.web-desktop .service-row-actions{display:flex;justify-content:center;gap:8px}
.web-desktop .service-row-actions button{width:34px;height:34px;min-height:34px;padding:0;font-size:20px}
.web-desktop .service-work-table thead{position:sticky;top:0;background:#f3f6f4;z-index:1}
@media(min-width:761px) and (max-width:1100px){.web-desktop .finance-overview{grid-template-columns:1fr}}

.web-desktop .rental-footer-layout{display:grid!important;grid-template-columns:minmax(190px,1fr) minmax(120px,1fr) minmax(210px,1fr);align-items:center;gap:12px!important}
.rental-footer-left,.rental-footer-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.rental-footer-right{justify-content:flex-end}
.web-desktop .rental-footer-files{order:0;margin:0;max-width:none;justify-content:center;text-align:center;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.web-desktop .rental-footer-layout{grid-template-columns:1fr!important}.rental-footer-left,.rental-footer-right{justify-content:center}}

@media(min-width:761px){.web-desktop .rental-footer-layout{grid-template-columns:auto minmax(80px,1fr) auto;gap:8px!important}.web-desktop .rental-footer-left,.web-desktop .rental-footer-right{flex-wrap:nowrap}.web-desktop .rental-footer-layout button{white-space:nowrap;padding:9px 11px}.web-desktop .modalhead h2{margin-right:auto}.web-desktop .rental-header-back{margin-left:auto;margin-right:8px;flex-shrink:0}}

.client-max-view{margin:12px 0}.client-max-row{display:grid;grid-template-columns:auto auto 1fr;gap:10px 14px;align-items:center;padding:12px 0;border-bottom:1px solid #e5ece8}.client-max-row .max-phone-button{display:flex;align-items:center;gap:7px;white-space:nowrap}.client-max-consent{display:flex;align-items:center;gap:8px;grid-column:1/3}.client-max-consent input{width:20px;height:20px;margin:0;accent-color:#215b48}.client-max-result{color:#52685d}@media(max-width:600px){.client-max-row{grid-template-columns:1fr auto}.client-max-row>span,.client-max-result{grid-column:1/-1}}
/* Unified rental: fixed header/footer; only payment rows scroll on desktop. */
@media(min-width:761px){
 body.web-desktop dialog:has(.unified-rental){width:1120px;height:min(850px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
 body.web-desktop dialog:has(.unified-rental)>.modalhead{padding:10px 20px}
 .unified-rental .unified-notice{margin:0;padding:4px 20px;font-size:12px;flex-shrink:0}
 .unified-notice label{display:flex;align-items:center;gap:8px;color:#8b5510}.unified-notice span{display:block}
 .unified-rental>.modalbody{display:flex;flex-direction:column;overflow:hidden;padding:8px 20px;gap:5px}
 .unified-rental .booking-summary{margin:0;gap:8px;flex-shrink:0}
 .unified-rental .booking-summary>div{padding:7px 12px}.unified-rental .booking-summary strong{font-size:22px}
 .unified-rental #booking-main{display:flex;flex:1;min-height:0;flex-direction:column;padding:0;gap:6px;overflow:visible}
 .unified-rental .booking-car-row{grid-template-columns:minmax(220px,1fr) 210px 220px;margin:0;gap:10px}
 .unified-rental #booking-car{grid-column:2;grid-row:1}.unified-rental .rental-status-checks{grid-column:3;grid-row:1;align-self:center}
 .unified-rental .rental-status-checks label[hidden]{display:none!important}
 .unified-rental .booking-search{margin:0}.unified-rental .booking-client-info{margin:0;gap:4px 12px;font-size:12px}
 .unified-rental .field>span{font-size:12px;margin-bottom:3px}.unified-rental input:not([type=checkbox]),.unified-rental select{min-height:32px;height:32px;padding:5px 8px;font-size:13px}
 .unified-rental .booking-time-row{margin:0;gap:10px;grid-template-columns:1fr 105px 140px 1fr 105px}
 .unified-rental [name=days]{background:#fff8d9}.unified-rental .booking-time-row .day-stepper{background:#fff8d9;border-color:#e9d894}
 .unified-rental .booking-price-row{margin:0;grid-template-columns:1fr 1fr 1fr;gap:12px}
 .unified-rental .rental-deposit-check{display:flex;align-items:center;gap:5px}.unified-rental .rental-deposit-check:after{content:'Получен';font-size:12px}
 .unified-rental .booking-bottom-row{margin:0;flex-shrink:0}.unified-rental textarea[name=note]{height:34px!important;min-height:34px!important;padding:5px 8px}
 .unified-rental .unified-payments{display:flex;flex-direction:column;min-height:110px;flex:1;gap:3px}
 .unified-payments h3{font-size:14px;margin:0}.unified-payments .rental-payment-scroll{flex:1;min-height:70px;max-height:240px;overflow:auto;border:1px solid #e0e5e1;border-radius:7px}
 .unified-payments table{width:100%;min-width:0;table-layout:fixed}.unified-payments th{position:sticky;top:0;background:#f3f5f2;z-index:1;font-size:11px;padding:5px}
 .unified-payments td{padding:4px 5px;font-size:12px}.unified-payments th:nth-child(1){width:145px}.unified-payments th:nth-child(3){width:130px}.unified-payments th:last-child{width:135px}.unified-payments th:nth-child(6){width:125px}
 .unified-payments td input:not([type=checkbox]),.unified-payments td select{width:100%;min-width:0}.unified-payments .day-stepper button{min-height:28px;height:28px;width:28px;min-width:28px;padding:0}
 .unified-payments .day-stepper input{width:40px}.unified-payments .rental-payment-actions{display:table-cell;white-space:nowrap;text-align:center;vertical-align:middle}
 .unified-payments .rental-payment-actions input,.unified-payments .rental-payment-actions button{width:22px;height:22px;min-height:22px;min-width:22px;vertical-align:middle;margin:0 6px;padding:0}.unified-payments .deposit-row td:nth-child(2){text-align:center}
 .unified-payments small{font-size:11px}.unified-payments .error:empty{display:none}.unified-payments .error{margin:0}
 .unified-rental .modalfoot{padding:8px 20px;gap:8px;flex-wrap:nowrap}.unified-rental .modalfoot button{font-size:12px;min-height:34px;padding:7px 10px}
 .unified-rental .rental-footer-files{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;font-size:12px;gap:6px}
 .unified-rental .unified-max{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;line-height:1.25}
 .unified-max label{display:flex;gap:7px;align-items:center}.unified-max input{width:17px;height:17px;margin:0}
}
@media(min-width:761px) and (max-height:760px){
 .unified-rental .booking-summary strong{font-size:18px}.unified-rental .booking-summary>div{padding:4px 10px}
 .unified-rental #booking-main{gap:4px}.unified-rental .booking-car-row .registration-plate{max-height:42px}.unified-rental .booking-client-info{font-size:11px}
 .unified-rental .booking-link{min-height:24px;padding:2px 6px}.unified-rental .unified-notice{font-size:11px;padding-top:0;padding-bottom:0}
}
@media(min-width:761px){
 body.web-desktop .unified-rental .booking-summary{padding:0;min-height:0}
 body.web-desktop .unified-rental .booking-summary>div{padding:6px 12px;min-height:0}
 body.web-desktop .unified-rental .booking-summary strong{font-size:21px;line-height:1.2;margin-top:2px}
 body.web-desktop .unified-rental .booking-summary small{font-size:11px}
 body.web-desktop .unified-rental .unified-payments h3{margin:0;font-size:14px;line-height:20px}
 body.web-desktop .unified-rental .unified-payments .rental-payment-actions input{width:20px!important;height:20px!important;min-height:20px!important}
 body.web-desktop .unified-rental .unified-payments .rental-payment-actions button{width:24px;height:24px;min-height:24px;padding:0}
 body.web-desktop .unified-rental .unified-payments td{padding:3px 5px}
 body.web-desktop .unified-rental .unified-payments .error{margin:0}
}
.unified-rental .booking-summary[hidden]{display:none!important}
dialog:has(.unified-rental)>.modalhead{gap:12px;align-items:center}
.rental-header-totals{display:flex;align-items:center;justify-content:center;gap:14px;margin-left:auto;flex-shrink:0}
.rental-header-totals>div{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.rental-header-totals small{color:#728079;font-size:11px}.rental-header-totals strong{font-size:15px;line-height:1.2}
.web-desktop dialog:has(.unified-rental)>.modalhead h2{font-size:18px;margin-right:0;min-width:0}
.web-desktop dialog:has(.unified-rental) .rental-header-back{margin-left:0;margin-right:0}
@media(max-width:1000px){.rental-header-totals{gap:9px}.rental-header-totals>div{gap:4px}.rental-header-totals strong{font-size:13px}.web-desktop dialog:has(.unified-rental)>.modalhead h2{font-size:16px}}
@media(max-width:760px){dialog:has(.unified-rental)>.modalhead{flex-wrap:wrap}.rental-header-totals{order:2;flex-basis:100%;justify-content:space-between;margin:0}.rental-header-totals>div{gap:4px}}
.unified-rental .unified-notice[hidden]{display:none!important}
.unified-rental .rental-max-phone{display:flex;align-items:center;gap:7px;font-size:12px;min-width:0}
.unified-rental .rental-max-phone label{white-space:nowrap}.rental-max-number{white-space:nowrap}
.unified-rental .rental-max-phone .max-phone-button{min-height:29px;height:29px;padding:3px 7px;flex-shrink:0}
.unified-rental .rental-max-status{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#6d7974}
@media(min-width:761px){
 body.web-desktop .unified-rental .booking-search{display:flex;align-items:flex-end;gap:9px}
 body.web-desktop .unified-rental .booking-search>.field{flex:1;min-width:190px}
 body.web-desktop .unified-rental .booking-search>#booking-add-client{flex-shrink:0;padding:5px 7px;min-height:32px;height:32px;font-size:12px}
 body.web-desktop .unified-rental .unified-max{display:flex;flex-direction:column;flex:0 1 auto;gap:4px;min-height:32px;justify-content:center;max-width:58%}
}
/* Compact workspace header on the web desktop. */
@media(min-width:761px){
 body.web-desktop .topbar{height:42px;min-height:42px;gap:12px;font-size:10px}
 body.web-desktop .topbar>.owner{gap:7px;font-size:11px}
 body.web-desktop .topbar .avatar{width:24px;height:24px;font-size:11px}
 body.web-desktop .topbar button{min-height:28px;height:28px;padding:3px 8px;font-size:11px}
}

/* Approved calendar layout: compact heading/legend, unchanged vehicle rows. */
@media(min-width:761px){
 .web-desktop .compact-calendar-heading{display:flex;justify-content:space-between;gap:16px;margin:22px 0 18px}
 .web-desktop .compact-calendar-heading h1{margin:0}
 .web-desktop .compact-calendar-panel{isolation:isolate}
 .web-desktop .compact-calendar-agenda{position:relative;margin-left:auto;flex-shrink:0;z-index:12}
 .web-desktop .compact-calendar-agenda summary{display:flex;align-items:center;gap:14px;list-style:none;cursor:pointer;background:#fff;border:1px solid #dce2d7;border-radius:9px;padding:11px 14px;font-size:12px;white-space:nowrap}
 .web-desktop .compact-calendar-agenda summary::-webkit-details-marker{display:none}
 .web-desktop .compact-calendar-agenda summary strong{font-size:13px}
 .web-desktop .compact-calendar-agenda summary b{background:#eff3e9;border-radius:4px;padding:2px 6px;margin-left:3px}
 .web-desktop .compact-calendar-agenda summary:focus-visible{outline:2px solid #287eaa;outline-offset:2px}
 .web-desktop .compact-calendar-agenda[open] .agenda-chevron{transform:rotate(180deg)}
 .web-desktop .compact-calendar-agenda>.agenda-columns{position:absolute;top:calc(100% + 6px);right:0;width:min(620px,75vw);max-height:320px;overflow:auto;background:#fff;border:1px solid #dce2d7;border-radius:9px;padding:15px;box-shadow:0 8px 28px #142c2926}
 .web-desktop .compact-calendar-panel .panelhead{padding:10px 12px 6px}
 .web-desktop .compact-calendar-panel .legend{padding:5px 13px 10px;gap:16px;align-items:center}
 .web-desktop .compact-calendar-panel .calendar-legend-help{margin-left:auto;border-radius:50%;width:18px;height:18px;min-height:0;padding:0;font-size:11px}
 .web-desktop .compact-calendar-panel .calendar-row>.carlabel{position:sticky;left:0;z-index:4}
 .web-desktop .compact-calendar-panel .calendar-row.header{position:sticky;top:0;z-index:6}
 .web-desktop .compact-calendar-panel .calendar-row.header>.carlabel{z-index:7}
}
@media(min-width:761px) and (max-width:1100px){
 .web-desktop .compact-calendar-heading{gap:10px;flex-wrap:wrap}
 .web-desktop .compact-calendar-agenda summary{gap:9px;padding:9px 10px}
}

/* The calendar owns scrolling; page chrome stays inside the viewport. */
@media(min-width:761px){
 body.web-desktop:has(.compact-calendar-panel .calendar){overflow:hidden}
 .web-desktop .shell:has(.compact-calendar-panel .calendar){height:100dvh;min-height:0;overflow:hidden}
 .web-desktop main:has(.compact-calendar-panel .calendar){display:flex;flex-direction:column;height:100dvh;min-height:0;padding-bottom:20px}
 .web-desktop main:has(.compact-calendar-panel .calendar)>.topbar{flex-shrink:0}
 .web-desktop #content:has(.compact-calendar-panel .calendar){display:flex;flex-direction:column;flex:1;min-height:0}
 .web-desktop #content:has(.compact-calendar-panel .calendar)>.compact-calendar-heading{flex-shrink:0}
 .web-desktop .compact-calendar-panel:has(.calendar){display:flex;flex-direction:column;flex:1;min-height:0;margin-bottom:0}
 .web-desktop .compact-calendar-panel:has(.calendar)>.panelhead,.web-desktop .compact-calendar-panel:has(.calendar)>.legend{flex-shrink:0}
 .web-desktop .compact-calendar-panel .calendar{flex:1;min-height:0;max-height:none!important;overscroll-behavior:contain}
}

/* Clear money meanings and compact persistence state, web only. */
.web-desktop .client-money-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}
.web-desktop .client-money-summary small,.web-desktop .client-money-summary strong{display:block}
.web-desktop .client-money-summary strong{font-size:20px;margin-top:4px}
.web-desktop .client-money-summary p{grid-column:1/-1;margin:0;font-size:12px;color:#667b74}
.web-desktop .preliminary-summary{display:flex;align-items:center;gap:20px}
.web-desktop .preliminary-summary>[hidden]{display:none!important}
.web-desktop .preliminary-note{color:#667b74;max-width:340px}
.web-desktop .form-save-state{font-size:11px;color:#24715a;white-space:nowrap;align-self:center}
.web-desktop .form-save-state.unsaved{color:#98631c}
.web-desktop .rental-footer-layout{position:relative;padding-bottom:27px}
.web-desktop .rental-footer-layout>.form-save-state{position:absolute;bottom:6px;right:20px}
.web-desktop .rental-footer-left button{font-size:11px;padding:7px 9px}

@media(min-width:761px){
 .web-desktop .compact-fleet{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .web-desktop .fleet-count{font-size:15px;font-weight:400;letter-spacing:0;margin-left:16px;color:#78867f}
 .web-desktop .compact-vehicle.vehicle-card{background:#fff;border:1px solid #dce2d7;border-left:4px solid #27834e;border-radius:10px;padding:12px 14px 13px;min-height:180px}
 .web-desktop .compact-vehicle.vehicle-rented{border-left-color:#c74343}
 .web-desktop .compact-vehicle .vehicle-card-top{margin:-4px -5px 4px 0;min-height:27px;gap:6px}
 .web-desktop .compact-vehicle .vehicle-status{background:none;padding:0;font-size:12px;color:#218043;display:inline-flex;align-items:center;gap:7px}
 .web-desktop .compact-vehicle.vehicle-rented .vehicle-status{color:#ba3636}
 .web-desktop .compact-vehicle .vehicle-status::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
 .web-desktop .compact-vehicle .vehicle-edit{width:28px;height:28px;min-width:28px;min-height:28px;padding:5px}
 .web-desktop .fleet-identity{display:grid;grid-template-columns:minmax(0,1fr) 158px;gap:9px;align-items:center;min-height:52px}
 .web-desktop .fleet-name{min-width:0}
 .web-desktop .compact-vehicle h3{font-size:15px;line-height:1.25;margin:0 0 5px;overflow-wrap:anywhere}
 .web-desktop .compact-vehicle .registration-plate{width:158px;max-width:100%;align-self:center;filter:none}
 .web-desktop .compact-vehicle .vehicle-meta{font-size:11px;line-height:1.35;margin:0}
 .web-desktop .fleet-dates{display:flex;flex-wrap:wrap;gap:3px 9px;font-size:11px;line-height:1.4;color:#68776f;margin:12px 0 8px}
 .web-desktop .fleet-dates span+span::before{content:'·';margin-right:9px;color:#8d9992}
 .web-desktop .fleet-dates .fleet-overdue{color:#b43b36;font-weight:600}
 .web-desktop .compact-vehicle .vehicle-card-bottom{padding:0;margin-top:auto}
 .web-desktop .compact-vehicle .car-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
 .web-desktop .compact-vehicle .car-quick-actions button{min-height:32px;padding:6px 3px;font-size:11px;border-radius:5px}
}
@media(min-width:1200px){.web-desktop .compact-fleet{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1200px) and (max-width:1399px){.web-desktop .fleet-identity{grid-template-columns:minmax(0,1fr) 142px}.web-desktop .compact-vehicle .registration-plate{width:142px}}
@media(min-width:761px) and (max-width:999px){.web-desktop .compact-fleet{grid-template-columns:minmax(0,1fr)}}
.web-desktop .client-search-result{padding:0 20px 12px;font-size:12px;color:#6b7c72}
.web-desktop .clients-tools input[type=search]{min-width:230px;flex:1}

.finance-day-details td small{display:block;margin-top:3px;color:var(--muted,#68776f)}

.web-desktop .max-card-heading,.web-desktop .max-card-body{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.web-desktop .max-card-heading h2{padding:0}
.web-desktop .max-card-body{margin-top:14px}
.web-desktop .max-card-body dl{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:10px 32px;margin:0}
.web-desktop .max-card-body dt{font-size:12px;color:var(--muted,#657670)}
.web-desktop .max-card-body dd{margin:3px 0 0;font-weight:600}
.web-desktop [data-max-connection][data-state="ready"]{color:#196348}
.web-desktop [data-max-connection][data-state="qr"],.web-desktop [data-max-connection][data-state="confirm"]{color:#8a510c}
