:root{--navy: #0b1f3a;--accent: #f5a623;color-scheme:light}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f6f8;color:#1a1a1a}a{color:inherit;text-decoration:none}.muted{color:#8a8f98;font-size:.9rem}.error{color:#d0021b;font-size:.9rem}.auth-screen{max-width:420px;margin:0 auto;padding:2rem 1.25rem;min-height:100vh}.auth-form{display:flex;flex-direction:column;gap:1rem}.auth-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.auth-form input{padding:.65rem .75rem;border:1px solid #d0d3d9;border-radius:8px;font-size:1rem}button{background:var(--navy);color:#fff;border:none;border-radius:8px;padding:.75rem 1rem;font-size:1rem;cursor:pointer}button.secondary{background:#e6e8eb;color:#1a1a1a}button:disabled{opacity:.6;cursor:not-allowed}.app-shell{max-width:480px;margin:0 auto;min-height:100vh;background:#f5f6f8;position:relative}.app-content{padding-bottom:1.5rem}.app-content.with-bottom-nav{padding-bottom:5rem}.app-header{background:var(--navy);color:#fff;display:flex;align-items:center;gap:.75rem;padding:1rem;position:sticky;top:0;z-index:5}.app-header-icon-btn{background:transparent;border:none;color:#fff;font-size:1.25rem;padding:.25rem .5rem;cursor:pointer}.app-header-title{font-size:1.1rem;margin:0;font-weight:600}.screen-body{padding:1rem;display:flex;flex-direction:column;gap:.75rem}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:480px;display:flex;background:#fff;border-top:1px solid #e2e4e8;z-index:10}.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.5rem 0 .65rem;font-size:.75rem;color:#8a8f98}.bottom-nav-item.active{color:var(--navy);font-weight:600}.bottom-nav-icon{font-size:1.25rem}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:20;display:flex}.drawer{width:78%;max-width:320px;background:#fff;height:100%;overflow-y:auto;display:flex;flex-direction:column}.drawer-header{background:var(--navy);color:#fff;padding:1.25rem 1rem;display:flex;align-items:center;gap:.75rem}.drawer-header-link{cursor:pointer}.drawer-header-link:active{background:#ffffff14}.drawer-logo{width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.25rem;flex-shrink:0}.drawer-name{font-weight:600;font-size:.95rem}.drawer-email{font-size:.85rem;opacity:.9}.drawer-menu{display:flex;flex-direction:column}.drawer-item{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;font-size:.95rem;color:#1a1a1a}button.drawer-item{width:100%;background:#fff;border:none;border-radius:0;font-weight:400;text-align:left}button.drawer-item.active{background:#eef0f3;font-weight:600}.drawer-count{color:#8a8f98;font-size:.85rem}.drawer-chevron{color:#c7c7c7}.drawer-divider{height:8px;background:#f0f1f3}.drawer-footer{padding:1rem;margin-top:auto}.drawer-logout{width:100%}.search-bar{width:100%;padding:.65rem .85rem;border:1px solid #d0d3d9;border-radius:10px;font-size:.95rem;background:#fff}.status-filter-tabs{display:flex;gap:.4rem}.status-filter-tab{flex:1;background:#fff;color:#4a4f57;border:1px solid #e2e4e8;padding:.45rem .4rem;font-size:.85rem;border-radius:8px}.status-filter-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}.archive-toggle{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:#4a4f57}.summary-total{display:flex;align-items:center;gap:.5rem;padding:.6rem .1rem;font-weight:600}.summary-total-icon{color:#8a8f98}.summary-total-label{flex:1}.document-list,.customer-list{display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden}.document-row,.customer-row,.statement-download-row{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border-bottom:1px solid #f0f1f3;background:#fff}.document-row:last-child,.customer-row:last-child{border-bottom:none}.document-row-main{flex:1;min-width:0}.document-row-title,.customer-row-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-row-sub{font-size:.85rem;color:#8a8f98}.document-row-amounts{text-align:right}.document-row-total{font-weight:600}.document-row-date{font-size:.8rem;color:#8a8f98}.document-row-chevron{color:#c7c7c7;font-size:1.1rem}.fab{position:fixed;bottom:5.5rem;right:1.25rem;background:var(--accent);color:var(--navy);border-radius:999px;padding:.85rem 1.25rem;font-weight:600;display:inline-flex;align-items:center;gap:.4rem;box-shadow:0 4px 12px #0003;border:none;cursor:pointer}.fab-plus{font-size:1.1rem}.new-customer-form{position:fixed;bottom:5.5rem;left:1rem;right:1rem;max-width:448px;margin:0 auto;background:#fff;border-radius:12px;padding:1rem;box-shadow:0 4px 16px #0003;display:flex;gap:.5rem}.new-customer-form input{flex:1;padding:.5rem .75rem;border:1px solid #d0d3d9;border-radius:8px}.catalog-item-form{display:flex;flex-direction:column;gap:.5rem;background:#fff;border-radius:12px;padding:1rem}.settings-form{display:flex;flex-direction:column;gap:.75rem;background:#fff;border-radius:12px;padding:1rem;margin-bottom:1rem}.settings-form h3{margin:0}.logo-preview{max-width:160px;max-height:80px;object-fit:contain}.catalog-item-row{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;border-bottom:1px solid #f0f1f3}.catalog-item-row:last-child{border-bottom:none}.catalog-item-price-input{width:4.5rem;padding:.4rem .5rem;border:1px solid #d0d3d9;border-radius:8px;text-align:right}.export-format-badge{background:#eef0f3;color:#4a4f57;font-size:.75rem;font-weight:600;border-radius:6px;padding:.15rem .5rem}.quick-add-row{display:flex;gap:.5rem}.quick-add-row select{flex:1}.document-detail-card{background:#fff;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.4rem}.document-detail-row{display:flex;align-items:center;gap:.5rem}.document-detail-status{text-transform:capitalize;font-weight:600}.paid-stamp{margin-left:auto;color:#34a853;border:2px solid #34a853;border-radius:6px;padding:.1rem .5rem;font-weight:700;transform:rotate(-6deg)}.document-detail-customer{font-size:1.05rem;font-weight:600;margin:.25rem 0 0}.line-items-table{width:100%;border-collapse:collapse;margin-top:.75rem;font-size:.78rem}.line-items-table th{text-align:left;color:#8a8f98;font-weight:500;border-bottom:1px solid #f0f1f3;padding:0 .4rem .4rem 0;white-space:nowrap}.line-items-table td{padding:.4rem .4rem .4rem 0;border-bottom:1px solid #f7f7f8}.line-items-table th:last-child,.line-items-table td:last-child{text-align:right;padding-right:0}.line-items-table th:nth-child(2),.line-items-table td:nth-child(2){text-align:right;width:2.5rem}.meta-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:#8a8f98;margin-top:.5rem}.invoice-bill-to p{margin:.15rem 0}.archived-badge{background:#eef0f3;color:#4a4f57;font-size:.75rem;border-radius:6px;padding:.1rem .5rem}.revision-badge{color:#8a8f98;font-size:.8rem}.edit-document-link{display:block;text-align:center;background:#fff;border:1px solid #d0d3d9;border-radius:8px;padding:.65rem;font-weight:600;color:#0b1f3a}.payment-details-block{margin-top:.75rem;padding-top:.5rem;border-top:1px solid #f0f1f3}.payment-details-row{display:flex;justify-content:space-between;font-size:.85rem;padding:.1rem 0}.export-menu{display:flex;gap:.5rem}.export-menu button{flex:1;padding:.6rem .5rem;font-size:.85rem}.document-detail-totals{margin-top:.5rem;text-align:right;color:#4a4f57}.document-detail-total-line{font-weight:700;color:#1a1a1a;font-size:1.05rem}.document-detail-actions{display:flex;gap:.5rem}.document-detail-actions button{flex:1}.document-detail-actions button.button-danger{flex:0 0 auto;background:#fff;color:#d0021b;border:1px solid #d0021b;padding-left:1rem;padding-right:1rem}.template-picker-row{display:flex;align-items:center;gap:.5rem}.template-picker-row select{flex:1}.template-swatch{width:1.75rem;height:1.75rem;border-radius:6px;flex-shrink:0;border:1px solid rgba(0,0,0,.1)}.screen-body label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.screen-body select,.screen-body input,.screen-body textarea{padding:.6rem .75rem;border:1px solid #d0d3d9;border-radius:8px;font-size:1rem;font-family:inherit}.line-item-card{background:#fff;border-radius:10px;padding:.65rem;display:flex;flex-direction:column;gap:.4rem;border:1px solid #eef0f3}.line-item-desc-row{display:flex;gap:.4rem;align-items:center}.line-item-desc-row input{flex:1}.line-item-datetime-row,.line-item-qtyprice-row{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.line-item-datetime-row label,.line-item-qtyprice-row label{display:flex;flex-direction:column;gap:.15rem;font-size:.7rem;color:#8a8f98;text-transform:uppercase;letter-spacing:.02em}.line-item-datetime-row input,.line-item-qtyprice-row input{width:100%;min-width:0;text-transform:none;font-size:.95rem;color:#1a1a1a}.remove-line-item{background:transparent;color:#d0021b;padding:.25rem}.statement-download-icon{font-size:1.5rem}.statement-download-cloud{color:var(--navy);font-size:1.25rem}.filter-toggle{width:100%;background:#fff;color:#1a1a1a;display:flex;justify-content:space-between;border:1px solid #e2e4e8}.filter-panel{background:#fff;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.75rem}@media(min-width:768px){.app-shell,.bottom-nav{max-width:720px}.new-customer-form{max-width:688px}}@media(min-width:1100px){body{background:#e9ebef}.app-shell.app-shell-desktop{max-width:1120px;display:flex;align-items:flex-start;gap:1.5rem;padding:1.5rem 1.5rem 0;background:transparent}.app-shell.app-shell-desktop .app-content{flex:1;min-width:0;background:#f5f6f8;border-radius:12px;padding-bottom:1.5rem}.app-shell.app-shell-desktop .app-content.with-bottom-nav{padding-bottom:1.5rem}.app-shell.app-shell-desktop .bottom-nav{position:sticky;top:1.5rem;left:auto;transform:none;width:220px;max-width:220px;flex:0 0 220px;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #e2e4e8;border-radius:12px;padding:1rem 0;gap:.15rem;order:-1}.app-shell.app-shell-desktop .bottom-nav-item{flex-direction:row;justify-content:flex-start;gap:.75rem;padding:.65rem 1.25rem;font-size:.95rem}.app-shell.app-shell-desktop .bottom-nav-icon{font-size:1.15rem}}
