:root{color-scheme:light;--bg:#f3f0e9;--card:#ffffff;--ink:#171920;--muted:#82817e;--line:#eeece7;--navy:#191e35;--teal:#159d9d;--green:#38946c;--peach:#f8d7b4;--radius:25px;--shadow:0 5px 25px #4b483406;font-family:'DM Sans',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:3px solid #159d9d77;outline-offset:4px}button:disabled{cursor:default;opacity:.4}input:focus,select:focus,textarea:focus{outline:2px solid #159d9d55;border-color:var(--teal)}h1,h2,h3,p{margin:0}h1{font-weight:550;font-size:30px;line-height:1.2;letter-spacing:-1.1px}h2{font-weight:550;font-size:16px;letter-spacing:-.4px}h3{font-weight:550;font-size:15px}strong{font-weight:600}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}.muted{color:var(--muted)}.small{font-size:12px}.text-right{text-align:right}.positive{color:var(--green)}.negative{color:#cf785f}.tabular{font-variant-numeric:tabular-nums}.mobile-balance-status{display:none}.skip-link{position:fixed;top:-100px;left:20px;padding:12px 20px;background:var(--navy);color:white;z-index:50}.skip-link:focus{top:12px}
.sidebar{width:224px;position:fixed;inset:0 auto 0 0;padding:35px 22px 22px;border-right:1px solid #dfdcd466;display:flex;flex-direction:column;z-index:20;background:var(--bg)}.brand{display:flex;align-items:center;gap:10px;padding:0 13px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--navy);color:white;border-radius:11px}.brand-mark .icon{width:22px;height:22px}.brand-word{font-size:29px;font-weight:650;letter-spacing:-1.8px}.brand-word>span{color:var(--teal)}.workspace-label{font-size:10px;color:#98948c;letter-spacing:1.4px;margin:48px 14px 18px;font-weight:600}.side-link{display:flex;align-items:center;gap:13px;min-height:48px;padding:12px 15px;margin-bottom:7px;color:#7e7c78;border-radius:13px;font-size:13px;font-weight:500;transition:background .15s,color .15s}.side-link:hover{background:#eae6de;color:var(--ink)}.side-link.active{background:var(--navy);color:white;box-shadow:0 5px 12px #191e3510}.side-link .icon{width:19px;height:19px}.nav-separator{height:1px;background:#e3dfd6;margin:24px 13px}.side-count{margin-left:auto;background:#f9d6ba;color:#755b42;font-size:10px;min-width:19px;height:19px;display:grid;place-items:center;border-radius:6px}.sidebar-bottom{margin-top:auto;padding-top:50px}.device-status{display:flex;gap:9px;align-items:center;font-size:11px;margin:0 10px 24px;color:#696e65}.device-status>span{height:6px;width:6px;background:var(--green);border-radius:50%;flex:none}.device-status small{font-size:10px;display:block;color:#97938b;margin-top:4px}.shop-profile{display:flex;align-items:center;gap:10px;padding:12px 6px;border-top:1px solid #e0dcd2;text-align:left;width:100%}.shop-profile>span:nth-child(2){min-width:0;flex:1}.shop-profile strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shop-profile small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.shop-logo{width:32px;height:32px;border-radius:10px;background:#e5e2d9;display:grid;place-items:center;flex:none}.shop-profile>.icon{width:14px;height:14px;color:#8b8880}.app-shell{margin-left:224px;max-width:1840px}.topbar{height:100px;padding:25px 38px;display:flex;align-items:center;justify-content:space-between;position:relative;gap:18px}.desktop-welcome{display:flex;gap:11px;align-items:center}.welcome-avatar,.owner-avatar{background:#e6d6c7;border:3px solid #fffcf6;display:grid;place-items:center;width:43px;height:43px;border-radius:50%;font-size:12px;font-weight:600;color:#67564b;flex:none}.eyebrow{display:block;font-size:10px;color:#8c837a;margin-bottom:3px}.desktop-welcome strong{display:block;font-size:12px;font-weight:550}.top-actions{display:flex;align-items:center;gap:11px}.date-label{color:#8e8981;font-size:11px;margin-right:10px}.icon-button{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border-radius:50%;background:white;position:relative;transition:transform .15s}.icon-button:hover{transform:translateY(-1px)}.icon-button .icon{width:17px;height:17px}.notification-dot{position:absolute;width:5px;height:5px;top:8px;right:9px;border-radius:50%;background:#d49570}.owner-avatar{display:none}.button{min-height:41px;border:1px solid #e9e6df;background:white;padding:10px 17px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500;font-size:12px;white-space:nowrap;transition:transform .15s,box-shadow .15s}.button:hover{box-shadow:0 4px 12px #25222509;transform:translateY(-1px)}.button.dark{background:var(--navy);color:white;border-color:var(--navy)}.button.teal{background:var(--teal);color:white;border-color:var(--teal)}.button.soft{background:#f3f1ec;border-color:transparent}.button .icon{width:16px;height:16px}.header-new{margin-left:5px;border-radius:22px;min-height:39px}.mobile-brand{display:none}.main{padding:11px 38px 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.page-heading p{font-size:12px;color:#8a857d;margin-top:8px}.page-actions{display:flex;gap:9px;align-items:center}.period-toggle,.segmented{display:flex;background:#e9e6df99;border:1px solid #e8e5dc;border-radius:10px;padding:3px;gap:3px}.period-toggle button,.segmented button{font-size:11px;color:#8a857e;padding:8px 12px;border-radius:7px;min-height:31px;white-space:nowrap}.period-toggle button.active,.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 5px #322d2010}.card{background:#fffffff0;border:1px solid #ffffff;border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head h2{font-size:14px}.card-label{font-size:12px;color:#86827a}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);grid-template-areas:'sales summary' 'dues actions' 'transactions reminders';gap:20px}.sales-card{grid-area:sales;padding:25px 27px 20px;background:linear-gradient(125deg,#fffaf4 0%,#ffffff 57%)}.sales-figure{font-size:43px;line-height:1.2;letter-spacing:-2px;font-weight:500;margin-top:9px;display:flex;align-items:center;gap:14px}.sales-figure .icon-button{width:27px;height:27px;min-width:27px;background:#f4f2ee;color:#706d68}.sales-figure .icon-button .icon{width:13px;height:13px}.sales-meta{display:flex;gap:10px;align-items:center;margin:10px 0 22px;font-size:10px;color:#89857e}.trend{color:#48876b;display:inline-flex;align-items:center;gap:4px;background:#edf4ed;border-radius:6px;padding:3px 6px}.trend .icon{width:12px;height:12px}.chart-title{font-size:11px;color:#8e8b84;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.chart-legend{display:flex;gap:13px;align-items:center;font-size:10px}.chart-legend span{display:flex;gap:5px;align-items:center}.chart-legend i{width:6px;height:6px;border-radius:2px;background:#ebebe8}.chart-legend span:last-child i{background:var(--teal)}.chart{height:169px;display:grid;grid-template-columns:33px 1fr;gap:5px}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;padding-bottom:25px;font-size:9px;color:#a09d96;font-variant-numeric:tabular-nums}.chart-plot{position:relative;min-width:0;display:flex}.chart-grid{position:absolute;inset:0 0 25px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}.chart-grid span{border-top:1px dashed #efede8;width:100%}.bars{display:flex;align-items:flex-end;justify-content:space-around;gap:10px;width:100%;z-index:1}.bar-col{height:100%;display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end}.bar-space{height:144px;display:flex;align-items:flex-end;width:100%;justify-content:center;position:relative}.bar{height:var(--height);min-height:3px;width:75%;max-width:37px;background:#ebebe8;border-radius:6px 6px 0 0;position:relative;transition:filter .15s}.bar:hover,.bar:focus-visible{filter:brightness(.96)}.bar.highlight{background:linear-gradient(180deg,#f8d8b1 0%,#a6d4c2 41%,#19a6ac 100%)}.bar-label{height:25px;display:flex;align-items:flex-end;justify-content:center;color:#8e8b84;font-size:10px}.bar-col.is-today .bar-label{color:var(--ink);font-weight:600}.bar-tooltip{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);border-radius:5px;background:var(--navy);color:white;font-size:9px;padding:3px 6px;white-space:nowrap;opacity:0;pointer-events:none}.highlight .bar-tooltip,.bar:hover .bar-tooltip,.bar:focus-visible .bar-tooltip{opacity:1}.bar-tooltip:after{content:'';position:absolute;border:3px solid transparent;border-top-color:var(--navy);left:50%;top:100%;transform:translateX(-50%)}.summary-card{grid-area:summary;padding:24px 21px 19px;display:flex;flex-direction:column;justify-content:space-between}.pill{border:1px solid #e8e6df;border-radius:20px;font-size:9px;padding:5px 9px;color:#7c7871;display:flex;align-items:center;gap:5px}.pill .icon{width:10px;height:10px}.gauge{height:162px;position:relative;max-width:260px;width:100%;margin:13px auto 0}.gauge>svg{width:100%;height:100%;overflow:visible}.gauge-label{position:absolute;bottom:16px;left:0;right:0;text-align:center}.gauge-label span{font-size:10px;color:#89847d;display:block}.gauge-label strong{display:block;font-size:29px;letter-spacing:-1px;font-weight:500;line-height:1.25;margin:2px 0}.gauge-label small{font-size:9px;color:#a19b93}.summary-split{display:grid;grid-template-columns:1fr 1fr;gap:9px}.summary-split>div{border:1px solid #efede8;border-radius:11px;padding:9px 11px}.summary-split span{display:flex;align-items:center;gap:5px;font-size:9px;color:#928d85;margin-bottom:4px}.summary-split i{width:5px;height:5px;border-radius:50%;background:var(--teal)}.summary-split>div:last-child i{background:#e6ba8f}.summary-split strong{font-size:14px;font-weight:500;letter-spacing:-.3px}.dues-grid{grid-area:dues;display:grid;grid-template-columns:1fr 1fr;gap:15px}.due-card{padding:20px;position:relative;text-align:left;background:#ffffffe0}.due-card .card-label{font-size:11px}.due-card strong{font-size:26px;line-height:1.4;font-weight:500;letter-spacing:-1px;display:block;margin:6px 0}.due-card small{font-size:10px;color:#959087;display:flex;align-items:center;gap:6px}.due-card .due-arrow{position:absolute;top:17px;right:16px;color:#8a8a82;width:25px;height:25px;background:#f4f3ef;border-radius:50%;display:grid;place-items:center}.due-arrow .icon{width:12px;height:12px}.due-card:hover{background:white;box-shadow:0 5px 18px #25222507}.mini-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:#c98d65;flex:none}.quick-actions{grid-area:actions;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:8px}.quick-action{padding:0;min-width:0;display:flex;flex-direction:column;gap:11px;align-items:center;font-size:10px;white-space:nowrap;color:#514e48}.quick-action>span{height:56px;width:56px;border-radius:18px;background:#ffffffc7;display:grid;place-items:center;box-shadow:0 4px 16px #514b3605;border:1px solid white;transition:transform .15s}.quick-action .icon{width:23px;height:23px;stroke-width:1.4}.quick-action:hover>span{transform:translateY(-3px);background:white}.transactions-card{grid-area:transactions;padding:23px 23px 10px;align-self:start}.head-actions{display:flex;align-items:center;gap:7px}.head-actions .icon-button{width:28px;height:28px;min-width:28px;background:#f5f4f1}.head-actions .icon{width:13px;height:13px}.text-button{font-size:10px;color:#858078;display:inline-flex;gap:4px;align-items:center;min-height:30px;padding:4px}.text-button .icon{width:12px;height:12px}.transactions-tabs{display:flex;gap:16px;border-bottom:1px solid #f1efea;margin:14px 0 0}.transactions-tabs button{font-size:10px;color:#aaa49a;padding:0 0 10px;border-bottom:1.5px solid transparent}.transactions-tabs button.active{border-bottom-color:var(--ink);color:var(--ink)}.transaction-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:15px 0;border-bottom:1px solid #f2f0ec}.transaction-row:last-child{border-bottom:0}.transaction-thumb{width:37px;height:42px;background:#f6f3ed;border-radius:10px;display:grid;place-items:center;flex:none;overflow:hidden}.product-art{width:34px;height:38px;display:block}.transaction-info{flex:1;min-width:0}.transaction-info strong{font-size:11px;font-weight:500;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.transaction-info small{font-size:9px;color:#a19a90;display:block;margin-top:4px}.transaction-value{font-size:12px;font-weight:500;letter-spacing:-.2px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}.transaction-value .icon{width:11px;height:11px}.transaction-value>span{display:flex;gap:4px;align-items:center}.transaction-value small{font-size:8px;font-weight:400;color:#a19a90}.status{font-size:9px;line-height:1.2;padding:4px 7px;border-radius:6px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-weight:400}.status.paid{background:#eaf4eb;color:#548a5f}.status.credit{background:#fff0db;color:#b68a42}.status.overdue{background:#faeae3;color:#ba7c60}.status.neutral{background:#f0efea;color:#918a7e}.reminders-card{grid-area:reminders;padding:23px 21px 17px;align-self:start}.reminder-sub{font-size:10px;color:#a09990;margin:6px 0 17px}.person-row{display:flex;gap:10px;align-items:center;min-width:0;padding:13px 0;border-bottom:1px solid #f0eee9;width:100%;text-align:left}.person-row:last-of-type{border-bottom:0}.avatar{width:33px;height:33px;border-radius:50%;background:#ece6dd;display:grid;place-items:center;font-size:10px;color:#7f7568;flex:none;letter-spacing:-.3px}.avatar.peach{background:#f4e5d6;color:#93724f}.avatar.sage{background:#e6ece2;color:#74846c}.avatar.lilac{background:#e8e5ef;color:#877e96}.person-row .person-name{flex:1;min-width:0}.person-name strong{display:block;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-name small{display:block;font-size:9px;color:#aaa295;margin-top:4px}.person-amount{font-size:12px;font-weight:500;letter-spacing:-.3px}.reminder-footer{margin-top:16px;padding-top:14px;border-top:1px solid #eeebe5;font-size:10px;display:flex;align-items:center;justify-content:space-between;color:#978c7b}.reminder-footer .icon{width:13px;height:13px;margin-right:5px}.stock-note{display:flex;align-items:center;gap:6px}.app-footer{display:flex;justify-content:space-between;gap:14px;padding:0 38px 24px;font-size:9px;color:#aba398}.mobile-nav{display:none}.toast{position:fixed;bottom:24px;left:calc(50% + 112px);transform:translateX(-50%);z-index:60;max-width:calc(100% - 32px);padding:13px 20px;border-radius:14px;background:var(--navy);color:white;box-shadow:0 8px 35px #191e3525;font-size:12px;line-height:1.5}.notification-panel{position:absolute;right:38px;top:80px;background:white;box-shadow:0 12px 50px #342a2518;border-radius:22px;width:330px;padding:20px;z-index:35;border:1px solid #eee9e0}.notification-panel h2{margin-bottom:10px}.notification-panel .person-row .icon{width:18px;height:18px;color:#8e826f}.notification-panel .person-name small{line-height:1.5}.empty{padding:35px 15px;color:#979087;font-size:12px;text-align:center;line-height:1.6}.empty .icon{display:block;margin:0 auto 10px;width:28px;height:28px;opacity:.5}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.search-field{position:relative;max-width:330px;width:100%;display:flex;align-items:center}.search-field>.icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#a39a8f;pointer-events:none}.search-field input{width:100%;border:1px solid #e7e3da;background:#ffffffa6;border-radius:12px;min-height:43px;padding:10px 14px 10px 39px;font-size:12px;color:var(--ink)}.search-field input::placeholder{color:#aaa194}.list-card{padding:10px 23px}.data-header,.data-row{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(90px,1fr) 110px 100px 32px;align-items:center;gap:15px}.data-header{padding:13px 0 17px;color:#a0988c;font-size:10px;border-bottom:1px solid #efebe4}.data-row{padding:18px 0;border-bottom:1px solid #f0ede7;width:100%;text-align:left;min-height:75px}.data-row:last-child{border-bottom:0}.data-person{display:flex;align-items:center;gap:11px;min-width:0}.data-person .avatar{width:38px;height:38px;font-size:11px}.data-person strong{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.data-person small{display:block;font-size:10px;color:#a39b8f;margin-top:4px}.data-cell{font-size:11px;color:#8f8678}.data-cell.amount{font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}.row-arrow{color:#b0a89b;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#f8f6f1}.row-arrow .icon{width:12px;height:12px}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:23px}.mini-stat{padding:20px 23px}.mini-stat>span{font-size:11px;color:#9a9082}.mini-stat strong{display:block;margin-top:9px;font-size:29px;font-weight:500;letter-spacing:-1px}.mini-stat small{display:block;font-size:10px;color:#a29a8c;margin-top:6px}.detail-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.8fr);gap:22px;align-items:start}.account-card{padding:26px}.account-card>.avatar{width:55px;height:55px;font-size:16px;border-radius:18px;margin-bottom:18px}.account-card h2{font-size:21px;margin-bottom:6px}.account-card .phone{font-size:12px;color:#92897d}.account-balance{border-top:1px solid #eee8de;margin-top:23px;padding-top:21px}.account-balance>span{font-size:11px;color:#938776}.account-balance strong{font-size:35px;letter-spacing:-1.4px;font-weight:500;display:block;margin:8px 0 17px}.account-meta{margin:18px 0;display:flex;justify-content:space-between;font-size:10px;gap:10px;color:#9b8e7a}.account-meta span{display:block;margin-bottom:7px}.account-meta strong{color:#5c564b;font-weight:500;font-size:11px}.full{width:100%}.ledger-card{padding:23px}.ledger-row{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:19px 0;border-bottom:1px solid #f0ebe2}.ledger-row:last-child{border-bottom:0}.ledger-row strong{font-size:12px;font-weight:500;display:block}.ledger-row small{font-size:10px;color:#9b9182;display:block;margin-top:5px}.ledger-value{text-align:right;font-size:13px;white-space:nowrap}.back-button{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#9a8e7d;padding:0 0 16px;min-height:32px}.back-button .icon{width:14px;height:14px}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:22px;align-items:start}.category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.category-tabs button{border:1px solid #e7e1d7;background:#faf8f3;color:#8b8276;padding:8px 12px;min-height:35px;border-radius:10px;font-size:11px}.category-tabs button.active{background:var(--navy);color:white;border-color:var(--navy)}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.product-card{background:#fff;border:1px solid white;border-radius:20px;position:relative;text-align:left;padding:16px;transition:box-shadow .15s,transform .15s;min-width:0}.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #62543f0a}.product-image{height:88px;display:flex;align-items:center;justify-content:center;background:#f8f5ed;border-radius:13px;margin-bottom:13px}.product-image .product-art{width:62px;height:75px}.product-card strong{display:block;font-size:11px;font-weight:500}.product-card small{font-size:9px;color:#a49786;display:block;margin-top:5px}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.product-price{font-size:13px;font-weight:500;letter-spacing:-.3px}.product-add{width:25px;height:25px;display:grid;place-items:center;background:#f3f0e8;border-radius:8px}.product-add .icon{height:13px;width:13px}.basket{padding:22px;position:sticky;top:24px}.basket-head{display:flex;justify-content:space-between;align-items:center}.basket-count{font-size:10px;color:#9a8d7b;border:1px solid #eae5da;border-radius:15px;padding:4px 9px}.basket-row{display:flex;align-items:center;gap:9px;padding:16px 0;border-bottom:1px solid #f2ede5}.basket-row .transaction-thumb{width:31px;height:35px}.basket-row-info{flex:1;min-width:0}.basket-row-info strong{font-size:10px;display:block;font-weight:500}.basket-row-info small{font-size:9px;color:#a79b88;display:block;margin-top:4px}.qty-stepper{display:flex;align-items:center;gap:3px}.qty-stepper button{width:24px;height:30px;border-radius:7px;display:grid;place-items:center;background:#f7f4ed}.qty-stepper .icon{width:11px;height:11px}.qty-stepper input{width:38px;border:0;text-align:center;font-size:11px;padding:3px;background:transparent;-moz-appearance:textfield}.qty-stepper input::-webkit-inner-spin-button{display:none}.basket-total{display:flex;justify-content:space-between;padding:18px 0;font-size:13px}.basket-total strong{font-size:21px;letter-spacing:-.7px;font-weight:500}.pay-tabs{display:flex;gap:3px;padding:4px;background:#f4f1eb;border-radius:10px;margin-bottom:16px}.pay-tabs button{font-size:10px;min-height:34px;border-radius:7px;flex:1;color:#9a8b77}.pay-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 5px #322d2008}.field{display:block;font-size:11px;color:#918575;margin-bottom:16px}.field input,.field select,.field textarea{margin-top:7px;width:100%;border:1px solid #e7e1d7;background:#fffcf7;border-radius:11px;min-height:44px;padding:11px 13px;color:var(--ink);font-size:13px;min-width:0}.field textarea{resize:vertical;min-height:75px}.field input::placeholder{color:#b4a896}.fields-two{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-note{font-size:10px;color:#898573;background:#f3f3e9;padding:12px;border-radius:10px;line-height:1.6;margin-bottom:16px}.error-message{font-size:11px;line-height:1.6;color:#ac654e;background:#faeee7;border-radius:10px;padding:11px;margin-bottom:13px}.basket-hint{display:flex;gap:5px;align-items:center;justify-content:center;color:#aaa18e;font-size:9px;margin-top:12px}.basket-hint .icon{height:11px;width:11px}.inventory-header,.inventory-row{grid-template-columns:minmax(150px,1.5fr) 85px 100px 105px 85px 32px}.inventory-thumb{width:38px;height:42px;display:grid;place-items:center;border-radius:10px;background:#f8f4eb;flex:none}.inventory-thumb .product-art{width:31px;height:36px}.low{color:#b78b52}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.report-panel{padding:25px}.report-panel h2{margin-bottom:17px}.kv{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid #f0ebe3;font-size:11px;color:#8d8170}.kv:last-child{border-bottom:0}.kv strong{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}.kv.total{padding-top:18px;color:var(--ink);font-size:13px}.kv.total strong{font-size:18px;letter-spacing:-.5px}.setting-layout{max-width:740px}.setting-panel{padding:27px;margin-bottom:20px}.setting-panel h2{margin-bottom:8px}.setting-panel>p{font-size:12px;line-height:1.8;color:#9a8c79;margin-bottom:21px}.setting-panel .button{margin-top:4px}.setting-actions{display:flex;gap:10px;flex-wrap:wrap}.danger-button{color:#b5755f}.transaction-history{padding:10px 23px}.transactions-toolbar{display:flex;align-items:center;gap:10px}.sales-status-filter{min-height:40px;border:1px solid #e4ddd0;background:#fffcf5;border-radius:10px;padding:8px 12px;font-size:11px;color:#8e816c}.transactions-list .data-header,.transactions-list .data-row{grid-template-columns:minmax(150px,1.6fr) 115px 100px 100px 32px}
dialog{border:1px solid #fff;background:#fffdf9;color:var(--ink);border-radius:27px;padding:29px;width:calc(100% - 36px);max-width:490px;max-height:calc(100dvh - 50px);overflow:auto;box-shadow:0 25px 100px #1e192c29}dialog::backdrop{background:#27232955;backdrop-filter:blur(5px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.modal-heading h2{font-size:23px;letter-spacing:-.7px;font-weight:500}.modal-heading p{font-size:11px;color:#a08f78;margin-top:7px;line-height:1.7}.modal-heading .icon-button{background:#f2eee6;flex:none}.modal-heading .icon{width:16px;height:16px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.modal-divider{height:1px;background:#eee5d6;margin:20px 0}.modal-balance{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;padding:16px;background:#f3f1e9;border-radius:12px;margin:0 0 20px;color:#9a8a72}.modal-balance strong{font-size:18px;font-weight:500;color:var(--ink);letter-spacing:-.5px}.purchase-line{padding:15px;background:#f6f3ec;border-radius:13px;margin-bottom:12px}.purchase-line .field{margin-bottom:10px}.purchase-line .fields-two .field{margin-bottom:0}.purchase-line input,.purchase-line select{background:white}.purchase-line-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#998971;margin-bottom:10px}.purchase-line-top button{height:26px;width:26px;display:grid;place-items:center}.purchase-line-top .icon{width:13px;height:13px}.new-record-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.new-record-options button{min-height:112px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:#f4f0e8;border-radius:17px;font-size:12px}.new-record-options .icon{height:26px;width:26px;stroke-width:1.3}.receipt-total{padding:21px 0;font-size:28px;letter-spacing:-1px;text-align:center}.receipt-shop{text-align:center;font-size:15px;font-weight:500}.receipt-caption{text-align:center;font-size:10px;color:#9f927b;margin-top:7px}.receipt-lines{margin-top:20px}.modal-ledger-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:25px;margin-bottom:9px}.modal-ledger-title h3{font-size:12px}.notification-panel[hidden],.toast[hidden],[hidden]{display:none!important}#print-area{display:none}
@media(min-width:1600px){.topbar{padding-left:50px;padding-right:50px}.main{padding-left:50px;padding-right:50px}.dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(350px,1fr);gap:25px}.sales-card{padding:30px 33px 25px}.chart{height:210px}.bar-space{height:185px}.summary-card{padding:28px}.gauge{max-width:290px;height:180px}.quick-action>span{width:66px;height:66px}.transactions-card,.reminders-card{padding:27px}.transaction-row{padding:18px 0}}
@media(max-width:1199px) and (min-width:768px){.sidebar{width:82px;padding:29px 14px 17px}.brand{padding:0 9px}.brand-word,.workspace-label,.side-link>span,.sidebar-bottom .device-status,.shop-profile>span:nth-child(2),.shop-profile>.icon{display:none}.sidebar nav{margin-top:40px}.side-link{padding:14px;justify-content:center}.side-link .icon{width:20px;height:20px}.nav-separator{margin:24px 9px}.sidebar-bottom{padding-top:25px}.shop-profile{justify-content:center;padding-top:20px}.shop-logo{width:35px;height:35px}.app-shell{margin-left:82px}.topbar{padding:23px 26px;height:94px}.main{padding:8px 26px 26px}.dashboard-grid{gap:17px;grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr)}.sales-card{padding:23px 22px 19px}.sales-figure{font-size:35px;letter-spacing:-1.8px}.summary-card{padding:23px 17px 17px}.dues-grid{gap:12px}.due-card{padding:18px 15px}.due-card strong{font-size:23px}.due-card .due-arrow{right:12px;top:14px}.quick-actions{gap:5px}.quick-action>span{width:48px;height:48px;border-radius:15px}.quick-action{font-size:9px}.transactions-card{padding:21px 18px 10px}.reminders-card{padding:21px 17px 14px}.transaction-row{gap:8px}.transaction-info strong{font-size:10px}.transaction-value{font-size:11px}.app-footer{padding-left:26px;padding-right:26px}.toast{left:calc(50% + 41px)}.pos-layout{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.basket{padding:19px}.list-card{padding:10px 18px}.data-header,.data-row{grid-template-columns:minmax(135px,1.5fr) minmax(70px,1fr) 90px 75px 24px;gap:10px}.inventory-header,.inventory-row{grid-template-columns:minmax(130px,1.5fr) 70px 85px 88px 73px 24px}.inventory-row .data-person strong{max-width:150px}.transactions-list .data-header,.transactions-list .data-row{grid-template-columns:minmax(135px,1.5fr) 100px 75px 90px 24px}.date-label{display:none}.detail-layout{grid-template-columns:minmax(240px,1fr) minmax(0,1.4fr);gap:17px}}
@media(max-width:1023px) and (min-width:768px){.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(230px,1fr);grid-template-areas:'sales sales' 'dues dues' 'summary actions' 'transactions transactions' 'reminders reminders'}.sales-card .chart{height:195px}.sales-card .bar-space{height:170px}.sales-figure{font-size:43px}.quick-actions{grid-template-columns:1fr 1fr;gap:18px;align-content:center}.quick-action>span{height:65px;width:65px;border-radius:22px}.quick-action{font-size:11px}.dues-grid{gap:17px}.due-card strong{font-size:28px}.data-header,.data-row{grid-template-columns:minmax(140px,1.6fr) 95px 85px 26px}.hide-tablet{display:none}.inventory-header,.inventory-row{grid-template-columns:minmax(145px,1.6fr) 85px 85px 75px 26px}.inventory-header>.hide-tablet,.inventory-row>.hide-tablet{display:none}.transactions-list .data-header,.transactions-list .data-row{grid-template-columns:minmax(130px,1.6fr) 95px 80px 26px}.pos-layout{grid-template-columns:minmax(0,1fr) 260px;gap:15px}.product-card{padding:12px}.product-image{height:75px}.basket{padding:16px}.qty-stepper{gap:0}.qty-stepper button{width:22px}.qty-stepper input{width:30px}.basket-row .transaction-thumb{display:none}.detail-layout{grid-template-columns:1fr}.account-card{display:grid;grid-template-columns:55px 1fr;column-gap:18px;align-items:center}.account-card>.avatar{grid-row:1/3;margin:0}.account-card h2{align-self:end}.account-card .phone{align-self:start}.account-balance,.account-meta,.account-card>.button{grid-column:1/-1}.account-balance strong{font-size:32px}.report-grid{gap:17px}.stat-strip{gap:12px}.mini-stat{padding:18px}.mini-stat strong{font-size:26px}.toolbar{gap:10px}.toolbar .segmented button{padding:8px}}
@media(max-width:767px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:89px;padding:25px 21px 19px;gap:10px}.desktop-welcome,.date-label,.header-new{display:none}.mobile-brand{display:flex;padding:0;gap:8px}.mobile-brand .brand-mark{height:30px;width:30px;border-radius:10px}.mobile-brand .brand-word{font-size:27px}.mobile-brand .brand-mark .icon{width:19px;height:19px}.top-actions{gap:9px}.icon-button{width:35px;height:35px;min-width:35px}.owner-avatar{display:grid;width:35px;height:35px;border-width:2px;font-size:10px}.main{padding:7px 20px 27px}.page-heading{margin-bottom:21px;align-items:flex-start;flex-wrap:wrap}h1{font-size:27px;letter-spacing:-1px}.page-heading p{font-size:11px;line-height:1.7;margin-top:7px}.period-toggle{padding:2px}.period-toggle button{padding:7px 9px;min-height:29px;font-size:10px}.page-heading>.period-toggle{align-self:center}.page-actions{gap:6px}.page-actions .button{min-height:36px;padding:8px 12px;font-size:10px;border-radius:10px}.page-actions .button .icon{height:14px;width:14px}.card{border-radius:23px}.dashboard-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'sales' 'dues' 'actions' 'summary' 'transactions' 'reminders';gap:17px}.sales-card{padding:22px 22px 18px}.sales-figure{font-size:39px;letter-spacing:-1.8px;margin-top:8px}.sales-meta{margin-top:9px;margin-bottom:22px;font-size:9px;gap:8px}.sales-card .card-label{font-size:11px}.chart{height:168px;grid-template-columns:28px 1fr;gap:4px}.bar-space{height:143px}.chart-axis{font-size:9px}.bar-label{font-size:9px}.bars{gap:6px}.bar{width:73%;max-width:30px;border-radius:5px 5px 0 0}.chart-title{font-size:10px}.chart-legend{font-size:9px;gap:10px}.dues-grid{gap:12px}.due-card{padding:18px 16px}.due-card .card-label{font-size:10px}.due-card strong{font-size:26px;letter-spacing:-1px;margin:7px 0 5px}.due-card small{font-size:9px;gap:5px}.due-card .due-arrow{width:21px;height:21px;top:14px;right:12px}.due-arrow .icon{width:11px;height:11px}.quick-actions{padding:4px 3px 5px;gap:13px}.quick-action{gap:9px;font-size:10px}.quick-action>span{width:57px;height:57px;border-radius:19px}.quick-action .icon{width:23px;height:23px}.summary-card{padding:22px;display:grid;grid-template-columns:1fr 1fr;column-gap:18px;align-items:center}.summary-card .card-head{grid-column:1/-1}.summary-card .gauge{height:145px;margin-top:15px}.gauge-label{bottom:20px}.gauge-label strong{font-size:26px}.gauge-label span{font-size:8px}.gauge-label small{font-size:8px}.summary-split{grid-template-columns:1fr;gap:9px}.summary-split>div{padding:11px 12px}.summary-split strong{font-size:15px}.transactions-card{padding:22px 20px 8px}.transactions-tabs{gap:21px}.transaction-row{padding:16px 0;gap:11px}.transaction-info strong{font-size:11px}.transaction-info small{font-size:9px}.transaction-value{font-size:12px}.reminders-card{padding:22px 20px 17px}.person-row{padding:15px 0}.person-row .avatar{width:36px;height:36px}.person-name strong{font-size:12px}.person-name small{font-size:10px}.person-amount{font-size:13px}.app-footer{padding:3px 20px 115px;font-size:9px}.app-footer>span:last-child{display:none}.mobile-nav{position:fixed;left:20px;right:20px;bottom:18px;bottom:calc(14px + env(safe-area-inset-bottom));height:66px;max-width:460px;margin:0 auto;padding:6px 9px;display:grid;grid-template-columns:1fr 1fr 1.1fr 1fr 1fr;align-items:center;background:#fffffff0;backdrop-filter:blur(18px);border:1px solid #fff;border-radius:28px;box-shadow:0 7px 28px #2c24191a;z-index:30}.mobile-nav button{height:48px;padding:3px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:8px;color:#9a9388;border-radius:19px}.mobile-nav button .icon{height:19px;width:19px}.mobile-nav button.active{color:var(--navy);background:#f0eee8}.mobile-nav .mobile-plus{color:white;border-radius:50%;background:var(--navy);width:49px;height:49px;justify-self:center;box-shadow:0 4px 10px #1c1e3524}.mobile-nav .mobile-plus .icon{height:23px;width:23px;stroke-width:1.4}.toast{left:50%;bottom:100px;font-size:11px;max-width:calc(100% - 36px);width:max-content;max-width:min(420px,calc(100% - 36px))}.notification-panel{right:20px;top:76px;width:min(335px,calc(100vw - 40px))}.toolbar{flex-wrap:wrap;gap:12px;margin-bottom:17px}.toolbar .search-field{max-width:none}.segmented button{font-size:10px;padding:8px 12px}.stat-strip{gap:10px;margin-bottom:19px;grid-template-columns:1fr 1fr}.stat-strip .mini-stat:last-child:nth-child(3){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px}.stat-strip .mini-stat:last-child:nth-child(3) strong{margin:0;font-size:22px}.stat-strip .mini-stat:last-child:nth-child(3) small{display:none}.mini-stat{padding:18px}.mini-stat>span{font-size:10px}.mini-stat strong{font-size:27px;margin-top:9px;letter-spacing:-1px}.mini-stat small{font-size:9px;line-height:1.6}.list-card{padding:4px 17px}.data-header{display:none}.data-row{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:10px;padding:18px 0}.data-row>.hide-mobile{display:none}.data-person{gap:10px;min-width:0}.data-person .avatar{width:35px;height:35px;font-size:10px}.data-person strong{font-size:11px;max-width:160px}.data-person small{font-size:9px;line-height:1.5}.data-cell.amount{font-size:13px;text-align:right}.row-arrow{width:18px;height:23px;background:transparent}.row-arrow .icon{width:13px;height:13px}.mobile-balance-status{display:block;margin-top:6px}.detail-layout{grid-template-columns:1fr;gap:18px}.account-card{padding:24px}.account-card h2{font-size:23px}.account-balance strong{font-size:38px}.ledger-card{padding:22px}.ledger-row strong{font-size:11px}.ledger-value{font-size:12px}.ledger-row small{font-size:9px}.pos-layout{grid-template-columns:1fr;gap:22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{padding:14px;border-radius:19px}.product-image{height:91px;margin-bottom:13px}.product-card strong{font-size:12px}.product-card small{font-size:10px}.product-price{font-size:14px}.product-add{width:29px;height:29px}.category-tabs{gap:6px;margin-bottom:18px}.category-tabs button{padding:8px 10px;font-size:10px}.basket{position:static;padding:23px;scroll-margin-top:20px}.basket-row .transaction-thumb{width:35px;height:40px}.basket-row-info strong{font-size:12px}.basket-row-info small{font-size:10px}.qty-stepper button{width:34px;height:36px}.qty-stepper input{width:40px;font-size:13px}.qty-stepper .icon{width:13px;height:13px}.basket-total{font-size:14px}.basket-total strong{font-size:25px}.pay-tabs button{font-size:11px;min-height:39px}.field{font-size:11px}.field input,.field select,.field textarea{font-size:16px;min-height:47px}.form-note{font-size:11px}.basket .button{min-height:46px;font-size:13px}.inventory-row{grid-template-columns:minmax(0,1fr) 75px 18px}.inventory-row .data-cell.amount{font-size:12px}.inventory-row .data-person strong{max-width:150px}.inventory-row .data-cell.amount small{font-size:9px;display:block;color:#a99c86;margin-top:5px}.inventory-thumb{width:35px;height:40px}.report-grid{grid-template-columns:1fr;gap:17px}.report-panel{padding:23px}.kv{font-size:11px}.setting-panel{padding:23px}.setting-panel .fields-two{grid-template-columns:1fr;gap:0}.setting-panel>p{font-size:11px}.transactions-list .data-row{grid-template-columns:minmax(0,1fr) auto 18px}.transactions-list .data-person strong{max-width:160px}.transactions-toolbar{width:100%;justify-content:space-between}.transaction-history{padding:4px 17px}.sales-status-filter{font-size:10px;min-height:36px}dialog{padding:26px 23px;border-radius:26px;margin:auto auto 16px;max-height:calc(100dvh - 42px);width:calc(100% - 24px)}.modal-heading{margin-bottom:23px}.modal-heading h2{font-size:23px}.modal-heading p{font-size:11px}.modal-footer .button{min-height:44px}.new-record-options button{min-height:110px;font-size:12px}.modal-balance{font-size:11px}.modal-balance strong{font-size:20px}}
@media(max-width:359px){.topbar{padding:23px 16px 17px}.main{padding:7px 15px 25px}.page-heading{gap:10px}h1{font-size:25px}.page-heading p{font-size:10px}.period-toggle button{padding:7px;font-size:9px}.sales-card{padding:20px 17px 17px}.sales-figure{font-size:36px;letter-spacing:-1.6px}.sales-meta{font-size:8px;gap:5px}.dues-grid{gap:9px}.due-card{padding:17px 13px}.due-card strong{font-size:23px}.due-card .card-label{font-size:9px}.due-card small{font-size:8px}.quick-action>span{width:51px;height:51px;border-radius:17px}.quick-action{font-size:9px}.summary-card{padding:20px 17px;column-gap:10px}.summary-split>div{padding:10px}.summary-split strong{font-size:14px}.summary-card .gauge{height:135px}.gauge-label{bottom:20px}.gauge-label strong{font-size:24px}.gauge-label small{display:none}.transactions-card,.reminders-card{padding-left:17px;padding-right:17px}.transaction-info strong{font-size:10px}.transaction-value{font-size:11px}.transaction-info small{font-size:8px}.mobile-nav{left:15px;right:15px}.data-row{gap:7px}.data-person{gap:8px}.data-person strong{max-width:125px;font-size:10px}.data-person small{font-size:8px}.data-cell.amount{font-size:12px}.inventory-row .data-person strong{max-width:120px}.mini-stat{padding:17px 14px}.mini-stat strong{font-size:24px}.mini-stat>span{font-size:9px}.fields-two{gap:10px}.field input,.field select{padding-left:10px;padding-right:10px}.product-card{padding:12px}.product-card strong{font-size:11px}.product-price{font-size:13px}.category-tabs button{font-size:9px;padding:8px}.person-name strong{font-size:11px}.person-amount{font-size:12px}}
@media(pointer:coarse){.period-toggle button,.segmented button,.text-button,.transactions-tabs button,.back-button{min-height:42px}.category-tabs button{min-height:42px}.icon-button{width:44px;height:44px;min-width:44px}.product-add{width:30px;height:30px}.qty-stepper button{width:38px;height:44px}.quick-action>span{min-height:54px;min-width:54px}.mobile-nav button{min-height:48px}.sales-figure .icon-button{width:36px;height:36px;min-width:36px}.modal-heading .icon-button{width:42px;height:42px;min-width:42px}.purchase-line-top button{width:42px;height:42px}.transactions-tabs{gap:15px}.transaction-row{min-height:72px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{@page{size:80mm auto;margin:0}body>*{display:none!important}body>#print-area{display:block!important;width:72mm;max-width:72mm;margin:0 auto;padding:4mm 1mm;color:#000;background:#fff;font-family:'Courier New',Courier,monospace,'Noto Sans Sinhala',sans-serif;font-size:11px;line-height:1.35}#print-area .receipt-80mm{width:100%}#print-area h1{font-size:15px;margin:0 0 3px;text-align:center;font-weight:700;text-transform:uppercase}#print-area p{font-size:10.5px;margin:0 0 5px;text-align:center;line-height:1.3}#print-area .receipt-divider{border-top:1px dashed #000;margin:5px 0}#print-area .receipt-meta{display:flex;justify-content:space-between;font-size:10px;margin:2px 0}#print-area table{width:100%;border-collapse:collapse;font-size:10.5px;margin:4px 0}#print-area th{border-top:1px dashed #000;border-bottom:1px dashed #000;padding:3px 0;text-align:left;font-size:10px}#print-area td{padding:3px 0;vertical-align:top;border-bottom:none}#print-area th:last-child,#print-area td:last-child{text-align:right}#print-area .print-total{font-size:13px;font-weight:700;display:flex;justify-content:space-between;border-top:1px dashed #000;border-bottom:1px dashed #000;padding:4px 0;margin:5px 0}#print-area .receipt-row{display:flex;justify-content:space-between;font-size:10.5px;margin:2px 0}#print-area .receipt-footer{text-align:center;font-size:9.5px;margin-top:7px;line-height:1.4}dialog{display:none!important}}

.account-actions{grid-column:1/-1;display:grid;gap:10px}
.account-actions .button{min-height:44px;white-space:normal}
.bill-next-balance{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 16px;margin:0 0 19px;background:#edf3ed;border-radius:12px;color:#71806f}
.bill-next-balance span{font-size:11px}
.bill-next-balance strong{font-size:21px;font-weight:500;letter-spacing:-.6px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.bill-due{font-size:11px;line-height:1.7;color:#948773;margin-bottom:15px}
#bill-form .modal-balance strong{white-space:nowrap;flex-shrink:0}

/* Language and appearance preferences use a separate key from shop records. */
.preference-toggle{min-width:40px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #eeebe5;flex:none}
.preference-toggle .icon{width:17px;height:17px}
.language-toggle{font-size:11px;font-weight:600;letter-spacing:.1px}
html[lang=si]{font-family:'Noto Sans Sinhala','DM Sans',sans-serif}
html[lang=si] h1,html[lang=si] h2,html[lang=si] h3{letter-spacing:-.25px;line-height:1.6}
html[lang=si] h1{font-size:27px}
html[lang=si] .side-link{font-size:12px;line-height:1.7}
html[lang=si] .side-link>span:not(.side-count){white-space:normal}
html[lang=si] .page-heading p{line-height:1.9}
html[lang=si] .button{white-space:normal;line-height:1.65}
html[lang=si] .quick-action{white-space:normal;line-height:1.7;text-align:center;font-size:9px}
html[lang=si] .mobile-nav button{font-size:8px;line-height:1.35}
html[lang=si] .card-label{line-height:1.8}
html[lang=si] .due-card{padding-top:19px}
html[lang=si] .due-card .card-label{display:block;padding-right:17px;min-height:30px}
html[lang=si] .due-card strong{font-size:24px;letter-spacing:-.8px}
html[lang=si] .summary-split span{line-height:1.7}
html[lang=si] .gauge-label span,html[lang=si] .gauge-label small{line-height:1.7}
html[lang=si] .modal-heading h2{font-size:22px}
html[lang=si] .modal-heading p{line-height:1.9}
html[lang=si] .field{line-height:1.9}
html[lang=si] .form-note,html[lang=si] .error-message{line-height:1.9}
html[lang=si] .mini-stat>span{display:block;line-height:1.8}
html[lang=si] .status{line-height:1.6;white-space:normal}
html[lang=si] .page-heading>.page-actions{flex-wrap:wrap}
html[lang=si] .transactions-tabs{gap:13px}
html[lang=si] .transactions-tabs button{font-size:10px}
html[lang=si] .period-toggle button,html[lang=si] .segmented button{line-height:1.7}
html[lang=si] .new-record-options button{line-height:1.8;text-align:center;padding:10px}
html[lang=si] .gauge-label strong{line-height:1.3}
html[data-theme=dark]{color-scheme:dark;--bg:#171d26;--card:#222a35;--ink:#edf0f3;--muted:#b5b6bb;--line:#343d49;--navy:#151d2e;--teal:#50bdb3;--green:#83c4a1;--shadow:0 5px 25px #0000000b;--gauge-track:#313a45;--gauge-tick:#48515b}
html[data-theme=dark] .sidebar{border-color:#303742}
html[data-theme=dark] :is(.card,.list-card,.product-card,.notification-panel){background:#222a35;border-color:#2f3845}
html[data-theme=dark] .sales-card{background:linear-gradient(125deg,#2b3037,#222a35 65%)}
html[data-theme=dark] :is(.button,.icon-button,.preference-toggle){background:#2a3340;border-color:#394351;color:#e2e8ed}
html[data-theme=dark] :is(.side-link.active,.button.dark,.brand-mark,.mobile-nav .mobile-plus,.toast){background:#dde7e4;color:#19232a;border-color:#dde7e4}
html[data-theme=dark] .side-link:hover{background:#27313d;color:#f3f5f7}
html[data-theme=dark] :is(.nav-separator,.modal-divider){background:#353e4a}
html[data-theme=dark] .shop-profile{border-color:#353e4a}
html[data-theme=dark] :is(.shop-logo,.shop-profile,.side-link){color:#c4c8cc}
html[data-theme=dark] .shop-logo{background:#2f3945}
html[data-theme=dark] :is(.welcome-avatar,.owner-avatar){background:#544b45;color:#eee2d8;border-color:#6b5c51}
html[data-theme=dark] :is(.eyebrow,.date-label,.workspace-label,.device-status,.device-status small,.shop-profile small,.card-label,.sales-meta,.chart-title,.chart-legend,.chart-axis,.bar-label,.gauge-label span,.gauge-label small,.summary-split span,.due-card small,.transaction-info small,.transaction-value small,.reminder-sub,.person-name small,.reminder-footer,.text-button,.app-footer,.data-header,.data-person small,.data-cell,.account-card .phone,.account-meta,.ledger-row small,.field,.product-card small,.basket-count,.basket-row-info small,.basket-hint,.kv,.setting-panel>p,.modal-heading p,.modal-balance,.receipt-caption,.purchase-line-top,.empty,.pill,.bill-due){color:#b3b7be}
html[data-theme=dark] :is(.quick-action,.transaction-info strong,.data-person strong,.person-name strong,.data-cell.amount,.account-meta strong,.kv strong,.modal-balance strong,.bill-next-balance strong){color:#edf0f3}
html[data-theme=dark] :is(.period-toggle,.segmented,.pay-tabs){background:#202832;border-color:#35404c}
html[data-theme=dark] :is(.period-toggle button,.segmented button,.pay-tabs button,.transactions-tabs button){color:#aeb7c2}
html[data-theme=dark] :is(.period-toggle button.active,.segmented button.active,.pay-tabs button.active){background:#3a4654;color:#f0f4f5}
html[data-theme=dark] .transactions-tabs button.active{color:#edf0f3;border-color:#cbd8d3}
html[data-theme=dark] :is(.button.soft,.head-actions .icon-button,.due-card .due-arrow,.transaction-thumb,.inventory-thumb,.product-image,.product-add,.qty-stepper button,.category-tabs button,.modal-heading .icon-button,.new-record-options button,.purchase-line,.modal-balance){background:#2c3642;border-color:#3b4654;color:#e2e8ed}
html[data-theme=dark] .quick-action>span{background:#293340;border-color:#36414e;box-shadow:none}
html[data-theme=dark] .quick-action:hover>span{background:#354150}
html[data-theme=dark] :is(.field input,.field select,.field textarea,.search-field input,.sales-status-filter,.purchase-line input,.purchase-line select){background:#1c2530;border-color:#3d4858;color:#edf0f3}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#929eac}
html[data-theme=dark] .category-tabs button.active{background:#dde7e4;color:#19232a;border-color:#dde7e4}
html[data-theme=dark] .form-note{background:#2a3938;color:#c4d9d1}
html[data-theme=dark] .error-message{background:#45312f;color:#e8b8a6}
html[data-theme=dark] .bill-next-balance{background:#2c3b36;color:#bacdc4}
html[data-theme=dark] .status.paid{background:#2b4038;color:#a6d5b7}
html[data-theme=dark] :is(.status.credit,.side-count){background:#453c2b;color:#e3c891}
html[data-theme=dark] .status.overdue{background:#49352e;color:#e4b69d}
html[data-theme=dark] .status.neutral{background:#303946;color:#bcc6ce}
html[data-theme=dark] .trend{background:#2c4038;color:#b2d4bc}
html[data-theme=dark] .avatar{background:#44413c;color:#d9d0c1}
html[data-theme=dark] .avatar.peach{background:#4d4036;color:#e2c2a0}
html[data-theme=dark] .avatar.sage{background:#37483c;color:#bcd0b4}
html[data-theme=dark] .avatar.lilac{background:#433d51;color:#d0c4e1}
html[data-theme=dark] :is(.data-row,.data-header,.transaction-row,.transactions-tabs,.person-row,.account-balance,.ledger-row,.basket-row,.kv,.reminder-footer,.summary-split>div,.pill){border-color:#35404b}
html[data-theme=dark] .chart-grid span{border-color:#3a424d}
html[data-theme=dark] .bar{background:#39424d}
html[data-theme=dark] .bar.highlight{background:linear-gradient(180deg,#f1c59b,#8ac4b5 41%,#24aaa8)}
html[data-theme=dark] .bar-col.is-today .bar-label{color:#edf0f3}
html[data-theme=dark] .chart-legend span:first-child i{background:#52606c}
html[data-theme=dark] .positive{color:#8bc6a7}
html[data-theme=dark] :is(.negative,.danger-button){color:#e6ac96}
html[data-theme=dark] .low{color:#e3c891}
html[data-theme=dark] dialog{background:#222a35;border-color:#3b4653;color:#edf0f3}
html[data-theme=dark] dialog::backdrop{background:#080c1277}
html[data-theme=dark] .mobile-nav{background:#232c37ed;border-color:#3c4754;box-shadow:0 7px 28px #0003}
html[data-theme=dark] .mobile-nav button{color:#b1bdc7}
html[data-theme=dark] .mobile-nav button.active{background:#3b4754;color:#f2f6f7}
html[data-theme=dark] .notification-panel{box-shadow:0 12px 50px #0005}
@media(max-width:767px){.top-actions{gap:7px}.top-actions .owner-avatar{display:none}.preference-toggle{min-width:35px;width:35px;height:35px}html[lang=si] h1{font-size:24px}html[lang=si] .page-heading p{font-size:10px}html[lang=si] .due-card .card-label{min-height:39px}html[lang=si] .due-card strong{font-size:24px}html[lang=si] .quick-action{font-size:9px}html[lang=si] .page-actions .button{font-size:10px;padding:8px 10px}html[lang=si] .stat-strip .mini-stat:last-child:nth-child(3){flex-wrap:wrap}html[lang=si] .segmented button{font-size:9px;padding:8px}html[lang=si] .transactions-tabs{gap:11px}html[lang=si] .new-record-options{gap:10px}html[lang=si] .new-record-options button{font-size:11px}.account-actions .button{min-height:46px}}
@media(max-width:359px){.topbar{gap:7px}.mobile-brand{gap:6px}.mobile-brand .brand-word{font-size:25px}.mobile-brand .brand-mark{width:28px;height:28px}.top-actions{gap:5px}.preference-toggle{min-width:34px;width:34px;height:34px}.language-toggle{font-size:10px}html[lang=si] .due-card strong{font-size:22px}html[lang=si] .quick-actions{gap:8px;padding-left:0;padding-right:0}html[lang=si] .quick-action{font-size:8px}html[lang=si] .period-toggle button{padding:7px 8px}html[lang=si] .summary-card{column-gap:8px}html[lang=si] .summary-split>div{padding:10px 8px}html[lang=si] .summary-split strong{font-size:13px}}
@media(pointer:coarse){.preference-toggle{min-width:44px;width:44px;height:44px}}
.statement-summary{padding:0 15px;background:#f7f4ed;border:0}
html[data-theme=dark] .statement-summary{background:#293440}
html[data-theme=dark] .row-arrow{background:#2d3744;color:#c3cbd2}
.data-person>span:last-child{min-width:0}
@media(max-width:767px){html[lang=si] .data-cell.amount .status{max-width:108px}html[lang=si] .data-person strong{max-width:100%}html[lang=si] .mini-stat strong{font-size:25px}}
/* Keep monetary figures compact even when Sinhala labels or cents are present. */
html[lang=si] :is(.sales-figure,.due-card strong,.mini-stat strong,.account-balance strong,.summary-split strong,.person-amount,.data-cell.amount,.ledger-value,.bill-next-balance strong,.modal-balance strong,.basket-total strong,.receipt-total){font-family:'DM Sans','Noto Sans Sinhala',sans-serif}
@media(max-width:767px){.sales-figure{font-size:clamp(29px,8.6vw,39px);white-space:nowrap;gap:10px}.due-card strong,html[lang=si] .due-card strong{font-size:clamp(17px,5.3vw,26px);white-space:nowrap;letter-spacing:-.5px}html[lang=si] .mini-stat strong{font-size:clamp(17px,5.5vw,27px);white-space:nowrap}.sales-figure .icon-button{flex:none}html[lang=si] .mobile-nav button{font-size:9px}}
@media print{html[lang=si] #print-area{font-family:'Noto Sans Sinhala','DM Sans',sans-serif}}
