/* Manager 3.0 — module surfaces. Load after manager-ui.css and manager-v3.css.
   Native forms, links, details, data attributes and shared tb-button controls remain intact.
   :has() identifies the existing unclassified invoice summary, mileage and client pages;
   these scopes deliberately exclude Reservations, Inicio, navigation and PDF canvases. */
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)){
 --m3-surface:#fff;
 --m3-line:#e3e8ef;
 --m3-ink:#152335;
 --m3-muted:#617085;
 --m3-blue:#0c68df;
 color:var(--m3-ink);
 font-size:15px;
 line-height:1.5;
}
body.manager-v3:has(#main-nav) :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) :is(.stats-heading,.page-title){
 align-items:center;
 gap:16px;
 margin-bottom:24px;
}
body.manager-v3:has(#main-nav) :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) h1{
 font-size:32px;
 line-height:1.14;
 font-weight:700;
 letter-spacing:-.035em;
 overflow-wrap:anywhere;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) :is(.eyebrow,.lead){
 color:var(--m3-muted);
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) .eyebrow{
 margin:0 0 8px;
 font-size:11px;
 font-weight:600;
 line-height:1.5;
 letter-spacing:.05em;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) .lead{
 margin:6px 0 0;
 font-size:14px;
 line-height:1.55;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(.stats-card,.form-section,.contact-card,.metric-card,.payment-panel){
 background:var(--m3-surface);
 border:1px solid var(--m3-line);
 border-radius:17px;
 box-shadow:0 2px 6px #14243804;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) :is(.stats-card,.form-section){
 padding:20px;
 margin-bottom:16px;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) :is(.stats-card h2,.form-section h2){
 color:var(--m3-ink);
 font-size:19px;
 font-weight:700;
 line-height:1.35;
 letter-spacing:-.025em;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) .stats-card-title{
 align-items:center;
 gap:12px;
 margin-bottom:17px;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) :is(.muted,.field-help,.form-note,.calculation-note){
 color:var(--m3-muted);
 font-size:13px;
 line-height:1.6;
 overflow-wrap:anywhere;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(.filter-bar,.form-grid,.invoice-export-grid){
 gap:16px;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) label{
 min-width:0;
 color:#53647a;
 font-size:12px;
 font-weight:600;
 line-height:1.5;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),textarea,select){
 max-width:100%;
 min-width:0;
 box-sizing:border-box;
 min-height:48px;
 border-color:#d6e0eb;
 border-radius:10px;
 background-color:#fff;
 color:var(--m3-ink);
 font-family:inherit;
 font-size:16px;
 font-weight:400;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),textarea){
 padding:12px 14px;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(input,textarea)::placeholder{color:#8b98a8;opacity:1}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.options-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) .filter-bar{
 align-items:flex-end;
 margin:0 0 20px;
}
body.manager-v3 :is(main.invoice-home,main.balance-page,main.options-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) .filter-bar label{
 display:grid;
 gap:7px;
 flex:0 1 180px;
}
body.manager-v3 main.invoice-home .filter-bar .search-filter{flex:1 1 240px}
body.manager-v3 main.options-page .filter-bar{margin-bottom:0}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .invoice-toolbar-actions{gap:10px;flex-wrap:wrap}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .invoice-toolbar-actions a{height:auto;min-width:0}

/* Facturas: retain all five row fields, especially amount and payment state. */
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-list{border-top:1px solid var(--m3-line)}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row{
 grid-template-columns:90px minmax(0,1fr) 125px 115px 14px;
 gap:13px;
 min-height:72px;
 padding:14px 0;
 border-bottom-color:var(--m3-line);
 color:var(--m3-ink);
 font-size:14px;
 line-height:1.4;
}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row:last-child{border-bottom:0}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row strong{
 font-size:15px;
 font-weight:650;
 color:var(--m3-ink);
 overflow-wrap:anywhere;
}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row .latest-client{
 font-size:14px;
 color:#53647a;
 white-space:normal;
 overflow-wrap:anywhere;
}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>span:nth-of-type(2){
 display:block;
 text-align:right;
 font-size:16px;
 font-weight:650;
 font-variant-numeric:tabular-nums;
}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row .status-badge{
 display:inline-flex;
 justify-self:end;
 font-size:11px;
 font-weight:600;
 padding:5px 9px;
 line-height:1.35;
 max-width:100%;
 white-space:normal;
 text-align:center;
}
body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row i{font-size:22px;color:#9ba8b8}
body.manager-v3 main.invoice-home .invoice-history-heading-meta{gap:10px;min-width:0}
body.manager-v3 main.invoice-home .invoice-history-search{padding:14px 16px}
body.manager-v3 main.invoice-home .invoice-history-search .filter-bar{margin:0}
body.manager-v3 main.invoice-home .pagination{gap:12px;flex-wrap:wrap;align-items:center;margin-top:18px}
body.manager-v3 main.invoice-home .pagination a{border-radius:10px;padding:11px 14px;text-decoration:none;min-height:44px}
body.manager-v3 main.invoice-form-page .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.manager-v3 main.invoice-form-page .form-grid>.full{grid-column:1/-1}
body.manager-v3 main.invoice-form-page .form-section>h2{margin-bottom:17px}
body.manager-v3 main.invoice-form-page .payment-panel{padding:17px 18px;gap:15px}

/* Facturas summary and Balance: quieter metric cards with legible aligned values. */
body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards{
 gap:14px;
 grid-template-columns:repeat(4,minmax(0,1fr));
 margin:20px 0 17px;
}
body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards>.metric-card{
 padding:18px;
 gap:12px;
 flex-direction:column;
}
body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards .metric-icon{
 width:34px;
 height:34px;
 border-radius:10px;
 color:var(--m3-blue);
 background:#edf3fc;
}
body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards .metric-icon svg{width:20px;height:20px}
body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card span{color:var(--m3-muted);font-size:12px;font-weight:500;line-height:1.5}
body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card strong{
 font-size:25px;
 font-weight:700;
 line-height:1.18;
 letter-spacing:-.035em;
 color:var(--m3-ink);
 white-space:normal;
 overflow-wrap:anywhere;
 font-variant-numeric:tabular-nums;
}
body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card small{font-size:12px;line-height:1.55;color:var(--m3-muted)}
body.manager-v3 main:has(>.invoice-toolbar) .tax-base{border-top-color:var(--m3-line);gap:4px;margin-top:7px;padding-top:9px}
body.manager-v3 main:has(>.invoice-toolbar) .tax-base b{font-size:16px;color:#355a83}
body.manager-v3 main:has(>.invoice-toolbar) .bar-chart{height:235px;gap:7px}
body.manager-v3 main:has(>.invoice-toolbar) .bar-fill{background:#c3d7ef}
body.manager-v3 main:has(>.invoice-toolbar) .bar-fill.current{background:var(--m3-blue)}
body.manager-v3 main:has(>.invoice-toolbar) .semester-bars{height:230px;gap:50px;margin-top:20px}
body.manager-v3 main:has(>.invoice-toolbar) .semester-fill.previous{background:#b9cce4}
body.manager-v3 main:has(>.invoice-toolbar) .semester-fill.current{background:var(--m3-blue)}
body.manager-v3 main.balance-page .balance-table-wrap{border-radius:10px}
body.manager-v3 main.balance-page .balance-table{font-size:14px}
body.manager-v3 main.balance-page .balance-table :is(th,td){padding:13px 9px;border-bottom-color:var(--m3-line);line-height:1.5}
body.manager-v3 main.balance-page .balance-table thead th{font-size:12px;background:#f7f9fc;color:var(--m3-muted)}
body.manager-v3 main.balance-page .balance-table tfoot :is(th,td){color:#245b94}
body.manager-v3 main.balance-page .vehicle-summaries{gap:14px;margin-bottom:17px}
body.manager-v3 main.balance-page .income-breakdown>div{gap:12px;margin-top:12px;line-height:1.5}
body.manager-v3 main.balance-page .income-breakdown dd{font-variant-numeric:tabular-nums}
body.manager-v3 :is(main.balance-page,main:has(>.quarter-grid)) .record-list{border-top-color:var(--m3-line)}
body.manager-v3 :is(main.balance-page,main:has(>.quarter-grid)) .record-row{padding:16px 0;border-bottom-color:var(--m3-line);gap:15px}
body.manager-v3 :is(main.balance-page,main:has(>.quarter-grid)) .record-row strong{font-size:14px;font-weight:650;line-height:1.5}
body.manager-v3 :is(main.balance-page,main:has(>.quarter-grid)) .record-row small{font-size:12px;line-height:1.65;color:var(--m3-muted)}
body.manager-v3 :is(main.balance-page,main:has(>.quarter-grid)) .record-amount{font-size:16px;font-variant-numeric:tabular-nums;gap:10px}

/* Clientes: selectors also cover the existing unclassified main element. */
body.manager-v3 main:has(>.contact-list) .search-bar{
 margin:0 0 18px;
 padding:0;
 border:0;
 background:transparent;
 box-shadow:none;
}
body.manager-v3 main:has(>.contact-list) .search-bar input{
 min-height:48px;
 border:1px solid #e4eaf2;
 border-radius:12px;
 background:#e8edf3;
 padding:12px 14px;
 font-size:16px;
 color:#152335;
}
body.manager-v3 main:has(>.contact-list) .contact-list{gap:11px}
/* The legacy contact-row border is !important, so its replacement is narrowly scoped. */
body.manager-v3 main:has(>.contact-list) .contact-row{
 border:1px solid #e3e8ef!important;
 border-radius:15px;
 padding:16px;
 min-height:78px;
 gap:13px;
 box-shadow:0 2px 6px #14243804;
}
body.manager-v3 main:has(>.contact-list) .contact-row:hover{border-color:#bfd3ee!important;box-shadow:none}
body.manager-v3 main:has(>.contact-list) .contact-data{gap:4px}
body.manager-v3 main:has(>.contact-list) .contact-data strong{font-size:15px;font-weight:650;color:#152335;overflow-wrap:anywhere}
body.manager-v3 main:has(>.contact-list) .contact-data small{font-size:13px;line-height:1.5;color:#617085;overflow-wrap:anywhere}
body.manager-v3 :is(main:has(>.contact-list),main:has(>.contact-card)) .contact-avatar{width:39px;height:39px;background:#edf3fc;color:#426c9f;font-weight:600}
body.manager-v3 main:has(>.contact-list) .chevron{font-size:24px;color:#9ba8b8}
body.manager-v3 main:has(>.contact-card) .contact-card{padding:24px;max-width:760px}
body.manager-v3 main:has(>.contact-card) .contact-avatar.large{width:60px;height:60px;font-size:24px}
body.manager-v3 main:has(>.contact-card) .contact-card>h1{font-size:27px;line-height:1.3;margin:14px 0 24px}
body.manager-v3 main:has(>.contact-card) .contact-card form{gap:17px}
body.manager-v3 main:has(>.contact-card) .contact-card .delete-form{padding-top:20px;border-top:1px solid #e3e8ef;margin-top:24px}

/* PayGold: preserve copy/retry/delete forms and keep long URLs inside the surface. */
body.manager-v3 main.paygold-page .paygold-create h2{margin:0 0 18px}
body.manager-v3 main.paygold-page #paygold-form{gap:17px}
body.manager-v3 main.paygold-page .paygold-history{background:transparent;border:0;box-shadow:none;padding:0;margin-top:22px}
body.manager-v3 main.paygold-page .paygold-history>.stats-card-title{margin-bottom:12px}
body.manager-v3 main.paygold-page .paygold-entry{
 background:#fff;
 border:1px solid #e3e8ef;
 border-radius:17px;
 padding:19px;
 margin-top:12px;
 box-shadow:0 2px 6px #14243804;
}
body.manager-v3 main.paygold-page .paygold-entry-title{gap:12px}
body.manager-v3 main.paygold-page .paygold-entry-title strong{font-size:16px;font-weight:650}
body.manager-v3 main.paygold-page .paygold-entry-title small{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
body.manager-v3 main.paygold-page .paygold-entry .status-badge{font-size:11px;font-weight:600;line-height:1.4;padding:5px 9px;max-width:45%;white-space:normal;text-align:center}
body.manager-v3 main.paygold-page .paygold-entry>p{font-size:14px;color:#53647a;line-height:1.55;margin:12px 0}
body.manager-v3 main.paygold-page .paygold-amount{font-size:25px;font-weight:700;letter-spacing:-.035em;line-height:1.25;color:#152335;font-variant-numeric:tabular-nums}
body.manager-v3 main.paygold-page .paygold-copy{gap:10px;align-items:stretch;min-width:0}
body.manager-v3 main.paygold-page .paygold-copy input{width:100%;min-width:0;font-size:13px;padding:12px;background:#f7f9fc}
body.manager-v3 main.paygold-page .paygold-language{max-width:310px}
body.manager-v3 main.paygold-page .paygold-action-row{gap:10px;flex-wrap:wrap}
body.manager-v3 main.paygold-page .paygold-action-row :is(.paygold-message,.paygold-delete-form){flex:1 1 180px;min-width:0}
body.manager-v3 main.paygold-page .paygold-reviewed-paid{padding-top:15px;border-top-color:#e3e8ef}

/* Kilometraje: native quarterly disclosures remain the source of open/closed state. */
body.manager-v3 main:has(>.quarter-grid) .vehicle-summaries{gap:14px;margin-bottom:17px}
body.manager-v3 main:has(>.quarter-grid) .vehicle-summaries .stats-card{margin:0}
body.manager-v3 main:has(>.quarter-grid) .plate-tag{font-size:12px;font-weight:650;letter-spacing:.02em;padding:5px 9px;border-color:#d8e5f5;background:#edf3fc;color:#355f8f}
body.manager-v3 main:has(>.quarter-grid) .reading-total{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
body.manager-v3 main:has(>.quarter-grid) .vehicle-summaries small{font-size:12px;line-height:1.5;color:#617085}
body.manager-v3 main:has(>.quarter-grid) .quarter-grid{gap:14px;margin-bottom:17px}
body.manager-v3 main:has(>.quarter-grid) .quarter-card{margin-bottom:0}
body.manager-v3 main:has(>.quarter-grid) .quarter-card-summary{min-height:44px;gap:13px}
body.manager-v3 main:has(>.quarter-grid) .quarter-card-summary-title strong{font-size:17px;font-weight:650;line-height:1.4}
body.manager-v3 main:has(>.quarter-grid) .quarter-card-summary-title small{font-size:12px;line-height:1.5;color:#617085}
body.manager-v3 main:has(>.quarter-grid) .quarter-vehicle{padding:17px 0;border-top-color:#e3e8ef}
body.manager-v3 main:has(>.quarter-grid) .quarter-vehicle-title{gap:10px;align-items:center;flex-wrap:wrap}
body.manager-v3 main:has(>.quarter-grid) .quarter-vehicle-title .status-badge{font-size:11px;line-height:1.35;padding:5px 8px}
body.manager-v3 main:has(>.quarter-grid) .reading-grid{margin:16px 0;gap:13px}
body.manager-v3 main:has(>.quarter-grid) .reading-grid dt{font-size:12px;line-height:1.5;color:#617085}
body.manager-v3 main:has(>.quarter-grid) .reading-grid dd{font-size:19px;line-height:1.35;margin:6px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.manager-v3 main:has(>.quarter-grid) .reading-grid small{display:block;font-size:11px;line-height:1.5;color:#617085}
body.manager-v3 main:has(>.quarter-grid) .quarter-distance{background:#edf3fb;padding:12px;border-radius:11px;font-size:12px;line-height:1.5;gap:12px}
body.manager-v3 main:has(>.quarter-grid) .quarter-distance strong{font-size:19px;color:#245b94;white-space:nowrap;font-variant-numeric:tabular-nums}
body.manager-v3 main:has(>.quarter-grid) .estimate-detail{font-size:12px;line-height:1.6}

/* Opciones: retain the approved Montserrat 18px/700 card headings. */
body.manager-v3:has(#main-nav) main.options-page .stats-card h2,
body.manager-v3:has(#main-nav) main.options-page .add-vehicle h2{
 font-family:Montserrat,Arial,sans-serif;
 font-size:18px;
 font-weight:700;
 line-height:1.35;
 letter-spacing:-.02em;
}
body.manager-v3 main.options-page .stats-card>p{font-size:13px;line-height:1.65;color:#617085}
body.manager-v3 main.options-page .options-collapse>summary{min-height:44px;gap:14px}
body.manager-v3 main.options-page .options-collapse-content{padding-top:16px}
body.manager-v3 main.options-page .menu-sort-list{gap:8px;margin:18px 0}
body.manager-v3 main.options-page .menu-sort-row{min-height:52px;border-color:#e3e8ef;box-shadow:none}
body.manager-v3 main.options-page .menu-sort-name{font-size:14px;font-weight:600}
body.manager-v3 main.options-page .vehicle-option{border-top-color:#e3e8ef;padding:18px 0}
body.manager-v3 main.options-page .vehicle-option:first-child{border-top:0;padding-top:0}
body.manager-v3 main.options-page .add-vehicle{border-top-color:#e3e8ef;padding-top:20px}
body.manager-v3 main.options-page .income-breakdown{font-size:14px}

@media(max-width:1099px){
 body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row{grid-template-columns:80px minmax(0,1fr) 115px 105px 12px;gap:10px}
}
@media(max-width:760px){
 body.manager-v3:has(#main-nav) :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) h1{font-size:29px;line-height:1.15}
 body.manager-v3:has(#main-nav) :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-list),main:has(>.contact-card)) :is(.stats-heading,.page-title){gap:14px;margin-bottom:21px}
 body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) :is(.stats-card,.form-section){padding:17px;margin-bottom:14px}
 body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid),main:has(>.contact-card)) :is(.filter-bar,.form-grid,.invoice-export-grid){gap:13px}
 body.manager-v3 :is(main.invoice-home,main.balance-page,main.options-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) .filter-bar label{flex:1 1 130px}
 body.manager-v3 main.invoice-home .invoice-history-search .filter-bar{display:grid;grid-template-columns:1fr;gap:13px}
 body.manager-v3 main.invoice-home .invoice-history-search .filter-bar label{width:100%;min-width:0}
 body.manager-v3 main.invoice-home .invoice-history-search{padding:15px}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row{
  grid-template-columns:minmax(0,1fr) auto 12px;
  grid-template-rows:auto auto;
  gap:7px 12px;
  min-height:84px;
  padding:15px 0;
 }
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>strong{grid-column:1;grid-row:1;font-size:15px}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>.latest-client{grid-column:1;grid-row:2;font-size:13px;line-height:1.5;min-width:0}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>span:nth-of-type(2){display:block;grid-column:2;grid-row:1;font-size:16px;white-space:nowrap}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>.status-badge{display:inline-flex;grid-column:2;grid-row:2;font-size:11px;padding:4px 7px}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>i{grid-column:3;grid-row:1/3;font-size:22px}
 body.manager-v3 main.invoice-home .invoice-history-heading-meta{font-size:12px;gap:7px}
 body.manager-v3 main.invoice-home .invoice-history-heading-meta .muted{font-size:12px;white-space:normal}
 body.manager-v3 main.invoice-form-page .form-grid{grid-template-columns:1fr}
 body.manager-v3 main.invoice-form-page .form-grid>.full{grid-column:1}
 body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards{gap:11px;margin:17px 0 14px}
 body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards>.metric-card{padding:16px 14px;gap:10px}
 body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card strong{font-size:22px}
 body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card small{font-size:11px;line-height:1.55}
 body.manager-v3 main:has(>.invoice-toolbar) .bar-chart{gap:4px;height:210px}
 body.manager-v3 main:has(>.invoice-toolbar) .semester-bars{height:210px;gap:22px}
 body.manager-v3 main.balance-page .balance-table{font-size:12px}
 body.manager-v3 main.balance-page .balance-table :is(th,td){padding:12px 4px}
 body.manager-v3 main.balance-page .balance-table thead th{font-size:11px}
 body.manager-v3 main.balance-page .record-row{gap:10px}
 body.manager-v3 main.balance-page .record-amount{max-width:43%;font-size:15px;line-height:1.5}
 body.manager-v3 main.balance-page .record-row small{font-size:12px}
 body.manager-v3 main:has(>.contact-list) .contact-row{padding:15px 13px;gap:11px}
 body.manager-v3 main:has(>.contact-card) .contact-card{padding:19px}
 body.manager-v3 main:has(>.contact-card) .contact-card>h1{font-size:26px;margin-bottom:21px}
 body.manager-v3 main.paygold-page .paygold-entry{padding:17px;margin-top:12px}
 body.manager-v3 main.paygold-page .paygold-entry-title{gap:9px}
 body.manager-v3 main.paygold-page .paygold-entry-title strong{font-size:15px}
 body.manager-v3 main.paygold-page .paygold-entry .status-badge{max-width:48%;font-size:11px}
 body.manager-v3 main.paygold-page .paygold-copy{flex-direction:column}
 body.manager-v3 main.paygold-page .paygold-language{max-width:none}
 body.manager-v3 main.paygold-page .paygold-action-row{display:grid;grid-template-columns:1fr;gap:9px}
 body.manager-v3 main.paygold-page .paygold-action-row :is(.paygold-message,.paygold-delete-form){width:100%;min-width:0}
 body.manager-v3 main:has(>.quarter-grid) .quarter-grid{grid-template-columns:1fr;gap:13px}
 body.manager-v3 main:has(>.quarter-grid) .quarter-card{margin-bottom:0}
 body.manager-v3 main:has(>.quarter-grid) .vehicle-summaries{gap:11px}
 body.manager-v3 main:has(>.quarter-grid) .reading-total{font-size:24px}
 body.manager-v3 main:has(>.quarter-grid) .reading-grid dd{font-size:18px}
 body.manager-v3 main.options-page .filter-bar{gap:13px}
 body.manager-v3 main.options-page .filter-bar label{flex:1 1 160px}
 body.manager-v3 main.options-page .menu-sort-row{padding-left:12px;gap:10px}
 body.manager-v3 main.options-page .income-breakdown>div{flex-wrap:wrap;gap:7px}
}
@media(max-width:380px){
 body.manager-v3 :is(main.invoice-home,main.balance-page,main.paygold-page,main.options-page,main.work-form,main.invoice-form-page,main:has(>.invoice-toolbar),main:has(>.quarter-grid)) :is(.stats-card,.form-section){padding:15px}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row{gap:6px 9px}
 body.manager-v3 :is(main.invoice-home,main:has(>.invoice-toolbar)) .latest-row>span:nth-of-type(2){font-size:15px}
 body.manager-v3 main.invoice-home .invoice-export-grid{grid-template-columns:1fr}
 body.manager-v3:has(#main-nav) :is(main.balance-page,main:has(>.invoice-toolbar)) .summary-icon-cards{grid-template-columns:1fr 1fr}
 body.manager-v3 :is(main.balance-page,main:has(>.invoice-toolbar)) .metric-card strong{font-size:20px}
 body.manager-v3 main.balance-page .balance-table{font-size:12px}
 body.manager-v3 main.balance-page .balance-table :is(th,td){padding:11px 3px}
 body.manager-v3 main.balance-page .balance-table th:first-child{width:17%}
 body.manager-v3 main:has(>.quarter-grid) .vehicle-summaries{grid-template-columns:1fr}
 body.manager-v3 main:has(>.quarter-grid) .quarter-distance{align-items:flex-start;flex-direction:column;gap:5px}
 body.manager-v3 main:has(>.quarter-grid) .reading-grid{gap:10px}
 body.manager-v3 main:has(>.quarter-grid) .record-amount{font-size:14px;white-space:normal;text-align:right}
 body.manager-v3 main.paygold-page .paygold-entry-title{flex-wrap:wrap}
 body.manager-v3 main.paygold-page .paygold-entry .status-badge{max-width:100%}
 body.manager-v3 main.options-page .filter-bar label{flex-basis:100%}
}

body.manager-v3 main.options-page select[data-manager-appearance]{width:100%;min-height:48px;padding:12px;border:1px solid #d6e0eb;box-sizing:border-box}

/* Approved Balance icon colours are shared by light and dark appearance. */
body.manager-v3 main.balance-page .summary-icon-cards .metric-icon{color:#fff!important}
body.manager-v3 main.balance-page .summary-icon-cards .metric-icon.green{background:#15803d!important}
body.manager-v3 main.balance-page .summary-icon-cards .metric-icon.orange{background:#c2410c!important}
body.manager-v3 main.balance-page .summary-icon-cards .metric-icon.blue{background:#0c68df!important}
body.manager-v3 main.balance-page .summary-icon-cards .metric-icon.violet{background:#7c3aed!important}

/* Invoice summary uses the same approved colour palette as Balance. */
body.manager-v3 main:has(>.invoice-toolbar) .summary-icon-cards .metric-icon.green{background:#15803d!important;color:#fff!important}
body.manager-v3 main:has(>.invoice-toolbar) .summary-icon-cards .metric-icon.blue{background:#0c68df!important;color:#fff!important}
body.manager-v3 main:has(>.invoice-toolbar) .summary-icon-cards .metric-icon.violet{background:#7c3aed!important;color:#fff!important}
body.manager-v3 main:has(>.invoice-toolbar) .summary-icon-cards .metric-icon.orange{background:#c2410c!important;color:#fff!important}

/* Vehicle management: one clear plate field, with a quiet version footer. */
body.manager-v3 main.options-page .vehicle-help{background:transparent;border:0;padding:0;margin:0 0 22px;color:var(--m3-muted);font-size:13px;line-height:1.65}
body.manager-v3 main.options-page .vehicle-option{padding:22px 0}
body.manager-v3 main.options-page .vehicle-edit{margin:0 0 12px;gap:14px}
body.manager-v3 main.options-page .vehicle-edit label{display:grid;grid-template-columns:85px minmax(0,1fr);align-items:center;gap:14px;width:100%;flex-basis:100%;margin:0}
body.manager-v3 main.options-page .vehicle-edit input{width:100%;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:.035em}
body.manager-v3 main.options-page .vehicle-edit .tb-clear-wrap{width:100%;min-width:0}
body.manager-v3 main.options-page .vehicle-state{margin:0 0 14px}
body.manager-v3 main.options-page .add-vehicle label{display:grid;gap:10px}
body.manager-v3 main.options-page .manager-version-footer{text-align:center;color:var(--m3-muted);font-size:12px;line-height:1.8;margin:30px 0 0;background:transparent;border:0;padding:0}
body.manager-v3 main.options-page .manager-version-footer span{display:block;font-size:11px}

body.manager-v3 main.options-page .vehicle-plate-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;min-height:44px;color:var(--m3-muted);font-size:13px}
body.manager-v3 main.options-page .vehicle-plate-row strong{color:var(--m3-ink);font-size:18px;font-weight:650;letter-spacing:.035em;overflow-wrap:anywhere;text-align:right}

/* Reservation activity: readable receipts and a chronological, read-only history. */
body.manager-v3 .reservation-activity-view{--activity-success:#187447;--activity-warning:#8b600a;--activity-danger:#be333a}
body.manager-v3 .reservation-activity-view h3{margin:0 0 12px;font-size:15px;font-weight:700;color:var(--m3-ink,var(--ink))}
body.manager-v3 .reservation-activity-view .activity-caption{margin:8px 0 17px;color:var(--m3-muted,var(--muted));font-size:12px;line-height:1.6}
body.manager-v3 .reservation-activity-view .activity-empty{margin:0;color:var(--m3-muted,var(--muted));font-size:14px;line-height:1.6}
body.manager-v3 .activity-history{border-top:1px solid var(--m3-line,var(--border));margin-top:24px;padding-top:22px}
body.manager-v3 .activity-history h3{margin-bottom:4px}
body.manager-v3 .activity-tone-info{--activity-tone:var(--m3-blue,var(--blue))}
body.manager-v3 .activity-tone-success{--activity-tone:var(--activity-success)}
body.manager-v3 .activity-tone-warning{--activity-tone:var(--activity-warning)}
body.manager-v3 .activity-tone-danger{--activity-tone:var(--activity-danger)}
body.manager-v3 .activity-email-receipt{border:1px solid var(--m3-line,var(--border));border-radius:11px;margin-top:9px;padding:0 13px}
body.manager-v3 .activity-email-receipt>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:66px;padding:12px 0;list-style:none;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.manager-v3 .activity-email-receipt>summary::-webkit-details-marker{display:none}
body.manager-v3 .activity-email-receipt>summary::marker{content:""}
body.manager-v3 .activity-email-copy{display:grid;gap:4px;min-width:0}
body.manager-v3 .activity-email-copy strong{font-size:14px;color:var(--m3-ink,var(--ink));line-height:1.4}
body.manager-v3 .activity-email-state{font-size:12px;color:var(--activity-tone);font-weight:600;line-height:1.5}
body.manager-v3 .activity-disclosure-arrow{flex:0 0 8px;width:8px;height:8px;border-right:2px solid var(--m3-muted,var(--muted));border-bottom:2px solid var(--m3-muted,var(--muted));transform:rotate(45deg);margin-right:3px}
body.manager-v3 .activity-email-receipt[open]>summary .activity-disclosure-arrow{transform:rotate(225deg)}
body.manager-v3 .activity-email-receipt>summary:focus-visible{outline:3px solid var(--m3-blue,var(--blue));outline-offset:4px;border-radius:5px}
body.manager-v3 .activity-receipt-fields{border-top:1px solid var(--m3-line,var(--border));margin:0;padding:12px 0;display:grid;gap:10px}
body.manager-v3 .activity-receipt-fields>div{display:grid;gap:2px}
body.manager-v3 .activity-receipt-fields dt{font-size:12px;color:var(--m3-muted,var(--muted))!important}
body.manager-v3 .activity-receipt-fields dd{margin:0;font-size:13px;line-height:1.5;color:var(--m3-ink,var(--ink));overflow-wrap:anywhere}
body.manager-v3 .activity-receipt-note{margin:0 0 14px;color:var(--m3-muted,var(--muted));font-size:12px;line-height:1.6;overflow-wrap:anywhere}
body.manager-v3 .activity-timeline{list-style:none;margin:0;padding:0}
body.manager-v3 .activity-event{position:relative;border-left:2px solid var(--m3-line,var(--border));margin-left:6px;padding:0 0 25px 21px}
body.manager-v3 .activity-event:last-child{border-left-color:transparent;padding-bottom:0}
body.manager-v3 .activity-event::before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--activity-tone);box-shadow:0 0 0 4px var(--m3-surface,#fff)}
body.manager-v3 .activity-event time{display:block;font-size:12px;line-height:1.5;color:var(--m3-muted,var(--muted));font-variant-numeric:tabular-nums}
body.manager-v3 .activity-event time span{white-space:nowrap}
body.manager-v3 .activity-event h4{margin:5px 0 6px;font-size:15px;line-height:1.4;font-weight:700;color:var(--m3-ink,var(--ink))}
body.manager-v3 .activity-event-description{margin:0;color:var(--m3-muted,var(--muted));font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body.manager-v3 .activity-event-description strong{color:var(--m3-ink,var(--ink));font-weight:650}

body.manager-v3 .availability-customer-notes{margin:20px 0;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
body.manager-v3 .availability-customer-notes strong{display:block;font-size:13px;font-weight:600;color:var(--ink)}
body.manager-v3 .availability-customer-notes p{margin:7px 0 0;font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
body.manager-v3 #availability-customer-message{display:block;width:100%;min-height:124px;padding:12px;line-height:1.5;resize:vertical;margin-top:8px}
