:root{--bg: #f6f7fb;--panel: #ffffff;--border: #e3e5ec;--text: #323338;--muted: #676879;--primary: #0073ea;--primary-hover: #0060c2;--danger: #d83a52;--sidebar: #292f4c;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1{font-size:24px;margin:0;display:flex;align-items:center;gap:10px}h2{font-size:16px;margin:28px 0 10px}h3{font-size:15px;margin:0}input,select,textarea{font:inherit;color:inherit;border:1px solid var(--border);border-radius:6px;padding:7px 9px;background:#fff;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #cce5ff;border-color:var(--primary)}input[type=checkbox],input[type=color]{width:auto}input[type=color]{padding:0;height:32px;width:36px}.muted{color:var(--muted)}.small{font-size:12px}.num{text-align:right}.grow{flex:1}.pre{white-space:pre-line}.row{display:flex;gap:8px;align-items:center}.danger-text{color:var(--danger)!important}.app{display:flex;min-height:100vh}.sidebar{width:220px;background:var(--sidebar);color:#fff;padding:16px 10px;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto}.brand{font-weight:800;font-size:20px;padding:4px 10px 18px;letter-spacing:1px}.sidebar nav{display:flex;flex-direction:column;gap:2px}.sidebar nav a{color:#d5d8e6;padding:8px 10px;border-radius:6px}.sidebar nav a:hover{background:#ffffff14;text-decoration:none}.sidebar nav a.active{background:#ffffff29;color:#fff}.sidebar-section{display:flex;justify-content:space-between;align-items:center;padding:18px 10px 6px;color:#9aa0bd;text-transform:uppercase;font-size:11px;letter-spacing:.6px}.sidebar-section .icon-btn{color:#fff}.sidebar-bottom{margin-top:auto}.sidebar-bottom a{display:block;color:#d5d8e6;padding:8px 10px;border-radius:6px}.sidebar-bottom a.active{background:#ffffff29;color:#fff}.main{flex:1;min-width:0}.page{padding:24px 32px 80px;max-width:1400px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.page-head p{margin:4px 0 0}.actions{display:flex;gap:8px}.btn{font:inherit;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:6px;padding:7px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.btn:hover{background:#f0f1f5;text-decoration:none}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-hover)}.btn:disabled{opacity:.5;cursor:default}.btn.small{padding:4px 10px;font-size:13px}.btn.selected{background:#e5f0ff;border-color:var(--primary);color:var(--primary);opacity:1}.icon-btn{border:0;background:none;cursor:pointer;font-size:18px;color:var(--muted);padding:0 6px;line-height:1;border-radius:4px}.icon-btn:hover{background:#0000000f}.card{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:14px;margin-bottom:12px}.pill{color:#fff;border-radius:10px;padding:2px 10px;font-size:12px;text-transform:capitalize;font-weight:500}.banner{background:#e5f0ff;border-radius:6px;padding:10px 14px;margin-bottom:14px}.banner.success{background:#dcf7e9}.banner.error{background:#fde4e8;color:#8a1c2c}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:14px}.tabs button{border:0;background:none;padding:8px 12px;cursor:pointer;font:inherit;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}.tabs button.active{color:var(--text);border-bottom-color:var(--primary);font-weight:600}table.list{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--border);border-radius:8px;overflow:hidden}table.list th,table.list td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}table.list th{font-weight:600;color:var(--muted);font-size:12px;background:#fafbfc}table.list th.num,table.list td.num{text-align:right}.row-actions{text-align:right;white-space:nowrap}.row-actions .btn{margin-left:4px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}.stat span{color:var(--muted);font-size:12px}.stat strong{font-size:26px}.stat small{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:18px}.form-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);font-weight:500}.form-grid label>*{color:var(--text);font-size:14px;font-weight:400}.form-grid .wide{grid-column:1 / -1}.cell-wrap,.col-head,.add-col{position:relative}.popover{z-index:60;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #00000026;padding:6px;min-width:160px}.menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px 10px;cursor:pointer;font:inherit;border-radius:4px;color:var(--text)}.menu button:hover{background:#f0f1f5}.swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px}.swatches button{width:22px;height:22px;border-radius:4px;padding:0}.status-menu{display:flex;flex-direction:column;gap:4px;width:170px}.status-option{border:0;color:#fff;padding:7px;border-radius:4px;cursor:pointer;font:inherit}.status-option.clear{background:#f0f1f5;color:var(--muted)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:#fff;border-radius:10px;padding:20px;width:380px;display:flex;flex-direction:column;gap:10px}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:8px}.toolbar .tabs{margin-bottom:0;flex:1}.toolbar .search{width:220px}.group{margin:22px 0;border-radius:8px}.group.drop-target{outline:2px dashed var(--group-color);outline-offset:4px}.group-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.group-head h3{color:var(--group-color);font-size:16px}.caret{color:var(--group-color)}.table-scroll{overflow-x:auto}.board-table{border-collapse:collapse;table-layout:fixed;background:var(--panel);border-left:6px solid var(--group-color);border-radius:6px 0 0 6px}.board-table th{font-weight:500;font-size:12px;color:var(--muted);padding:0;height:34px;border:1px solid var(--border);border-left:0;text-align:center;background:#fafbfc}.board-table td{border:1px solid var(--border);border-left:0;height:38px;padding:0;text-align:center}.board-table{width:100%}.board-table .item-col{text-align:left}.board-table .client-col{padding:0 8px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-table .add-col{width:44px}.board-table th.item-col{padding-left:12px}.board-table tbody tr:hover td{background:#f5f7fb}.board-table tbody tr[draggable]{cursor:grab}.col-name{border:0;background:none;font:inherit;color:inherit;width:100%;height:34px;cursor:pointer}.col-name:hover{background:#f0f1f5}.item-name{border:0;background:none;font:inherit;color:var(--text);text-align:left;width:100%;height:38px;padding:0 12px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-name:hover{color:var(--primary)}.status-td{padding:0!important}.status-pill{border:0;width:100%;height:38px;cursor:pointer;font:inherit;font-size:13px}.status-pill:hover{filter:brightness(.95)}.cell-text{min-height:38px;line-height:38px;padding:0 8px;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-text:hover{outline:1px solid #c3c6d4;outline-offset:-4px;border-radius:4px}.cell-input{height:38px;border-radius:0;border:2px solid var(--primary)}.add-row input{border:0;border-radius:0;height:36px;padding-left:12px}.add-row input:focus{outline:none;background:#f5f7fb}.board-table tfoot td{font-weight:600;padding:0 8px;border:0;height:30px}.kanban{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;padding-bottom:12px}.lane{width:260px;flex-shrink:0;background:#eceef4;border-radius:8px;padding:0 0 8px;min-height:120px}.lane-head{color:#fff;padding:10px 12px;border-radius:8px 8px 0 0;font-weight:600;display:flex;justify-content:space-between;margin-bottom:8px}.kanban-card{margin:0 8px 8px;cursor:pointer;padding:10px 12px}.kanban-card:hover{border-color:var(--primary)}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0003;z-index:40}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,100vw);background:#fff;z-index:41;padding:20px 24px;overflow-y:auto;box-shadow:-8px 0 24px #0000001f;display:flex;flex-direction:column;gap:14px}.drawer-head{display:flex;gap:8px;align-items:center}.title-input{font-size:20px;font-weight:600;border-color:transparent}.title-input:hover{border-color:var(--border)}.fields{display:flex;flex-direction:column;gap:6px}.field{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:8px;min-height:38px}.field>span{color:var(--muted);font-size:13px}.field .status-pill,.field .cell-text{border-radius:4px;border:1px solid var(--border)}.field .status-pill{border:0}.note-form{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.activity{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.activity li{padding:8px 10px;border-radius:6px;background:#f6f7fb;border-left:3px solid #c3c6d4}.activity li.update{background:#fff;border:1px solid var(--border);border-left:3px solid var(--primary)}.activity li.automation{border-left-color:#a25ddc}.activity small{color:var(--muted)}.automations .row{margin-bottom:12px}.rule{display:flex;align-items:center;gap:14px}.rule.disabled{opacity:.55}.builder{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.builder-title{font-weight:600}.rule-actions{margin:0!important}.sentence{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sentence select,.sentence input{width:auto;min-width:140px}.switch{position:relative;display:inline-block;width:36px;height:20px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;top:0;right:0;bottom:0;left:0;background:#c4c4c4;border-radius:20px;cursor:pointer;transition:.2s}.switch span:before{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:#00c875}.switch input:checked+span:before{transform:translate(16px)}.status-bar{display:flex;align-items:center;gap:6px;margin-bottom:18px;flex-wrap:wrap}table.lines{width:100%;border-collapse:collapse;margin-bottom:10px;background:#fff}table.lines th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;padding:8px 6px;border-bottom:1px solid var(--border)}table.lines th.num{text-align:right}table.lines td{padding:4px 6px;border-bottom:1px solid var(--border)}table.lines td{vertical-align:top}table.lines td.c-qty,table.lines td.c-rate{width:110px}table.lines td.c-unit{width:100px}table.lines td.c-pct{width:80px}table.lines td.c-tax{width:50px;text-align:center;padding-top:12px}table.lines td.c-amt{width:130px;padding-top:12px}table.lines td.line-actions{width:64px;padding-top:8px;white-space:nowrap}table.lines.print td{vertical-align:top}table.lines.print td.qty{width:110px}table.lines.print td.rate{width:140px}table.lines.print td.amount{width:110px}table.lines.print tfoot td{border:0;padding:0}.line-title{font-weight:600}.line-desc{margin-top:4px;resize:vertical;font-size:13px;color:var(--muted)}.line-desc-print{color:var(--muted);font-size:11px;line-height:1.35;margin-top:2px}.empty-lines{padding:16px 6px!important;text-align:center}.quote-editor>.row{margin-top:8px}.catalog-picker{width:420px;display:flex;flex-direction:column;gap:6px}.picker-list{max-height:320px;overflow-y:auto;display:flex;flex-direction:column}.picker-item{display:flex;justify-content:space-between;gap:12px;text-align:left;border:0;background:none;padding:8px;border-radius:4px;cursor:pointer;font:inherit;color:var(--text)}.picker-item:hover{background:#f0f1f5}.picker-item>span:first-child{display:flex;flex-direction:column;min-width:0}.clamp1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.clamp{max-width:420px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.search.block{width:280px;margin-bottom:12px}.form-grid label.checkbox{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:8px}.quote-bottom{display:flex;gap:32px;margin-top:20px;align-items:flex-start}.notes{flex:1;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.totals{width:300px;display:flex;flex-direction:column;gap:6px}.totals>div{display:flex;justify-content:space-between;align-items:center}.totals .grand{font-size:18px;font-weight:700;border-top:2px solid var(--text);padding-top:8px}.totals .tax{width:70px;display:inline-block;padding:3px 6px;margin:0 4px}.print-page{max-width:800px;margin:0 auto;padding:40px;background:#fff;min-height:100vh}.print-actions{margin-bottom:24px}.print-head{display:flex;justify-content:space-between;margin-bottom:32px}.print-head h1{font-size:32px;color:var(--primary);display:block}.print-head h2{margin:0 0 6px}.print-head .right{text-align:right}.print-logo{display:block;max-width:220px;max-height:90px;object-fit:contain;margin-bottom:12px}.paid-stamp{display:inline-block;margin-top:10px;border:3px solid #037f4c;color:#037f4c;font-weight:800;font-size:20px;padding:2px 12px;border-radius:6px;transform:rotate(-6deg)}.project-description{margin:0 0 16px;font-size:13px;line-height:1.5}.bill-to{margin-bottom:24px}.print-page h3{margin-bottom:12px}table.lines.print td{padding:10px 6px}.totals.print{margin-left:auto;margin-top:16px}.terms{margin-top:32px;color:var(--muted)}@media print{.no-print{display:none}.print-page{padding:0}:root{background:#fff}}.section-head{margin-bottom:12px}.section-head p{margin:0}.checks{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.checks .checkbox,label.checkbox.wide{flex-direction:row!important;align-items:center;gap:6px;color:var(--text)!important;font-size:14px!important}.logo-card{display:flex;flex-direction:column;gap:12px;align-items:flex-start;max-width:520px}.logo-preview{width:100%;height:160px;border:1px dashed var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#f3f4f7 0,#f3f4f7 25%,#fff 0,#fff 50%) 50% / 16px 16px}.logo-preview img{max-width:90%;max-height:140px;object-fit:contain}.project-desc{resize:vertical}fieldset.plain{border:0;padding:0;margin:0;min-width:0}fieldset:disabled input,fieldset:disabled select,fieldset:disabled textarea{background:#f6f7fb;color:var(--text);cursor:not-allowed}.banner.locked{background:#fff6e0;display:flex;justify-content:space-between;align-items:center;gap:12px}.add-lines{margin-top:8px}.page.board-page{max-width:none}.view-tab{display:inline-flex;align-items:center}.view-tab.active>button:first-child{color:var(--text);border-bottom-color:var(--primary);font-weight:600}.tabs .view-edit{padding:8px 4px;font-size:16px;line-height:1;border-bottom-color:transparent!important}.tabs .add-view{color:var(--primary)}.kanban-by{margin-bottom:10px}.kanban-by select{width:auto}.new-label input{padding:6px 8px;font-size:13px}.link-btn{border:0;background:none;color:var(--primary);cursor:pointer;font:inherit;font-size:13px;padding:4px 2px;text-align:left}.view-editor{width:460px;max-height:90vh;overflow-y:auto}.view-editor .stack{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.check-head{display:flex;justify-content:space-between;align-items:center;margin-top:6px}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.check{display:flex;align-items:center;gap:6px}.billing{margin-top:28px}.billing h2{margin-top:0}.billing .stats{margin-bottom:14px}.progress-bar{height:6px;background:#e6e9ef;border-radius:3px;overflow:hidden;min-width:80px}.progress-bar span{display:block;height:100%;background:#00c875}.billing-actions{margin:12px 0 4px;flex-wrap:wrap}.bill-dialog{width:min(760px,95vw);max-height:90vh;overflow-y:auto}.bill-dialog table.list{margin:6px 0}.bill-dialog input[type=number]{width:100px}.bill-dialog .grand-line{display:flex;justify-content:space-between;font-size:16px;font-weight:700;border-top:2px solid var(--text);padding-top:8px}.line-note{color:var(--muted);font-size:11px;margin-top:2px}.progress-summary{margin-left:auto;margin-top:18px;width:300px;display:flex;flex-direction:column;gap:4px;font-size:13px;border-top:1px solid var(--border);padding-top:10px}.progress-summary>div{display:flex;justify-content:space-between}.progress-summary .bal{font-weight:700}.address-fields{display:grid;grid-template-columns:repeat(4,1fr) 70px 110px;gap:10px 12px}.address-fields .a-street,.address-fields .a-city{grid-column:1 / 5}.address-fields .a-street2{grid-column:5 / 7}.address-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);font-weight:500}.address-fields input{color:var(--text);font-size:14px;font-weight:400}.address-fields .a-state input{text-transform:uppercase}.address-pop{width:440px;padding:12px}.address-pop .row{margin-top:12px;gap:8px}.address-text{display:flex;align-items:center;gap:4px;cursor:pointer}.address-text span{overflow:hidden;text-overflow:ellipsis}.map-link{display:inline-flex;color:#e2445c;flex:none;padding:2px;border-radius:4px}.map-link:hover{background:#fde8eb}.address-td{white-space:nowrap}.address-td .map-link{vertical-align:-3px;margin-right:2px}@media(max-width:600px){.address-fields{grid-template-columns:1fr 70px 100px}.address-fields .a-street,.address-fields .a-street2{grid-column:1 / -1}.address-fields .a-city{grid-column:1}.address-pop{width:calc(100vw - 32px)}}.col-head[draggable=true] .col-name{cursor:grab}.col-head.col-dragging{opacity:.4}.col-head.col-drop-before{box-shadow:inset 3px 0 0 var(--primary, #0073ea)}.col-head.col-drop-after{box-shadow:inset -3px 0 0 var(--primary, #0073ea)}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(1200px 600px at 20% -10%,#dfe9ff 0%,transparent 60%),radial-gradient(900px 500px at 110% 110%,#e8defa 0%,transparent 55%),var(--bg, #f6f7fb)}.login-card{width:100%;max-width:400px;background:#fff;border-radius:14px;padding:32px 28px;box-shadow:0 10px 40px #1d21411f,0 1px 3px #1d214114;display:flex;flex-direction:column;gap:14px}.login-card h1{font-size:20px;margin:4px 0 0}.login-card label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:500;color:var(--muted)}.login-card label input:not([type=checkbox]){font-size:15px;padding:10px 12px;color:var(--text)}.login-card label.checkbox{flex-direction:row;align-items:center;gap:8px;font-size:13px;color:var(--text);font-weight:400}.login-card .btn.block{width:100%;padding:11px;font-size:15px;margin-top:4px}.login-card .banner{margin:0}.login-brand{display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:6px;border-bottom:1px solid var(--border);margin-bottom:4px}.login-brand img{max-height:72px;max-width:220px;object-fit:contain}.login-mark{width:56px;height:56px;border-radius:14px;background:var(--sidebar);color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:1px}.login-business{font-weight:600;color:var(--muted);padding-bottom:12px}.error-text{color:#c4314b;margin:0;font-size:13px}.account{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);position:relative}.account-btn{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;color:#fff;padding:6px 8px;border-radius:6px;cursor:pointer;text-align:left;font:inherit}.account-btn:hover{background:#ffffff14}.avatar{width:30px;height:30px;border-radius:50%;background:#579bfc;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}.account-text{display:flex;flex-direction:column;min-width:0}.account-text span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.account-text small{color:#aeb3c9;font-size:11px}.menu-note{font-size:12px;color:var(--muted);padding:6px 10px;border-bottom:1px solid var(--border);margin-bottom:4px}.modal.stack label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.modal h2{margin:0 0 4px;font-size:18px}.row.space{justify-content:space-between;margin-bottom:12px}.roles{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.roles legend{font-size:12px;color:var(--muted);font-weight:500;margin-bottom:6px}.form-grid .role-option{flex-direction:row;align-items:flex-start;gap:10px;border:1px solid var(--border);border-radius:8px;padding:10px 12px;cursor:pointer}.form-grid .role-option.chosen{border-color:var(--primary);background:#f0f6ff}.role-option span{display:flex;flex-direction:column;gap:2px}.role-option strong{color:var(--text);font-size:14px}.role-option small{color:var(--muted);font-size:12px;font-weight:400;line-height:1.35}.form-grid .role-option input{margin-top:3px;width:auto;flex:none}.form-grid .role-option>span{flex:1}.role-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;background:#eef0f5}.role-badge.elevated{background:#fff1db;color:#8a5300}.role-badge.admin{background:#e5f0ff;color:#0b4fa8}tr.inactive td{color:var(--muted)}.tag{display:inline-block;margin-left:8px;font-size:11px;padding:1px 6px;border-radius:8px;background:#fde4e8;color:#8a1c2c}.empty-state{max-width:480px;margin:40px auto;text-align:center}.login-card .btn.block{justify-content:center;text-align:center}.payments-panel{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}.pay-stats{display:flex;flex-wrap:wrap;gap:28px}.pay-stats div{display:flex;flex-direction:column;gap:2px}.pay-stats span{font-size:12px;color:var(--muted)}.pay-stats strong{font-size:20px}.pay-stats .ok{color:#037f4c}.pay-stats .due{color:#c4314b}.pay-stats .pending{color:#b26b00}.pay-link{border:1px solid var(--border);border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;background:#fafbfd}.pay-link-head{display:flex;align-items:center;gap:8px}.pay-link p{margin:0}.link-row{display:flex;gap:6px}.link-row input{flex:1;min-width:0;font-size:13px;color:var(--muted)}.tag.test{background:#fff1db;color:#8a5300;margin-left:0}.row.small-gap{gap:10px;flex-wrap:wrap}.record-payment{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end;border-top:1px solid var(--border);padding-top:14px}.record-payment label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.record-payment .row{grid-column:1 / -1}table.list.payments{margin:0}.stripe-status{font-size:14px}.how-to-pay{margin-top:22px;border:1px solid #d9dce5;border-radius:6px;padding:12px 14px;font-size:13px;break-inside:avoid}.how-to-pay h3{margin:0 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:#555}.how-to-pay .pay-online{margin-top:8px;word-break:break-all}.how-to-pay a{color:inherit}.payments-panel>.btn.primary{align-self:flex-start}.item-col:has(.lead-pill){position:relative}.item-col:has(.lead-pill) .item-name{padding-right:52px}.lead-pill{position:absolute;right:8px;top:50%;transform:translateY(-50%);pointer-events:none;padding:1px 7px;border-radius:9px;background:#e6f4ea;color:#1e7b3a;font-size:11px;font-weight:600}.form-grid h3.wide{margin-top:12px}table.leads td a{white-space:nowrap}.activity li.update>div:first-child{white-space:pre-wrap}:root{--series-1: #2a78d6;--series-2: #eb6834;--series-3: #1baf7a;--ramp-1: #86b6ef;--ramp-2: #5598e7;--ramp-3: #2a78d6;--ramp-4: #1c5cab;--ramp-5: #104281}.viz-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}@media(max-width:900px){.viz-grid{grid-template-columns:1fr}}.viz-grid>.viz-card:first-child{grid-column:1 / -1}.viz-card{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}.viz-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.viz-head h3{margin-bottom:2px}.viz{position:relative;min-width:0}.viz-plot{position:relative}.viz svg{display:block;overflow:visible}.viz-gridline{stroke:#eceef2;stroke-width:1}.viz-baseline{stroke:#c3c6d0;stroke-width:1}.viz-axis{fill:var(--muted);font-size:11px}.viz-label{fill:var(--text);font-size:13px}.viz-value{fill:var(--text);font-size:12px;font-variant-numeric:tabular-nums}.viz-hit{fill:transparent;cursor:default;outline:none}.viz-hover-band{fill:#f0f1f5}.viz-legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:12px;color:var(--muted);margin-bottom:6px}.viz-legend span{display:inline-flex;align-items:center;gap:6px}.viz-legend i,.viz-parts i{width:10px;height:10px;border-radius:2px;display:inline-block;flex:none}.viz-tip{margin-left:auto;display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;min-height:18px}.viz-tip.idle{color:var(--muted)}.viz-plot .viz-tip{margin:8px 0 0}.viz-tip-title{color:var(--text);font-weight:600}.viz-tip-row{display:inline-flex;align-items:center;gap:6px}.viz-tip-row i{width:12px;height:3px;border-radius:2px}.viz-tip-row strong{font-variant-numeric:tabular-nums}.viz-tip-row span{color:var(--muted)}.donut{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.viz-arc{stroke:var(--panel);stroke-width:2;outline:none;transition:opacity .12s}.viz-arc.dim{opacity:.35}.viz-empty-ring{stroke:#eceef2}.viz-center-value{fill:var(--text);font-size:16px;font-weight:700}.viz-center-label{fill:var(--muted);font-size:11px}.viz-parts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;flex:1;min-width:180px}.viz-parts li{display:grid;grid-template-columns:10px 1fr auto 36px;align-items:center;gap:8px;padding:2px 4px;border-radius:4px}.viz-parts li.on{background:#f0f1f5}.viz-parts strong{font-variant-numeric:tabular-nums}.viz-parts small{color:var(--muted);text-align:right}table.list.compact th,table.list.compact td{padding:6px 10px}.report-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.report-controls label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.report-controls input[type=date]{width:auto}.aging-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:16px}.aging-summary .stat strong{font-size:20px}.aging-summary .stat.total{border-color:var(--primary)}table.aging td,table.aging th{white-space:nowrap}table.aging .client-row td{background:#fafbfc}table.aging .invoice-row td:first-child{padding-left:28px}table.list tfoot td{font-weight:700;background:#fafbfc;border-bottom:0}.print-only{display:none}.report-title{margin-bottom:12px}.report-title h2{margin:0 0 4px}.nowrap{white-space:nowrap}@media print{.print-only{display:block}.no-print{display:none!important}.sidebar{display:none}.page{padding:0;max-width:none}.report-page table.list{font-size:11px}.report-page table.list td,.report-page table.list th{padding:4px 6px}.report-page a{color:inherit}}.timer{display:grid;grid-template-columns:minmax(200px,1.2fr) 2fr auto auto;gap:10px;align-items:center;padding:12px}.timer.running{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary) inset}.timer-project{display:flex;flex-direction:column;min-width:0}.timer-project a{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timer-clock{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;min-width:100px;text-align:right}.timer .btn{min-width:80px;justify-content:center}.timer .btn.stop{background:var(--danger);border-color:var(--danger);color:#fff}.timer-error{grid-column:1 / -1}.person-select{width:auto;min-width:200px}.week-nav{display:flex;align-items:center;gap:8px;margin:18px 0 10px}.week-total{color:var(--text);font-size:16px;margin-left:4px}table.timesheet th{white-space:nowrap}table.timesheet th.today{color:var(--primary)}table.timesheet td.ts-project{min-width:200px}table.timesheet td.ts-cell{padding:4px;width:76px}.ts-cell input{text-align:right;font-variant-numeric:tabular-nums;padding:6px 8px}.ts-cell input.bad{border-color:var(--danger);outline-color:#f8d0d6}.ts-cell.is-running input{border-color:var(--primary);background:#f0f6ff}table.timesheet tfoot td{font-variant-numeric:tabular-nums}table.entries td{vertical-align:middle}.inline-note{border-color:transparent;background:transparent}.inline-note:hover{border-color:var(--border)}.running-pill{background:#e5f0ff;color:var(--primary);border-radius:10px;padding:2px 8px;font-size:12px;font-weight:600}@media(max-width:700px){.timer{grid-template-columns:1fr auto}.timer-project,.timer-note{grid-column:1 / -1}}.proj-picker{position:relative;min-width:0}.proj-picker input{padding-right:26px}.proj-picker-caret{position:absolute;right:9px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:11px;pointer-events:none}.proj-picker-list{position:fixed;width:max-content;max-width:min(480px,90vw);overflow-y:auto;margin:0;padding:4px 0;list-style:none;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #00000024;z-index:30}.proj-picker-board{padding:8px 12px 4px;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.proj-picker-option{display:flex;justify-content:space-between;gap:16px;padding:7px 12px;cursor:pointer}.proj-picker-option small{color:var(--muted);white-space:nowrap}.proj-picker-option.active{background:#e5f0ff}.proj-picker-option.chosen span{font-weight:600}.proj-picker-empty{padding:10px 12px;color:var(--muted)}table.timesheet .ts-add .proj-picker{max-width:360px}.topbar,.menu-backdrop,.sidebar-head .menu-close{display:none}.sidebar-head{display:flex;align-items:center;justify-content:space-between}@media(max-width:800px){.app{flex-direction:column}.topbar{display:flex;align-items:center;gap:6px;position:sticky;top:0;z-index:35;background:var(--sidebar);color:#fff;height:52px;padding:0 8px}.topbar .brand{padding:0;font-size:18px}.menu-btn{width:40px;height:40px;border:0;background:none;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}.menu-btn span{display:block;width:20px;height:2px;background:#fff;border-radius:1px}.menu-btn:hover{background:#ffffff1a}.sidebar{position:fixed;left:0;top:0;bottom:0;height:100%;width:min(280px,85vw);z-index:45;transform:translate(-100%);transition:transform .2s ease;box-shadow:none}.menu-open .sidebar{transform:none;box-shadow:8px 0 24px #0000004d}.menu-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:44}.sidebar-head .menu-close{display:block;color:#fff;font-size:26px;padding:2px 10px}.sidebar-head .brand{padding-bottom:4px}.sidebar nav a,.sidebar-bottom a{padding:11px 10px}.page{padding:16px 16px 60px}h1{font-size:21px}input,select,textarea{font-size:16px}.page-head{flex-wrap:wrap}.page-head>.row{flex-wrap:wrap}.tabs{overflow-x:auto;scrollbar-width:none}.tabs>*{flex-shrink:0;white-space:nowrap}.toolbar{flex-wrap:wrap}.toolbar .tabs{flex-basis:100%}.toolbar .search{flex:1;width:auto;min-width:0}table.list{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}table.list.compact,.viz-card table.list{display:table}table.list.stack-sm{display:block;overflow:visible}table.list.stack-sm thead{display:none}table.list.stack-sm tbody,table.list.stack-sm tfoot{display:block}table.list.stack-sm tr{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:12px 14px;border-bottom:1px solid var(--border)}table.list.stack-sm tr:last-child{border-bottom:0}table.list.stack-sm td{display:block;padding:0;border:0;text-align:left}table.list.stack-sm td:first-child{flex-basis:100%;font-weight:600}table.list.stack-sm td:empty{display:none}table.list.stack-sm td.num{margin-left:auto;text-align:right}table.list.stack-sm td.row-actions{flex-basis:100%;text-align:left}table.list.stack-sm td.row-actions .btn:first-child{margin-left:0}table.list.stack-sm td.grow{flex-basis:100%}table.entries.stack-sm td:first-child{flex-basis:auto;font-weight:400}table.entries.stack-sm td:nth-child(2){font-weight:600;flex:1}table.lines:not(.print),table.lines:not(.print) tbody{display:block}table.lines:not(.print) thead{display:none}table.lines:not(.print) tr{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:6px 8px;padding:10px 0;border-bottom:1px solid var(--border);align-items:end}table.lines:not(.print) td{display:block;width:auto!important;padding:0!important;border:0}table.lines:not(.print) td.c-item{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px}table.lines:not(.print) td.c-qty:before,table.lines:not(.print) td.c-unit:before,table.lines:not(.print) td.c-rate:before,table.lines:not(.print) td.c-pct:before,table.lines:not(.print) td.c-tax:before{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}table.lines:not(.print) td.c-qty:before{content:"Qty"}table.lines:not(.print) td.c-unit:before{content:"Unit"}table.lines:not(.print) td.c-rate:before{content:"Rate"}table.lines:not(.print) td.c-pct:before{content:"Bill %"}table.lines:not(.print) td.c-tax{text-align:left}table.lines:not(.print) td.c-tax:before{content:"Tax"}table.lines:not(.print) td.c-amt{grid-column:1 / 4;font-weight:600}table.lines:not(.print) td.line-actions{grid-column:4;justify-self:end}table.lines:not(.print) td.empty-lines{grid-column:1 / -1}.quote-bottom{flex-direction:column;gap:16px}.totals{width:100%}.notes textarea{min-height:80px}.notes{width:100%}.stats{grid-template-columns:1fr 1fr;gap:8px}.stat{padding:10px 12px}.stat strong{font-size:19px}.aging-summary{grid-template-columns:1fr 1fr}table.timesheet th:first-child,table.timesheet td:first-child{position:sticky;left:0;background:var(--panel);z-index:1;box-shadow:1px 0 0 var(--border)}table.timesheet thead th:first-child,table.timesheet tfoot td:first-child{background:#fafbfc}table.timesheet td.ts-project{min-width:150px}table.timesheet td.ts-cell{min-width:64px}.week-nav{flex-wrap:wrap}.drawer{padding:16px}.field{grid-template-columns:100px 1fr}.report-controls label{flex-wrap:wrap}}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.row.wrap{flex-wrap:wrap}.quote-contracts{margin:0 0 12px}.pdf-pages{display:flex;flex-direction:column;gap:14px;align-items:center}.pdf-page{position:relative;width:100%;background:#fff;box-shadow:0 1px 4px #0000002e}.pdf-page canvas{display:block;width:100%;height:100%}.pdf-overlay{position:absolute;top:0;right:0;bottom:0;left:0}.pv-field{position:absolute;border:1px dashed var(--role, #999);background:color-mix(in srgb,var(--role, #999) 10%,transparent);border-radius:2px;overflow:hidden;display:flex;align-items:center}.pv-field.filled{border-color:transparent;background:none}.pv-hint{font-size:10px;color:#444;padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fv-text{color:#0d1a4d;font-family:Helvetica,Arial,sans-serif;white-space:pre;padding-left:1px;align-self:center}.fv-check{color:#0d1a4d;font-weight:700;font-family:Helvetica,Arial,sans-serif;line-height:1;margin:auto}.fv-img{width:100%;height:100%;object-fit:contain;object-position:left center}.ct-layout{display:grid;grid-template-columns:300px 1fr;gap:18px;align-items:start}.ct-side{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}.ct-side .card h3{margin-bottom:6px}.ct-side .card p{margin:6px 0}.ct-label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:13px}.ct-label>*{color:var(--text)}.ct-roles{display:flex;flex-direction:column;gap:8px;margin-top:8px}.ct-role{display:flex;gap:8px;align-items:flex-start;border-left:4px solid;padding-left:8px}.ct-role .grow{display:flex;flex-direction:column;gap:4px}.ct-role-btns{display:flex;flex-direction:column}.ct-role-btns .icon-btn{padding:2px 6px}.ct-order{flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#eef0f5;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:12px}.ct-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.ct-type-grid .btn{justify-content:flex-start}.ct-swatch{width:10px;height:10px;border-radius:2px;display:inline-block}.ct-props{display:flex;flex-direction:column;gap:8px;border-color:var(--primary)}.ct-props label{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:13px}.ct-props label>*{color:var(--text)}.ct-props label.checkbox{flex-direction:row;align-items:center;color:var(--text)}.ct-doc{outline:none;min-width:0}.ct-place{position:absolute;top:0;right:0;bottom:0;left:0}.ct-doc.placing .ct-place{cursor:crosshair}.ct-field{position:absolute;border:1.5px solid var(--role);background:color-mix(in srgb,var(--role) 18%,transparent);border-radius:2px;cursor:move;touch-action:none;-webkit-user-select:none;user-select:none;display:flex;align-items:center;min-width:8px;min-height:8px}.ct-field.selected{outline:2px solid var(--role);outline-offset:1px;background:color-mix(in srgb,var(--role) 28%,transparent);z-index:2}.ct-field-label{font-size:10px;color:#1d1e24;padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.ct-resize{position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;background:#fff;border:1.5px solid var(--role);border-radius:2px;cursor:nwse-resize}.nc-signers{display:flex;flex-direction:column;gap:10px}.nc-signer{display:grid;grid-template-columns:22px 120px 1fr 1fr;gap:10px;align-items:center;border-left:4px solid;padding-left:10px}.nc-actions{margin:14px 0 6px}.new-contract textarea{resize:vertical}.cd-title{margin:6px 0 2px;font-size:18px}.cd-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(0,1.3fr);gap:22px;align-items:start}.cd-signers{display:flex;flex-direction:column;gap:4px;padding:6px 14px}.cd-signer{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-left:4px solid;padding:10px 0 10px 10px;border-bottom:1px solid var(--border)}.cd-signer:last-child{border-bottom:0}.cd-signer.current{background:#f5f9ff}.cd-signer-status{text-align:right}.cd-signer-actions{display:flex;gap:6px;flex-wrap:wrap;width:100%;padding-left:32px}.cd-signer form input{width:auto;flex:1;min-width:140px}.signer-pill{font-size:12px;font-weight:600;padding:2px 8px;border-radius:10px;background:#eef0f5;color:var(--muted);white-space:nowrap}.signer-pill.sent,.signer-pill.viewed{background:#e5f0ff;color:#1f5fb8}.signer-pill.signed{background:#dcf7e9;color:#0b6b43}.signer-pill.declined{background:#fde4e8;color:#8a1c2c}.cd-events{list-style:none;margin:0;padding:10px 14px;display:flex;flex-direction:column;gap:6px;font-size:13px}.cd-events .nowrap{margin-right:6px}.sign-page{min-height:100vh;background:var(--bg);padding-bottom:80px}.sign-head{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#fff;border-bottom:1px solid var(--border)}.sign-head img{max-height:40px;max-width:160px}.sign-head strong{font-size:16px}.sign-main{max-width:900px;margin:0 auto;padding:20px 16px}.sign-card{max-width:560px;margin:30px auto;padding:24px;display:flex;flex-direction:column;gap:12px}.sign-card h2{margin:0}.sign-card p{margin:0;line-height:1.5}.sign-message{background:#f6f7fb;border-radius:6px;padding:10px 12px}.consent{display:flex;gap:10px;align-items:flex-start;background:#fffbe8;border:1px solid #f1e3a6;border-radius:6px;padding:12px;line-height:1.45;cursor:pointer}.consent input{margin-top:3px;width:18px;height:18px;flex-shrink:0}.sign-intro h2{margin:0 0 4px}.sign-intro p{margin:0 0 14px}.sign-field{position:absolute;padding:0;margin:0;border:2px solid #f0a020;background:#ffd66673;border-radius:3px;cursor:pointer;display:flex;align-items:center;overflow:visible;font:inherit;color:inherit}.sign-field.needed{animation:sign-pulse 1.6s ease-in-out infinite}.sign-field.filled{border:1px dashed #9fb7d9;background:#e5f0ff59}.sign-field:focus-visible{outline:3px solid var(--primary)}.sign-field-hint{font-size:11px;font-weight:700;color:#6b4300;padding:0 4px;white-space:nowrap;overflow:hidden}@keyframes sign-pulse{50%{box-shadow:0 0 0 4px #f0a02040}}@media(prefers-reduced-motion:reduce){.sign-field.needed{animation:none}}.sign-bar{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);box-shadow:0 -2px 10px #0000000f;z-index:20}.sign-modal{width:640px;max-width:calc(100vw - 24px)}.sign-modal .tabs{margin-bottom:0}.sig-box{position:relative;border:1px solid var(--border);border-radius:6px;background:#fff}.sig-box canvas{display:block;width:100%;touch-action:none}.sig-line{position:absolute;left:6%;right:6%;bottom:22%;border-bottom:1px solid #c9ccd6;pointer-events:none}.sig-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#a3a6b4;pointer-events:none}@media(max-width:1000px){.cd-layout{grid-template-columns:1fr}}@media(max-width:800px){.ct-layout{grid-template-columns:1fr}.ct-side{position:static;max-height:none}.nc-signer{grid-template-columns:22px 1fr}.nc-signer input{grid-column:2}.sign-main{padding:14px 8px}.sign-card{margin:12px auto;padding:18px}.sign-bar{padding-left:12px;padding-right:12px}.modal{max-width:calc(100vw - 24px)}}
