:root{--ink:#17243b;--muted:#526177;--line:#e9edf3;--bg:#f5f7fb;--purple:#6755df;--purple2:#8779f4;--green:#24a881;--orange:#f3a34b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:18px}a{color:inherit;text-decoration:none}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:25px 16px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 34px}.brand-mark{height:38px;width:38px;border-radius:13px;background:linear-gradient(145deg,#8676f4,#5945d5);box-shadow:0 8px 16px #6b5ad544;color:#fff;font:800 23px Manrope;display:grid;place-items:center}.brand b{display:block;font:800 21px Manrope;letter-spacing:.035em}.brand small{display:block;color:#70757f;font-size:13px;font-weight:700;letter-spacing:.19em;margin-top:2px}.nav-label,.eyebrow{font-size:14px;color:#707681;letter-spacing:.16em;font-weight:700}.nav-label{padding:0 12px 12px}.sidebar nav{display:grid;gap:6px}.nav-link{border:0;background:transparent;width:100%;display:flex;align-items:center;gap:13px;padding:11px 12px;color:#4d5c70;border-radius:10px;font-weight:600;text-align:left;cursor:pointer;transition:.16s}.nav-link i{font-style:normal;font-size:22px;width:20px;text-align:center;color:#6a727f}.nav-link:hover{background:#f6f5ff;color:var(--purple)}.nav-link.active{background:#efedff;color:var(--purple);font-weight:700}.nav-link.active i{color:var(--purple)}.nav-pill{margin-left:auto;font-size:12px;font-weight:800;letter-spacing:.08em;background:#ddf8ef;color:#209e78;border-radius:20px;padding:4px 7px}.sidebar-bottom{margin-top:auto}.system-status{margin:0 5px 16px;padding:12px;background:#f8fafc;border:1px solid #eff2f6;border-radius:12px;display:flex;align-items:center;gap:10px;color:#59667b;font-size:15px;font-weight:600}.system-status small{display:block;color:#6c737d;font-size:14px;font-weight:400;margin-top:3px}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#26bb8c;box-shadow:0 0 0 4px #26bb8c20;flex:0 0 auto}.signout{color:#5b6572}.main{margin-left:248px;min-height:100vh}.topbar{height:72px;border-bottom:1px solid var(--line);background:#ffffffc9;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.crumb{font-size:16px;font-weight:600;color:#616874}.crumb span{margin:0 10px;color:#8f9299}.top-actions{display:flex;align-items:center;gap:11px}.today{color:#616874;font-size:15px;margin-right:13px}.avatar{height:34px;width:34px;border-radius:11px;background:linear-gradient(145deg,#dcd8ff,#b7afff);display:grid;place-items:center;color:#5544ce;font-weight:800}.user-chip b{display:block;font-size:15px}.user-chip small{display:block;color:#6c737d;font-size:14px;margin-top:3px}.content{max-width:1600px;margin:auto;padding:36px 40px 48px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}.page-heading h1{font:800 33px Manrope;margin:9px 0 6px;letter-spacing:-.04em}.page-heading p{margin:0;color:var(--muted);font-size:16px}.wave{font-size:23px;color:#f1b75d;vertical-align:middle}.button{border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:11px 16px;font:700 16px 'DM Sans';cursor:pointer;transition:.18s}.button.primary{color:white;background:linear-gradient(110deg,#7564e9,#5d4bd4);box-shadow:0 7px 17px #6654df30}.button.primary:hover{transform:translateY(-1px);box-shadow:0 9px 20px #6654df46}.button.primary:disabled{opacity:.46;box-shadow:none;cursor:not-allowed}.button.subtle{color:#6959d7;background:#f0eeff}.full{width:100%}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.stat-card{position:relative;overflow:hidden;min-height:147px;background:#fff;border:1px solid #ebeff5;border-radius:15px;padding:18px 20px;box-shadow:0 5px 20px #28354b05}.stat-card.stat-dark{color:#fff;background:linear-gradient(130deg,#6555d9,#806bf0);border:0;box-shadow:0 12px 27px #6555d921}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#606873;font-size:15px;font-weight:600}.stat-dark .stat-top{color:#dedaff}.stat-icon{width:30px;height:30px;border-radius:10px;background:#ffffff27;display:grid;place-items:center;color:white;font-size:20px}.tint-lilac{background:#f1efff;color:#705ee4}.tint-blue{background:#eaf4ff;color:#5b91d5}.tint-orange{background:#fff3e6;color:#e59a42}.stat-card strong{display:block;font:800 28px Manrope;letter-spacing:-.04em;margin-top:12px}.stat-card small{display:block;color:#707680;font-size:14px;margin-top:5px}.stat-dark small{color:#dedaff}.stat-glow{position:absolute;width:150px;height:150px;border-radius:50%;right:-52px;bottom:-95px;background:#ad9fff38;filter:blur(3px)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.9fr);gap:17px;margin-top:20px}.panel{background:#fff;border:1px solid #ebeff5;border-radius:15px;box-shadow:0 5px 20px #28354b05}.recent-panel,.quick-panel{padding:21px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.panel h2{font:700 20px Manrope;letter-spacing:-.02em;margin:7px 0 0}.text-link{font-size:15px;font-weight:700;color:#6959d7}.text-link span{font-size:19px;margin-left:5px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#70767f;font-size:13px;letter-spacing:.09em;font-weight:700;padding:12px 12px;border-bottom:1px solid #edf0f5}td{padding:13px 12px;border-bottom:1px solid #f0f2f6;color:#667386;font-size:15px}tbody tr:last-child td{border-bottom:0}.reference{color:#394860;font-weight:700}.right{text-align:right}.amount{color:#35435a;font-weight:700}.status{padding:5px 8px;border-radius:20px;font-size:13px;font-weight:700;background:#f1f3f6;color:#545c68}.status.paid,.status.completed,.status.received{color:#1b9b74;background:#e7f8f1}.status.due,.status.pending,.status.ordered{color:#c98839;background:#fff4e5}.status.partial{color:#6670ca;background:#efefff}.empty{text-align:center;color:#6b727d;padding:30px}.quick-panel>p{font-size:15px;color:#6a717b;margin:8px 0 17px}.quick-action{display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid #f0f2f6}.quick-icon{height:33px;width:33px;border-radius:10px;display:grid;place-items:center;font-size:20px}.pink{background:#fdf0f5;color:#d773a1}.blue{background:#eef5ff;color:#6393d3}.green{background:#e9f8f2;color:#29a47d}.quick-action span:nth-child(2){flex:1}.quick-action b{display:block;color:#425067;font-size:15px}.quick-action small{display:block;color:#6c737d;font-size:14px;margin-top:3px}.quick-action i{font-style:normal;color:#737982;font-size:20px}.count-chip{border:1px solid #e9edf3;background:#fff;border-radius:9px;padding:9px 12px;color:#545c6a;font-size:14px;font-weight:700}.listing-panel{padding:15px 18px 2px}.searchbar{display:flex;align-items:center;gap:10px;border:1px solid #e9edf3;background:#fafbfd;border-radius:10px;padding:5px 7px 5px 12px;margin-bottom:16px}.searchbar>span{font-size:24px;color:#6a727d}.searchbar input,.pos-search input{border:0;outline:0;background:transparent;flex:1;min-width:100px;font:16px 'DM Sans';color:var(--ink)}.searchbar input::placeholder,.pos-search input::placeholder{color:#797f87}.searchbar .button{padding:9px 14px}.product-cell{display:flex;align-items:center;gap:10px}.product-cell b{color:#435168}.product-thumb{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;background:#f0eeff;color:#6c5cda;font-weight:800}.mono{font:15px monospace;color:#778499}.type-pill{background:#f3f5f8;padding:5px 8px;border-radius:20px;color:#738095;font-size:13px}.stock{font-weight:700;color:#47556a}.stock-low{color:#db8d3c!important}.pagination{padding:13px 12px;color:#5e6671;font-size:15px}.pagination nav{display:flex;justify-content:flex-end;gap:5px}.pagination nav span,.pagination nav a{border:1px solid #e9edf3;padding:6px 9px;border-radius:7px}.pagination nav svg{width:14px;height:14px}.pagination nav a[rel=prev],.pagination nav a[rel=next],.pagination nav span[aria-hidden=true]{padding:5px 7px}.pagination nav span[aria-current=page]{color:#fff;background:var(--purple);border-color:var(--purple)}.pos-heading{align-items:center}.pos-live{display:flex;align-items:center;gap:10px;background:#eaf9f3;padding:9px 12px;border-radius:9px;color:#229b75;font-size:13px;font-weight:800;letter-spacing:.1em}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:17px;align-items:stretch;min-height:calc(100vh - 240px)}.catalog-panel{padding:17px}.pos-search{display:flex;align-items:center;gap:12px;border:1px solid #e6eaf1;background:#fafbfd;border-radius:12px;padding:12px 14px}.pos-search>span{font-size:26px;color:#9185ed}.pos-search kbd{font:14px 'DM Sans';color:#6c737d;background:white;border:1px solid #ebeff4;border-radius:5px;padding:4px 7px}.catalog-hint{margin:12px 3px;color:#6c737c;font-size:14px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:17px}.catalog-card{border:1px solid #edf0f5;background:#fff;border-radius:12px;padding:10px;text-align:left;min-width:0;cursor:pointer;transition:.16s}.catalog-card:hover:not(:disabled){border-color:#aaa0f5;box-shadow:0 8px 20px #6755df12;transform:translateY(-2px)}.catalog-card:disabled{opacity:.55;cursor:not-allowed}.catalog-art{width:100%;height:82px;display:grid;place-items:center;background:linear-gradient(145deg,#f4f2ff,#e9f1ff);color:#7465dc;border-radius:9px;font:800 29px Manrope;margin-bottom:10px}.catalog-name{display:block;color:#3f4c62;font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-card>small{display:block;color:#70767f;font-size:13px;margin:4px 0 10px}.catalog-card>div{display:flex;align-items:center;justify-content:space-between;gap:4px}.catalog-card>div b{font-size:14px;color:#5549bd}.catalog-card>div small{font-size:13px;color:#27a17a}.catalog-empty{grid-column:1/-1;min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#68707a;gap:9px}.catalog-empty>span{font-size:34px;color:#a49bf0}.catalog-empty b{font-size:16px;color:#667388}.catalog-empty small{font-size:14px}.spinner{height:23px;width:23px;border:2px solid #e5e1ff;border-top-color:#7665e7;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.cart-panel{padding:18px;display:flex;flex-direction:column}.cart-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid #edf0f5}.cart-title h2{font-size:20px}.icon-button{border:0;background:#f6f7fa;border-radius:8px;height:31px;width:31px;color:#636b76;cursor:pointer}.cart-items{flex:1;overflow:auto;min-height:170px}.cart-empty{height:100%;min-height:170px;display:grid;place-content:center;text-align:center;color:#656c78;font-size:15px}.cart-empty small{display:block;margin-top:6px;color:#777d85;font-size:14px}.cart-line{padding:13px 0;border-bottom:1px solid #f0f2f6;display:flex;gap:9px}.cart-line-mark{height:32px;width:32px;flex:0 0 auto;border-radius:9px;background:#f0eeff;color:#6c5cda;display:grid;place-items:center;font-weight:800}.cart-line-info{min-width:0;flex:1}.cart-line-info b{display:block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#48566b}.cart-line-info>small{display:block;font-size:13px;color:#6c737e;margin-top:4px}.cart-line-total{font-size:14px;font-weight:700;color:#4b5870;text-align:right;white-space:nowrap}.remove-item{border:0;background:transparent;color:#7d828b;display:block;margin:6px 0 0 auto;cursor:pointer;font-size:18px}.qty-step{display:flex;align-items:center;gap:9px;margin-top:7px}.qty-step button{height:20px;width:20px;border:1px solid #e8ebf1;border-radius:6px;background:#fff;color:#6f5fe1;font-weight:700;cursor:pointer}.qty-step span{font-size:14px;font-weight:700}.cart-summary{border-top:1px solid #edf0f5;padding-top:14px}.cart-summary>div{display:flex;justify-content:space-between;color:#616973;font-size:14px;margin:8px 0}.cart-summary>div b{color:#59677c}.cart-summary .total-row{margin:16px 0}.total-row span{font-size:16px;font-weight:700;color:#56647a}.total-row b{font:800 21px Manrope!important;color:#202d43!important}.checkout-note{display:block;text-align:center;color:#6d747e;font-size:13px;line-height:1.5;margin-top:9px}.login-body{background:radial-gradient(ellipse at 72% 18%,#eceaff 0,transparent 30%),radial-gradient(ellipse at 15% 90%,#e3f4f2 0,transparent 34%),#f7f8fc;min-height:100vh;display:grid;place-items:center;overflow:hidden}.login-orb{position:fixed;border-radius:50%;filter:blur(2px);pointer-events:none}.orb-a{height:260px;width:260px;right:-80px;top:-90px;background:linear-gradient(145deg,#9284fa44,#c0baff1a)}.orb-b{height:180px;width:180px;left:-50px;bottom:-55px;background:#a8e6d738}.login-wrap{width:min(100% - 32px,420px);position:relative}.login-brand{padding:0 0 22px}.login-card{background:#ffffffdb;backdrop-filter:blur(18px);border:1px solid #ffffff;border-radius:22px;padding:34px;box-shadow:0 25px 70px #34425b12}.login-card h1{font:800 36px/1.12 Manrope;letter-spacing:-.05em;margin:12px 0}.login-card h1 span{color:#7665e7}.muted{color:#5e6672;font-size:16px;line-height:1.7;margin:0 0 24px}.login-card label{display:block;color:#526077;font-size:15px;font-weight:700;margin:15px 0 7px}.login-card input{height:44px;width:100%;border:1px solid #e5e9f0;border-radius:9px;background:#fbfcfe;padding:0 12px;outline:none;font:16px 'DM Sans'}.login-card input:focus{border-color:#988ef0;box-shadow:0 0 0 3px #7665e71c}.login-card form .button{margin-top:21px;height:44px}.login-foot{text-align:center;color:#787d86;letter-spacing:.16em;font-size:12px;font-weight:700;margin-top:22px}.error{color:#bd5363;font-size:14px;margin:6px 1px}.login-card .error+label{margin-top:10px}@media(max-width:1120px){.stat-grid{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 310px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.sidebar{width:70px;padding:18px 9px}.brand{padding:0 6px 27px}.brand>span:last-child,.nav-label,.nav-link:not(.signout){font-size:0}.sidebar .nav-link{justify-content:center;padding:12px 5px}.nav-link i{font-size:23px}.nav-pill,.system-status,.signout{font-size:0}.sidebar-bottom form{margin-top:10px}.main{margin-left:70px}.topbar{padding:0 20px}.content{padding:28px 20px}.dashboard-grid{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.cart-panel{min-height:400px}}@media(max-width:560px){.topbar{height:61px}.today,.user-chip{display:none}.content{padding:23px 14px}.page-heading h1{font-size:28px}.stat-grid{gap:9px}.stat-card{padding:14px;min-height:130px}.stat-card strong{font-size:23px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start;gap:12px}.heading-actions{align-self:center}.login-card{padding:25px}.pos-heading .pos-live{display:none}}
.flash-success,.flash-error{padding:12px 15px;border-radius:10px;margin-bottom:17px;font-size:16px;font-weight:600}.flash-success{background:#e8f8f1;color:#16825f;border:1px solid #d1f1e2}.flash-error{background:#fff0f1;color:#b94d5d;border:1px solid #f7dcdf}.heading-actions{display:flex;align-items:center;gap:10px}.action-cell{display:flex;justify-content:flex-end;gap:10px;align-items:center}.action-cell form{margin:0}.table-action{border:0;background:transparent;color:#6d5bdd;font:700 14px 'DM Sans';cursor:pointer;padding:0}.danger-link{color:#c35c69}.form-panel,.transaction-form{padding:23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 17px}.form-grid.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}.form-field{display:flex;flex-direction:column;gap:7px;color:#5c6a7f;font-size:14px;font-weight:700}.form-field input,.form-field select,.form-field textarea,.report-filters input,.report-filters select{width:100%;border:1px solid #e5eaf1;border-radius:9px;background:#fcfdff;color:#3f4c62;padding:10px 11px;font:16px 'DM Sans';outline:0}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#a29af0;box-shadow:0 0 0 3px #7665e710}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:19px;padding-top:17px;border-top:1px solid #edf0f5}.product-select{margin:20px 0}.subcell{display:block;color:#6c737d;font-size:13px;font-weight:400;margin-top:4px}.line-input{width:90px;border:1px solid #e6eaf1;border-radius:7px;padding:7px;font:15px 'DM Sans';color:#435168}.remove-line{border:0;background:#f7f4f6;color:#b45865;border-radius:7px;height:26px;width:26px;cursor:pointer;font-size:20px}.transaction-total{border-top:1px solid #edf0f5;margin-top:15px;padding:15px 4px;display:flex;justify-content:flex-end;align-items:center;gap:25px;color:#647187;font-size:15px;font-weight:700}.transaction-total b{font:800 22px Manrope;color:#27354c}.form-foot{margin-top:22px}.span-all{grid-column:1/-1}.register-card{max-width:780px;padding:24px}.register-card .form-actions{border:0}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-selectors{display:grid;gap:9px;padding:13px 0;border-bottom:1px solid #edf0f5}.sale-selectors label{display:grid;gap:5px;color:#5f6772;font-size:13px;font-weight:700}.sale-selectors select,.payment-input select,.payment-input input{width:100%;border:1px solid #e9edf2;border-radius:7px;padding:7px 8px;color:#536176;background:#fff;font:14px 'DM Sans'}.payment-input{display:flex;align-items:center;justify-content:space-between;gap:10px}.payment-input label{font-size:14px;color:#626a75}.payment-input input,.payment-input select{max-width:132px}.modal-card{border:1px solid #e9edf3;border-radius:16px;width:min(100% - 30px,420px);padding:23px;box-shadow:0 25px 70px #25344b35}.modal-card::backdrop{background:#18243b70;backdrop-filter:blur(3px)}.modal-card h2{font:700 23px Manrope;margin:10px 0 6px}.modal-card p{font-size:15px;color:#626a74;margin:0 0 17px}.modal-card .form-field{margin:13px 0}.modal-close{float:right;border:0;border-radius:8px;background:#f3f5f8;height:28px;width:28px;color:#58606c;font-size:22px;cursor:pointer}.detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:17px;align-items:start}.detail-grid>.panel{padding:18px}.detail-grid .listing-panel{padding:18px}.summary-lines{border-top:1px solid #edf0f5;margin-top:15px;padding-top:8px}.summary-lines>div,.payment-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;color:#606872;font-size:14px}.summary-lines b,.payment-row b{color:#4a5870}.summary-total{border-top:1px solid #edf0f5;margin-top:7px;padding-top:14px!important}.summary-total b{font:800 20px Manrope}.payment-label{margin-top:20px}.payment-row{border-bottom:1px solid #f0f2f6}.payment-form{border-top:1px solid #edf0f5;margin-top:15px;padding-top:14px}.payment-form>.eyebrow{line-height:1.6}.payment-form .form-field{margin:10px 0}.report-controls{padding:15px;margin-bottom:17px}.report-filters{display:grid;grid-template-columns:1.4fr repeat(3,1fr) auto;gap:10px;align-items:end}.report-filters label{display:grid;gap:6px;color:#5c6571;font-size:13px;font-weight:700}.report-filters input,.report-filters select{padding:9px}.report-stats{margin-bottom:16px}.report-table{margin-top:16px}.report-table .panel-head{padding:12px 12px 0}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:17px;align-items:start}.settings-section{padding:20px;margin-bottom:16px}.settings-section .panel-head{margin-bottom:17px}.toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:15px;border-top:1px solid #edf0f5}.toggle{display:flex;align-items:center;gap:9px;color:#6c788b;font-size:14px;cursor:pointer}.toggle input{accent-color:#6959d7}.settings-help{padding:20px;position:sticky;top:88px}.settings-help h2{font:700 20px Manrope;margin:12px 0 7px}.settings-help p,.warning-note{color:#5d6671;font-size:14px;line-height:1.7}.warning-note{background:#fff5e8;color:#a6793f;border-radius:9px;padding:10px;margin:15px 0}.settings-help code{font-size:13px;color:#6456c1}.settings-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.settings-link{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;border:1px solid #edf0f5;border-radius:9px;color:#68768b;font-size:14px;font-weight:600}.settings-link b{color:#7565df}.return-lines{margin-top:16px}.return-lines .panel-head{margin:18px 0}.return-lines .form-field{margin-top:16px}
@media(max-width:1050px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:1fr}.settings-help{position:static}.detail-grid{grid-template-columns:1fr}.settings-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.form-grid,.form-grid.three-col,.two-col{grid-template-columns:1fr}.settings-links{grid-template-columns:1fr}.toggle-grid{grid-template-columns:1fr}.report-filters{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.page-heading .heading-actions{align-self:flex-start}.transaction-total{justify-content:space-between}.register-card{padding:16px}.action-cell{min-width:120px}}
.inline-status{display:flex;align-items:center;gap:7px;white-space:nowrap}.inline-status select{max-width:125px;border:1px solid #e5eaf1;border-radius:7px;background:#fcfdff;padding:6px 8px;color:#526176;font:14px 'DM Sans'}
.cart-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.cart-actions .button{font-size:14px;padding:11px 9px}.action-cell{white-space:nowrap}
/* POS payment controls */
.cart-actions{grid-template-columns:1fr 1fr}
.cart-actions .payment-button{font-weight:800;min-height:44px}
.cart-actions .button.mpesa{color:#fff;background:linear-gradient(110deg,#149b65,#087a50);box-shadow:0 7px 17px #1284532b}
.cart-actions .button.mpesa:hover{transform:translateY(-1px);box-shadow:0 9px 20px #12845340}
.cart-actions .button.mpesa:disabled{opacity:.46;box-shadow:none;cursor:not-allowed}
.cart-summary>div.discount-row{color:#167b55}
.cart-summary>div.discount-row b{color:#167b55}
.modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}
.modal-actions .button{flex:1}
@media(max-width:390px){.cart-actions{grid-template-columns:1fr}.cart-actions .button{width:100%}}
.cart-summary>div.discount-row[hidden]{display:none}
/* POS cart table layout */
.pos-layout{display:block;min-height:0}
.pos-workspace{padding:20px;display:flex;flex-direction:column;gap:16px;min-height:calc(100vh - 260px)}
.pos-workspace-head{display:flex;align-items:center;justify-content:space-between}
.pos-workspace-head h2{margin:5px 0 0}
.sale-selectors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sale-selectors label{display:grid;gap:6px;color:#56647a;font-size:14px;font-weight:700}
.sale-selectors select{width:100%;height:40px;border:1px solid #e4e8ef;border-radius:8px;padding:0 10px;background:#fff;color:#27364e;font:15px 'DM Sans'}
.pos-product-search{position:relative;z-index:3}
.pos-product-search .catalog-hint{margin:7px 3px 0;font-size:13px;color:#6c737d}
.product-suggestions{position:absolute;top:calc(100% + 28px);left:0;right:0;max-height:min(55vh,440px);overflow:auto;background:#fff;border:1px solid #e3e8f0;border-radius:12px;box-shadow:0 18px 44px #25344b26;padding:7px;z-index:8}
.pos-result-option{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:11px;padding:9px;border:0;border-radius:8px;background:#fff;text-align:left;cursor:pointer;color:#26344a}
.pos-result-option:hover:not(:disabled){background:#f4f3ff}
.pos-result-option:disabled{opacity:.48;cursor:not-allowed}
.pos-result-option .catalog-art{width:36px;height:36px;font-size:16px}
.pos-result-main{min-width:0}.pos-result-main b,.pos-result-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-result-main b{font-size:14px}.pos-result-main small{margin-top:3px;color:#6c737d;font-size:12px}
.pos-result-option>strong{color:#5447bf;font-size:14px;white-space:nowrap}.pos-result-add{color:#6959d7;font-size:13px;font-weight:800;padding:6px 9px;background:#f0eeff;border-radius:7px}
.cart-table-wrap{flex:1;min-height:280px;max-height:calc(100vh - 500px);overflow:auto;border:1px solid #e7ebf1;border-radius:10px;background:#fff}
.pos-cart-table{width:100%;border-collapse:collapse;white-space:normal;table-layout:fixed}
.pos-cart-table th{position:sticky;top:0;z-index:1;background:#6755df;color:#fff;padding:12px 14px;font-size:13px;letter-spacing:.03em}
.pos-cart-table th:first-child{width:46%}.pos-cart-table th:nth-child(2){width:16%}.pos-cart-table th:nth-child(3){width:13%}.pos-cart-table th:nth-child(4){width:18%}.pos-cart-table th:last-child{width:7%}
.pos-cart-table td{padding:10px 14px;border-bottom:1px solid #edf0f5;color:#35445c;font-size:14px;vertical-align:middle}
.pos-cart-table tbody tr:nth-child(even){background:#faf9ff}.pos-cart-table tbody tr:last-child td{border-bottom:0}
.pos-cart-table .center{text-align:center}.pos-cart-table .right{text-align:right}
.pos-product-name{display:flex;align-items:center;gap:10px;min-width:0}.pos-product-name>div{min-width:0}.pos-product-name b,.pos-product-name small{display:block;overflow-wrap:anywhere}.pos-product-name b{color:#33425a}.pos-product-name small{margin-top:3px;color:#707783;font-size:12px}
.pos-cart-table .cart-line-mark{width:32px;height:32px;flex:0 0 auto}
.pos-qty-input{width:min(100%,90px);height:34px;border:1px solid #dfe4ec;border-radius:6px;text-align:center;color:#25344b;font:600 14px 'DM Sans';background:#fff}
.pos-remove{width:29px;height:29px;border:0;border-radius:7px;background:#fff0f1;color:#c94c5c;font-size:19px;line-height:1;cursor:pointer}
.pos-cart-table .cart-table-empty td{text-align:center;height:220px;color:#7b828d}
.pos-checkout-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,1.15fr);align-items:end;gap:22px;border-top:1px solid #edf0f5;padding-top:14px}
.cart-summary{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:10px 18px;border:0;padding:0}
.cart-summary>div{margin:0}.cart-summary .summary-cell{display:flex;align-items:center;justify-content:space-between;color:#5d6879;font-size:14px;padding:7px 0;border-bottom:1px solid #edf0f5}
.cart-summary .summary-cell b{color:#344159}.cart-summary .payment-input{display:flex;flex-direction:column;gap:5px}.payment-input label{color:#606b7b;font-size:13px;font-weight:700}.payment-input input{width:100%;height:37px;border:1px solid #dfe4ec;border-radius:7px;padding:0 9px;color:#27364e;font:15px 'DM Sans'}
.cart-summary .total-row{display:flex;justify-content:space-between;align-items:center;margin:0;padding:7px 0}.cart-summary .total-row span{font-size:15px}.cart-summary .total-row b{font-size:20px!important}
.cart-summary>div.discount-row[hidden]{display:none}
.cart-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.cart-actions .button{width:100%;min-height:43px;font-size:14px;padding:9px 8px;gap:7px}
@media(max-width:920px){.pos-checkout-footer{grid-template-columns:1fr}.cart-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.cart-table-wrap{max-height:none}}
@media(max-width:640px){.pos-workspace{padding:13px;min-height:0}.sale-selectors{grid-template-columns:1fr}.pos-cart-table th,.pos-cart-table td{padding:9px 7px}.pos-cart-table th:first-child{width:40%}.pos-cart-table th:nth-child(2){width:18%}.pos-cart-table th:nth-child(3){width:15%}.pos-cart-table th:nth-child(4){width:20%}.pos-cart-table th:last-child{width:7%}.pos-product-name{gap:6px}.pos-cart-table .cart-line-mark{display:none}.pos-qty-input{width:58px}.pos-checkout-footer{gap:12px}.cart-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-result-option{grid-template-columns:34px minmax(0,1fr) auto}.pos-result-option .catalog-art{width:32px;height:32px}.pos-result-add{display:none}}
.cart-summary .total-row{grid-column:1/-1;white-space:nowrap}
.cart-summary .total-row b{white-space:nowrap}
/* POS sale receipt */
.receipt-stage{display:flex;justify-content:center;padding:8px 0 30px}
.receipt-sheet{width:min(100%,520px);background:#fff;border:1px solid #e8ecf2;border-radius:14px;padding:28px 32px;box-shadow:0 12px 34px #26354a0c;color:#26344a}
.receipt-header{text-align:center;border-bottom:1px dashed #cfd5df;padding-bottom:17px;color:#647187;font-size:13px;line-height:1.8}
.receipt-brand{font:800 23px Manrope;color:#27364f;line-height:1.3}.receipt-label{font-size:12px;letter-spacing:.18em;font-weight:800;color:#7664df}
.receipt-meta{display:grid;gap:8px;padding:16px 0;border-bottom:1px dashed #cfd5df}.receipt-meta div,.receipt-payments>div:not(.receipt-label){display:flex;justify-content:space-between;gap:15px;font-size:13px}.receipt-meta span,.receipt-payments span{color:#69768a}.receipt-meta b{text-align:right;overflow-wrap:anywhere}
.receipt-items{margin:12px 0;white-space:normal}.receipt-items th{padding:9px 5px;color:#56647a;font-size:11px;letter-spacing:.05em;border-bottom:1px solid #e8ecf2}.receipt-items td{padding:9px 5px;color:#344259;font-size:12px;vertical-align:top}.receipt-items td:first-child{width:45%;overflow-wrap:anywhere}.receipt-items td:not(:first-child),.receipt-items th:not(:first-child){text-align:right;white-space:nowrap}.receipt-items td small{display:block;color:#7b8491;font-size:10px;margin-top:3px}
.receipt-totals{border-top:1px dashed #cfd5df;padding-top:10px}.receipt-totals>div,.receipt-payments>div:not(.receipt-label){display:flex;justify-content:space-between;padding:5px 0;font-size:13px}.receipt-totals span{color:#68758a}.receipt-grand{border-top:1px solid #e8ecf2;margin-top:6px;padding-top:12px!important;font-size:17px!important;font-weight:800}.receipt-grand b{color:#28364c;font-size:18px}.receipt-payments{border-top:1px dashed #cfd5df;margin-top:10px;padding-top:12px}.receipt-payments .receipt-label{margin-bottom:5px}.receipt-thanks{text-align:center;margin-top:18px;border-top:1px dashed #cfd5df;padding-top:14px;color:#536176;font-size:13px;font-weight:700}.receipt-thanks small{display:block;margin-top:5px;color:#818996;font-weight:400;font-size:11px}.receipt-vat{display:flex;justify-content:space-between;gap:6px;text-align:left;margin:0 0 8px;padding-bottom:8px;border-bottom:1px dashed #cfd5df;font-size:11px;font-weight:600}.receipt-vat span{color:#68758a}
@media print{@page receipt{size:80mm auto;margin:0}body{background:#fff!important}.sidebar,.topbar,.no-print{display:none!important}.main{margin:0!important;min-height:0!important}.content{max-width:none!important;margin:0!important;padding:0!important}.receipt-stage{display:block!important;width:80mm!important;padding:0!important;margin:0!important}.receipt-sheet{page:receipt;width:80mm!important;max-width:80mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:3mm!important;margin:0!important}.receipt-items{width:100%!important;table-layout:fixed}.receipt-items th,.receipt-items td{padding:1.5mm .6mm!important}.receipt-header,.receipt-meta,.receipt-totals,.receipt-payments,.receipt-thanks{break-inside:avoid}}
.receipt-print-status{max-width:520px;margin:0 auto 14px;padding:13px 16px;border:1px solid #e7ebf1;border-radius:11px;background:#fff;display:flex;align-items:center;gap:11px;color:#46546a}.receipt-print-status b,.receipt-print-status small{display:block}.receipt-print-status b{font-size:14px}.receipt-print-status small{margin-top:3px;color:#6b7482;font-size:13px}
/* Compact POS header and denser item list */
.page-heading.pos-heading{align-items:center;margin-bottom:9px}
.page-heading.pos-heading h1{margin:3px 0 2px;font-size:30px}
.page-heading.pos-heading p{font-size:14px}
.pos-workspace{padding:11px 14px;gap:8px;min-height:calc(100vh - 215px)}
.sale-selectors{padding:0;margin:0 0 2px;gap:8px;border:0}
.sale-selectors label{gap:3px;font-size:12px}
.sale-selectors select{height:35px;padding:0 9px;font-size:14px}
.pos-search-row{display:flex;align-items:flex-start;gap:8px}
.pos-search-row .pos-product-search{flex:1;min-width:0}
.pos-search-row>.icon-button{flex:0 0 40px;margin-top:0;width:40px;height:40px}
.pos-search{padding:8px 11px;min-height:40px}
.pos-product-search .catalog-hint{margin-top:3px;font-size:12px}
.product-suggestions{top:calc(100% + 20px)}
.cart-table-wrap{min-height:220px;max-height:calc(100vh - 365px)}
.pos-cart-table th{padding:8px 10px;font-size:12px}
.pos-cart-table td{padding:4px 9px;font-size:13px;line-height:1.2}
.pos-product-name{gap:7px}
.pos-product-name b{font-size:13px}
.pos-product-name small{font-size:11px;margin-top:1px}
.pos-cart-table .cart-line-mark{width:25px;height:25px;border-radius:7px;font-size:12px}
.pos-qty-input{height:27px;width:min(100%,76px);font-size:13px}
.pos-remove{width:23px;height:23px;font-size:16px}
.pos-cart-table .cart-table-empty td{height:120px}
.pos-checkout-footer{gap:14px;padding-top:9px}
.cart-summary{gap:6px 14px}
.cart-summary .summary-cell{padding:4px 0;font-size:13px}
.cart-summary .payment-input input{height:32px}
.cart-summary .total-row{padding:4px 0}
.cart-summary .total-row b{font-size:18px!important}
.cart-actions .button{min-height:38px;padding:7px 7px}
@media(max-width:640px){.pos-workspace{padding:9px;gap:7px}.sale-selectors select{height:34px}.pos-search-row>.icon-button{flex-basis:36px;width:36px;height:36px}.pos-search{min-height:36px;padding:7px 9px}.cart-table-wrap{max-height:none}.pos-cart-table th{padding:7px 5px;font-size:11px}.pos-cart-table td{padding:4px 5px;font-size:12px}.pos-cart-table .cart-line-mark{display:none}}
.content:has(.page-heading.pos-heading){padding-top:15px;padding-bottom:24px}
.page-heading.pos-heading h1{font-size:27px;margin:1px 0}
.page-heading.pos-heading .eyebrow{font-size:12px}
.page-heading.pos-heading p{font-size:13px;line-height:1.35}
.pos-cart-table td{padding-top:3px;padding-bottom:3px}
.pos-product-name>div{overflow:hidden}
.pos-product-name b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-product-name small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sale-selectors{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px}
.pos-toolbar-actions{display:flex;align-items:center;gap:7px;height:35px;white-space:nowrap}
.pos-toolbar-actions .button{height:35px;padding:7px 10px;gap:7px;font-size:13px}
@media(max-width:1020px){.sale-selectors{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-toolbar-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:640px){.sale-selectors{grid-template-columns:1fr}.pos-toolbar-actions{grid-column:auto;justify-content:stretch}.pos-toolbar-actions .button{flex:1}}


/* Dashboard card color variations */
.dashboard-stats .stat-card:nth-child(2){background:linear-gradient(145deg,#f4f1ff,#ece8ff);border-color:#e6e0ff}
.dashboard-stats .stat-card:nth-child(3){background:linear-gradient(145deg,#eef7ff,#e6f1ff);border-color:#dcecff}
.dashboard-stats .stat-card:nth-child(4){background:linear-gradient(145deg,#fff7ed,#fff0dc);border-color:#ffebd0}


/* Dashboard quick actions full width */
.quick-panel-wide{margin-top:20px;padding:24px}
.quick-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.quick-panel-wide .quick-action{min-width:0;border:1px solid #ebeff5;border-radius:12px;background:#fff;padding:16px;gap:13px;transition:transform .16s,box-shadow .16s,border-color .16s}
.quick-panel-wide .quick-action:hover{transform:translateY(-2px);border-color:#dcd6ff;box-shadow:0 8px 20px #28354b0c}
.quick-panel-wide .quick-action i{margin-left:auto}
@media(max-width:900px){.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.quick-actions-grid{grid-template-columns:1fr}.quick-panel-wide{padding:18px}}


/* Brand logo on sidebar and receipt */
.sidebar{padding-top:8px}.sidebar .brand{width:100%;justify-content:center;padding:0 4px 26px}.brand-logo{width:100%;height:70px;max-width:220px;max-height:70px;object-fit:contain;padding:3px 8px;background:#fff;border-radius:12px;box-shadow:0 7px 18px #30219435;display:block}@media(max-width:850px){.sidebar{padding-top:8px}.sidebar .brand{padding:0 0 24px}.brand-logo{height:46px;max-width:50px;max-height:46px;padding:2px 4px;border-radius:9px}}
.receipt-logo{display:block;max-width:42mm;max-height:20mm;width:auto;height:auto;object-fit:contain;margin:0 auto 2mm}


/* Topbar profile editor and logout */
.profile-link{display:block;color:inherit;border-radius:8px;padding:4px 6px;transition:background .16s}
.profile-link:hover{background:#f3f1ff}
.profile-link b{display:block;font-size:15px;color:#344259}
.profile-link small{display:block;color:#687487;font-size:13px;margin-top:2px}
.top-logout{margin:0}
.logout-button{display:inline-flex;align-items:center;gap:10px;border:1px solid #e5a2aa;border-radius:9px;background:#fff;color:#b54655;padding:8px 12px;font:700 14px 'DM Sans';cursor:pointer;transition:background .16s,border-color .16s}.logout-button span:last-child{font-size:18px;line-height:1}
.logout-button:hover{background:#fff1f2;border-color:#d97983}
.profile-panel{max-width:920px}
.profile-fields{margin-top:16px}
.profile-fields input[readonly]{background:#f4f6f9;color:#788294}
.profile-password{margin-top:26px;padding-top:20px;border-top:1px solid #edf0f5}
.profile-password>p{color:#657187;font-size:14px;margin:8px 0 16px}
@media(max-width:560px){.logout-button{padding:7px 9px;font-size:13px}.profile-panel{padding:16px}}


/* Topbar calculator and POS shortcut */
.topbar-pos-button{height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid #ded9ff;border-radius:10px;background:#f4f2ff;color:#5c4bc7;font-size:14px;font-weight:800;white-space:nowrap;transition:background .16s,transform .16s}
.topbar-pos-button:hover{background:#eae7ff;transform:translateY(-1px)}
.topbar-pos-button span{font-size:17px}
.top-calculator{position:relative}
.top-calculator>summary{list-style:none}
.top-calculator>summary::-webkit-details-marker{display:none}
.topbar-icon-button{height:38px;width:38px;display:grid;place-items:center;border:1px solid #e6eaf1;border-radius:10px;background:#fff;color:#5f6c80;cursor:pointer;transition:background .16s,border-color .16s}
.topbar-icon-button:hover,.top-calculator[open] .topbar-icon-button{border-color:#d8d2ff;background:#f5f3ff;color:#6554d7}
.topbar-icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.calc-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:254px;padding:14px;background:#fff;border:1px solid #e8eaf1;border-radius:14px;box-shadow:0 16px 40px #26334b20}
.calc-popover-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;color:#29364c;font-weight:800;font-size:14px}
.calc-popover-title small{color:#8991a0;font-size:12px;font-weight:500}
.calc-display{width:100%;height:45px;margin-bottom:10px;padding:0 11px;border:1px solid #e8eaf1;border-radius:9px;background:#f8f9fc;color:#28364e;text-align:right;font:700 22px 'DM Sans';font-variant-numeric:tabular-nums}
.calc-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.calc-keypad button{height:39px;border:1px solid #eef0f4;border-radius:8px;background:#fafbfc;color:#38465d;font:700 15px 'DM Sans';cursor:pointer}
.calc-keypad button:hover{background:#f1efff;border-color:#ddd8ff}
.calc-keypad .calc-op{background:#f3f1ff;border-color:#e6e1ff;color:#6453d6}
.calc-keypad .calc-equals{background:linear-gradient(110deg,#7564e9,#5d4bd4);border-color:transparent;color:#fff}
.calc-keypad .calc-equals:hover{background:#5443c5}
.calc-keypad .calc-zero{grid-column:span 2}
@media(max-width:700px){.topbar-pos-button{height:34px;padding:0 8px;font-size:13px}.topbar-icon-button{height:34px;width:34px}.calc-popover{right:-42px}}


/* Calculator popover stacking fix */
.topbar{position:relative;z-index:30;overflow:visible}
.top-calculator{z-index:40}
.calc-popover{z-index:100}

/* Center the system logo above the sign-in card. */
.login-brand{display:flex;justify-content:center;align-items:center;padding:0 0 22px}.login-logo{display:block;width:auto;height:auto;max-width:min(100%,240px);max-height:120px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}

/* Keep POS footer actions visually crisp while the basket is empty. */
.cart-actions .button:disabled,.cart-actions .button.mpesa:disabled{opacity:1;filter:none;cursor:not-allowed}

/* Editable POS unit prices match the compact quantity controls. */
.pos-price-input{width:min(100%,92px);height:27px;border:1px solid #dfe4ec;border-radius:6px;text-align:right;padding:0 6px;color:#25344b;font:600 13px 'DM Sans';background:#fff}
.pos-price-input:focus{outline:2px solid #988ef0;outline-offset:1px;border-color:#988ef0}

/* SweetAlert2 confirmation styling for POS checkout. */
.pos-confirm-popup{border-radius:18px!important;padding:24px!important}.pos-confirm-title{font:800 24px Manrope!important;color:#202d43!important}.pos-confirm-text{font:15px 'DM Sans'!important;color:#526177!important}.pos-confirm-accept,.pos-confirm-cancel{border:0;border-radius:9px;padding:11px 17px;font:700 14px 'DM Sans';cursor:pointer}.pos-confirm-accept{background:#6755df;color:#fff}.pos-confirm-cancel{background:#f0eeff;color:#5e4dcf;margin-right:8px}

.product-name-wrap{display:inline-block;white-space:normal;line-height:1.35}

/* Let long sidebar menus scroll while keeping branding and logout visible. */
.sidebar nav{flex:1 1 auto;min-height:0;overflow-y:auto;align-content:start;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9c3f7 transparent}.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:#c9c3f7;border-radius:8px}.sidebar nav::-webkit-scrollbar-track{background:transparent}

.receipt-tax-row{display:flex;justify-content:space-between;padding:5px 0;font-size:13px;font-weight:700}.receipt-tax-row span{color:#68758a}

.danger-outline{color:#bd4053;background:#fff;border:1px solid #e7aab3}.danger-outline:hover{background:#fff4f5}.payment-history{margin-top:25px;padding-top:20px;border-top:1px solid #edf0f5}.payment-history .panel-head{margin-bottom:10px}.payment-history-table{min-width:740px}.payment-history-table td{vertical-align:middle}.payment-history-table td:first-child{white-space:nowrap}.payment-edit-input{width:100%;min-width:90px;height:34px;border:1px solid #e2e6ed;border-radius:7px;padding:0 7px;background:#fff;color:#35435a;font:14px 'DM Sans'}.payment-edit-input.amount-input{min-width:100px;text-align:right}.payment-row-actions{display:flex;align-items:center;gap:10px}.payment-row-actions form{display:inline}.payment-row-actions .danger-link{border:0;background:none;padding:0;cursor:pointer}

.sale-detail-actions{flex-wrap:wrap;justify-content:flex-end}.sale-detail-actions form{margin:0}
