:root{--bg: #f5f6f8;--surface: #ffffff;--border: #e2e5ea;--border-strong: #cfd4dc;--text: #1d2330;--text-muted: #6b7280;--primary: #2f6fed;--primary-hover: #245bca;--danger: #d64545;--danger-hover: #b83a3a;--success: #2e9e6b;--radius: 8px;--shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0 0 .5em;font-weight:600;line-height:1.25}a{color:var(--primary)}.muted{color:var(--text-muted)}.error-text{color:var(--danger)}.app{min-height:100%;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:56px;background:var(--surface);border-bottom:1px solid var(--border)}.app-title{font-weight:600;font-size:16px}.app-header-right{display:flex;align-items:center;gap:16px}.app-main{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:24px}.center-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:32px;text-align:center;max-width:360px;width:100%}.auth-card h1{font-size:18px}.spinner{width:32px;height:32px;border:3px solid var(--border-strong);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px}.tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;border-bottom:2px solid transparent;padding:10px 16px;margin-bottom:-1px;font-size:14px;font-weight:500;color:var(--text-muted);cursor:pointer}.tab:hover{color:var(--text)}.tab-active{color:var(--primary);border-bottom-color:var(--primary)}.tab-panel{display:flex;flex-direction:column;gap:20px}.angela{display:block}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;font-size:14px;font-weight:500;line-height:1;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;transition:background-color .12s ease,border-color .12s ease}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}.btn-secondary:hover:not(:disabled){background:#f0f1f4}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:var(--danger-hover)}.btn-sm{padding:5px 10px;font-size:13px}.row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}td.row-actions{white-space:nowrap}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse}table.table{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}table.table thead th:first-child{border-top-left-radius:var(--radius)}table.table thead th:last-child{border-top-right-radius:var(--radius)}th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:middle}th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);background:#fafbfc;font-weight:600}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:#fafbfc}.table-empty{text-align:center;color:var(--text-muted);padding:32px 16px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.field label,.field-label{font-size:13px;font-weight:500;color:var(--text)}.field-control{display:block;width:100%}.field-note{margin:0;font-size:13px;color:var(--text-muted)}.form-error{color:var(--danger);font-size:13px;margin:8px 0 0}input,select,textarea{width:100%;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);padding:8px 10px}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2f6fed26}textarea{min-height:72px;resize:vertical}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px;margin-bottom:20px}.filters .filter{display:flex;flex-direction:column;gap:4px;width:200px;flex:0 0 auto;margin-bottom:0}.filters .filter>span{font-size:13px;font-weight:500;color:var(--text)}.filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.filter-tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:auto;cursor:pointer;padding:6px 14px;font-size:13px;font-weight:500;color:var(--text-muted);background:var(--surface);border:1px solid var(--border-strong);border-radius:999px}.filter-tab:hover{background:#f0f1f4;color:var(--text)}.filter-tab.active{color:#fff;background:var(--primary);border-color:var(--primary)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182873;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px;z-index:50;overflow-y:auto}.modal{background:var(--surface);border-radius:var(--radius);box-shadow:0 12px 32px #1018282e;width:100%;max-width:520px;padding:24px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.modal-title{margin:0;font-size:18px}.modal-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;font-size:22px;line-height:1;color:var(--text-muted);padding:4px 6px;border-radius:var(--radius)}.modal-close:hover{color:var(--text);background:#f0f1f4}.modal-body{max-height:70vh;overflow-y:auto}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-toolbar h2{margin:0;font-size:18px}.section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-header h2{margin:0;font-size:18px}.section-header h3{margin:0;font-size:15px}.toolbar-controls{display:flex;align-items:center;gap:8px}.row{display:flex;gap:12px}.row>*{flex:1}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;background:#eef1f6;color:var(--text)}.badge-draft{background:#eef0f3;color:var(--text-muted)}.badge-sent{background:#2f6fed1f;color:var(--primary-hover)}.badge-paid,.badge-accepted,.badge-billed{background:#2e9e6b24;color:var(--success)}.badge-overdue,.badge-declined{background:#d645451f;color:var(--danger-hover)}.empty-state{text-align:center;color:var(--text-muted);padding:40px 16px}.summary-line{color:var(--text-muted);font-size:13px;margin:0 0 16px}.summary-line strong{color:var(--text)}.summary{margin-bottom:20px}.summary-totals{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.summary-card{flex:1 1 160px;display:flex;flex-direction:column;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px}.summary-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-weight:600}.summary-value{font-size:20px;font-weight:600;color:var(--text)}.summary-by-category{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px}.summary-by-category ul{list-style:none;margin:8px 0 0;padding:0}.summary-by-category li{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px solid var(--border)}.summary-by-category li:last-child{border-bottom:none}.hq-section{display:block}.hq-card,.hq-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.hq-card>h3,.hq-panel>h3{margin:0 0 12px;font-size:15px}.pnl-block{padding:10px 0;border-top:1px solid var(--border)}.pnl-block:first-of-type{border-top:none}.pnl-block h3{margin:0 0 4px;font-size:13px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.hq-panel tbody tr:last-child td{border-top:2px solid var(--border-strong);background:#fafbfc}.ai-commentary-panel{background:#f8fafe;border:1px solid var(--border);border-left:3px solid var(--primary);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 20px;margin-bottom:20px}.ai-commentary-text{margin:0 0 8px;color:var(--text);line-height:1.6;white-space:pre-wrap}.line-items{border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin:0 0 14px}.line-items legend{font-size:13px;font-weight:600;color:var(--text);padding:0 6px}.line-item-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.line-item-row input[type=text]{flex:1 1 auto}.line-item-row input[type=number]{flex:0 0 120px;width:120px}.line-item-row .btn{flex:0 0 auto}.line-items-total{margin-top:12px;padding-top:12px;border-top:1px solid var(--border);text-align:right;font-size:14px;color:var(--text-muted)}.line-items-total strong{font-size:15px;color:var(--text)}.unbilled-time{border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin:0 0 14px;background:#fafbfc}.unbilled-time legend{font-size:13px;font-weight:600;padding:0 6px}.unbilled-time input[type=checkbox]{width:auto}.unbilled-select-all{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;margin-bottom:8px}.unbilled-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--border);font-size:13px}.unbilled-task{font-weight:500}.unbilled-meta{color:var(--text-muted);flex:1}.unbilled-amount{font-variant-numeric:tabular-nums}.milestones-editor{display:flex;flex-direction:column;gap:10px;border:1px solid var(--border);border-radius:var(--radius);padding:12px;background:#fafbfc;margin-bottom:14px}.milestone-row{display:flex;align-items:center;gap:8px}.milestone-row>input[type=text]{flex:1}.milestone-row>input[type=date]{flex:0 0 150px;width:auto}.milestone-done{display:flex;align-items:center;gap:6px;white-space:nowrap}.milestone-done input{width:auto}.milestone-row.is-done>input[type=text]{color:var(--text-muted);text-decoration:line-through}.receipt-upload{margin-bottom:16px}.receipt-dropzone{border:2px dashed var(--border-strong);border-radius:var(--radius);padding:20px;text-align:center;cursor:pointer;background:var(--bg);color:var(--text-muted)}.receipt-dropzone.is-dragging{border-color:var(--primary);background:#2f6fed0f;color:var(--text)}.receipt-actions{display:flex;gap:8px;margin-top:10px}.receipt-thumb{display:block;width:40px;height:40px;object-fit:cover;border:1px solid var(--border);border-radius:6px}.receipt-link{display:inline-block}.receipt-preview{display:flex;align-items:center;gap:12px;margin-bottom:14px}.receipt-preview .receipt-thumb{width:64px;height:64px}.invoices-section,.proposals-section,.expenses-section,.projects-section,.clients-section,.time-section{display:block}.expense-form{display:flex;flex-direction:column}.proposal-form .field,.project-form .field,.invoice-form .field{margin-bottom:14px}.clients-section .table td:nth-child(5){max-width:280px;color:var(--text-muted);white-space:normal}.jim-section{display:block}.followups-panel,.interactions-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.followups-panel h4{margin:16px 0 8px;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}
