:root{--green:#27ae60;--red:#c0392b;--dark:#2c3e50;--light:#ecf0f1;--mobile-shell-width:430px}html{background:#f0f2f5;min-height:100%}body{padding:15px 0 calc(86px + env(safe-area-inset-bottom));box-sizing:border-box;-webkit-user-select:none;user-select:none;background:#f0f2f5;min-height:100vh;margin:0;font-family:sans-serif}body.setup-mode{padding-bottom:15px}.app-view{width:100%;max-width:var(--mobile-shell-width);box-sizing:border-box;margin:0 auto;padding:0 15px}.app-view[hidden],.bottom-tabs[hidden]{display:none!important}.setup-view{place-items:center;min-height:calc(100vh - 30px);display:grid}.setup-panel,.settings-panel{box-sizing:border-box;background:#fff;border:1px solid #dfe6e9;border-radius:10px;width:100%;padding:20px;box-shadow:0 2px 8px #0000000f}.setup-panel{flex-direction:column;align-items:center;padding:32px 30px 28px;display:flex}.setup-panel>*{box-sizing:border-box;width:min(100%,360px)}.setup-panel h1,.settings-panel h2{color:var(--dark);margin:0 0 6px}.setup-panel h1{text-align:center}.settings-panel h2{border-bottom:1px solid #edf1f3;margin-bottom:20px;padding-bottom:14px;font-size:1.05rem}.setup-panel p{color:#566573;text-align:center;margin:0;line-height:1.4}.settings-view{justify-content:center;display:flex}.settings-field{flex-direction:column;gap:8px;margin-bottom:14px;display:flex}.settings-field label{color:var(--dark);font-size:.9rem;font-weight:700}.settings-field input{margin:0}@media (width<=380px){.setup-panel{padding:26px 18px 24px}}.settings-contact{border-top:1px solid #dfe6e9;margin:14px 0 0;padding:12px 0 0}.home-contact-button{width:100%;color:var(--dark);cursor:pointer;background:#fff;border:1px solid #cfd8dc;border-radius:8px;padding:12px;font-size:.95rem;font-weight:700;line-height:1.35}.home-contact-button:focus,.home-contact-button:hover{border-color:var(--dark);background:#eef3f5}.contact-modal-content{text-align:center;align-items:center;max-width:300px;position:relative}.contact-modal-content h3{color:var(--dark);margin:0 34px 8px}.contact-options{justify-content:center;gap:16px;width:100%;display:flex}.contact-option{border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;text-decoration:none;display:inline-flex;box-shadow:0 8px 18px #2c3e502e}.contact-option-facebook{color:#fff;background:#1877f2}.contact-option-whatsapp{color:#fff;background:#25d366}.contact-option:focus,.contact-option:hover{transform:translateY(-1px)}.contact-icon{fill:currentColor;width:34px;height:34px;display:block}.segmented-control{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;display:grid}.segment-btn{color:var(--dark);cursor:pointer;background:#f8f9fa;border:1px solid #cfd8dc;border-radius:8px;min-height:48px;padding:0 10px;font-weight:700;line-height:1.2}.segment-btn.active{background:var(--dark);border-color:var(--dark);color:#fff}.settings-save-btn{flex:none;width:100%}.setup-panel .settings-save-btn{order:0;justify-content:center;align-items:center;min-height:52px;padding:0 18px;font-size:1rem;line-height:1.2;display:inline-flex}.setup-restore-btn{width:100%;color:var(--dark);cursor:pointer;background:#f8f9fa;border:1px solid #cfd8dc;border-radius:8px;margin-top:10px;padding:12px;font-weight:800}.setup-panel .setup-no-signup-note{color:#94a3b8;text-align:center;margin:10px;font-size:.78rem;line-height:1.45}.setup-footer{border-top:1px solid #e2e8f0d1;flex-direction:column;align-items:center;gap:10px;padding-top:16px;display:flex}.setup-footer .setup-restore-btn{color:#94a3b8;text-underline-offset:2px;background:0 0;border:none;border-radius:0;width:auto;margin-top:0;padding:4px 0;font-size:.8rem;font-weight:500;text-decoration:underline}.setup-build-tag{color:#94a3b8;margin:-4px 0 0;font-size:.72rem;font-weight:600;line-height:1.2}.setup-feature-list{color:#2d3748;margin:0;padding:0;font-size:.96rem;font-weight:600;line-height:1.45;list-style:none}.setup-feature-list li+li{margin-top:14px}.setup-feature-list li{grid-template-columns:18px minmax(0,1fr);align-items:start;column-gap:11px;display:grid}.setup-feature-list li:before{content:"✓";color:#16a34a;text-align:center;font-weight:900;line-height:1.45}.setup-privacy-bullet{color:#1a2e22;margin-bottom:10px;font-weight:700}.setup-privacy-bullet:before{content:"🔒";font-weight:400}.setup-video-links{vertical-align:baseline;flex-wrap:wrap;gap:8px;display:inline-flex}.setup-help-panel{margin-top:24px;margin-bottom:22px;padding:0}.faq-section{background:#fbfcfc;border:1px solid #dfe6e9;border-radius:8px;margin-top:16px;padding:14px}.setup-help-panel h2,.faq-section h3{color:var(--dark);margin:0 0 10px;font-size:1rem}.faq-item{color:#34495e;border-top:1px solid #dfe6e9}.faq-item:first-of-type{border-top:none}.faq-item summary{color:#3d5166;cursor:pointer;padding:10px 22px 10px 0;font-size:.93rem;font-weight:600;line-height:1.35;list-style:none;position:relative}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary:after{content:"";border-bottom:1.5px solid #b0bec5;border-right:1.5px solid #b0bec5;width:7px;height:7px;transition:transform .15s;position:absolute;top:50%;right:5px;transform:translateY(-65%)rotate(45deg)}.faq-item[open]>summary:after{transform:translateY(-30%)rotate(225deg)}.faq-item p{color:#566573;margin:0 0 12px;font-size:.94rem;line-height:1.45}.faq-links{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.faq-video-link{color:var(--dark);background:#fff;border:1px solid #cfd8dc;border-radius:8px;align-items:center;padding:7px 9px;font-size:.86rem;font-weight:800;line-height:1.2;text-decoration:none;display:inline-flex}.faq-video-link:focus,.faq-video-link:hover{border-color:var(--dark);background:#eef3f5}.settings-dev-tools{border-top:1px dashed #e2caca;margin-top:22px;padding-top:14px}.dev-clear-data-btn{color:#ae5049;cursor:pointer;opacity:.82;background:#fff;border:1px solid #e0cac9;border-radius:8px;width:100%;padding:9px 12px;font-size:.84rem;font-weight:600}.dev-clear-data-btn:hover,.dev-clear-data-btn:focus{opacity:1;color:#a93226;background:#fff5f4;border-color:#c0392b}.dev-clear-data-btn:focus-visible{outline-offset:2px;outline:3px solid #c0392b38}.setup-restore-btn:focus-visible,.segment-btn:focus-visible,.bottom-tab:focus-visible{outline-offset:2px;outline:3px solid #16a08559}.setup-restore-btn{margin-top:14px!important}#setup-save-btn{margin-top:14px}.home-identity{margin:2px 0 14px;padding:0 2px}.home-identity .business-name{color:var(--dark);text-align:center;font-size:clamp(1.35rem,5vw,1.6rem);font-weight:900}.home-identity .business-name--placeholder{color:#94a3b8;cursor:pointer;font-style:italic;font-weight:700}.business-name-inline-input{text-align:center;border:none;border-bottom:2px solid var(--green,#16a34a);width:100%;color:var(--dark);background:0 0;outline:none;padding:2px 0;font-size:clamp(1.35rem,5vw,1.6rem);font-weight:900}.header-card{color:var(--dark);background:#fff;border:1px solid #dfe6e9;border-radius:14px;flex-direction:column;gap:10px;padding:12px;display:flex;box-shadow:0 2px 8px #2c3e5014}.header-card>.header-top,.header-card>.primary-stats,.header-card>.sub-stats{margin:0}.header-top{background:#f1f8f6;border:1px solid #d1e3df;border-radius:10px;grid-template-columns:1fr;justify-content:stretch;align-items:center;gap:6px;padding:7px 10px 7px 36px;display:grid;position:relative}.header-top:before{content:"";clip-path:polygon(0 0,100% 0,62% 48%,62% 100%,38% 86%,38% 48%);background:#237f70;width:14px;height:15px;position:absolute;top:15px;left:13px}.business-name{font-size:clamp(1.15rem,4vw,1.45rem);font-weight:800;line-height:1.2}.app-brand{letter-spacing:0;opacity:.72;text-transform:uppercase;margin-bottom:2px;font-size:.82rem;font-weight:800}.date-filter{width:100%;min-width:0;max-width:none;color:var(--dark);box-sizing:border-box;text-align:left;text-align-last:left;background:0 0;border:0;padding:7px 3px;font-size:.95rem;font-weight:800}.date-filter option{color:#2c3e50}.filter-date-display{color:#52716b;text-align:left;border-top:1px solid #d1e3df;min-width:0;padding:6px 3px 2px;font-size:.8rem;font-weight:700}.filter-date-display[hidden]{display:none}.primary-stats{grid-template-columns:1fr 1fr;gap:7px;display:grid}.primary-stat-card{color:#167447;background:#edf8f2;border:1px solid #c7e8d3;border-radius:11px;flex-direction:column;align-items:flex-start;gap:6px;padding:13px 14px;line-height:1.2;display:flex}.primary-stat-label{color:#50665e;font-size:.76rem;font-weight:800;display:block}.primary-stat-value{color:#167447;font-variant-numeric:tabular-nums;display:block}.profit .primary-stat-value{color:#116d41;font-size:clamp(1.5rem,5.5vw,1.9rem);font-weight:900}.cash-profit .primary-stat-value{color:#116d41;font-size:clamp(1.1rem,4vw,1.35rem);font-weight:900}.sub-stats{color:#53646c;justify-content:space-around;align-items:center;padding:2px 0 0;display:flex}.sub-stats .stat-item{border-right:1px solid #d5e0e4;flex-direction:column;flex:1;align-items:center;gap:2px;padding:5px 4px;display:flex}.sub-stats .stat-item:last-child{border-right:none}.sub-stats .stat-item small{color:#8fa5ae;font-size:.67rem;line-height:1.2}.sub-stats .stat-item b{color:#4a5e67;font-variant-numeric:tabular-nums;font-size:.85rem;line-height:1.2}.action-grid{grid-template-columns:1fr 1fr;gap:9px;margin:0 0 14px;display:grid}.btn{color:#fff;cursor:pointer;border:none;border-radius:12px;font-weight:800}.btn-in,.btn-out{padding:21px 10px;font-size:1.08rem;box-shadow:0 3px 8px #2c3e5029}.btn-naya,.btn-credit-purchase{padding:13px 10px;font-size:.93rem}.btn-in{background:var(--green)}.btn-out{background:var(--red)}.btn-naya{background:#d9931b}.btn-credit-purchase{background:#76528c}.report-controls{border-top:2px solid #dfe6e9;gap:8px;margin:16px 0 12px;padding-top:14px;display:grid}.report-selector,.report-actions{align-items:center;gap:8px;display:grid}.report-selector{background:#fff;border:1px solid #dfe6e9;border-radius:12px;grid-template-columns:minmax(0,1fr);padding:12px}.report-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-report-actions{border-top:1px solid #dfe6e9;margin-top:22px;padding-top:18px}.report-selector label{color:var(--dark);font-size:.95rem;font-weight:900;line-height:1.2}.report-selector select{width:100%;min-width:0;max-width:100%;color:var(--dark);cursor:pointer;background:#fff;border:1px solid #cfd8dc;border-radius:8px;padding:11px 12px;font-size:.95rem;font-weight:800}.report-action-btn{width:100%;color:var(--dark);cursor:pointer;background:#fff;border:1px solid #cfd8dc;border-radius:8px;padding:10px 12px;font-size:.9rem;font-weight:700}.report-action-btn:hover,.report-selector select:hover{background:#fbfcfc;border-color:#95a5a6}.report-action-btn:focus-visible,.report-selector select:focus-visible{outline-offset:2px;outline:3px solid #16a08559}.settings-restore-btn{color:#7a5800;background:#fffcf0;border-color:#c89210}.settings-restore-btn:hover,.settings-restore-btn:focus{color:#5a3f00;background:#fef0c0;border-color:#a07000}.restore-file-input{display:none}.inventory-filter-panel{gap:8px;margin:0 0 12px;display:grid}.inventory-filter-panel[hidden]{display:none!important}.inventory-filter-panel label{color:var(--dark);font-size:.85rem;font-weight:800}.inventory-filter-panel select{width:100%;color:var(--dark);cursor:pointer;background:#fff;border:1px solid #cfd8dc;border-radius:8px;padding:11px 12px;font-size:.95rem;font-weight:800}.inventory-filter-panel select:focus-visible{outline-offset:2px;outline:3px solid #16a08559}.list-container{flex-direction:column;gap:10px;display:flex}.recent-empty-state{text-align:center;color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:24px 16px;font-size:.95rem;line-height:1.5}.bottom-tabs{z-index:8;width:100%;max-width:var(--mobile-shell-width);box-sizing:border-box;padding:10px 15px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe6e9;grid-template-columns:1fr 1fr;gap:8px;margin:0 auto;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 8px #00000014}.bottom-tab{color:var(--dark);cursor:pointer;background:#f8f9fa;border:1px solid #cfd8dc;border-radius:8px;padding:12px;font-size:1.08rem;font-weight:800}.bottom-tab.active{background:var(--dark);border-color:var(--dark);color:#fff}.item{cursor:pointer;background:#fff;border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px;display:grid;box-shadow:0 2px 5px #0000000d}.item:focus-visible{outline-offset:2px;outline:3px solid #16a08559}.item.naya{border-left:5px solid #f1c40f}.item.credit-purchase{border-left:5px solid #8e44ad}.item-main{overflow-wrap:anywhere;min-width:0}.item .amt-in,.item .amt-out,.item .amt-naya{white-space:nowrap;font-weight:700}.item .amt-in{color:var(--green)}.item .amt-out{color:var(--red)}.item .amt-naya{color:#f39c12}.item-right{justify-content:flex-end;align-items:center;gap:10px;min-width:max-content;display:flex}.recent-transaction{--transaction-accent:#607d8b}.item.recent-transaction{background:#fff;border:1px solid #e4eaec;border-radius:10px;gap:8px;padding:11px 9px 11px 27px;position:relative;box-shadow:0 1px 3px #2c3e500d}.recent-transaction:before{content:"";background:var(--transaction-accent);border-radius:50%;width:9px;height:9px;position:absolute;top:50%;left:11px;transform:translateY(-50%)}.recent-transaction-in{--transaction-accent:#159957}.recent-transaction-out{--transaction-accent:#d64545}.recent-transaction-debt{--transaction-accent:#e09a16}.recent-transaction-credit-purchase{--transaction-accent:#8e44ad}.recent-transaction-debt-settlement{--transaction-accent:#13a38e}.recent-transaction-credit-purchase-payment{--transaction-accent:#b15482}.recent-transaction-capital-in{--transaction-accent:#237f70}.recent-transaction-loan-in{--transaction-accent:#4d63c6}.recent-transaction-loan-repayment{--transaction-accent:#c75545}.recent-transaction-loan-given{--transaction-accent:#2377ba}.recent-transaction-borrower-settlement{--transaction-accent:#16a085}.recent-transaction-other-income{--transaction-accent:#48a05b}.recent-transaction-other-expense{--transaction-accent:#df6243}.recent-transaction-cogs{--transaction-accent:#7f8c8d}.recent-transaction .item-main strong,.recent-transaction .transaction-type-subtitle,.recent-transaction .transaction-date{display:block}.recent-transaction .transaction-type-subtitle{color:#66737a;text-transform:capitalize;margin-top:3px;font-size:.78rem;font-weight:600}.recent-transaction .transaction-date{color:#69777e;margin-top:4px}.recent-transaction .item-right{gap:15px;margin-left:5px}.recent-transaction .delete-btn{color:#95a2a8;background:0 0;border-radius:8px;width:38px;height:38px;font-size:1.25rem;font-weight:600}.recent-transaction .delete-btn:hover,.recent-transaction .delete-btn:focus-visible{color:#65757c;background:#f2f5f6}.delete-btn{color:#d63031;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:34px;height:34px;font-size:1.6rem;font-weight:900;line-height:1;display:inline-flex}.inventory-table-header{display:none}.inventory-item{cursor:default;border:1px solid #dce5e8;border-radius:12px;flex-direction:column;gap:9px;padding:15px;display:flex;box-shadow:0 2px 7px #2c3e5012}.inventory-name{min-width:0;color:var(--dark);overflow-wrap:anywhere;font-size:1.14rem;font-weight:900}.inventory-stock-progress{background:#e8eef0;border-radius:999px;width:100%;height:9px;margin:2px 0 5px;display:flex;overflow:hidden}.inventory-stock-progress-sold{background:var(--red)}.inventory-stock-progress-remaining{background:var(--green)}.inventory-metric{border-left:3px solid #dfe6e9;grid-template-columns:minmax(82px,1.18fr) repeat(3,minmax(0,1fr));align-items:center;gap:7px;min-width:0;padding:7px 8px;display:grid}.inventory-metric-in{border-left-color:var(--green)}.inventory-metric-out{border-left-color:var(--red)}.inventory-metric-balance{border-left-color:var(--dark);background:#f3f6f8;border-radius:8px;padding-top:10px;padding-bottom:10px}.inventory-metric-label{color:#607d8b;font-size:.76rem;font-weight:900;display:block}.inventory-metric-line{flex-direction:column;align-items:flex-end;gap:2px;min-width:0;line-height:1.25;display:flex}.inventory-value-label{color:#607d8b;text-align:right;font-size:.62rem;font-weight:800}.inventory-value{color:var(--dark);text-align:right;overflow-wrap:normal;white-space:nowrap;font-size:.78rem;font-weight:800}.inventory-quantity .inventory-value{font-size:.98rem}.inventory-metric-in .inventory-quantity .inventory-value{color:var(--green)}.inventory-metric-out .inventory-quantity .inventory-value{color:var(--red)}.inventory-metric-balance .inventory-value{color:var(--dark);font-size:.84rem;font-weight:900}.inventory-metric-balance .inventory-quantity .inventory-value{color:var(--dark);font-size:1.12rem}.inventory-empty{cursor:default;color:#607d8b;font-weight:700}@media (width<=420px){.inventory-metric{grid-template-columns:minmax(78px,1.12fr) 44px minmax(64px,1fr) minmax(60px,1fr);gap:4px;padding-left:7px;padding-right:6px}.inventory-value-label{font-size:.58rem}.inventory-value{font-size:.73rem}.inventory-metric-balance .inventory-value{font-size:.78rem}}.modal{box-sizing:border-box;z-index:12;background:#000000b3;justify-content:center;align-items:center;width:100%;height:100%;padding:15px;display:none;position:fixed;top:0;left:0}#entryModal{--entry-modal-top-offset:clamp(15px, 6vh, 48px);padding:var(--entry-modal-top-offset) 15px 15px;align-items:flex-start}#entryModal .modal-content{max-height:calc(100vh - var(--entry-modal-top-offset) - 15px)}.modal-alert{z-index:20;background:#000000c2}.modal-content{width:100%;max-width:var(--mobile-shell-width);box-sizing:border-box;background:#fff;border-radius:15px;flex-direction:column;gap:10px;max-height:calc(100vh - 30px);padding:25px;display:flex;position:relative;overflow-y:auto}.modal-content:not(.contact-modal-content)>h3{padding-right:38px}.modal-close-btn{width:36px;height:36px;color:var(--dark);cursor:pointer;background:#eef3f5;border:none;border-radius:50%;font-size:1.55rem;font-weight:800;line-height:1;position:absolute;top:10px;right:10px}.modal-close-btn:focus,.modal-close-btn:hover{background:#dde5e8}.delete-modal-content{text-align:center;max-width:320px}.delete-modal-content p{color:#555;margin:8px 0 18px}.warning-modal-content{text-align:center;max-width:360px}.warning-modal-content p{color:#555;margin:4px 0 14px;line-height:1.45}#note{margin:0}.entry-date-field{display:block}#entry-date{margin:0}.entry-method-field{flex-direction:column;flex-shrink:0;gap:8px;margin:2px 0 8px;display:none}.custom-select{width:100%;position:relative}.custom-select-trigger{box-sizing:border-box;width:100%;color:var(--dark);cursor:pointer;text-align:left;background:#fff;border:1px solid #cfd8dc;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:14px 12px;font-size:1rem;font-weight:700;display:flex}.custom-select-trigger:focus-visible{outline-offset:2px;outline:3px solid #16a08559}.custom-select-label{flex:1}.custom-select-arrow{flex-shrink:0;font-size:.8rem;transition:transform .15s}.custom-select.open .custom-select-arrow{transform:rotate(180deg)}.custom-select-options{z-index:50;background:#fff;border:1px solid #cfd8dc;border-radius:8px;display:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:hidden;box-shadow:0 4px 16px #0000001f}.custom-select.open .custom-select-options{display:block}.custom-select-option{box-sizing:border-box;width:100%;color:var(--dark);text-align:left;cursor:pointer;background:#fff;border:none;border-bottom:1px solid #e8ecee;padding:13px 12px;font-size:1rem;font-weight:600;display:block}.custom-select-option:last-child{border-bottom:none}.custom-select-option:hover,.custom-select-option:focus-visible{background:#f5f8f9}.custom-select-option.selected{color:var(--primary,#27ae60);font-weight:700}.other-money-in-panel,.other-simple-panel,.settlement-panel{display:none}.other-money-in-options{border:1px solid #dfe6e9;border-radius:10px;flex-direction:column;gap:10px;margin-bottom:10px;padding:10px 12px;display:flex}#money-in-settlement-options,#other-money-in-options{display:none}.other-money-in-options label{color:#2c3e50;align-items:center;gap:8px;font-weight:600;display:inline-flex}.other-money-in-options input{width:auto;margin:0;padding:0}#other-money-amount,#other-expense-amount,#settlement-amount{margin:0}.settlement-hint{color:#607d8b;min-height:1.2em;margin-top:6px;font-size:.86rem;font-weight:700;line-height:1.35}.credit-book-summary{grid-template-columns:1fr 1fr;gap:10px;display:grid}.sales-report-summary{background:#edf8f2;border:1px solid #b8dfc8;border-radius:11px;grid-template-columns:1fr 1fr;gap:0;margin-bottom:4px;overflow:hidden;box-shadow:0 2px 8px #27ae601f}.sales-report-summary .credit-book-total{box-shadow:none;background:0 0;border:none;border-radius:0}.sales-report-summary .credit-book-total:nth-child(3){border-bottom:1px solid #c7e8d3;grid-area:1/1/auto/-1;padding:14px 12px}.sales-report-summary .credit-book-total:nth-child(3) span{color:#50665e;font-size:.78rem}.sales-report-summary .credit-book-total:nth-child(3) strong{color:var(--green);font-size:1.35rem;font-weight:900}.sales-report-summary .credit-book-total:first-child{border-right:1px solid #c7e8d3;grid-area:2/1;padding:12px 10px}.sales-report-summary .credit-book-total:nth-child(2){grid-area:2/2;padding:12px 10px}.sales-report-summary .credit-book-total:first-child span,.sales-report-summary .credit-book-total:nth-child(2) span{color:#8fa5ae;font-size:.68rem}.sales-report-summary .credit-book-total:first-child strong,.sales-report-summary .credit-book-total:nth-child(2) strong,.sales-report-summary .credit-book-total:nth-child(2) strong.payable{color:#4a5e67;font-size:.88rem;font-weight:700}.sales-report-summary~.item[role=button]{border:1px solid #e1e8eb;box-shadow:0 1px 3px #2c3e500f}.sales-report-summary~.item[role=button]:not(.naya){border-left:5px solid var(--green)}.sales-report-summary~.item.naya{border-left:5px solid #f1c40f}.sales-report-summary~.item[role=button] .item-main small{color:#607d8b}.sales-report-summary~.item[role=button] .amt-in{color:var(--green)}.sales-report-summary~.item[role=button] .amt-naya{color:#f39c12}.credit-book-total{background:#fff;border:1px solid #dfe6e9;border-radius:8px;flex-direction:column;gap:5px;padding:12px;display:flex}.credit-book-total span{color:#607d8b;font-size:.78rem;font-weight:800}.credit-book-total strong{color:var(--dark);font-size:1.05rem}.credit-book-total strong.payable{color:#8e44ad}.credit-book-summary:not(.sales-report-summary){border:1px solid #dfe6e9;border-radius:11px;grid-template-columns:1.3fr 1fr;gap:0;overflow:hidden}.credit-book-summary:not(.sales-report-summary) .credit-book-total{box-shadow:none;border:none;border-radius:0}.credit-book-summary:not(.sales-report-summary) .credit-book-total:first-child{background:#f0fbf5;border-bottom:1px solid #d0e8da;border-right:1px solid #d0e8da;grid-area:1/1;padding:10px 12px}.credit-book-summary:not(.sales-report-summary) .credit-book-total:first-child span{color:#50665e;font-size:.72rem}.credit-book-summary:not(.sales-report-summary) .credit-book-total:first-child strong{color:var(--green);font-size:1.1rem;font-weight:900}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(3){background:#f0fbf5;border-bottom:1px solid #d0e8da;grid-area:1/2;padding:10px}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(3) span{color:#8fa5ae;font-size:.68rem}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(3) strong{color:var(--green);font-size:.88rem;font-weight:700}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(2){background:#fff8f7;border-right:1px solid #f0d5d2;grid-area:2/1;padding:10px 12px}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(2) span{color:#665050;font-size:.72rem}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(2) strong{color:var(--red);font-size:1.1rem;font-weight:900}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(4){background:#fff8f7;grid-area:2/2;padding:10px}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(4) span{color:#8fa5ae;font-size:.68rem}.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(4) strong,.credit-book-summary:not(.sales-report-summary) .credit-book-total:nth-child(4) strong.payable{color:var(--red);font-size:1.1rem;font-weight:900}.credit-book-section-title{border-left:4px solid var(--dark);color:var(--dark);background:#e7edf0;border-radius:6px;margin:14px 0 0;padding:10px 12px;font-size:1rem;font-weight:900}.credit-book-person{background:#fff;border:1px solid #edf1f2;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000000a}.credit-book-person-head,.credit-book-metrics,.credit-history-row{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:10px;display:grid}.credit-book-person-head{cursor:pointer;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;padding:14px;list-style:none}.credit-book-person-head::-webkit-details-marker{display:none}.credit-book-person[open] .credit-book-person-head{border-bottom:1px solid #edf1f2}.credit-book-person-head strong{color:var(--dark);overflow-wrap:anywhere}.credit-book-pending{color:#f39c12;text-align:right;flex-direction:column;align-items:flex-end;line-height:1.2;display:flex}.credit-book-pending small{color:#607d8b;font-size:.7rem;font-weight:800}.credit-book-pending strong{color:var(--green);white-space:nowrap;font-size:1.1rem;font-weight:900}.credit-book-pending.payable strong{color:var(--red)}.credit-book-pending.settled strong{color:var(--green)}.credit-book-chevron{border-bottom:2px solid #607d8b;border-right:2px solid #607d8b;width:8px;height:8px;transition:transform .16s;transform:rotate(45deg)}.credit-book-person[open] .credit-book-chevron{transform:rotate(225deg)}.credit-book-metrics{color:#607d8b;margin:12px 14px 0;font-size:.82rem;font-weight:700}.credit-history{border-top:1px solid #edf1f2;gap:7px;margin-top:10px;padding:10px 14px 14px;display:grid}.credit-history-title{color:#607d8b;text-transform:uppercase;font-size:.78rem;font-weight:900}.credit-history-row{color:var(--dark);font:inherit;text-align:left;cursor:pointer;background:#f8f9fa;border:none;border-radius:7px;padding:8px}.credit-history-row small{color:#607d8b;font-size:.78rem;display:block}.credit-history-amount{white-space:nowrap;font-weight:900}.credit-history-amount.credit{color:#f39c12}.credit-history-amount.settlement{color:var(--green)}.credit-history-amount.payable{color:#8e44ad}.credit-history-amount.payment{color:var(--red)}.credit-book-empty{cursor:default;color:#607d8b;font-weight:700}@media (width<=480px){.credit-book-summary:not(.sales-report-summary){grid-template-columns:1fr 1fr}}@media (width<=420px){.credit-book-metrics,.credit-history-row{grid-template-columns:1fr}.credit-history-amount{white-space:normal}}.line-item-header{color:#566573;grid-template-columns:2fr 1fr 1fr 1.25fr auto;gap:8px;margin-top:4px;margin-bottom:4px;font-size:.78rem;font-weight:600;display:none}.line-items-container{flex-direction:column;gap:10px;display:flex}.line-item-row{grid-template-columns:1fr 1fr;align-items:center;gap:8px;display:grid}.line-item-description{grid-column:1/-1}.line-item-rate,.line-item-quantity{grid-column:span 1}.line-item-row .line-item-input{margin:0;padding:10px;font-size:.92rem}.line-item-amount{background:#f8f9fa;border:1px solid #ddd;border-radius:8px;grid-column:1/span 1;justify-content:flex-start;align-items:center;min-height:40px;padding:0 8px 0 12px;font-size:.9rem;font-weight:700;display:flex}.line-item-remove{color:#c0392b;cursor:pointer;background:#ecf0f1;border:none;border-radius:8px;grid-column:2/span 1;justify-self:end;width:34px;height:34px;font-size:1.2rem;line-height:1}.btn-add-row{cursor:pointer;background:0 0;border:1px dashed #95a5a6;border-radius:8px;width:100%;margin-top:2px;padding:10px;font-size:.95rem}.grand-total-box{border:1px solid #dfe6e9;border-radius:10px;justify-content:space-between;align-items:center;margin-top:2px;margin-bottom:4px;padding:10px 12px;font-weight:600;display:flex}input{box-sizing:border-box;border:1px solid #ddd;border-radius:8px;width:100%;margin:8px 0;padding:15px;font-size:1rem}input[type=date]{appearance:none;color:inherit}input:read-only,input:disabled{color:#2c3e50;cursor:default;background:#f8f9fa}.modal-buttons{flex-wrap:wrap;gap:10px;margin-top:2px;display:flex}.modal-buttons button{font-size:1.05rem;font-weight:800}.btn-save{background:var(--dark);color:#fff;border:none;border-radius:8px;flex:2;order:1;padding:15px}.btn-save-bill{color:#fff;background:#256f5a;border:none;border-radius:8px;flex:1 0 100%;order:3;justify-content:center;align-items:center;gap:8px;min-height:49px;padding:15px;display:inline-flex}.btn-save-bill.is-loading:before{content:"";border:2px solid #ffffff73;border-top-color:#fff;border-radius:50%;flex:0 0 16px;width:16px;height:16px;animation:.75s linear infinite bill-button-spin}.btn-save-bill:disabled{opacity:.8;cursor:wait}.btn-cancel{background:#ccc;border:none;border-radius:8px;flex:1;order:2;padding:15px}.btn-delete-confirm{color:#fff;background:#e74c3c;border:none;border-radius:8px;flex:2;padding:15px}@keyframes bill-button-spin{to{transform:rotate(360deg)}}.install-banner{z-index:500;background:var(--green);color:#fff;justify-content:center;align-items:center;padding:10px 16px;display:flex;position:fixed;bottom:60px;left:0;right:0;box-shadow:0 -2px 8px #00000026}.install-banner[hidden]{display:none}.install-banner-content{max-width:var(--mobile-shell-width);align-items:center;gap:10px;width:100%;display:flex}#install-banner-text{flex:1;font-size:.9rem}.install-btn{color:var(--green);cursor:pointer;white-space:nowrap;background:#fff;border:none;border-radius:6px;padding:6px 14px;font-size:.9rem;font-weight:700}.install-dismiss-btn{color:#fff;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:1.1rem;line-height:1}
