/* The filtered header owns the notification layer; keep it above page actions and below the mobile drawer. */
.live-app .admin-topbar {
  position: relative;
  z-index: 35;
}

/* Layout only: uses Cappafid's existing surfaces, buttons and type tokens. */
.accounting-page>.back-link{margin-bottom:16px}
.accounting-card-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:22px;align-items:start}
.accounting-party-column{display:grid;gap:18px;min-width:0}
.accounting-party-column .party-actions{display:grid;gap:10px;margin-bottom:0}
.accounting-party-column .party-actions .button{width:100%;justify-content:flex-start}
.accounting-party-column .form-panel{padding:22px}
.accounting-facts{display:grid;grid-template-columns:1fr;gap:4px;margin:24px 0}
.accounting-facts dt{font-size:12px;color:#65757b;margin-top:10px}
.accounting-facts dd{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.accounting-balance{border-top:1px solid #e2e9eb;border-bottom:1px solid #e2e9eb;padding:18px 0;display:grid;gap:8px}
.accounting-balance span{font-size:13px;color:#65757b}.accounting-balance strong{font-size:26px}
.accounting-ledger{min-width:0;overflow:hidden}
.accounting-ledger .under-tabs{overflow-x:auto;flex-wrap:nowrap;max-width:100%;white-space:nowrap}
.accounting-ledger .under-tabs button{flex-shrink:0}
.accounting-ledger .live-data-table{box-shadow:none;border-radius:0;border-left:0;border-right:0}
.accounting-ledger .live-pager,.accounting-ledger-note{padding:14px 20px}
.accounting-filters{display:flex;gap:12px;align-items:end;padding:0 20px 20px;flex-wrap:wrap}
.accounting-filters .search{flex:1;min-width:180px}
.accounting-filters>label:not(.search){font-size:12px;color:#53636d;display:grid;gap:5px;flex:0 1 155px}
.accounting-party-name{font-weight:700;font-size:17px;color:#205360;display:block;line-height:1.5}
.accounting-context-bar{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:18px 22px;background:#fff;border:1px solid #e2e9eb;border-radius:14px;margin-bottom:22px}
.accounting-context-bar>span:first-child{display:flex;gap:8px;align-items:center}
.accounting-invoice-form{display:grid;gap:22px}.accounting-parties{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.accounting-confirm{margin-top:25px;padding-top:20px;border-top:1px solid #e2e9eb;display:grid;gap:12px}
.accounting-confirm .button{justify-self:start}
.accounting-invoice-form .check-field{margin:14px 0}
.accounting-invoice-form .check-field input,.accounting-confirm .check-field input{flex:0 0 18px;width:18px;height:18px;min-height:0}
.accounting-page .scope-note{line-height:1.6}.accounting-page .info-grid strong{overflow-wrap:anywhere}
.accounting-sale-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}
.accounting-sale-tabs{margin-bottom:22px}
@media(min-width:1600px){.accounting-card-layout{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:900px){.accounting-card-layout{grid-template-columns:1fr}.accounting-party-column{grid-template-columns:1fr 1fr}.accounting-party-column .form-panel{min-width:0}}
@media(max-width:650px){.accounting-party-column,.accounting-parties{grid-template-columns:1fr}.accounting-filters{padding:0 14px 14px}.accounting-filters>label:not(.search){flex:1}.accounting-context-bar{gap:10px}.accounting-context-bar>strong{margin-left:auto}.accounting-page .page-title h1{font-size:24px;overflow-wrap:anywhere}.accounting-sale-toolbar .button{flex:1 1 45%;text-align:center}.accounting-facts{margin:15px 0}}
@media print{.accounting-sale-toolbar,.accounting-sale-tabs,.accounting-confirm,.accounting-page>.back-link,.accounting-page .title-actions{display:none!important}.accounting-card-layout{display:block}.accounting-party-column{display:block}.accounting-page .panel{box-shadow:none;break-inside:avoid}}

.accounting-party-picker{display:grid;gap:8px;margin-top:16px;max-height:45vh;overflow:auto}
.accounting-summary-grid{display:grid;gap:24px;padding:20px}
.accounting-summary-section{min-width:0;border:1px solid #e2e9eb;border-radius:12px;overflow:hidden}
.accounting-summary-section .panel-heading{padding:16px;margin:0;gap:12px;flex-wrap:wrap}
.accounting-summary-section h2{font-size:17px;margin:0}
.accounting-summary-section .button{padding:8px 12px;font-size:12px;min-height:36px}
.accounting-summary-section .data-table-wrap{overflow-x:auto}
.accounting-summary-section .live-data-table{min-width:460px}
.accounting-party-column .accounting-facts{margin:14px 0;gap:2px}
.accounting-party-column .accounting-facts dt{margin-top:7px}
.accounting-party-column .panel-heading{padding:0;margin-bottom:14px}
.accounting-party-column .panel-heading h2{font-size:17px}

/* Full-width customer cards and document lists: identity, actions, then records. */
.accounting-party-hero{padding:24px 28px;margin-bottom:18px}
.accounting-party-hero .page-title{margin:0 0 10px;padding:0}
.accounting-party-hero .page-title h1{font-size:26px}
.accounting-contact-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;color:#65757b;font-size:13px}
.accounting-contact-line button{border:0;background:none;color:#176479;font:inherit;cursor:pointer;padding:4px 0}
.accounting-party-metrics{display:grid;grid-template-columns:1.15fr 1fr 1fr;margin-top:24px;padding-top:22px;border-top:1px solid #e4ebed;gap:24px}
.accounting-party-metrics>div{display:grid;gap:7px;border-left:1px solid #e4ebed;padding-left:24px;min-width:0}
.accounting-party-metrics>div:first-child{border:0;padding-left:0}
.accounting-party-metrics span{font-size:13px;color:#64747b}.accounting-party-metrics strong{font-size:26px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#174f5a}
.accounting-party-metrics small{font-size:11px;color:#75868d}
.accounting-party-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 20px;position:relative;z-index:4}
.accounting-party-toolbar .button{min-height:42px;font-size:13px}
.accounting-action-menu{position:relative}
.accounting-action-menu>summary{cursor:pointer;list-style:none;display:flex;gap:8px;align-items:center;white-space:nowrap}
.accounting-action-menu>summary::-webkit-details-marker{display:none}
.accounting-action-menu[open]{z-index:20}
.accounting-action-options{position:absolute;top:calc(100% + 8px);left:0;min-width:240px;max-width:calc(100vw - 44px);padding:7px;background:#fff;border:1px solid #dde6e9;border-radius:12px;box-shadow:0 12px 35px #1722291f;display:grid;gap:3px;z-index:30}
.accounting-action-options > :is(a,button){
  display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;
  width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px!important;
  font-family:inherit;font-size:13px!important;font-weight:600;line-height:1.4;
  text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;
  border:0!important;border-radius:7px!important;background:transparent!important;
  color:#253b45!important;box-shadow:none!important;cursor:pointer;
}
.accounting-action-options > :is(a,button):is(:hover,:focus-visible):not(:disabled){background:#edf4f6!important}
.accounting-action-options > :is(a,button):focus-visible{outline:2px solid #006b91;outline-offset:-2px}
.accounting-action-options button:hover{background:#edf4f6!important}
.accounting-action-options button::before,.accounting-action-options button::after{display:none!important}
.accounting-action-options .button svg{position:static!important;transform:none!important;width:17px;height:17px;flex-shrink:0;color:currentColor!important}
.accounting-party-body{min-width:0}.accounting-party-body .accounting-ledger{overflow:visible}
.accounting-party-body .accounting-card-tabs{overflow:visible;white-space:normal;flex-wrap:wrap;gap:0}
.accounting-party-body .accounting-card-tabs>button{padding:18px 14px;min-height:56px}
.accounting-card-tabs>.accounting-action-menu{margin-left:auto;align-self:center;padding:14px 16px;font-size:13px;color:#526872}
.accounting-card-tabs .accounting-action-options{left:auto;right:8px}
.accounting-party-body .accounting-summary-grid{padding:22px;gap:24px}
.accounting-party-body .accounting-summary-section .live-data-table{min-width:0}
.accounting-document-page .accounting-card-layout{display:grid;grid-template-columns:minmax(0,1fr)}
.accounting-document-header .accounting-facts{display:flex;gap:8px 18px;align-items:baseline;flex-wrap:wrap;margin:16px 0}
.accounting-document-header .accounting-facts dt{margin:0;font-size:12px}.accounting-document-header .accounting-facts dd{margin-right:16px}
.accounting-sales-filter{padding:20px;margin-bottom:20px}
.accounting-sales-filter-top{display:grid;grid-template-columns:1fr 1.5fr 1fr 1fr;gap:14px}
.accounting-sales-filter-top label{display:grid;gap:7px;font-size:12px;color:#53636d}
.accounting-sales-search{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:18px}.accounting-sales-search .search{flex:1;min-width:220px}
.accounting-sales-search>span{font-size:12px;color:#65757b}.accounting-sales-search .check-field{display:flex;gap:8px;align-items:center;font-size:13px}
.accounting-sales-search input[type=checkbox]{width:17px;height:17px;min-height:0}
.accounting-sales-page .live-data-table table{min-width:850px}
.accounting-sales-page .live-data-table td{vertical-align:middle}
.accounting-sales-page .live-data-table .badge{white-space:nowrap}
.accounting-order-tools{margin-top:20px}.accounting-order-tools>summary{padding:18px 22px;font-weight:650;cursor:pointer}
@media(max-width:800px){.accounting-party-hero{padding:20px}.accounting-party-metrics{gap:14px}.accounting-party-metrics strong{font-size:21px}.accounting-party-metrics>div{padding-left:14px}.accounting-sales-filter-top{grid-template-columns:1fr 1fr}.accounting-card-tabs>.accounting-action-menu{margin-left:0}}
@media(max-width:520px){.accounting-party-metrics{grid-template-columns:1fr 1fr}.accounting-party-metrics>div:first-child{grid-column:1/-1;padding-bottom:12px}.accounting-party-metrics>div:nth-child(2){border-left:0;padding-left:0}.accounting-party-toolbar{gap:8px}.accounting-party-toolbar>.button,.accounting-party-toolbar>.accounting-action-menu{flex:1 1 45%}.accounting-party-toolbar summary{justify-content:center}.accounting-party-hero .page-title h1{font-size:21px}.accounting-party-body .accounting-summary-grid{padding:12px}.accounting-sales-filter{padding:14px}.accounting-action-options{min-width:210px}.accounting-party-toolbar>.accounting-action-menu:nth-child(2n) .accounting-action-options{left:auto;right:0}.accounting-document-header .accounting-facts{display:grid;grid-template-columns:1fr 1fr}}
@media print{.accounting-party-toolbar,.accounting-card-tabs,.accounting-sales-filter{display:none!important}}

.accounting-sales-page .live-data-table table{min-width:965px}.accounting-sales-page .live-data-table td:nth-child(3){white-space:nowrap;font-size:12px}
.party-history-overview{background:none;border:0;box-shadow:none}
.accounting-party-body .party-overview-navigation{border:0;justify-content:flex-end;padding:0 0 12px}
.party-overview-navigation>button{display:none}
.party-history-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.party-history-column{display:grid;gap:20px;min-width:0}
.party-history-block{background:#fff;border:1px solid #dce5e8;border-radius:12px;box-shadow:0 4px 18px #17222906;overflow:hidden}
.party-history-block>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:16px 18px;color:#fff;background:#254c58}
.party-history-block>summary::-webkit-details-marker{display:none}.party-history-block>summary h2{margin:0;font-size:13px;line-height:1.5;font-weight:700;text-transform:uppercase;letter-spacing:.035em}
.party-history-block>summary>svg{margin-left:auto;background:#ffffff18;border-radius:6px;box-sizing:content-box;padding:6px;transition:transform .15s}
.party-history-block:not([open])>summary>svg{transform:rotate(-90deg)}
.party-history-count{font-size:11px;color:#d4e2e6}.party-history-table-wrap{overflow:auto;padding:12px}
.party-history-table{border-collapse:collapse;width:100%;font-size:12px;table-layout:auto}
.party-history-table th{text-align:left;font-size:11px;color:#6a7c83;font-weight:600;border-bottom:1px solid #dce5e8;padding:12px 7px;white-space:nowrap}
.party-history-table td{padding:13px 7px;border-bottom:1px solid #e8eef0;vertical-align:middle}
.party-history-table tbody>tr:last-child td{border:0}.party-history-table th:first-child,.party-history-table td:first-child{width:25px;padding-left:2px;padding-right:2px}
.party-history-table .amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.party-history-table td:nth-child(2){white-space:nowrap}
.party-history-number{font:inherit;border:0;padding:0;background:none;color:#176479;cursor:pointer;text-align:left;overflow-wrap:anywhere;max-width:130px}
.party-history-status{font-size:11px;display:block;min-width:65px;max-width:115px;color:#57717c;line-height:1.5}
.party-history-expand{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:50%;background:#e3f3ef;color:#14756a;cursor:pointer}
.party-history-expand:hover{background:#c8e9e1}.party-history-expand:focus-visible,.party-history-number:focus-visible{outline:2px solid #006b91;outline-offset:3px}
.party-history-table .party-history-detail{background:#f6f9fa;padding:16px!important;white-space:normal!important}
.party-history-detail p{margin:0 0 12px;font-size:12px}.party-history-detail ul{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}.party-history-detail li{display:flex;gap:15px;justify-content:space-between;font-size:12px}.party-history-detail li strong{white-space:nowrap}
.party-history-detail .button{font-size:11px;min-height:35px;padding:8px 12px}
.party-history-empty{margin:16px;padding:15px;background:#f4f7f8;border-radius:8px;color:#6a7a82;font-size:13px;line-height:1.7}
.party-history-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px;font-size:12px;border-top:1px solid #e7edef}.party-history-pager button{border:1px solid #dce5e8;border-radius:6px;background:white;padding:7px 9px;cursor:pointer}.party-history-pager button:disabled{opacity:.45;cursor:default}
@media(max-width:1000px){.party-history-columns{grid-template-columns:1fr}}
@media print{.party-history-columns{display:block}.party-history-expand,.party-overview-navigation{display:none}.party-history-block{margin-bottom:20px}}
/* Sale entry: compact document fields and clear actions above the product grid. */
.sale-entry-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.sale-entry-toolbar .button:last-child{margin-left:auto}.sale-entry-information .panel-heading{padding:0 0 18px}.sale-entry-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sale-entry-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#53636d;min-width:0}.sale-entry-fields .field:first-child{grid-column:span 2;position:relative}.sale-entry-fields input,.sale-entry-fields textarea{width:100%;box-sizing:border-box}.sale-entry-description{grid-column:span 3}.sale-save-explanation{font-size:12px;line-height:1.7;color:#53636d;font-weight:400}
.preparation-controls{margin-bottom:24px}.preparation-paper{max-width:920px;margin:24px auto;background:white;padding:40px;border:1px solid #dce4e8;border-radius:16px;box-shadow:0 14px 50px #1722290a;color:#172229}.preparation-letterhead{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:3px solid #006b91;padding-bottom:26px}.preparation-letterhead>div{text-align:right}.preparation-letterhead span{font-size:10px;letter-spacing:.16em;color:#006b91;font-weight:700}.preparation-letterhead h2{font-size:25px;margin:7px 0}.preparation-letterhead strong{font-size:13px;color:#53636d}.preparation-parties{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin:30px 0}.preparation-paper h3{font-size:10px;letter-spacing:.12em;color:#006b91;margin:0 0 10px}.preparation-parties strong{font-size:15px}.preparation-parties p{font-size:12px;line-height:1.65;margin:5px 0;overflow-wrap:anywhere}.preparation-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:#f7f9fa;padding:20px;border-radius:10px;margin-bottom:28px}.preparation-meta dt{font-size:10px;color:#53636d}.preparation-meta dd{margin:5px 0 0;font-size:12px;font-weight:600;overflow-wrap:anywhere}.preparation-table-wrap{overflow-x:auto}.preparation-items{width:100%;border-collapse:collapse;font-size:12px}.preparation-items th{background:#172229;color:#fff;text-align:left;padding:12px 9px;white-space:nowrap}.preparation-items td{padding:15px 9px;border-bottom:1px solid #dce4e8;vertical-align:top}.preparation-items td:nth-child(2){width:50%;overflow-wrap:anywhere}.preparation-items td:nth-child(n+3){white-space:nowrap}.preparation-sums{margin:20px 0 20px auto;width:290px;max-width:100%}.preparation-sums>div{display:flex;justify-content:space-between;padding:10px 4px;font-size:13px}.preparation-sums>div:last-child{border-top:2px solid #006b91;font-size:16px}.preparation-note{margin:28px 0;font-size:12px;white-space:pre-wrap}.preparation-signatures{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:48px 0 35px}.preparation-signatures section{min-height:95px;border-bottom:1px solid #dce4e8}.preparation-signatures p{font-size:11px;color:#53636d}.preparation-footer{border-top:1px solid #dce4e8;padding-top:18px;font-size:10px;color:#53636d;line-height:1.7}.preparation-footer strong{color:#172229}.preparation-footer p{margin:4px 0}.preparation-footer span{color:#006b91}
@media(max-width:1100px){.sale-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-entry-description{grid-column:span 2}}
@media(max-width:640px){.sale-entry-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sale-entry-toolbar .button{font-size:11px;padding:10px;min-width:0}.sale-entry-toolbar .button:last-child{margin-left:0}.preparation-paper{padding:20px 16px}.preparation-letterhead{align-items:flex-start;flex-direction:column}.preparation-letterhead>div{text-align:left}.preparation-parties{grid-template-columns:1fr;gap:20px}.preparation-meta{grid-template-columns:1fr 1fr;padding:14px}.preparation-letterhead h2{font-size:23px}.sale-entry-fields{gap:12px}}
@media print{body:has(.preparation-paper) .sidebar,body:has(.preparation-paper) .admin-topbar,body:has(.preparation-paper) .preparation-controls,body:has(.preparation-paper) .toast{display:none!important}body:has(.preparation-paper) .admin-workspace,body:has(.preparation-paper) .admin-main,body:has(.preparation-paper) .admin-app{margin:0!important;padding:0!important;display:block!important;width:100%!important;max-width:none!important}body:has(.preparation-paper){background:white!important}.preparation-paper{max-width:none;margin:0;padding:8mm;border:0;border-radius:0;box-shadow:none}.preparation-letterhead,.preparation-parties,.preparation-meta,.preparation-signatures,.preparation-sums{break-inside:avoid}.preparation-items thead{display:table-header-group}.preparation-items tr{break-inside:avoid}.preparation-items th{background:#edf4f6!important;color:#172229!important}.preparation-table-wrap{overflow:visible}.preparation-items td{white-space:normal!important}.preparation-footer{break-inside:avoid}.preparation-paper a:after{content:none!important}}

.preparation-cancelled{padding:14px;border:2px solid #b42318;color:#b42318;font-weight:700;margin-bottom:22px}.preparation-parties p{white-space:pre-line}

/* Nakit yönetimi: ortak işlem satırı, gruplanmış hesaplar ve masraf defteri. */
.cash-page{min-width:0;color:#172229}
.cash-page>.page-title{margin:0 0 14px}
.cash-toolbar,.cash-filterbar,.cash-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cash-toolbar{padding:0 0 16px;margin:0 0 18px;border-bottom:1px solid #dce4e8}
.cash-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:auto;color:#455966;font-weight:600;font-size:13px;cursor:pointer}
.cash-toggle input{width:17px;height:17px;accent-color:#006b91}
.cash-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-bottom:20px}
.cash-column{display:grid;gap:15px;min-width:0}
.cash-group,.cash-list{min-width:0;background:#fff;border:1px solid #dce4e8;border-radius:12px;overflow:hidden}
.cash-group>header,.cash-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:12px 15px;background:#e9f3f6;color:#15556d}
.cash-group>header h2,.cash-band{font-size:14px;font-weight:700;line-height:1.45;margin:0}
.cash-group>header h2{display:flex;gap:8px;align-items:center}
.cash-group>header>div{display:grid;text-align:right;gap:2px;font-size:13px;font-variant-numeric:tabular-nums}
.cash-group p{font-size:12px;color:#60727b;margin:12px 15px}
.cash-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));gap:8px;padding:10px}
.cash-tile{display:grid;align-content:space-between;gap:7px;padding:10px 12px;min-width:0;background:#fff;border:1px solid #dce4e8;border-radius:8px;color:#172229;text-decoration:none;overflow-wrap:anywhere}
.cash-tile:hover,.cash-tile:focus-visible{background:#f2f8fa;border-color:#478da4}
.cash-tile>span{font-size:13px;font-weight:650}.cash-tile strong,.cash-current{font-variant-numeric:tabular-nums;color:#164860}.cash-current{font-size:clamp(19px,3vw,28px)}
.cash-tile small{font-size:11px;color:#805326;margin-left:4px}
.cash-band{background:#223c49;color:#fff;border-radius:9px 9px 0 0}
.cash-page .finance-statement-filters{border-radius:0 0 9px 9px;padding:12px;margin-bottom:12px;gap:8px}
.cash-page .finance-statement-summary{margin:12px 0;gap:8px}
.cash-filterbar{padding:12px;background:#f3f7f8}.cash-tabs{gap:3px;margin-right:auto}
.cash-tabs button,.cash-chip{padding:8px 11px;border:1px solid transparent;border-radius:6px;cursor:pointer;background:transparent;font:inherit;font-size:13px;color:#38515e}
.cash-tabs button[aria-pressed=true]{background:#006b91;color:#fff}.cash-tabs button:hover{box-shadow:inset 0 0 0 1px #6296a8}
.cash-filterbar select,.cash-fields select,.cash-fields input,.cash-fields textarea{font:inherit;border:1px solid #cad7dd;border-radius:7px;padding:9px 10px;background:white;color:#172229;max-width:100%;min-width:0}
.cash-filterbar .search{margin:0;min-width:0;width:min(230px,100%)}.cash-chip{margin:8px;background:#e7f3f6}
.cash-fields{display:grid;gap:14px;padding:18px}.cash-fields label{display:grid;gap:6px;color:#455965;font-size:13px;font-weight:600}.cash-fields textarea{resize:vertical}
.cash-list .live-data-table{border:0;border-radius:0}.cash-list .live-pager{padding:10px}
.cash-status{display:inline-block;font-size:12px;font-weight:650;padding:4px 8px;border-radius:6px}.cash-status.paid{background:#e1f3ee;color:#196348}.cash-status.pending{background:#f8efdc;color:#7a5519}.cash-status.late{background:#fbe9e6;color:#983a2f}
@media(max-width:800px){.cash-columns{grid-template-columns:minmax(0,1fr)}.cash-toggle{margin-left:0}.cash-filterbar .search{flex:1 1 170px}.cash-toolbar .button{min-height:40px}.cash-fields{padding:14px}}

.register-fields,.register-detail,.register-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(285px,100%),1fr));gap:14px}
.register-fields{padding:18px}.register-fields label,.reg-line label{font-size:13px;font-weight:600;color:#364f5a;display:grid;gap:6px;align-content:start}
.register-fields input:not([type=checkbox]),.register-fields textarea,.register-fields select,.cash-toolbar>select{min-width:0;max-width:100%;padding:9px;border:1px solid #cad7dd;background:#fff;color:#172229;border-radius:7px;font:inherit}
.register-fields fieldset{min-width:0;border:1px solid #dce4e8;padding:14px;border-radius:9px}
.reg-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.reg-line button,.register-fields fieldset button:not(.button){background:#f2f7f8;color:#15546c;border:1px solid #cbdee4;border-radius:6px;padding:6px;cursor:pointer}
.register-detail,.register-navitem,.register-label{background:#fff;border:1px solid #dce4e8;border-radius:10px;padding:16px}.register-detail dt{font-size:12px;color:#506772}.register-detail dd{margin:5px 0;overflow-wrap:anywhere;white-space:pre-line}.register-navitem{display:grid;gap:6px;text-decoration:none;color:#114c63;font-weight:650}.register-navitem:hover,.register-navitem:focus-visible{background:#eef7f8;border-color:#6e9cae}.register-menu{margin-bottom:20px}.reg-padding{padding:12px}.register-label{max-width:100%;white-space:pre-wrap}
@media print{body:has(.register-label) *{visibility:hidden}body:has(.register-label) .register-label,body:has(.register-label) .register-label *{visibility:visible}body:has(.register-label) .register-label{position:absolute;top:0;left:0;margin:0;border:0;max-width:100%;box-sizing:border-box}}

/* Both documents use the same workspace. Keep item entry beside the document details. */
.entry-sheet{display:grid;grid-template-columns:minmax(235px,0.85fr) minmax(0,2fr);gap:18px;align-items:start}
.entry-sheet .panel-heading{padding:0 0 14px;margin-bottom:15px;border-bottom:1px solid #dce4e8}
.entry-document,.entry-items,.entry-lines{min-width:0}
.entry-document .field{display:block;position:relative}
.entry-document .field input{display:block;width:100%;margin:6px 0}
.entry-document input[readonly]{background:#f3f6f7;font-weight:650;color:#172229}
.entry-document-fields,.entry-items{display:grid;gap:14px}
.entry-document-fields{border-top:1px solid #e3e9eb;margin-top:16px;padding-top:16px}
.entry-document-fields label{display:grid;grid-template-columns:minmax(76px,.78fr) minmax(0,1.22fr);align-items:center;gap:8px;font-size:12px;color:#465861;font-weight:600}
.entry-document-fields input,.entry-document-fields textarea{width:100%;min-width:0;box-sizing:border-box}
.entry-address summary{cursor:pointer;color:#006b91;font-size:13px}
.entry-address textarea{margin-top:8px}.entry-lines .sale-line-fields{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}
.entry-items .sale-summary{position:static;width:100%;box-sizing:border-box}
.entry-lines .panel-heading span{white-space:nowrap;font-size:12px;color:#53636d}
@media(max-width:880px){.entry-sheet{grid-template-columns:minmax(0,1fr)}.entry-document-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.entry-document-fields{grid-template-columns:minmax(0,1fr)}.entry-lines .sale-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-sheet{gap:12px}}

.party-address,.party-record{display:flex;gap:.7rem;align-items:baseline;flex-wrap:wrap;color:#425962}.party-address{padding:.25rem 0}.party-address span{font-variant-numeric:tabular-nums}
.accounting-party-hero .accounting-party-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
.party-portfolio-metric{display:grid;gap:.3rem;text-align:left;border:1px solid #d5e1e3;background:#f6fafb;color:#173944;border-radius:10px;padding:12px;cursor:pointer}.party-portfolio-metric:hover{border-color:#007294}
.party-record{padding:.85rem 0;border-bottom:1px solid #dce4e8;justify-content:space-between}.party-record p{flex-basis:100%;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.party-line{display:grid;grid-template-columns:minmax(120px,2fr) repeat(3,minmax(65px,1fr)) auto;gap:8px;align-items:end}.party-line input,.party-line select{width:100%;min-width:0}
.party-choices{display:grid;max-height:12rem;overflow:auto}.party-choices button{text-align:left;padding:.5rem}.accounting-action-options{max-height:min(62vh,32rem);overflow:auto}.accounting-action-options button:disabled{opacity:.6;cursor:default}
.party-paper{background:white;color:#172229;padding:1rem;overflow-wrap:anywhere}.party-paper table{border-collapse:collapse;width:100%}.party-paper td,.party-paper th{padding:.45rem;border-bottom:1px solid #dce4e8;text-align:left}.party-print-copy{display:none}
@media(max-width:600px){.party-line{grid-template-columns:1fr 1fr}.party-line strong{grid-column:1/-1}.accounting-party-toolbar{flex-wrap:wrap}}
@media print{body:has(>.party-print-copy)>:not(.party-print-copy){display:none!important}body>.party-print-copy{display:block!important}.party-paper tr{break-inside:avoid}.party-paper thead{display:table-header-group}}

.ledger-entry-line{container-type:inline-size;min-width:0}.ledger-entry-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px 16px}.ledger-entry-fields label,.entry-line-foot label{display:grid;gap:.35rem;min-width:0;font-size:.8rem;font-weight:650;color:#36525e}.ledger-entry-fields :is(input,select),.entry-line-foot input{box-sizing:border-box;min-width:0;width:100%}.entry-static{background:#f4f7f8;display:flex;align-items:center;padding:.65rem;border-radius:8px;min-height:38px;font-weight:500}.entry-price{display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:end;gap:4px}.entry-price>.previous-prices-trigger,.entry-price>.entry-rate{grid-column:1/-1;justify-self:start}.entry-discount{display:grid;gap:6px}.entry-line-sum{display:grid;gap:4px;padding:.7rem;border-radius:8px;background:#eef6f8;color:#18546a}.entry-line-sum strong{font-size:1.13rem;font-variant-numeric:tabular-nums}.entry-line-foot{display:grid;grid-template-columns:minmax(0,2fr) minmax(120px,1fr);gap:12px;align-items:start;margin-top:14px;padding-top:12px;border-top:1px solid #dce4e8}.entry-line-foot summary{cursor:pointer;font-size:.8rem;color:#53636d;padding:5px}.ledger-entry-fields .previous-prices-trigger{font-size:.74rem}
@container(min-width:910px){.ledger-entry-fields{grid-template-columns:.8fr 1.05fr 1.55fr .65fr 1.1fr 1.15fr}}
@container(max-width:540px){.ledger-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-line-foot{grid-template-columns:1fr}.entry-price{grid-template-columns:minmax(0,1fr) 60px}}
@container(max-width:315px){.ledger-entry-fields{grid-template-columns:1fr}}

/* Report selection and preparation */
.report-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;align-items:start}
.report-tile,.report-tile>summary{display:flex;gap:15px;align-items:center;color:#174655;text-decoration:none}
.report-tile{border:1px solid #d8e3e7;background:#fff;border-radius:10px;padding:17px;min-height:80px}
details.report-tile{display:block}.report-tile summary{cursor:pointer;list-style:none}.report-tile summary::-webkit-details-marker{display:none}.report-tile svg{flex-shrink:0}.report-tile strong,.report-tile small{display:block}.report-tile strong{font-size:15px}.report-tile small{margin-top:4px;font-size:12px;color:#526671}.report-tile:hover,.report-tile:focus-within{border-color:#629bad}.report-tile[open]>div{display:grid;margin-top:14px;border-top:1px solid #dce4e8}.report-tile[open]>div a{padding:8px 4px}
.report-form,.report-result{border:1px solid #dce4e8;background:white;border-radius:10px;padding:18px}.report-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.report-fields>div{display:flex;flex-direction:column;gap:9px}.report-field{display:grid;grid-template-columns:minmax(90px,31%) minmax(0,1fr);align-items:center;gap:8px}.report-field>span{font-size:13px;font-weight:600;color:#374e58}.report-field input:not([type=checkbox]),.report-field select,.report-select>summary{width:100%;min-width:0;border:1px solid #cad7dd;border-radius:6px;background:#fff;padding:7px 8px;color:#223a45;min-height:35px;font:inherit;font-size:13px}.report-dates{display:flex;align-items:center;gap:3px}.report-dates input{flex:1}.report-select{position:relative}.report-select>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.report-select summary[aria-disabled=true],.report-field :disabled{color:#71818a;background:#f3f6f7}.report-select>div{position:absolute;inset:calc(100% + 2px) 0 auto;z-index:8;max-height:220px;overflow:auto;box-shadow:0 7px 20px #17222922;border:1px solid #cbd9dc;border-radius:7px;background:#fff;padding:7px}.report-select label,.report-select button{display:flex;align-items:center;gap:7px;padding:4px;font-size:13px}.report-actions,.report-result header,.report-result header>div:last-child,.report-actions a{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-actions{margin-top:18px;border-top:1px solid #e3eaed;padding-top:14px}.report-result header{justify-content:space-between;margin-bottom:12px}.report-result h2{font-size:18px;margin:0}.report-result header p{font-size:13px;color:#53636d;margin:4px 0}.report-result img{object-fit:contain}.report-print-frame{position:fixed;width:1px;height:1px;border:0;bottom:0;right:0;opacity:0}
@media(max-width:1050px){.report-fields{grid-template-columns:1fr;gap:9px}.report-field{grid-template-columns:minmax(110px,25%) minmax(0,1fr)}}
@media(max-width:550px){.report-form,.report-result{padding:12px}.report-field{grid-template-columns:1fr;gap:4px}.report-fields>div{gap:12px}}
.report-months{display:flex;flex-wrap:wrap;gap:8px}.report-months label{display:flex;align-items:center;gap:4px;font-size:13px}.report-field .report-months input{width:auto;min-height:auto}
.report-income{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;margin:14px 0}.report-income section{padding:14px 16px;border:1px solid #dce4e8;border-radius:8px}.report-income h3{margin:0 0 12px}.report-income-line{display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin:12px 0;font-size:13px}.report-income-line>div{grid-column:1/-1;background:#e6edef;border-radius:4px;height:5px;overflow:hidden}.report-income-line i{display:block;background:#177386;height:100%}

@media (max-width: 700px) {
  .shop-main .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }

  .shop-main .catalog-toolbar > * {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Customer catalogue: both layouts share the same filter controls and focus order. */
.shop-catalog-layout {
  --catalog-ink: #243942;
  --catalog-accent: #006b91;
  --catalog-line: #dbe4e8;
  --catalog-sticky-top: 190px;
  display: grid;
  grid-template-columns: clamp(242px, 20vw, 278px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}
.shop-catalog-layout--internal { grid-template-columns: minmax(0, 1fr); }
.shop-category-panel {
  position: sticky;
  top: var(--catalog-sticky-top);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100dvh - var(--catalog-sticky-top) - 16px);
  background: #fff;
  color: var(--catalog-ink);
  border: 1px solid var(--catalog-line);
  border-radius: 16px;
  box-shadow: 0 4px 16px #1c354408;
}
.shop-category-heading, .shop-category-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px;
  margin: 0;
}
.shop-category-heading h2 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.shop-category-heading > svg, .shop-category-toggle > svg:first-child {
  box-sizing: content-box;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 8px;
  color: var(--catalog-accent);
  background: #e9f4f6;
  border-radius: 10px;
}
.shop-category-toggle { display: none; }
.shop-category-body { display: flex; flex-direction: column; min-height: 0; }
.shop-category-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 14px 10px;
  padding: 0 11px;
  border: 1px solid var(--catalog-line);
  border-radius: 9px;
  color: #526771;
  background: #f6f8f9;
}
.shop-category-search svg { flex-shrink: 0; width: 16px; height: 16px; }
.shop-category-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--catalog-ink);
}
.shop-category-search input::placeholder { color: #5c7079; }
.shop-category-search input:focus { outline: none; }
.shop-category-search:focus-within, .shop-category-panel button:focus-visible {
  outline: 2px solid var(--catalog-accent);
  outline-offset: 2px;
}
.shop-category-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c6d4da transparent;
  padding: 4px 10px 12px;
}
.shop-category-group { margin-top: 2px; }
.shop-category-panel :is(.shop-category-all, .shop-category-group-button, .shop-category-leaf) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--catalog-ink);
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.shop-category-panel :is(.shop-category-all,.shop-category-group-button) { font-weight: 600; gap: 10px; }
.shop-category-all { margin-bottom: 4px; }
.shop-category-panel :is(.shop-category-all,.shop-category-group-button) > svg:first-child,
.shop-category-icon { flex: 0 0 19px; width: 19px; height: 19px; color: #456570; }
.shop-category-chevron { margin-left: auto; flex: 0 0 15px; width: 15px; height: 15px; color: #5b7079; }
.shop-category-panel button[aria-expanded="true"] > .shop-category-chevron { transform: rotate(180deg); }
.shop-category-panel button[aria-expanded="true"] { color: #075e77; }
.shop-category-panel .shop-category-leaves {
  list-style: none;
  margin: 1px 0 6px 19px;
  padding: 0 0 0 8px;
  border-left: 1px solid #d4e1e6;
}
.shop-category-leaves[hidden] { display: none; }
.shop-category-panel .shop-category-leaf { min-height: 38px; color: #405660; font-size: 12.5px; }
@media (hover: hover) {
  .shop-category-panel :is(.shop-category-all,.shop-category-leaf,.shop-category-group-button):hover { background: #f1f6f7; }
}
.shop-category-panel button[aria-pressed="true"] { color: #07556e; background: #e4f2f6; font-weight: 700; }
.shop-category-panel button[aria-pressed="true"] > svg { color: var(--catalog-accent); }
.shop-category-message { margin: 10px 8px; color: #526671; font-size: 13px; line-height: 1.5; }
.shop-catalog-results { min-width: 0; }
.shop-catalog-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-catalog-tools .search { flex: 1 1 220px; min-width: 0; }
.shop-catalog-tools .search input { min-width: 0; }
.shop-catalog-tools .check-field { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.shop-catalog-summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 12px; }
.shop-catalog-summary h2 { font-size: clamp(18px,1.6vw,23px); margin: 0; letter-spacing: -.025em; color: var(--catalog-ink); }
.shop-catalog-summary small { font-size: 12px; color: #4c626e; }
.shop-catalog-results .live-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr));
  margin-top: 12px;
}
.shop-catalog-results .product-buy-row, .shop-catalog-results .live-pager { flex-wrap: wrap; }
.shop-catalog-results .live-pager { row-gap: 10px; }
@media (max-width: 800px) {
  .shop-catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shop-category-panel { position: static; max-height: none; border-radius: 12px; }
  .shop-category-heading { display: none; }
  .shop-category-toggle {
    display: flex; width: 100%; min-height: 54px; padding: 10px 14px;
    text-align: left; border: 0; border-radius: inherit; background: transparent; color: var(--catalog-ink);
  }
  .shop-category-toggle-label { display: grid; gap: 3px; min-width: 0; }
  .shop-category-toggle-label small { color: #526671; font-size: 11px; }
  .shop-category-toggle-label strong { font-size: 13px; overflow-wrap: anywhere; }
  .shop-category-body[data-mobile-open="false"] { display: none; }
  .shop-category-body[data-mobile-open="true"] { padding-top: 6px; }
  .shop-category-list { max-height: min(52dvh, 430px); }
  .shop-category-panel .shop-category-leaf { min-height: 44px; }
}
@media (max-width: 540px) {
  .shop-catalog-results .live-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .shop-catalog-summary { margin: 16px 0 10px; }
}
@media (max-width: 359px) {
  .shop-catalog-results .live-product-grid { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 801px) and (max-height: 535px) {
  .shop-category-panel { position: static; max-height: none; }
}

/* The catalogue filters share the sidebar's light surface and focus treatment. */
.shop-brand-filter {
  display: grid;
  gap: 5px;
  margin: 0 14px 12px;
  color: #405761;
  font-size: 12px;
  font-weight: 650;
}
.shop-brand-filter select, .shop-catalog-sort select {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #c7d7dd;
  border-radius: 9px;
  padding: 7px 10px;
  background-color: white;
  color: #213b47;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.shop-brand-filter select { width: 100%; }
.shop-category-body .shop-filter-reset {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: -4px 14px 7px;
  padding: 1px 5px;
  border: 0;
  background: transparent;
  color: #006584;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.shop-catalog-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  color: #405761;
  font-size: 13px;
}
.shop-catalog-sort select { flex: 1; }
.shop-catalog-layout :is(.shop-brand-filter select,.shop-catalog-sort select):focus-visible,
.merch-admin :is(button,input,select):focus-visible {
  outline: 2px solid #006b91;
  outline-offset: 2px;
}

/* The rail uses whole columns so the final card also lands on a full step. */
.featured-strip {
  container-type: inline-size;
  min-width: 0;
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid #cddde2;
  border-radius: 20px;
  background: linear-gradient(138deg, #fdfefe 10%, #f0f5f6 85%);
}
.featured-strip__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
}
.featured-strip__heading h2 {
  margin: 0;
  color: #1c353d;
  font-size: clamp(18px, 2.4cqi, 25px);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -.034em;
}
.featured-strip__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: #205765;
  background: #e7f0f2;
}
.featured-strip__controls {
  flex: none;
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-strip__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b9cdd3;
  border-radius: 50%;
  color: #224c57;
  background: #fff;
  cursor: pointer;
  transition: color .18s, border-color .18s, background-color .18s, transform .18s;
}
.featured-strip__controls button:disabled { color: #8b9fa7; border-color: #d8e3e6; background: transparent; cursor: default; }
.featured-strip__controls button:not(:disabled):active { transform: scale(.94); }
.featured-strip :is(button,a,[tabindex]):focus-visible {
  outline: 2px solid #006b91;
  outline-offset: 2px;
}
.featured-strip__rail {
  --gap: 12px;
  --slots: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--gap)) / min(var(--slots), var(--available-slots)) - var(--gap));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 13px;
}
.featured-strip__rail::-webkit-scrollbar { display: none; }
.featured-strip__rail[data-gliding] { scroll-snap-type: none; scroll-behavior: auto; }
.featured-strip__card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: grid;
  grid-template-rows: clamp(170px, 24cqi, 248px) minmax(44px, auto);
  align-content: start;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #b8cac8;
  border-radius: 15px 3px 15px 3px;
  background: radial-gradient(ellipse at 28% 20%, #fff 5%, #f4faf7 46%, #c9dcd8 130%);
}
/* Fixed corner planes belong to the card; only the contained artwork animates. */
.featured-strip__card::before,
.featured-strip__card::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
}
.featured-strip__card::before {
  background: linear-gradient(144deg, #f2fbf8, #b6d2cc 57%, #7daba6);
  clip-path: polygon(0 0, 46% 0, 0 39%);
  box-shadow: inset 3px 1px 0 #e8f2ee;
}
.featured-strip__card::after {
  background: linear-gradient(140deg, #7eaca6, #b4ceca 66%, #e7f2eb);
  clip-path: polygon(100% 66%, 100% 100%, 55% 100%);
}
.featured-strip__image {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 13px 6% 2px;
  color: #42616c;
}
.featured-strip__image::after {
  content: '';
  position: absolute;
  inset: 0;
}
.featured-strip__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}
.featured-strip__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.featured-strip__card:has(.featured-strip__image:focus-visible) { box-shadow: inset 0 0 0 3px #006b91; }
.featured-strip .featured-strip__image:focus-visible { outline: 3px solid #006b91; outline-offset: -4px; }
.featured-strip__card .product-colors {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: start;
  justify-content: center;
  margin: 0;
  padding: 0 4px;
  pointer-events: none;
}
.featured-strip__card .product-colors__label { display: none; }
.featured-strip__card .product-colors__options {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  max-width: 100%;
}
.featured-strip__card .product-color {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}
.featured-strip__card .product-color[aria-checked="true"] > span:first-child {
  border-color: #819ca7;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1c5e74;
}
.featured-strip__card .product-color__check { display: none; }
@container (max-width: 720px) {
  .featured-strip__rail { --slots: 3; }
}
@container (max-width: 520px) {
  .featured-strip__rail { --gap: 8px; --slots: 2; }
  .featured-strip__heading { gap: 7px; margin-bottom: 10px; }
  .featured-strip__mark { width: 32px; height: 32px; }
  .featured-strip__mark svg { width: 20px; }
  .featured-strip__image { padding-top: 10px; }
}
@container (max-width: 265px) {
  .featured-strip__mark { width: 20px; height: 24px; background: none; color: #285160; box-shadow: none; }
  .featured-strip__rail { --slots: 1; }
}
@media (hover:hover) {
  .featured-strip__controls button:not(:disabled):hover { color: #fff; border-color: #245560; background: #245560; }
  .featured-strip__card:has(.featured-strip__image:hover) { border-color: #749b96; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-strip__controls button { transition: none; }
  .featured-strip__controls button:not(:disabled):active { transform: none; }
}

.live-app .shop-detail-order-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
  margin: 18px 0 20px;
}
.shop-detail-order-controls > label { min-width: 7rem; flex: 0 1 9rem; }
.shop-detail-order-controls > .button { margin: 0; }

.shop-header .shop-language-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  flex: 0 0 auto;
  border: 1px solid #cbd9df;
  border-radius: 12px;
  background: #f7fafb;
  color: #264651;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.shop-header .shop-language-toggle:focus-visible {
  outline: 2px solid #006b91;
  outline-offset: 2px;
}
@media (hover:hover) {
  .shop-header .shop-language-toggle:hover { background: #eaf4f7; border-color: #80a8b7; }
}
@media (max-width: 520px) {
  .shop-header > div { flex-wrap: wrap; row-gap: 6px; }
  .shop-header .shop-header-actions { gap: 4px; margin-inline-start: auto; }
}

/* Independent admin sections keep saving one arrangement close to its controls. */
.merch-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap: 16px;
  align-items: start;
  margin: 20px 0;
}
.merch-admin .merch-admin-section { display: grid; min-width: 0; gap: 13px; }
.merch-admin-form, .merch-admin-controls {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.merch-admin-controls h3:not(:first-child) { padding-top: 5px; }
.merch-admin-section .merch-admin-controls .check-field { margin: 0; }
.merch-admin-section .check-field input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.merch-admin-position { font-variant-numeric: tabular-nums; color: #536a75; }
.merch-admin-section :is(h2,h3,p) { margin: 0; }
.merch-admin-section h2 { font-size: 19px; color: #223d48; }
.merch-admin-section h3 { font-size: 15px; color: #2a454f; }
.merch-admin .merch-admin-note { font-size: 13px; line-height: 1.5; color: #53636d; }
.merch-admin-scope, .merch-admin-picker { display: grid; min-width: 0; gap: 7px; }
.merch-admin .merch-admin-section :is(select,input:not([type="checkbox"])) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.merch-admin-list, .merch-admin-matches {
  display: grid;
  gap: 5px;
  min-width: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.merch-admin-matches { max-height: 276px; overflow-y: auto; scrollbar-width: thin; }
.merch-admin-matches button {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #244859;
  background: #f4f8f9;
  border: 1px solid #d4e1e5;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.merch-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  color: #47616d;
  background: #f9fbfb;
  font-size: 13px;
}
.merch-admin-name { min-width: 0; color: #24404b; overflow-wrap: anywhere; }
.merch-admin-name :is(strong,small) { display: block; }
.merch-admin-name small { color: #526773; font-size: 12px; }
.merch-admin-actions, .merch-admin-save { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.merch-admin-actions .icon-button { width: 34px; min-width: 34px; min-height: 34px; padding: 4px; }
.merch-admin-actions .icon-button:disabled { cursor: default; opacity: .4; }
@media (hover:hover) {
  .shop-filter-reset:hover { text-decoration: underline; }
  .merch-admin-matches button:not(:disabled):hover { border-color: #86abb8; background: #edf6f8; }
}
@media (max-width: 600px) {
  .shop-catalog-tools .shop-catalog-sort { flex: 1 1 100%; justify-content: space-between; }
  .shop-catalog-sort select, .shop-brand-filter select { min-height: 44px; }
  .shop-catalog-sort select { flex: 0 1 72%; }
  .merch-admin-actions .icon-button { min-width: 40px; min-height: 44px; }
}
@media (max-width: 420px) {
  .merch-admin-row { grid-template-columns: auto minmax(0,1fr); }
  .merch-admin-actions { grid-column: 2; }
}

.live-app .shop-nav-shell .segmented > a:not(.active):not(:hover) { color: #536975; }

@media (max-width: 640px) {
  .shop-nav-shell > div {
    padding: 7px 8px;
    gap: 6px;
  }
  .live-app .shop-nav-shell .segmented {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }
  .live-app .shop-nav-shell .segmented > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 47px;
    padding: 4px 1px;
    font-size: 10.5px;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }
  .shop-nav-shell .shop-cart-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  .shop-nav-shell .shop-cart-toggle > span:last-child { display: none; }
}

.shop-product-facts { margin-block-start: 1.5rem; padding: clamp(1rem, 3vw, 2rem); }
.shop-product-facts h2 { margin: 0 0 1.25rem; }
.shop-product-facts dl { margin: 0; }
.shop-product-facts dl > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #dce4e8; overflow-wrap: anywhere;
}
.shop-product-facts dt { color: #53636d; }
.shop-product-facts dd { margin: 0; color: #172229; font-weight: 600; }
.shop-product-facts ul { padding-inline-start: 1.25rem; list-style: disc; margin: 1rem 0; }
.shop-product-facts li { margin-block: .4rem; }
.shop-product-facts a { display: inline-block; margin-top: 1rem; color: #53636d; text-decoration: underline; }
