*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0f1117;color:#e2e8f0;height:100vh;overflow:hidden}.top-bar{background:#1a1d27;padding:0 10px 0 2px;display:flex;align-items:center;height:58px;flex-shrink:0;border-bottom:1px solid #2d3748}.btn-settings{background:none;border:none;color:#718096;font-size:3.2rem;cursor:pointer;padding:0 0 8px;width:58px;height:58px;border-radius:0;transition:all .15s;display:flex;align-items:center;justify-content:center;font-family:inherit;line-height:1}.btn-settings:hover{color:#e2e8f0;background:#2d3748}.app-title{font-size:.82rem;color:#4a5568;font-weight:500;letter-spacing:.04em}.top-bar-right{margin-left:auto;display:flex;align-items:center;gap:6px;width:calc(50vw - 10px);min-width:fit-content}.settings-wrapper{position:relative}.settings-popover{display:none;position:absolute;top:100%;left:0;margin-top:4px;background:#1a1d27;border:1px solid #2d3748;border-radius:8px;padding:4px;width:232px;z-index:200;box-shadow:0 8px 24px #0006}.settings-popover.open{display:flex;flex-direction:column}.popover-item{background:none;border:none;color:#e2e8f0;font-size:1.05rem;font-weight:500;padding:12px 16px;border-radius:6px;cursor:pointer;text-align:left;font-family:inherit;transition:background .15s;display:flex;align-items:center;gap:10px}.popover-item:hover{background:#2d3748}.popover-item.popover-danger{color:#fc8181}.popover-item.popover-danger:hover{background:#2d1515}.popover-divider{height:1px;background:#2d3748;margin:2px 0}.client-group{display:inline-flex;align-items:center;gap:0;border:1.5px solid #276749;border-radius:10px;padding:3px 3px 3px 0;flex:1;min-width:232px}.client-group .controls-label{font-size:.88rem;font-weight:600;color:#68d391;white-space:nowrap;padding:0 12px}.custom-select{position:relative;flex:1;min-width:0}.custom-select-display{display:flex;align-items:center;justify-content:space-between;background:#0f1117;color:#e2e8f0;padding:6px 12px;font-size:.88rem;height:34px;border-radius:6px;cursor:pointer;min-width:0;-webkit-user-select:none;user-select:none}.custom-select-display span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.custom-select-arrow{font-size:1.3rem;margin-left:8px;color:#68d391;flex-shrink:0;line-height:1}.custom-select-inline-search{width:100%;background:#0f1117;border:1px solid #4299e1;color:#e2e8f0;padding:6px 12px;font-size:.88rem;height:34px;border-radius:6px;outline:none;font-family:inherit;box-sizing:border-box}.custom-select-dropdown{display:none;position:absolute;top:100%;left:0;right:0;background:#1a1d27;border:1px solid #2d3748;border-radius:8px;margin-top:4px;z-index:999;box-shadow:0 8px 24px #0006;max-height:240px;overflow-y:auto}.custom-select-dropdown.open{display:block}.custom-select-option{padding:10px 14px;color:#e2e8f0;cursor:pointer;font-size:.9rem;transition:background .15s}.custom-select-option:hover,.custom-select-option.active{background:#2b6cb0;color:#fff}.custom-select-option.all-option{color:#68d391;font-weight:600;border-bottom:1px solid #2d3748}.btn-client-info{background:none;border:none;color:#68d391;font-size:1.3rem;cursor:pointer;padding:0 10px;height:34px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s;border-radius:0 7px 7px 0;flex-shrink:0}.btn-client-info:hover{background:#2767494d}.btn-new-client{background:#276749;color:#68d391;width:40px;height:40px;border-radius:8px;border:none;cursor:pointer;font-size:1.2rem;font-weight:600;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;margin-left:0;padding:0}.btn-new-client:hover{background:#2f855a}.badge{background:#2d3748;color:#a0aec0;padding:7px 12px;border-radius:6px;font-size:.78rem;font-weight:500;height:34px;display:inline-flex;align-items:center}.badge.pending{background:#744210;color:#f6ad55}.badge.approved-badge{background:#1a4731;color:#68d391}.toolbar-actions{background:#13151e;border-bottom:1px solid #2d3748;padding:6px 10px;display:flex;gap:6px;flex-shrink:0}.toolbar-actions .bar-btn{flex:1;text-align:center}.toolbar-tabs{background:#13151e;border-bottom:1px solid #2d3748;flex-shrink:0}.tabs{display:flex;gap:0;align-items:stretch;height:40px}.tab{flex:1;font-size:.85rem;color:#718096;cursor:pointer;border-bottom:2px solid transparent;transition:all .15s;display:flex;align-items:center;justify-content:center}.tab:hover{color:#e2e8f0}.tab.active{color:#e2e8f0;border-bottom-color:#4299e1}.toolbar-row3{background:#1a1d27;border-bottom:1px solid #2d3748;padding:6px 10px;display:flex;flex-shrink:0}.summary-stat{display:flex;flex-direction:column;align-items:center;gap:1px;flex:1}.summary-label{font-size:.72rem;color:#718096;text-transform:uppercase;letter-spacing:.05em}.summary-value{font-size:.88rem;font-weight:600;color:#e2e8f0}.stat-pending{background:#74421040;border-radius:8px;padding:4px 12px}.stat-pending .summary-label,.stat-pending .summary-value{color:#f6ad55}.stat-approved{background:#1a473159;border-radius:8px;padding:4px 12px}.stat-approved .summary-label,.stat-approved .summary-value{color:#68d391}.main-content{flex:1;overflow:hidden;display:flex;flex-direction:column}.tab-panel{display:none;flex:1;overflow-y:auto;padding:12px 10px}.tab-panel.active{display:flex;flex-direction:column;gap:10px}.client-group-header{font-size:1.1rem;font-weight:700;color:#4299e1;letter-spacing:.04em;padding:18px 4px 8px;border-bottom:2px solid #2b6cb0;margin-top:16px}.client-group-header:first-child{margin-top:0}.modal-client-group{margin-bottom:12px}.modal-client-header{font-size:.82rem;font-weight:700;color:#68d391;text-transform:uppercase;letter-spacing:.06em;padding:6px 0 4px;border-bottom:1px solid #276749;margin-bottom:4px}.card{background:#1a1d27;border:1px solid #2d3748;border-radius:8px;padding:16px;transition:border-color .2s}.card.approved-card{border-color:#276749}.card:hover{border-color:#4a5568}.card-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}.card-date{font-size:.78rem;color:#718096;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.card-id{font-size:.72rem;color:#4a5568}.description label{font-size:.72rem;color:#718096;display:block;margin-bottom:3px}textarea.invoice-desc{width:100%;max-width:100%;box-sizing:border-box;background:#0f1117;border:1px solid #2d3748;color:#e2e8f0;padding:8px;border-radius:6px;font-size:.85rem;resize:vertical;min-height:60px;font-family:inherit}textarea.invoice-desc:focus{outline:none;border-color:#4299e1}.meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0}.meta-item{display:flex;flex-direction:column;gap:3px}.meta-item label{font-size:.72rem;color:#718096}.meta-item input{width:90px;background:#0f1117;border:1px solid #2d3748;color:#e2e8f0;padding:5px 8px;border-radius:6px;font-size:.85rem}.meta-item input:focus{outline:none;border-color:#4299e1}.amount{font-size:1rem;font-weight:600;color:#68d391;margin-top:3px}.actions{display:flex;gap:6px;align-items:center;margin-top:10px}.btn{padding:6px 14px;border-radius:6px;border:none;cursor:pointer;font-size:.82rem;font-weight:500;transition:all .15s;font-family:inherit}.btn-save{background:#2d3748;color:#e2e8f0}.btn-save:hover{background:#4a5568}.btn-approve{background:#276749;color:#68d391}.btn-approve:hover{background:#2f855a}.btn-unapprove{background:#744210;color:#f6ad55}.btn-unapprove:hover{background:#975a16}.btn-delete{margin-left:auto;background:#2d1515;color:#fc8181}.btn-delete:hover{background:#481a1a}.saved-flash{font-size:.72rem;color:#68d391;opacity:0;transition:opacity .3s}.saved-flash.show{opacity:1}.inv-card{background:#1a1d27;border:1px solid #2d3748;border-radius:8px;padding:16px;display:flex;align-items:center;gap:16px}.inv-card.paid{border-color:#276749}.inv-info{flex:1}.inv-id{font-size:.78rem;color:#4a5568}.inv-label{font-size:1rem;font-weight:600;margin:2px 0}.inv-meta{font-size:.82rem;color:#718096}.inv-amount{font-size:1.1rem;font-weight:700;color:#68d391;white-space:nowrap}.inv-actions{display:flex;gap:6px}.bar-btn{padding:0 14px;height:34px;border-radius:6px;border:none;cursor:pointer;font-size:.82rem;font-weight:500;font-family:inherit;display:inline-flex;align-items:center;justify-content:center}.bar-btn.primary{background:#2b6cb0;color:#bee3f8}.bar-btn.primary:hover{background:#2c5282}.bar-btn.secondary{background:#2d3748;color:#a0aec0}.bar-btn.secondary:hover{background:#4a5568}.btn-view{background:#2b6cb0;color:#bee3f8}.btn-view:hover{background:#2c5282}.btn-paid{background:#276749;color:#68d391}.btn-paid:hover{background:#2f855a}.modal-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;z-index:100;align-items:center;justify-content:center}.modal-overlay.open{display:flex}.modal{background:#1a1d27;border:1px solid #2d3748;border-radius:10px;padding:24px;width:560px;max-height:80vh;display:flex;flex-direction:column;gap:16px}.modal h2{font-size:1rem;font-weight:600}.modal label{font-size:.78rem;color:#718096;display:block;margin-bottom:4px}.modal input,.modal textarea{width:100%;background:#0f1117;border:1px solid #2d3748;color:#e2e8f0;padding:8px 10px;border-radius:6px;font-size:.9rem;font-family:inherit}.modal input:focus,.modal textarea:focus{outline:none;border-color:#4299e1}.modal textarea{resize:vertical;min-height:50px}.modal-entries{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.modal-entry{display:flex;align-items:flex-start;gap:10px;padding:10px;background:#0f1117;border-radius:6px;border:1px solid #2d3748;cursor:pointer}.modal-entry:hover{border-color:#4299e1}.modal-entry-info{flex:1}.modal-entry-info .desc{font-size:.85rem}.modal-entry-info .meta{font-size:.75rem;color:#718096;margin-top:2px}.modal-entry-info .amount{font-size:.85rem;color:#68d391;font-weight:600}.modal-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #2d3748;padding-top:14px}.modal-total{margin-right:auto;font-size:.9rem;color:#68d391;font-weight:600;align-self:center}.billing-type-toggle{display:inline-flex;border-radius:6px;overflow:hidden;border:1px solid #2d3748}.billing-type-toggle button{padding:4px 12px;font-size:.75rem;border:none;cursor:pointer;background:#0f1117;color:#718096;transition:all .15s;font-family:inherit}.billing-type-toggle button.active{background:#2b6cb0;color:#bee3f8}.client-saved{font-size:.72rem;color:#68d391;text-align:center;height:14px}.slug-preview{font-size:.72rem;color:#4a5568;margin-top:2px}.empty{text-align:center;padding:48px;color:#4a5568}.theme-toggle{display:inline-flex;border-radius:6px;overflow:hidden;border:1px solid #2d3748}.theme-toggle button{padding:6px 16px;font-size:.82rem;border:none;cursor:pointer;background:#0f1117;color:#718096;transition:all .15s;font-family:inherit;font-weight:500}.theme-toggle button.active{background:#2b6cb0;color:#bee3f8}[data-theme=light] body{background:#f7fafc;color:#1a202c}[data-theme=light] .top-bar{background:#fff;border-bottom-color:#e2e8f0}[data-theme=light] .btn-settings{color:#4a5568}[data-theme=light] .btn-settings:hover{color:#1a202c;background:#edf2f7}[data-theme=light] .app-title{color:#a0aec0}[data-theme=light] .settings-popover{background:#fff;border-color:#e2e8f0;box-shadow:0 8px 24px #0000001f}[data-theme=light] .popover-item{color:#1a202c}[data-theme=light] .popover-item:hover{background:#edf2f7}[data-theme=light] .popover-item.popover-danger{color:#e53e3e}[data-theme=light] .popover-item.popover-danger:hover{background:#fff5f5}[data-theme=light] .popover-divider{background:#e2e8f0}[data-theme=light] .client-group{border-color:#38a169}[data-theme=light] .custom-select-display{background:#fff;color:#1a202c}[data-theme=light] .custom-select-dropdown{background:#fff;border-color:#e2e8f0}[data-theme=light] .custom-select-inline-search{background:#fff;border-color:#3182ce;color:#1a202c}[data-theme=light] .custom-select-option{color:#1a202c}[data-theme=light] .custom-select-option:hover{background:#3182ce;color:#fff}[data-theme=light] .btn-client-info{border-left-color:#38a169}[data-theme=light] .toolbar-actions,[data-theme=light] .toolbar-tabs{background:#fff;border-bottom-color:#e2e8f0}[data-theme=light] .toolbar-row3{background:#f7fafc;border-bottom-color:#e2e8f0}[data-theme=light] .summary-label{color:#a0aec0}[data-theme=light] .summary-value{color:#1a202c}[data-theme=light] .main-content{background:#f7fafc}[data-theme=light] .tab{color:#a0aec0}[data-theme=light] .tab:hover,[data-theme=light] .tab.active{color:#1a202c}[data-theme=light] .card{background:#fff;border-color:#e2e8f0}[data-theme=light] .card:hover{border-color:#cbd5e0}[data-theme=light] .card.approved-card{border-color:#38a169}[data-theme=light] .card-date{color:#a0aec0}[data-theme=light] .card-id{color:#cbd5e0}[data-theme=light] .description label{color:#a0aec0}[data-theme=light] textarea.invoice-desc{background:#f7fafc;border-color:#e2e8f0;color:#1a202c}[data-theme=light] textarea.invoice-desc:focus{border-color:#4299e1}[data-theme=light] .meta-item label{color:#a0aec0}[data-theme=light] .meta-item input{background:#f7fafc;border-color:#e2e8f0;color:#1a202c}[data-theme=light] .meta-item input:focus{border-color:#4299e1}[data-theme=light] .btn-save{background:#edf2f7;color:#1a202c}[data-theme=light] .btn-save:hover{background:#e2e8f0}[data-theme=light] .btn-delete{background:#fff5f5;color:#e53e3e}[data-theme=light] .btn-delete:hover{background:#fed7d7}[data-theme=light] .badge{background:#edf2f7;color:#718096}[data-theme=light] .badge.pending{background:#fefcbf;color:#975a16}[data-theme=light] .badge.approved-badge{background:#c6f6d5;color:#276749}[data-theme=light] .inv-card{background:#fff;border-color:#e2e8f0}[data-theme=light] .inv-id{color:#cbd5e0}[data-theme=light] .inv-meta{color:#a0aec0}[data-theme=light] .modal{background:#fff;border-color:#e2e8f0}[data-theme=light] .modal input,[data-theme=light] .modal textarea{background:#f7fafc;border-color:#e2e8f0;color:#1a202c}[data-theme=light] .modal label{color:#a0aec0}[data-theme=light] .modal-footer{border-top-color:#e2e8f0}[data-theme=light] .modal-entry{background:#f7fafc;border-color:#e2e8f0}[data-theme=light] .bar-btn.secondary{background:#edf2f7;color:#4a5568}[data-theme=light] .bar-btn.secondary:hover{background:#e2e8f0}[data-theme=light] .billing-type-toggle{border-color:#e2e8f0}[data-theme=light] .billing-type-toggle button{background:#f7fafc;color:#a0aec0}[data-theme=light] .theme-toggle{border-color:#e2e8f0}[data-theme=light] .theme-toggle button{background:#f7fafc;color:#a0aec0}
