:root{font-family:Segoe UI,Arial,sans-serif;color:#20322f;background:#f3f6f6;font-size:16px;--green:#114b46;--border:#dde6e3}*{box-sizing:border-box}body{margin:0;display:flex}aside{width:238px;background:#103d39;color:#d7e9e5;min-height:100vh;position:fixed;padding:34px 22px;display:flex;flex-direction:column;inset:0 auto 0 0}.brand{font-size:36px;font-weight:800;color:white;text-decoration:none;letter-spacing:-2px}.brand span{display:block;font-size:16px;letter-spacing:0;font-weight:500;margin-top:3px}.nav-label{font-size:12px;letter-spacing:1.3px;margin:52px 12px 15px;color:#9ebeb6}nav{display:grid;gap:8px}nav button{text-align:left;background:none;color:#dcebe6;padding:14px 16px;border:0;font-size:16px}nav button.active{background:#28645b;color:white}.aside-foot{margin-top:auto;font-size:14px;line-height:2;color:#b0c8c1}.aside-foot a{color:white}main{margin-left:238px;width:calc(100% - 238px);padding:38px 44px;max-width:1800px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:18px}.eyebrow{font-size:12px;letter-spacing:1.5px;color:#658178;font-weight:700;margin:0 0 8px}h1{font-size:32px;font-weight:650;margin:0;letter-spacing:-1px}h2{font-size:19px;font-weight:650;margin:0 0 22px}h3{font-size:16px}#today{font-size:14px;color:#657c74}.panel{background:white;border:1px solid var(--border);border-radius:12px;padding:26px;margin-bottom:24px}.split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(275px,1fr);gap:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.card{background:white;border:1px solid var(--border);border-radius:12px;padding:22px}.card:first-child{background:var(--green);color:white}.card p{font-size:14px;margin:0 0 13px;opacity:.8}.card strong{font-size:26px;font-weight:650;overflow-wrap:anywhere}.card small{display:block;margin-top:10px;opacity:.7}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}input,select,textarea{font:inherit;width:100%;border:1px solid #cddbd6;background:white;border-radius:7px;padding:11px 12px;color:#20322f;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #95c5b8;outline-offset:2px}button{font:inherit;font-size:14px;font-weight:600;cursor:pointer;border:1px solid transparent;border-radius:7px;background:var(--green);color:white;padding:12px 18px}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}.secondary{background:white;color:var(--green);border-color:#cddbd6}.danger{background:#fff2ef;color:#a03e2f;border-color:#f0d7d0}.small{padding:7px 10px;font-size:14px}.row{display:flex;gap:15px;align-items:end;margin-bottom:20px}.row>*{flex:1;min-width:0}.field{margin-bottom:18px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#6e827b;background:#f6f8f7;font-weight:600}td,th{padding:14px 12px;border-bottom:1px solid #e8eeeb;white-space:nowrap}td:last-child{text-align:right}td input{width:100px;padding:8px}.empty{text-align:center;padding:44px 18px;color:#74847f;font-size:14px}.total{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-top:1px solid var(--border);margin-top:10px}.total strong{font-size:28px}.full{width:100%;padding:15px}.badge{display:inline-block;background:#e5f2ec;color:#21614d;padding:5px 9px;border-radius:5px;font-size:12px}.badge.credit{color:#986623;background:#fff1dc}.muted{color:#6b8078;font-size:14px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.toolbar h2{margin:0}.toolbar input{max-width:280px}#notice:not(:empty){padding:13px 18px;background:#e0efe7;border:1px solid #b4d1c2;border-radius:8px;margin-bottom:20px}#notice.error{background:#fff0ec;border-color:#e9b8aa;color:#8f3527}dialog{border:1px solid var(--border);border-radius:12px;padding:28px;max-width:800px;width:90%}dialog::backdrop{background:#173e3655}.cancelled{opacity:.55;text-decoration:line-through}.ledger-amount{font-weight:650}.help{font-size:14px;line-height:1.6;color:#72857d}.sale-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.sale-top h2{margin:0}.accent{height:4px;background:#b5d594;border-radius:4px;margin-top:5px}@media(max-width:1100px){main{padding:28px 24px}.split{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}aside{width:200px}main{margin-left:200px;width:calc(100% - 200px)}}@media(max-width:700px){body{display:block}aside{position:static;width:100%;min-height:auto;padding:18px}.brand{font-size:25px}.brand span{display:inline;margin-left:12px}nav{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px}nav button{padding:9px 12px;font-size:14px}.nav-label,.aside-foot{display:none}main{margin:0;width:100%;padding:24px 16px}header{align-items:start}#today{display:none}h1{font-size:28px}.row{flex-wrap:wrap}.row>*{flex-basis:40%}.panel{padding:18px}.cards{gap:10px}.card{padding:16px}.card strong{font-size:22px}.toolbar{flex-wrap:wrap}}

[hidden]{display:none!important}#fx-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#e8f0ed;border:1px solid #cbded5;border-radius:9px;padding:14px 18px;margin-bottom:22px;font-size:14px}#fx-info{flex:1;min-width:220px}#fx-info .muted{display:block;margin-top:4px}#stale-choice{flex-basis:100%;font-weight:400;margin:0}#accept-stale{width:auto;margin-right:8px}.fx-warning{color:#a04b20;margin-top:6px}.add-button{flex:0 0 auto}.help{overflow-wrap:anywhere}td .muted{white-space:normal;display:inline-block;max-width:300px}

.platform-page main{margin:0 auto;width:100%;max-width:1500px}.platform-page label{margin:14px 0}.platform-page input{margin-top:6px}.platform-page #license-form:not(:empty){margin-top:20px;padding:20px;background:#f3f6f6;border-radius:8px}
/* Satışta uzun ürün adları ve çok satırlı sepet. */
main,.split>*,.panel{min-width:0}
.product-picker-row{margin-bottom:8px}
.product-picker{position:relative;min-width:0}
.product-results{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:min(42vh,22rem);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #bad0c7;border-radius:8px;box-shadow:0 10px 24px #103d3926;margin-top:4px;scrollbar-gutter:stable}
.product-results [role=option]{display:block;width:100%;border:0;border-radius:0;text-align:left;background:#fff;color:#20322f;padding:12px 14px;white-space:normal;overflow-wrap:anywhere;font-weight:500;border-bottom:1px solid #e8eeeb}
.product-results [role=option][aria-selected=true],.product-results [role=option]:hover{background:#e2f0e9;filter:none}
.product-results small{display:block;font-size:14px;font-weight:650;color:#114b46;margin-top:5px}
.product-no-match{padding:16px;font-size:14px;color:#64766e}
.picker-help{margin:8px 0 20px}
.cart-heading{display:flex;gap:8px 14px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin:0 0 10px;font-size:14px}
#cart .table-wrap{max-height:clamp(15rem,52vh,32rem);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #e0e8e3;border-radius:8px}
#cart table{table-layout:fixed;width:100%}
#cart th{position:sticky;top:0;z-index:1}
#cart th:nth-child(1){width:43%}#cart th:nth-child(2){width:16%}#cart th:nth-child(3){width:23%}#cart th:nth-child(4){width:18%}
#cart td,#cart th{white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
#cart td input{width:100%;min-width:0;padding:8px 5px}
#cart .cart-product{line-height:1.5}
#cart .badge{margin-top:5px}
#cart-count{color:#114b46}
#cart .table-wrap:focus-visible{outline:3px solid #95c5b8;outline-offset:2px}
@media(max-width:1100px){.split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .product-picker-row{flex-wrap:nowrap}.product-picker-row .add-button{flex:0 0 auto}
 #cart thead{display:none}#cart table,#cart tbody{display:block}
 #cart tr:has(.cart-product){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) auto;align-items:end;padding:8px;border-bottom:1px solid #dce6e0}
 #cart tr:has(.cart-product) td{border:0;padding:7px}
 #cart .cart-product{grid-column:1/-1}
 #cart td[data-label]::before{content:attr(data-label);display:block;font-size:14px;color:#657c74;margin-bottom:5px}
 #cart .cart-actions{padding-bottom:8px}
}

.excel-preview{max-height:50vh;overflow:auto}.excel-name{white-space:normal;min-width:220px;max-width:500px}#modal:has(.excel-preview){width:min(1100px,94vw);max-width:94vw}

#product-table table{table-layout:fixed;width:100%}#product-table th:first-child{width:46%}#product-table td:first-child,#product-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}#product-table th:last-child{width:88px}

/* SZR — ortak çalışma alanı */
:root{--green:#285ed4;--border:#e2e7ef;background:#f4f6fa;color:#1c2940;font-family:Segoe UI,Arial,sans-serif;font-size:15px}
body{line-height:1.5}
aside{width:244px;padding:36px 20px 24px;background:#111c30;color:#c7d2e5;border-right:1px solid #24314a}
.brand{display:flex;align-items:center;gap:12px;padding:0 10px;letter-spacing:0}
.brand-symbol{width:42px;height:42px;flex-shrink:0}
.brand .brand-name{display:block;margin:0;font-size:30px;font-weight:750;line-height:1.1;letter-spacing:2px;color:#fff}
.brand small{display:block;font-size:9px;font-weight:600;letter-spacing:1.4px;color:#aab9d2;margin-top:7px}
.nav-label{margin:48px 14px 15px;font-size:10px;font-weight:700;letter-spacing:1.8px;color:#93a5c2}
nav{gap:7px}nav button{display:flex;align-items:center;gap:13px;min-height:49px;border-radius:10px;padding:13px 14px;color:#c0cce0;font-size:14px;font-weight:500;transition:background .15s,color .15s}
.nav-icon{width:20px;height:20px;flex-shrink:0}
nav button:hover{background:#1c2a43;filter:none;color:#fff}nav button.active{background:#294a83;color:#fff;box-shadow:inset 3px 0 #83a9ff}
.aside-foot{border-top:1px solid #2b3850;padding:23px 10px 0;color:#aab9d2;font-size:12px;line-height:1.6}
.workspace-label{font-size:9px;letter-spacing:1.3px;font-weight:700;color:#91a4c4}.aside-foot p{margin:9px 0 20px}.aside-foot a{display:flex;align-items:center;justify-content:space-between;color:#d6e4ff;font-size:13px;text-decoration:none}.aside-foot a:hover{color:#fff;text-decoration:underline}
main{margin-left:244px;width:calc(100% - 244px);padding:34px 38px 50px}
header{margin-bottom:26px;min-height:66px}.eyebrow{color:#657590;font-size:10px;letter-spacing:1.9px;margin-bottom:8px}h1{font-size:32px;font-weight:700;letter-spacing:-1px;color:#16243b}h2{font-size:18px;font-weight:650;letter-spacing:-.3px;color:#22324b}h3{color:#22324b}
#today{font-size:12px;color:#586b86;background:#fff;border:1px solid var(--border);border-radius:9px;padding:10px 14px}
.panel,.card{border-color:var(--border);border-radius:15px;box-shadow:0 3px 12px #17274204}.panel{padding:25px;margin-bottom:22px}.split{gap:22px}
#fx-bar{background:#edf2fb;border-color:#dce5f5;border-radius:12px;padding:13px 18px;margin-bottom:24px}#fx-info strong{font-size:14px;color:#244877;font-weight:650}#fx-info .muted{font-size:11px;color:#5f728f}#fx-bar .small{font-size:12px;background:#ffffffa8;border-color:#cfdcf1;color:#345783;padding:8px 12px}
label{font-size:12px;font-weight:600;color:#4b5c76;margin-bottom:8px}.field{margin-bottom:19px}
input,select,textarea{border-color:#d8e0eb;border-radius:9px;background:#fcfdff;color:#1c2940;font-size:14px;padding:11px 12px;min-height:43px;transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:#7c8aa0;font-size:13px}input:hover,select:hover,textarea:hover{border-color:#a5b6ce}input:focus,select:focus,textarea:focus{outline:0;border-color:#5a85e1;box-shadow:0 0 0 3px #285ed41a;background:white}button:focus-visible,a:focus-visible{outline:3px solid #83a9ff;outline-offset:3px}
input[type=checkbox]{width:auto;min-height:0;accent-color:#285ed4;vertical-align:middle;margin-right:8px}
button{border-radius:9px;font-size:13px;font-weight:600;background:#285ed4;padding:11px 16px;min-height:40px;transition:background .15s,box-shadow .15s}button:hover{filter:none;background:#204fb7}button:disabled{opacity:.55}.secondary{color:#345477;background:#fff;border-color:#d8e0eb}.secondary:hover{background:#eff4fc;border-color:#b6c8e4}.danger{background:#fff4f3;color:#ac3c36;border-color:#f2d7d4}.danger:hover{background:#fde6e4}.small{font-size:12px;padding:7px 10px;min-height:33px}.full{padding:13px;box-shadow:0 4px 9px #285ed417}
th{background:#f4f6fa;color:#657590;font-size:10px;font-weight:700;letter-spacing:.6px}td,th{border-color:#edf0f5;padding:14px 11px}td{color:#33445f;font-size:13px}tbody tr:hover{background:#f8faff}.table-wrap{border-radius:9px}td input{background:#fff}.empty{color:#77879d;padding:42px 18px;line-height:1.7}
.badge{background:#edf2fc;color:#44669c;border-radius:6px;font-size:10px;font-weight:600;padding:5px 9px}.badge.credit{background:#fff3df;color:#8c601b}.muted{color:#6c7c93;font-size:12px}.help{font-size:12px;color:#6a7c94;line-height:1.75}.total{padding:23px 0;color:#566782}.total strong{color:#1b3d76;font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.sale-top{margin-bottom:24px}
.cards{gap:18px}.card{padding:24px}.card:first-child{background:#1c3459;color:#fff;border-color:#1c3459}.card strong{font-size:28px;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.card p{font-size:12px;font-weight:600}.card small{font-size:11px}
#notice:not(:empty){background:#eaf5ef;border-color:#c7e3d3;color:#246b47;border-radius:10px;font-size:13px}#notice.error{background:#fff1ee;border-color:#efcac2;color:#a13a2c}
.product-results{border-color:#cbd9ef;border-radius:11px;box-shadow:0 12px 28px #1a305421}.product-results [role=option]{color:#263958;font-size:13px;border-color:#ecf0f6}.product-results [role=option][aria-selected=true],.product-results [role=option]:hover{background:#edf3ff}.product-results small{color:#285ed4;font-size:12px}.product-no-match{color:#6c7c93}#cart .table-wrap{border-color:#e1e7f0;border-radius:10px}#cart-count{color:#345783}#cart .table-wrap:focus-visible{outline-color:#83a9ff}#cart .cart-product{font-size:13px}#cart td[data-label]::before{color:#657590}
dialog{color:#1c2940;border-radius:17px;border-color:#dce3ef;box-shadow:0 24px 80px #101d3b33;padding:28px}dialog::backdrop{background:#0d193775;backdrop-filter:blur(3px)}dialog>button:last-child{margin-top:16px}.fx-warning{color:#945316}
@media(max-width:1100px) and (min-width:701px){aside{width:208px;padding-left:16px;padding-right:16px}main{margin-left:208px;width:calc(100% - 208px);padding:28px 25px}.brand{padding:0 6px}.brand small{font-size:8px;letter-spacing:1px}}
@media(max-width:700px){aside{width:100%;min-height:auto;position:static;padding:20px 16px 14px;border:0}.brand{padding:0 4px;gap:10px}.brand-symbol{width:35px;height:35px}.brand .brand-name{font-size:25px;margin:0}.brand small{font-size:8px;margin-top:4px}.nav-label,.aside-foot{display:none}nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin-top:21px;padding:0 0 3px}nav button{flex:0 0 auto;min-height:39px;padding:9px 12px;font-size:12px;gap:7px;white-space:nowrap}.nav-icon{width:16px;height:16px}nav button.active{box-shadow:inset 0 -2px #83a9ff}main{margin:0;width:100%;padding:24px 15px}header{min-height:0;margin-bottom:22px}h1{font-size:28px}.panel{padding:18px;border-radius:12px}.eyebrow{font-size:9px}#fx-bar{padding:12px 14px;gap:10px}#fx-info{min-width:180px}#fx-info strong{font-size:13px}.card{padding:18px}.card strong{font-size:23px}.total strong{font-size:27px}.row{gap:10px}#product-table th:first-child{width:40%}#product-table td,#product-table th{padding:11px 6px}.small{padding:7px 8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.button-link{display:inline-block;border:1px solid #d8e0eb;border-radius:8px;text-decoration:none;font-weight:600;line-height:1.5}.offer-actions{white-space:normal;min-width:240px}.offer-actions>*{margin:3px}.offer-accepted{background:#e5f5eb;color:#276342}.offer-expired{color:#a45a20;font-size:11px}.offer-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.offer-terms{grid-template-columns:repeat(3,minmax(0,1fr))}.offer-matches{max-height:270px;overflow:auto;margin-bottom:20px;border:1px solid var(--border);border-radius:10px}.offer-matches button{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;gap:18px;border:0;border-radius:0;border-bottom:1px solid var(--border);font-weight:400}.offer-matches button span{overflow-wrap:anywhere}.offer-matches strong{white-space:nowrap}.offer-footer{display:grid;grid-template-columns:1fr minmax(260px,.6fr);gap:40px;margin-top:25px}.offer-footer .total{gap:18px}.offer-footer .total strong{font-size:25px}#offer-lines table{min-width:750px;table-layout:fixed}#offer-lines th:first-child{width:34%}#offer-lines th:nth-child(2){width:9%}#offer-lines td{vertical-align:top;white-space:normal}#offer-lines textarea,#offer-lines input{width:100%;min-height:42px;padding:9px 7px}#offer-lines textarea{resize:vertical}#offer-lines th:last-child{width:80px}#offer-sale-form label{margin:20px 0}#offer-list td:first-child{white-space:normal;min-width:190px}
@media(max-width:1000px){.offer-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.offer-terms{grid-template-columns:1fr}.offer-footer{gap:20px}}
@media(max-width:700px){.offer-fields,.offer-footer{grid-template-columns:1fr;gap:5px}.offer-actions{min-width:190px}.offer-footer .total strong{font-size:23px}}
.account-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.account-actions{display:flex;flex-wrap:wrap;gap:8px}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.account-tile{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;background:#f9fbff;border:1px solid #dfe6f0;color:#263c5a;padding:20px;min-width:0}.account-tile:hover{background:#edf3ff}.account-tile.selected{background:#edf3ff;border-color:#6890df;box-shadow:inset 0 3px #285ed4}.account-tile strong{font-size:16px;overflow-wrap:anywhere}.account-amount{font-size:24px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.negative{color:#a2382d}.account-description{white-space:normal;min-width:200px;max-width:430px}.account-tile .muted{font-size:10px;letter-spacing:.7px}#account-ledger-select{min-width:210px;margin-top:5px}
@media(max-width:700px){.account-summary{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.account-actions{width:100%}.account-actions button{flex:1}.account-summary .card strong{font-size:25px}}

#product-table table{min-width:620px}
#product-table th{white-space:nowrap}
#supplier-lines table{min-width:520px}
.product-layout{grid-template-columns:minmax(0,1fr)}
#product-table table{table-layout:auto;min-width:720px}
#product-table th:first-child{width:auto}
#product-table th:last-child{width:160px}
#product-table td:first-child{min-width:160px}
#product-table td:nth-child(2){min-width:100px}
#product-table td:last-child{white-space:nowrap}
#product-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
#product-form>.help,#product-form>button{grid-column:1/-1}
@media(max-width:700px){#product-form{grid-template-columns:1fr}}
.purchase-start{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.purchase-start .field{flex:1;min-width:220px;margin:0}
.purchase-start label{margin-bottom:0}
#purchase-history td{vertical-align:top}
#purchase-history td:nth-child(3){white-space:normal;min-width:180px;max-width:400px}
.detail-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:22px}
.detail-head h2{margin-bottom:8px}.detail-head p{margin:5px 0;color:#65758e}
.detail-head .badge{white-space:nowrap}
.detail-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.detail-cards>div{background:#f2f6fe;border:1px solid #dce5f4;border-radius:12px;padding:16px;min-width:0}
.detail-cards span,.detail-cards small{display:block;color:#65758e;font-size:12px;line-height:1.5}
.detail-cards strong{display:block;font-size:21px;margin:8px 0;overflow-wrap:anywhere;color:#203c69}
.detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.detail-facts>div{padding:12px 0;border-bottom:1px solid #e7ecf4;min-width:0}
.detail-facts dt{font-size:12px;color:#68788f;margin-bottom:5px}.detail-facts dd{margin:0;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.detail-section{margin-top:24px}.detail-section h3{font-size:16px;margin-bottom:12px}
.detail-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;background:#f7f9fc;padding:15px;border-radius:10px}
.detail-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
dialog:has(.detail-head){width:min(1000px,calc(100vw - 32px));max-width:1000px}
dialog:has(.detail-head) td{vertical-align:top}dialog:has(.detail-head) td:first-child{white-space:normal;min-width:100px}
@media(max-width:700px){.detail-cards,.detail-facts{grid-template-columns:1fr}.detail-head{flex-wrap:wrap}.detail-cards strong{font-size:20px}}
.report-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.report-explanation p{font-size:14px;line-height:1.7;color:#52637b}
.report-warning{background:#fff5df;border:1px solid #efdbac;padding:14px;border-radius:10px}
#report-body .detail-cards{margin-bottom:20px}#report-body td{vertical-align:top}
#report-body td small{white-space:normal;display:inline-block;max-width:220px}
@media(max-width:900px){.report-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.report-controls{grid-template-columns:1fr}}

.report-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;border-radius:6px}
.report-fold>summary::-webkit-details-marker{display:none}
.report-fold>summary h2{margin:0;font-size:18px}
.report-fold>summary::after{content:'+';font-size:25px;font-weight:500;color:#456ba8;line-height:1}
.report-fold[open]>summary::after{content:'−'}
.report-fold>summary:hover{color:#285ed4}
.report-fold>summary:focus-visible{outline:2px solid #285ed4;outline-offset:8px}
.report-fold-body{border-top:1px solid #e7ecf4;margin-top:20px;padding-top:16px}
.report-fold-body>.toolbar{justify-content:flex-end}
.report-click-card{cursor:pointer;transition:background .15s,border-color .15s}.report-click-card:hover{background:#e5edfc;border-color:#7396d3}.report-click-card:focus-visible{outline:2px solid #285ed4;outline-offset:3px}
.purchase-search-results{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;margin-bottom:12px}.purchase-search-results button{text-align:left;white-space:normal}.purchase-search-results small{display:block}
.quick-product-dialog{width:min(900px,calc(100vw - 32px));max-height:90vh;overflow:auto}.quick-product-dialog input[type="text"],.quick-product-dialog input{max-width:100%}

/* Invoice preview: keep monetary inputs and matching controls readable. */
dialog:has(#pdf-draft){width:min(1200px,96vw);max-width:1200px;max-height:94vh;overflow:auto}
#pdf-lines td:first-child{min-width:240px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
#pdf-lines td:first-child select,#pdf-lines td:first-child input{width:240px;max-width:100%;margin:6px 0}
#pdf-lines td{vertical-align:top}#pdf-lines .help{font-size:12px;margin:5px 0}
#pdf-draft input[type=checkbox]{width:auto;margin:12px 7px 12px 0}

/* Cari balances use the same business perspective for customers and suppliers. */
.cari-balance,.detail-cards .cari-balance{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:inherit;line-height:1.5;font-weight:600}
.cari-balance--receivable,.detail-cards .cari-balance--receivable{color:#18743c}
.cari-balance--payable,.detail-cards .cari-balance--payable{color:#b4232f}
.cari-balance--settled,.detail-cards .cari-balance--settled{color:#667085}
.cari-balance .cari-balance-amount{display:inline;color:inherit;font-size:inherit;white-space:nowrap}
.cari-balance .cari-balance-badge{display:inline-block;color:inherit;font-size:11px;line-height:1.5;font-weight:600;padding:1px 6px;border:1px solid currentColor;border-radius:5px;white-space:nowrap}
.cari-balance--receivable .cari-balance-badge{background:#ecfdf3}
.cari-balance--payable .cari-balance-badge{background:#fff1f2}
.cari-balance--settled .cari-balance-badge{background:#f2f4f7}

.auth-locked aside,.auth-locked #fx-bar{display:none}.auth-locked main{margin-left:0;max-width:650px;margin-inline:auto;width:100%}.auth-panel{max-width:520px;margin:30px auto}.auth-panel form{display:grid;gap:14px}.auth-userbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.auth-userbar span{margin-right:auto}#user-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0;padding:16px;border:1px solid #d5dce6}#user-permissions label{display:flex;align-items:center;gap:8px}[hidden]{display:none!important}

/* Report cards expose their detail-dialog action. */
.detail-cards .report-card-action{margin-top:12px;color:#285ed4;font-weight:600}
@media print{.report-card-action{display:none!important}}
/* Overview and report workspace */
.insight-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;margin-bottom:24px;border:1px solid #d8e4f2;border-radius:18px;background:linear-gradient(120deg,#edf4ff,#f5faf8)}
.insight-hero h2{font-size:26px;letter-spacing:-.6px;margin:0 0 8px;color:#17365c}.insight-hero p:last-child{margin:0;color:#60718a;max-width:650px}.insight-date{white-space:nowrap;background:white;border:1px solid #dce5f1;border-radius:30px;padding:8px 14px;font-weight:600;color:#345274}
.summary-metrics .summary-card{text-align:left;color:#203c69;background:white;box-shadow:0 4px 16px #18376305;border-top:3px solid #8baae3;transition:transform .15s,box-shadow .15s}.summary-metrics .summary-card:first-child{color:white;background:#183c69;border-top-color:#183c69}.summary-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #18376314;filter:none}.summary-card small{min-height:42px;opacity:.85}.metric-link{display:block;font-size:12px;margin-top:16px;font-weight:600}.summary-card strong{font-variant-numeric:tabular-nums}
.insight-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:30px 0 14px}.insight-section-heading h2{margin:0;font-size:21px;letter-spacing:-.3px}.insight-section-heading>p{font-size:13px;line-height:1.6;color:#64748b;max-width:400px;margin:0}.insight-section-heading .eyebrow{font-size:11px;color:#5875a0}
.report-filter-panel{border-top:4px solid #285ed4}.report-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.report-shortcuts button{color:#49617d;background:#f0f4f9;border:1px solid #dee6f0;border-radius:24px;padding:8px 18px}.report-shortcuts button.active{background:#203e6b;color:white;border-color:#203e6b}
#report-body>.report-metric-group{gap:16px;margin:0 0 28px}#report-body>.report-metric-group>div{background:white;border:1px solid #dce5f0;border-radius:14px;padding:22px;border-top:3px solid #8ca8d7;box-shadow:0 3px 12px #18376304}#report-body>.report-metric-group>div:hover{background:#f4f8ff;border-color:#7998cb}#report-body>.report-metric-group strong{font-size:27px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}#report-body>.report-metric-group>div>span{font-weight:650;font-size:14px;color:#40546f}#report-body>.report-metric-group>div:last-child{background:#eff6f4;border-top-color:#428774}#report-body>.report-metric-group:last-of-type{grid-template-columns:repeat(2,minmax(0,1fr))}.report-card-action{padding-top:12px;border-top:1px solid #e5ebf3}
#report-body .report-fold>summary{padding:4px 0}#report-body .report-fold>summary h2{font-size:18px}#report-body .report-fold-body{padding-top:18px}.summary-profit{border-left:4px solid #428774}.summary-profit .detail-cards{margin-bottom:10px}
#modal:has(.detail-head){max-width:1120px;width:94vw;max-height:90vh;overflow:auto}#modal .detail-head h2{font-size:24px}#modal .table-wrap{max-height:52vh}#modal thead th{position:sticky;top:0;z-index:1}
@media(max-width:900px){.insight-section-heading{align-items:start;flex-direction:column;gap:8px}.insight-section-heading>p{max-width:none}#report-body>.report-metric-group strong{font-size:22px}}
@media(max-width:700px){.insight-hero{padding:22px;align-items:start;flex-direction:column;gap:14px}.insight-hero h2{font-size:23px}.summary-metrics{grid-template-columns:1fr 1fr}.summary-card strong{font-size:21px}.summary-card{padding:16px}.insight-section-heading h2{font-size:19px}#report-body>.report-metric-group,#report-body>.report-metric-group:last-of-type{grid-template-columns:1fr}.report-shortcuts button{flex:1;padding:9px 12px}.summary-profit .toolbar{align-items:start;flex-direction:column}}
.report-fx-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;margin:0 0 24px;border:1px solid #dce5f0;border-radius:10px;color:#64748b;font-size:13px;background:#f8fafc}.fx-result{display:inline-block;padding:5px 9px;border-radius:6px;font-weight:650}.fx-profit{color:#167044;background:#e9f6ee}.fx-loss{color:#b42332;background:#fff0f1}.fx-neutral{color:#596579;background:#edf0f5}
/* UTC corporate theme — shared business and subscription workspaces */
:root{--green:#2563eb;--border:#e1e7ef;--utc-ink:#172b4d;--utc-muted:#536780;--utc-surface:#fff;--utc-radius:14px;font-family:'Segoe UI',Arial,sans-serif;color:var(--utc-ink);background:#f3f5f9;font-size:15px;color-scheme:light}
body{background:#f3f5f9;line-height:1.55}aside{background:linear-gradient(180deg,#111e34 0%,#152940 100%);border-right:1px solid #24374f;padding:28px 18px 20px;box-shadow:4px 0 24px #142b4506;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#40536f transparent}.brand{padding:4px 12px 18px}.brand .brand-name{font-size:29px;letter-spacing:1px}.brand small{font-size:9px;color:#b6c6dc}.brand-symbol{filter:drop-shadow(0 4px 10px #0002)}.nav-label{margin:16px 14px 12px;color:#91a8c5;letter-spacing:1.6px}nav{gap:4px}nav button{min-height:44px;padding:10px 14px;font-size:14px;border-radius:9px;color:#c5d2e4}nav button.active{background:#284975;box-shadow:inset 3px 0 #71a8ff;color:#fff}nav button:hover{background:#223b59;color:white}.nav-icon{width:19px;height:19px}.aside-foot{margin-top:28px;padding:18px 12px 0;color:#aebfd5}
main{padding:30px 36px 48px;max-width:1840px}header{padding:0 0 22px;border-bottom:1px solid #dfe6ef;margin-bottom:24px;gap:20px;flex-wrap:wrap}h1{font-size:30px;font-weight:700;letter-spacing:-.8px;color:#172b4d}h2{font-size:19px;line-height:1.35;color:#203653}h3{font-size:16px;color:#263e5d}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.4px;color:#5b7290}#today{border:1px solid #dfe6ef;background:#fff;font-size:13px;padding:9px 14px;border-radius:24px;color:#516681}.panel{padding:26px;background:#fff;border:1px solid var(--border);border-radius:var(--utc-radius);box-shadow:0 3px 14px #19345305}.toolbar{gap:16px}.split{gap:24px}
label{font-size:13px;color:#405572;font-weight:600}input,select,textarea{background:#fff;border:1px solid #ced8e5;border-radius:8px;color:#203653;font-size:14px;min-height:44px;padding:11px 12px}input::placeholder,textarea::placeholder{color:#78879a}input:focus,select:focus,textarea:focus{border-color:#4c82dc;box-shadow:0 0 0 3px #2563eb15}input[type=checkbox],input[type=radio]{min-height:0;accent-color:#2563eb}button{font-size:13px;min-height:40px;border-radius:8px;background:#2563eb;font-weight:600;box-shadow:none}button:hover{background:#1d4ed8}.secondary{background:white;border-color:#ced8e5;color:#355476}.secondary:hover{background:#eff5ff;border-color:#a9bedc}.danger{background:#fff3f3;color:#ae343e;border-color:#efcdd1}.danger:hover{background:#ffe7e9}.small{min-height:34px;font-size:12px}.full{box-shadow:0 3px 8px #2563eb12}.help{color:#596e88;font-size:13px;line-height:1.7}.muted{color:#60738d;font-size:12px}
.table-wrap{border:1px solid #e7ecf3;border-radius:10px}table{font-variant-numeric:tabular-nums}th{font-size:11px;letter-spacing:.4px;color:#516781;background:#f3f6fa;padding:13px 14px;line-height:1.5}td{padding:15px 14px;font-size:13px;color:#304763;border-bottom-color:#e9edf4}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f6f9fd}.empty{font-size:14px;color:#657990;padding:42px 20px}.badge{font-size:11px;background:#eaf1fd;color:#325e9c;border-radius:5px}.badge.credit{background:#fff3dc;color:#88601c}.total strong{color:#203f70;font-variant-numeric:tabular-nums}
#fx-bar{background:#edf3fa;border:1px solid #dce5f0;border-left:3px solid #749bce;border-radius:10px;padding:12px 16px}#fx-info .muted{font-size:12px}#notice:not(:empty){border-radius:9px;font-size:14px}dialog{background:#fff;border:1px solid #d6e0ec;border-radius:16px;box-shadow:0 28px 90px #0b213b3d;padding:28px;max-height:90vh;overflow:auto}dialog::backdrop{background:#0d1b3280;backdrop-filter:blur(4px)}#close-modal{margin-top:22px;min-width:100px}.detail-head{padding-bottom:18px;border-bottom:1px solid #e5ebf2;margin-bottom:20px}.detail-cards>div{background:#f4f7fc;border-color:#dde6f2;border-radius:11px}.detail-cards strong{color:#203f70}.detail-cards span,.detail-cards small{color:#536c8b}.report-fold>summary:focus-visible{outline:3px solid #83a9ff;outline-offset:5px;border-radius:5px}
.platform-page main{max-width:1450px;margin:0 auto;padding:36px}.platform-page header{background:#132842;color:white;border:0;border-radius:16px;padding:25px 28px;margin-bottom:28px;box-shadow:0 8px 24px #13284212}.platform-page header h1{color:white;font-size:26px}.platform-page header a{color:#d5e5ff;font-size:13px;text-underline-offset:4px}.platform-page #license-form:not(:empty){border:1px solid #dbe5f1;background:#f1f5fb;padding:24px;border-radius:12px}
@media(min-width:701px){aside{height:100dvh}nav{flex:0 0 auto}.aside-foot{flex-shrink:0}}
@media(max-width:1100px){main{padding:26px 24px}}
@media(max-width:700px){aside{height:auto;overflow:visible;padding:18px 16px;background:#132842;border:0}.brand{padding:0}.brand .brand-name{font-size:25px}.brand small{display:block;font-size:9px}.brand-symbol{width:36px;height:36px}nav{gap:6px;margin-top:18px}nav button{min-height:38px;padding:8px 11px;font-size:13px;flex:0 0 auto;border-radius:7px}nav button.active{box-shadow:none;background:#31577f}.nav-icon{width:17px;height:17px}main{padding:22px 16px;width:100%;margin:0}header{padding-bottom:16px;margin-bottom:18px;gap:12px}h1{font-size:26px}.panel{padding:18px;border-radius:12px}.platform-page main{padding:18px 14px}.platform-page header{padding:22px;align-items:start}.platform-page header h1{font-size:23px}.toolbar{flex-wrap:wrap}dialog{padding:20px;width:94vw}.row{flex-wrap:wrap}.row>*{min-width:0}.detail-head h2{overflow-wrap:anywhere}#fx-bar{gap:10px;padding:12px}#fx-info{min-width:0;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
#mobile-menu-toggle{display:none}
/* Touch layouts: keep wide tables inside their own scroll area. */
@media screen and (max-width:1100px){
 .table-wrap{max-width:100%;overscroll-behavior-x:contain}
 .split>*,.offer-footer>*,.detail-cards>*,.toolbar>*{min-width:0}
}
@media screen and (max-width:700px){
 body>aside{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px}
 #mobile-menu-toggle{display:flex;align-items:center;gap:12px;min-height:44px;background:#284975;border:1px solid #6985a5;color:white;align-self:center}
 body>aside #nav{display:none;grid-column:1/-1}
 body>aside.mobile-menu-open #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin-top:16px}
 body>aside #nav button{white-space:normal;min-height:48px;line-height:1.4}
 body>aside #nav button span{overflow-wrap:anywhere}
 main .row>.field,main .row>label{flex-basis:100%}
 .purchase-start .field{min-width:0;flex-basis:100%}
 .toolbar input,.toolbar select{max-width:100%;width:100%}
 .sale-top,.detail-head,.total{flex-wrap:wrap;gap:10px}
 .sale-top{align-items:flex-start}
 button,.small,.button-link{min-height:44px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:44px}
 .auth-userbar{flex-wrap:wrap;gap:8px}
 .auth-userbar span{flex-basis:100%;overflow-wrap:anywhere}
 .summary-metrics,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 dialog#modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;margin:auto;overscroll-behavior:contain}
 #modal:has(.detail-head){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 #modal-content{min-width:0;overflow-wrap:anywhere}
 #modal .row{flex-direction:column;align-items:stretch}
 #modal .row>*{width:100%;flex-basis:auto}
 #close-modal{position:sticky;bottom:0;width:100%;background:#fff;box-shadow:0 -5px 15px #ffffffdf;z-index:3}
 #product-form{gap:0}
 #account-ledger-select{min-width:0;max-width:100%}
 .platform-page header{flex-direction:column;gap:10px}
}
@media screen and (max-width:380px){
 .summary-metrics,.cards{grid-template-columns:1fr}
 main{padding:18px 10px}.panel{padding:14px}
}

.barcode-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:end;padding:14px;background:#f0f5fc;border:1px solid #d8e4f5;border-radius:10px;margin-bottom:18px}.barcode-picker label{margin:0}.barcode-feedback{grid-column:1/-1;margin:0;overflow-wrap:anywhere}.barcode-feedback button{margin-left:8px}.barcode-input{margin-top:6px;font-variant-numeric:tabular-nums}@media(max-width:450px){.barcode-picker{grid-template-columns:minmax(0,1fr)}.barcode-picker>button{width:100%}}

.barcode-camera{grid-column:1/-1}.barcode-camera-dialog{width:min(560px,calc(100vw - 20px));max-height:calc(100dvh - 20px);padding:20px}.barcode-camera-dialog video{display:block;width:100%;max-height:45dvh;min-height:160px;background:#11253c;border-radius:12px;object-fit:contain}.barcode-camera-dialog .camera-close{width:100%;min-height:44px}.camera-status{overflow-wrap:anywhere}
