.search-input{background:#fff}.checkbox-label,.toggle-label{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer}.customer-list,.product-list{display:flex;flex-direction:column;gap:12px}.customer-item,.product-item{overflow-wrap:anywhere}.selector-results{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto}.selector-option{width:100%;text-align:left!important;justify-content:flex-start!important;white-space:normal}.selector-option strong,.selector-option small{display:block}.selector-current{background:#eef4e7;padding:14px;border-radius:12px}.file-list{display:flex;flex-direction:column;gap:12px}.file-item{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.file-item strong{overflow-wrap:anywhere}.price-history{display:flex;flex-direction:column;gap:10px}.price-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);padding-top:10px}.inline-checkbox{display:flex;align-items:center;gap:10px;min-height:48px}details>summary{cursor:pointer;min-height:48px;padding:12px 0}table{width:100%;border-collapse:collapse;font-size:.85rem}th,td{padding:10px 6px;border-bottom:1px solid var(--border);text-align:left;overflow-wrap:anywhere}ul{padding-left:22px}label.row{min-height:48px}.field:has(>input[type=checkbox]){flex-direction:row;align-items:center;min-height:48px}.restore-summary{background:#f4f6ee;padding:16px;border-radius:12px}.restore-summary dt{color:var(--muted)}.restore-summary dd{margin:0;font-weight:650}.catalog-item .actions{margin-top:14px}.catalog-form{margin-top:12px}.catalog-item h2,.catalog-item h3{overflow-wrap:anywhere}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#243b32;background:#f7f8f2;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-size:17px;line-height:1.55;font-weight:400;--green: #176449;--green-dark: #104d37;--muted: #68766d;--border: #dce4da;--cream: #f7f8f2}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.25;overflow-wrap:anywhere}h1{font-size:2rem;font-weight:750;letter-spacing:-.035em}h2{font-size:1.25rem}h3{font-size:1.05rem}input,textarea,select{min-width:0;width:100%;min-height:52px;padding:12px 14px;border:1px solid #becbbf;border-radius:12px;background:#fff;color:#243b32}input::placeholder,textarea::placeholder{color:#778379;font-size:.94rem}input:disabled,textarea:disabled{background:#f0f2ed}input[type=date]{appearance:none;-webkit-appearance:none;max-width:100%}input[type=checkbox]{width:22px;min-height:22px;height:22px;accent-color:var(--green);flex-shrink:0}textarea{resize:vertical}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d09b38;outline-offset:3px}main:focus{outline:none}fieldset{border:0;padding:0;margin:0;min-width:0}svg{display:block;width:28px;height:28px}img{display:block}small,.small{font-size:.84rem}.muted{color:var(--muted)}.eyebrow{font-size:.72rem;letter-spacing:.1em;font-weight:750;text-transform:uppercase;color:var(--green)}.stack{display:flex;flex-direction:column;gap:18px}.row{display:flex;align-items:center;gap:12px;min-width:0}.spread{justify-content:space-between}.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:20px;box-shadow:0 3px 10px #273d2b03}.page-title{margin:5px 0 10px}.section-title{font-size:1.2rem}.section-heading{margin-top:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 18px;border:1px solid transparent;border-radius:12px;font-weight:650;line-height:1.3;text-align:center;overflow-wrap:anywhere;transition:background .16s,transform .16s}.button:active{transform:translateY(1px)}.button.primary{min-height:58px;background:var(--green);color:#fff}.button.primary:hover{background:var(--green-dark)}.button.secondary{background:#fff;border-color:#c6d5c7;color:var(--green)}.button.secondary:hover{background:#edf3e9}.button.ghost{background:transparent;color:var(--green)}.button.danger{background:#a5312c;color:#fff}.danger-text{color:#a5312c!important}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions>.button{flex:1}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label{font-size:.88rem;font-weight:650}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.badge,.count-badge{font-size:.75rem;background:#eff3e9;border-radius:7px;padding:5px 9px;color:#56674f;display:inline-block;overflow-wrap:anywhere}.count-badge{vertical-align:middle;margin-left:5px;padding:3px 8px}.chip-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.chip{border:1px solid #c8d6c2;border-radius:12px;background:#f0f5e9;min-height:48px;padding:10px 14px;color:#28583b;font-weight:600}.error,.success{padding:14px 16px;border-radius:12px;overflow-wrap:anywhere}.error{background:#fff0ed;border:1px solid #edc5bf;color:#922e29}.success{background:#eef6e9;color:#315d37;border:1px solid #d4e6ca}.empty-state{text-align:center;border:1px dashed #c5d3c0;border-radius:16px;background:#f2f5ed;padding:30px 18px;display:flex;flex-direction:column;gap:8px}.empty-state>p:first-of-type{font-weight:650}.empty-symbol{font-size:2rem;color:#7a9477}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#498366;flex-shrink:0}.app-shell{width:100%;max-width:660px;margin:auto;min-height:100dvh}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 24px;padding:calc(24px + env(safe-area-inset-top)) 0 21px;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;min-height:48px}.brand>span{font-size:1rem;font-weight:750;line-height:1.3}.brand small{display:block;font-size:.58rem;letter-spacing:.16em;color:var(--muted);font-weight:650;margin-top:3px}.connection-badge{font-size:.7rem;display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--border);border-radius:30px;background:#f0f4ea;white-space:nowrap}.main-content{padding:26px 24px 36px}.back-link{display:inline-flex;align-items:center;min-height:48px;color:var(--green);margin:-12px 0 14px;font-weight:600;font-size:.9rem}.app-footer{font-size:.6rem;letter-spacing:.12em;color:#849080;text-align:center;padding:14px 24px calc(24px + env(safe-area-inset-bottom))}.app-footer span{margin:0 8px}.home{gap:19px}.home-intro{padding:3px 0 6px}.home-intro h1{font-size:2.45rem;line-height:1.2;margin:13px 0 11px}.home-intro h1 span{color:var(--green)}.home-intro>.muted{font-size:.9rem}.today-card{display:grid;grid-template-columns:1fr 1.25fr;background:#ecf0e2;border:1px solid #e0e6d6;border-radius:16px;padding:18px 20px;gap:12px}.today-card>div+div{border-left:1px solid #d4ddc9;padding-left:20px}.today-card p{color:#62705b;margin-bottom:5px;font-size:.75rem}.today-card strong{font-size:1.36rem;font-weight:750;letter-spacing:-.025em}.today-card strong span{font-size:.8rem;font-weight:500;letter-spacing:0}.today-card .today-money{font-size:1.18rem;color:var(--green);overflow-wrap:anywhere}.new-invoice-link{display:flex;align-items:center;gap:14px;background:var(--green);color:#fff;border-radius:18px;padding:24px 20px;min-height:112px;box-shadow:0 7px 18px #17644916}.new-invoice-link:hover{background:var(--green-dark)}.new-icon{font-size:2rem;width:42px;height:42px;line-height:36px;font-weight:300;flex-shrink:0}.new-invoice-link>span:nth-child(2){flex:1}.new-invoice-link strong{display:block;font-size:1.3rem;font-weight:700}.new-invoice-link small{display:block;font-size:.75rem;color:#d2e7d9;margin-top:5px}.new-invoice-link>span:last-child{font-size:1.4rem}.home-menu{display:grid;grid-template-columns:1fr 1fr;gap:14px}.menu-card{display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--border);background:#fff;border-radius:17px;padding:19px;gap:8px;transition:border .15s,background .15s}.menu-card:hover{border-color:#9db99f;background:#fdfefa}.menu-card strong{font-size:1rem;font-weight:700}.menu-card small{font-size:.74rem;color:var(--muted);line-height:1.45}.menu-icon{color:#4a7755;background:#edf3e8;border-radius:12px;display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin-bottom:3px;flex-shrink:0}.menu-icon.peach{color:#966647;background:#f8eee4}.menu-icon.gold{color:#95833e;background:#f6f0d9}.menu-icon.blue{color:#55767f;background:#eaf1f3}.menu-wide{grid-column:1 / -1;flex-direction:row;align-items:center;gap:14px;min-height:100px}.menu-wide>span:nth-child(2){flex:1}.menu-wide strong,.menu-wide small{display:block}.menu-wide small{margin-top:5px}.menu-wide .menu-icon{margin:0}.menu-arrow{font-size:1.6rem;color:#9aac98}.backup-reminder{display:flex;align-items:center;gap:12px;background:#f7f0dd;border:1px solid #e8dab6;border-radius:14px;padding:15px;color:#79622e}.backup-reminder strong{font-size:.84rem}.backup-reminder small{display:block;font-size:.75rem;margin-top:3px}.local-note{display:flex;justify-content:center;align-items:flex-start;gap:8px;padding:5px 0;text-align:center;font-size:.73rem;color:var(--muted)}.local-note .status-dot{margin-top:8px}.demo-panel{border-top:1px solid var(--border);padding-top:10px;font-size:.85rem}.demo-panel summary{cursor:pointer;min-height:48px;display:flex;align-items:center;color:var(--muted)}.demo-panel p{margin:8px 0 12px}.offline-ready{font-size:.75rem;text-align:center;color:#527447;margin-top:18px}.offline-ready .status-dot{margin-right:5px}.update-notice{margin-top:16px}.confirm-dialog{max-width:min(440px,calc(100% - 32px));width:100%;border:1px solid var(--border);border-radius:20px;padding:24px;background:#fffefa;color:#243b32;box-shadow:0 16px 80px #132c3340;max-height:85dvh;overflow-y:auto}.confirm-dialog::backdrop{background:#20392d70;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.confirm-dialog h2{font-size:1.35rem}.dialog-content{margin:18px 0 24px;display:flex;flex-direction:column;gap:12px}.money-input-wrap{position:relative}.money-input-wrap input{padding-right:36px;text-align:right;font-weight:650}.money-input-wrap>span{position:absolute;right:14px;top:14px;color:var(--muted)}.invoice-line{padding:18px}.line-heading{align-items:flex-start;gap:5px}.line-heading>.row{gap:10px;align-items:flex-start;flex:1}.line-heading>.button{padding:7px 8px;min-height:48px;font-size:.8rem;margin-top:-6px}.line-number{display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;margin-top:1px;background:#eff3e8;color:#58744b;border-radius:6px;font-size:.7rem;font-weight:700}.line-inputs{display:grid;grid-template-columns:1.05fr 1fr;gap:14px;margin:18px 0}.quantity-input{display:flex;align-items:stretch;border:1px solid #becbbf;border-radius:12px;overflow:hidden;background:#fff;min-width:0}.quantity-input button{width:44px;min-width:38px;min-height:52px;flex-shrink:0;border:0;background:#f4f6ef;font-size:1.35rem;color:var(--green);padding:0}.quantity-input input{padding:8px 0;width:100%;min-width:0;border:0;text-align:center;border-radius:0;font-weight:650}.line-total{border-top:1px solid #edf0e9;padding-top:14px;font-size:.88rem}.line-total strong{font-size:1.04rem}.update-price{font-size:.75rem!important;padding:10px 0!important;margin-bottom:-8px;text-align:left!important}.favorites p{font-size:.8rem}.invoice-save-panel{background:#e9efdf;border:1px solid #d6e1cd;border-radius:18px;padding:19px;display:flex;flex-direction:column;gap:16px}.invoice-total{font-size:1.55rem;letter-spacing:-.03em;color:var(--green);overflow-wrap:anywhere;text-align:right}.invoice-save-panel>.small{text-align:center;font-size:.72rem}.success-page{text-align:center;padding:28px 0;align-items:stretch;gap:20px}.success-mark{margin:auto;width:76px;height:76px;border-radius:50%;background:#e3efd9;color:var(--green);font-size:2.4rem;line-height:76px}.grand-total{font-size:2.2rem;font-weight:750;color:var(--green);margin:8px 0 20px;overflow-wrap:anywhere}.history-item{display:flex;flex-direction:column;gap:14px}.history-item h2{font-size:1.15rem}.history-item .badge{max-width:65%}.history-item strong{font-size:1.23rem;color:var(--green)}.history-list{gap:12px}.receipt{padding:24px;position:relative}.receipt-header{text-align:center;padding:0 0 20px;border-bottom:1px dashed #ccd6c7}.receipt-header img{margin:0 auto 12px}.receipt-header h2{margin:12px 0 6px}.receipt-customer{padding-bottom:18px;border-bottom:1px dashed #ccd6c7}.receipt-customer h2{margin:4px 0}.receipt-line h3{font-size:1rem;margin-bottom:8px}.receipt-line>.row{font-size:.8rem;align-items:flex-start}.receipt-line strong{white-space:nowrap;font-size:.92rem}.receipt-total{border-top:1px dashed #ccd6c7;padding-top:20px;font-weight:650}.receipt-total strong{font-size:1.45rem;color:var(--green)}@media(min-width:760px){body{background:#eaf0e5}.app-shell{background:var(--cream);box-shadow:0 0 80px #1b3e2410}.main-content{padding:34px 40px 42px}.app-header{margin:0 40px}.home-intro h1{font-size:2.9rem}.home-menu{gap:18px}.menu-card{padding:24px}.today-card{padding:22px}.new-invoice-link{padding:26px;min-height:122px}}@media(max-width:370px){:root{font-size:16px}.app-header{margin:0 16px}.main-content{padding-left:16px;padding-right:16px}.brand{gap:6px}.connection-badge{padding:6px 8px;font-size:.65rem}.card,.menu-card{padding:16px}.line-inputs{gap:10px}.quantity-input button{min-width:34px}.form-grid{gap:10px}.home-intro h1{font-size:2.2rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
