*{box-sizing:border-box}html,body,#root{max-width:100%;overflow-x:hidden}body{margin:0;background:#eef3f8;color:#0f172a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}.app{min-height:100vh;display:block}.sidebar{position:fixed;inset:0 auto 0 0;z-index:60;width:284px;height:100vh;max-height:100vh;background:#050b16;color:#fff;padding:22px;display:flex;flex-direction:column;gap:18px;overflow-y:auto;overflow-x:hidden}.brand{display:block;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{border-radius:16px;background:#ffffff14;padding:10px 12px;font-size:24px;font-weight:900}.brand-mark span{color:#22c55e}.brand p{margin:0;font-weight:900}.brand small{display:block;color:#94a3b8;font-size:12px;font-weight:750;margin-top:3px}.product-brand{width:100%;display:grid;justify-items:start;justify-content:flex-start;gap:8px}.product-brand-row{display:flex;align-items:center;justify-content:flex-start;gap:8px}.product-wordmark{color:#fff;font-size:26px;line-height:1;font-weight:950;letter-spacing:-.02em}.product-wordmark span{color:#22c55e}.product-tag{border:1px solid rgba(148,163,184,.38);border-radius:999px;background:#ffffff14;color:#fff;padding:4px 9px;font-size:10px;line-height:1;font-weight:950}.product-symbol{height:22px;color:#cbd5e1;display:grid;place-items:center;margin-top:-1px}.product-symbol svg{stroke-width:1.8}.product-brand small{width:100%;max-width:100%;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;color:#94a3b8;font-size:12px;line-height:1.2;font-weight:800;padding-left:2px}.sidebar nav{display:grid;gap:8px;flex:0 1 auto;min-height:0;overflow-y:auto;padding-right:4px}.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-thumb{background:#94a3b859;border-radius:999px}.sidebar button{width:100%;border:0;border-radius:14px;background:transparent;color:#cbd5e1;padding:12px 14px;display:flex;align-items:center;gap:12px;font-weight:800;cursor:pointer;text-align:left}.sidebar button.active,.sidebar button:hover{background:#0ea5e9;color:#fff}.logout-button{border:1px solid rgba(255,255,255,.12)!important;background:#ffffff0f!important}.plan-card{margin-top:auto;border:1px solid rgba(125,211,252,.18);border-radius:18px;background:#0ea5e91f;padding:16px;flex-shrink:0}.plan-card p,.plan-card span{margin:0;display:block}.plan-card p{font-weight:900}.plan-card span{margin-top:6px;color:#bae6fd;font-size:13px;font-weight:700}.workspace{margin-left:284px;padding:22px 28px;display:grid;align-content:start;gap:16px;min-width:0;max-width:100%}.topbar{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;align-self:start;min-height:78px;border-radius:20px;background:#fff;border:1px solid #e2e8f0;padding:14px 18px;box-shadow:0 1px 2px #0f172a0a}.topbar-title-row{display:flex;align-items:center;gap:12px;min-width:0}.topbar-title-row>div{min-width:0}.mobile-top-brand,.mobile-page-heading{display:none}.desktop-page-title{min-width:0}.mobile-wordmark{color:#0f172a;font-size:24px;line-height:1;font-weight:950}.mobile-wordmark .brand-dot{color:#22c55e}.mobile-product-tag{border:1px solid #dbe3ee;border-radius:999px;background:#f8fafc;color:#475569;padding:2px 8px;font-size:9px;line-height:1;font-weight:950}.mobile-menu-button,.mobile-sidebar-overlay{display:none}.mobile-menu-button{width:44px;height:44px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;color:#0f172a;place-items:center;cursor:pointer;flex:0 0 auto}.eyebrow{margin:0;color:#0284c7;font-size:13px;font-weight:900;text-transform:uppercase}.topbar h1{margin:3px 0 0;font-size:23px;line-height:1.15}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.search{width:310px;height:44px;border:1px solid #dbe3ee;border-radius:14px;display:flex;align-items:center;gap:10px;padding:0 14px;color:#94a3b8}.search input{width:100%;border:0;outline:0;color:#0f172a}.primary-action{height:44px;border:0;border-radius:14px;background:#0ea5e9;color:#fff;display:inline-flex;align-items:center;gap:8px;padding:0 16px;font-weight:900;cursor:pointer}.secondary-action{background:#111827}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metrics.count-1{grid-template-columns:minmax(0,1fr)}.metrics.count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics.count-3{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-card{min-height:104px;border-radius:18px;background:#fff;border:1px solid #e2e8f0;padding:16px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.metric-card p,.metric-card span{margin:0}.metric-card p{color:#64748b;font-size:13px;font-weight:900}.metric-card strong{display:block;margin-top:8px;font-size:25px;line-height:1}.metric-card span{display:block;margin-top:8px;color:#64748b;font-size:13px;font-weight:700}.metric-card svg{color:#0ea5e9}.dashboard-hero{position:relative;overflow:hidden;border-radius:26px;background:radial-gradient(circle at 82% 18%,rgba(56,189,248,.42),transparent 28%),radial-gradient(circle at 18% 88%,rgba(16,185,129,.32),transparent 26%),linear-gradient(135deg,#07111f,#0e3a5f 46%,#0f766e);color:#fff;padding:26px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.88fr);gap:24px;align-items:end;box-shadow:0 24px 70px #082f493d}.dashboard-hero:after{content:"";position:absolute;inset:auto -80px -120px auto;width:280px;height:280px;border-radius:50%;border:40px solid rgba(255,255,255,.08)}.dashboard-hero>div{position:relative;z-index:1}.dashboard-hero span,.dashboard-hero p,.dashboard-hero h2{margin:0}.dashboard-hero>div>span{color:#7dd3fc;font-size:12px;font-weight:950;text-transform:uppercase}.dashboard-hero h2{margin-top:8px;font-size:clamp(28px,3.2vw,42px);line-height:1}.dashboard-hero p{max-width:620px;margin-top:12px;color:#dbeafe;font-size:14px;font-weight:750;line-height:1.65}.dashboard-hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-hero-stats span{min-height:82px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:#ffffff1a;padding:14px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.dashboard-hero-stats small{display:block;color:#bae6fd;font-size:11px;font-weight:950;text-transform:uppercase}.dashboard-hero-stats strong{display:block;margin-top:8px;color:#fff;font-size:22px;font-weight:950;line-height:1}.dashboard-metrics .metric-card{min-height:128px;position:relative;overflow:hidden;border:0;color:#fff;box-shadow:0 18px 42px #0f172a21}.dashboard-metrics .metric-card:after{content:"";position:absolute;right:-38px;top:-42px;width:126px;height:126px;border-radius:50%;background:#ffffff26}.dashboard-metrics .metric-card:nth-child(1){background:linear-gradient(135deg,#2563eb,#0891b2)}.dashboard-metrics .metric-card:nth-child(2){background:linear-gradient(135deg,#7c3aed,#db2777)}.dashboard-metrics .metric-card:nth-child(3){background:linear-gradient(135deg,#059669,#14b8a6)}.dashboard-metrics .metric-card:nth-child(4){background:linear-gradient(135deg,#f97316,#ef4444)}.dashboard-metrics .metric-card p,.dashboard-metrics .metric-card span{color:#ffffffc7}.dashboard-metrics .metric-card svg{position:relative;z-index:1;color:#ffffff8f}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px}.content-grid.single-column{grid-template-columns:minmax(0,1fr)}.panel{border-radius:20px;background:#fff;border:1px solid #e2e8f0;overflow:hidden}.panel-header{min-height:68px;border-bottom:1px solid #e2e8f0;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-header h2,.panel-header p{margin:0}.panel-header h2{font-size:18px;font-weight:900}.panel-header p{margin-top:4px;color:#64748b;font-size:13px;font-weight:650}.panel-header button{border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#334155;padding:9px 12px;font-weight:850;cursor:pointer}.panel-header button:hover{border-color:#93c5fd;color:#0369a1}.panel-primary{border:1px solid #0ea5e9;border-radius:12px;background:#0ea5e9;color:#fff;padding:9px 12px;font-weight:850;cursor:pointer;box-shadow:0 10px 22px #0ea5e938}.panel-primary:hover{border-color:#0284c7;background:#0284c7;color:#fff}.panel-header .panel-primary{border-color:#0ea5e9;background:#0ea5e9;color:#fff;box-shadow:0 10px 22px #0ea5e938}.panel-header .panel-primary:hover{border-color:#0284c7;background:#0284c7;color:#fff}.panel-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.affairs-workspace{display:grid;gap:12px;padding:0 18px 18px}.affair-filter-tabs{padding:0}.affair-card{border:1px solid #e2e8f0;border-radius:8px;background:#fff;padding:14px;display:grid;grid-template-columns:minmax(260px,1.3fr) minmax(280px,1fr) auto;gap:14px;align-items:center}.affair-card-main{min-width:0}.affair-card-title{display:flex;align-items:flex-start;gap:10px}.affair-card-title strong{display:block;color:#0f172a;font-size:15px}.affair-card-title small,.affair-card-main p,.affair-card-stats em{color:#64748b;font-size:12px}.affair-card-main p{margin:8px 0 0;line-height:1.5}.status-dot{width:10px;height:10px;border-radius:999px;margin-top:5px;background:#94a3b8;flex:0 0 auto}.status-dot.open{background:#10b981;box-shadow:0 0 0 4px #10b9811f}.status-dot.closed{background:#64748b}.affair-card-stats{display:grid;grid-template-columns:repeat(3,minmax(84px,1fr));gap:8px}.affair-card-stats span{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:8px;min-width:0}.affair-card-stats small,.affair-card-stats b,.affair-card-stats em{display:block}.affair-card-stats small{color:#64748b;font-size:10px;font-weight:900;text-transform:uppercase}.affair-card-stats b{color:#0f172a;font-size:13px;margin-top:3px}.affair-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.affair-documents{grid-column:1 / -1;display:grid;gap:10px;padding-top:10px;border-top:1px solid #edf2f7}.affair-documents-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.affair-documents-header strong{color:#0f172a;font-size:13px}.affair-documents-header span{color:#64748b;font-size:12px;font-weight:800}.affair-document-list{display:flex;flex-wrap:wrap;gap:8px}.affair-document-chip{min-width:150px;border:1px solid #dbe3ee;border-radius:8px;background:#f8fafc;padding:9px 10px;display:grid;gap:3px;text-align:left;cursor:pointer}.affair-document-chip span,.affair-document-chip em{color:#64748b;font-size:11px;font-style:normal;font-weight:800}.affair-document-chip strong{color:#0f172a;font-size:13px}.affair-document-chip:hover{border-color:#93c5fd;background:#eff6ff}.affair-empty-docs{text-align:left;margin:0}.field-stack{display:grid;gap:6px}.inline-field-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#475569;font-size:12px;font-weight:900}.invoice-table{padding:0 18px 18px}.priority-table{min-height:260px}.document-filter-tabs{display:flex;align-items:center;gap:8px;padding:14px 18px 0;overflow-x:auto}.document-filter-tabs button{min-height:38px;border:1px solid #dbe3ee;border-radius:999px;background:#f8fafc;color:#334155;padding:0 11px 0 13px;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}.document-filter-tabs button.active{border-color:#0ea5e9;background:#0ea5e9;color:#fff;box-shadow:0 10px 22px #0ea5e92e}.document-filter-tabs strong{min-width:24px;height:24px;border-radius:999px;background:#0f172a14;display:grid;place-items:center;font-size:11px}.document-filter-tabs button.active strong{background:#fff3}.document-advanced-filters{margin:10px 18px 0;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#eef7ff);padding:8px;display:grid;grid-template-columns:auto repeat(5,minmax(120px,1fr)) auto;gap:8px;align-items:center}.filter-title{height:36px;border-radius:11px;background:#0f172a;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;font-size:12px;white-space:nowrap}.document-advanced-filters label{min-width:0;height:36px;border:1px solid #dbe3ee;border-radius:11px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 8px}.document-advanced-filters span{color:#64748b;font-size:11px;font-weight:850;white-space:nowrap}.document-advanced-filters input,.document-advanced-filters select{width:100%;min-width:0;height:34px;border:0;border-radius:9px;background:transparent;color:#0f172a;padding:0;font-weight:800;outline:none}.document-advanced-filters button{height:36px;border:1px solid #dbe3ee;border-radius:11px;background:#fff;color:#334155;padding:0 11px;font-weight:850;cursor:pointer;white-space:nowrap}.document-advanced-filters button:hover{border-color:#0ea5e9;color:#0369a1}.document-loading{margin:12px 18px 0}.document-pagination{border-top:1px solid #e2e8f0;padding:12px 18px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.document-pagination span{color:#64748b;font-size:13px;font-weight:850}.document-pagination div{display:flex;align-items:center;gap:8px}.document-pagination select,.document-pagination button{height:38px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#334155;padding:0 10px;font-weight:850}.document-pagination button{cursor:pointer}.document-pagination button:disabled,.document-pagination select:disabled{opacity:.55;cursor:not-allowed}.settings-tabs{border:1px solid #dbe3ee;border-radius:18px;background:#f8fafc;padding:8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.settings-tabs button{min-height:66px;border:1px solid transparent;border-radius:14px;background:transparent;color:#334155;padding:10px 12px;text-align:left;cursor:pointer}.settings-tabs button strong,.settings-tabs button span{display:block}.settings-tabs button strong{color:#0f172a;font-size:13px;font-weight:950}.settings-tabs button span{margin-top:4px;color:#64748b;font-size:11px;font-weight:750}.settings-tabs button.active{border-color:#0ea5e9;background:#fff;box-shadow:0 12px 26px #0ea5e924}.settings-tabs button.active strong{color:#0369a1}.settings-panel{border:1px solid #dbe3ee;border-radius:18px;background:#fff;padding:18px;display:grid;gap:14px}.settings-panel.templates-panel{background:linear-gradient(180deg,#fff,#f8fafc)}.settings-overview{padding:18px;display:grid;gap:14px}.page-settings-tabs{background:#fff}.settings-read-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.settings-read-grid span{min-height:76px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:12px}.settings-read-grid span.wide{grid-column:span 3}.settings-read-grid small,.settings-read-grid strong{display:block}.settings-read-grid small{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.settings-read-grid strong{margin-top:7px;color:#0f172a;font-size:14px;font-weight:900;word-break:break-word}.settings-template-read{display:grid;grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);gap:16px;align-items:start}.settings-section{margin-top:8px;border:1px solid #dbe3ee;border-radius:18px;background:#f8fafc;padding:16px}.settings-section-title{margin-bottom:14px}.settings-section-title strong,.settings-section-title span{display:block}.settings-section-title strong{font-size:16px;color:#0f172a}.settings-section-title span{margin-top:4px;color:#64748b;font-size:13px;font-weight:650}.template-layout-grid{display:grid;grid-template-columns:minmax(460px,.95fr) minmax(500px,1.05fr);gap:20px;align-items:start}.template-controls{display:grid;gap:14px;min-width:0}.logo-picker{min-height:96px;border:1px dashed #94a3b8;border-radius:16px;background:#fff;display:grid;place-items:center;cursor:pointer;overflow:hidden}.logo-picker input{display:none}.logo-picker img{max-width:220px;max-height:86px;object-fit:contain}.logo-picker span{color:#0369a1;font-weight:900}.template-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.template-switches label{min-height:38px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:0 10px;display:flex;align-items:center;gap:8px;color:#334155;font-size:12px;font-weight:850}.template-text-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.template-text-card{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px;display:grid;gap:8px;min-width:0}.template-text-card strong{color:#0369a1}.template-text-card textarea{min-height:86px;resize:vertical}.template-preview-card{border:1px solid #cbd5e1;border-radius:18px;background:#fff;padding:24px;box-shadow:0 18px 36px #0f172a14;min-height:640px}.template-preview-header,.preview-brand,.template-preview-brand{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.template-preview-brand{justify-content:flex-start}.template-preview-brand img,.preview-brand img{object-fit:contain;border-radius:10px;max-width:220px;max-height:110px}.template-preview-brand>span,.preview-brand>b{border-radius:10px;background:#f1f5f9;color:#94a3b8;display:grid;place-items:center;font-size:11px;font-weight:900}.template-preview-brand strong,.template-preview-title h3{color:#0f172a}.template-preview-brand small,.template-preview-legal small,.template-preview-meta small,.template-preview-card footer span{display:block;color:#64748b;font-size:11px;font-weight:750}.template-preview-title{margin:30px 0 18px;text-align:center}.template-preview-title h3{margin:0;font-size:28px;text-transform:uppercase}.template-preview-title span{color:#0284c7;font-weight:900}.template-preview-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}.template-preview-meta span{border:1px solid #e2e8f0;border-radius:12px;padding:10px}.template-preview-lines{margin-top:20px;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden;display:grid;grid-template-columns:1fr 42px 110px}.template-preview-lines span{background:#e0f2fe;color:#0f172a;font-size:11px;font-weight:900}.template-preview-lines>*{padding:12px;border-bottom:1px solid #e2e8f0}.template-preview-total{margin-top:16px;margin-left:auto;max-width:210px;border-radius:12px;background:#ecfdf5;color:#047857;padding:11px 13px;display:flex;justify-content:space-between;font-weight:900}.template-preview-card footer,.preview-footer{margin-top:26px;padding-top:16px;border-top:2px solid #0ea5e9;text-align:center;color:#475569;font-size:11px;line-height:1.7}.template-preview-card footer strong,.preview-footer strong{display:block;color:#0f172a}.client-row{cursor:pointer}.client-history-panel{display:grid;gap:16px}.client-history-hero{border-radius:18px;background:linear-gradient(135deg,#0f172a,#075985);color:#fff;padding:18px;display:flex;justify-content:space-between;gap:14px;align-items:center}.client-history-hero strong,.client-history-hero span{display:block}.client-history-hero strong{font-size:20px}.client-history-hero>div>span{margin-top:5px;color:#cbd5e1;font-size:13px;font-weight:750}.client-history-stats{display:flex;gap:8px}.client-history-stats span{min-width:108px;border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:9px 11px;background:#ffffff14}.client-history-stats small{display:block;color:#bae6fd;font-weight:850}.client-history-groups,.history-group{display:grid;gap:12px}.client-history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.client-history-summary article{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:12px 14px}.client-history-summary small,.client-history-summary strong,.client-history-summary span{display:block}.client-history-summary small{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.client-history-summary strong{margin-top:6px;color:#0f172a;font-size:18px;font-weight:950}.client-history-summary span{margin-top:4px;color:#0369a1;font-size:12px;font-weight:800}.client-history-toolbar,.client-history-columns{display:grid;gap:12px}.client-history-toolbar{grid-template-columns:repeat(3,max-content);align-items:center;padding:2px 0 4px}.client-history-toolbar .panel-primary,.client-history-toolbar .ghost-button{min-height:40px}.client-history-toolbar .ghost-button{border-radius:12px}.client-history-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.history-group{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}.history-group-title{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 14px;display:flex;justify-content:space-between;color:#0f172a}.history-table{padding:10px 14px 14px}.quick-history-card .history-group-title{align-items:center}.quick-history-list{padding:10px 14px 14px;display:grid;gap:10px}.quick-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px}.quick-history-row strong,.quick-history-row span{display:block}.quick-history-row span{color:#475569;font-size:12px;font-weight:750;margin-top:4px}.quick-history-actions,.history-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quick-history-actions .table-action,.history-row-actions .table-action{display:inline-flex;align-items:center;justify-content:center}.history-row{display:grid;grid-template-columns:1fr 120px 120px 130px minmax(120px,auto);gap:10px;align-items:center;min-height:42px;border-bottom:1px solid #edf2f7;font-size:13px}.history-row.head{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.history-row button{border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#0369a1;height:32px;font-weight:900;cursor:pointer}.payment-followup-shell{display:grid;gap:14px}.payment-sort-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.payment-sort-bar>span{color:#475569;font-size:12px;font-weight:900;text-transform:uppercase}.payment-sort-actions{display:flex;flex-wrap:wrap;gap:8px}.payment-sort-actions button{border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#334155;padding:7px 10px;font-size:12px;font-weight:850;cursor:pointer}.payment-sort-actions button.active{border-color:#0ea5e9;background:#e0f2fe;color:#0369a1}.payment-followup-table{border:1px solid #e2e8f0;border-radius:18px;background:#fff;overflow:hidden}.payment-followup-head,.payment-followup-grid-row{display:grid;grid-template-columns:.9fr 1fr .95fr .75fr 1.35fr;gap:12px;align-items:center}.payment-followup-head{background:#f8fafc;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;padding:14px 16px}.payment-followup-grid-row{border-top:1px solid #edf2f7;padding:14px 16px}.payment-followup-status,.payment-followup-contact{display:grid;gap:4px}.payment-followup-contact strong,.payment-followup-contact span{display:block}.payment-followup-contact strong{color:#0f172a;font-size:13px;font-weight:900}.payment-followup-contact span{color:#475569;font-size:12px;font-weight:750}.payment-followup-empty{padding:18px}.client-portfolio-shell{display:grid;gap:14px}.client-portfolio-filters{display:flex;flex-wrap:wrap;gap:10px}.client-portfolio-filters button{border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;color:#0f172a;padding:8px 10px;display:inline-flex;align-items:center;gap:8px;min-width:0;text-align:center;cursor:pointer;white-space:nowrap}.client-portfolio-filters button.active{border-color:#0ea5e9;background:#e0f2fe;box-shadow:0 8px 18px #0ea5e929}.client-portfolio-filters strong,.client-portfolio-filters span{display:inline-block}.client-portfolio-filters strong{font-size:12px;font-weight:900}.client-portfolio-filters span{min-width:22px;border-radius:999px;background:#94a3b829;color:#475569;font-size:11px;font-weight:900;line-height:1;padding:5px 7px}.client-portfolio-table{border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff}.client-portfolio-head,.client-portfolio-row{display:grid;grid-template-columns:1.3fr .8fr 1fr .7fr .75fr 1.35fr;gap:12px;align-items:center}.client-portfolio-head{background:#f8fafc;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase;padding:14px 16px}.client-portfolio-row{border-top:1px solid #edf2f7;padding:14px 16px}.client-portfolio-cell{display:grid;gap:4px}.client-portfolio-cell strong,.client-portfolio-cell span{display:block}.client-portfolio-cell strong{color:#0f172a;font-size:14px;font-weight:900}.client-portfolio-cell span{color:#475569;font-size:12px;font-weight:750}.client-portfolio-cell.primary{cursor:pointer}.client-portfolio-cell.primary strong{color:#0369a1}.client-portfolio-tags,.client-portfolio-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.status-chip{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;white-space:nowrap}.follow-up{background:#fef3c7;color:#92400e}.quote-chip{background:#ede9fe;color:#6d28d9}.overdue-chip{background:#fee2e2;color:#b91c1c}.clear-chip{background:#dcfce7;color:#166534}.table-head,.table-row{display:grid;grid-template-columns:1.15fr 1.2fr .8fr .8fr .7fr;gap:12px;align-items:center}.document-head,.document-row{grid-template-columns:1fr 1fr 1fr .68fr .7fr .6fr minmax(250px,.95fr)}.document-head.with-select,.document-row.with-select{grid-template-columns:38px 1fr 1fr 1fr .68fr .7fr .6fr minmax(250px,.95fr)}.table-head{color:#64748b;font-size:12px;font-weight:900;padding:14px 0}.table-row{min-height:58px;border-top:1px solid #edf2f7;font-size:14px}.table-row strong{color:#0369a1}.table-row span{color:#334155;font-weight:650}.table-row em{width:fit-content;border-radius:999px;padding:6px 9px;font-style:normal;font-size:11px;font-weight:900}.sent{background:#e0f2fe;color:#0369a1}.viewed{background:#eef2ff;color:#4338ca}.overdue{background:#fee2e2;color:#b91c1c}.draft{background:#f1f5f9;color:#475569}.accepted{background:#dcfce7;color:#047857}.converted,.partially_credited,.credited,.paid{background:#d1fae5;color:#047857}.void{background:#fee2e2;color:#b91c1c}.table-action,.row-actions button{border:0;border-radius:10px;background:#0ea5e9;color:#fff;padding:7px 10px;font-size:12px;font-weight:900;cursor:pointer}.icon-action{width:34px;height:34px;justify-content:center;padding:0;flex:none}.compact-confirm{min-width:42px;height:34px;padding:0 9px}.dark-action{background:#111827}.mute-action{background:#475569}.danger-table-action{background:#dc2626}.linked-doc{width:fit-content;border-radius:999px;background:#f1f5f9;color:#475569;padding:6px 9px;font-size:11px;font-weight:900;white-space:nowrap}.table-action:disabled,.table-toolbar button:disabled{cursor:not-allowed;opacity:.55}.lifecycle-actions{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:nowrap;overflow:visible}.lifecycle-actions .table-action{display:inline-flex;align-items:center}.table-toolbar{margin-top:14px;border:1px solid #dbeafe;border-radius:16px;background:#eff6ff;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.table-toolbar span{color:#1e40af;font-size:13px;font-weight:900}.table-toolbar button,.ghost-action{border:0;border-radius:12px;background:#0ea5e9;color:#fff;padding:10px 12px;font-size:13px;font-weight:900;cursor:pointer}.notification-menu{position:relative;flex:none}.bell-button{position:relative;width:44px;height:44px;display:grid;place-items:center;border:1px solid #dbe3ee;border-radius:14px;background:#fff;color:#0f172a;cursor:pointer}.bell-button span{position:absolute;top:-7px;right:-7px;min-width:21px;height:21px;display:grid;place-items:center;border:2px solid white;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:950}.notification-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:20;width:360px;border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 24px 70px #0f172a38;overflow:hidden}.notification-header{padding:14px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.notification-header strong,.notification-header small{display:block}.notification-header strong{font-weight:950}.notification-header small{margin-top:3px;color:#64748b;font-size:12px;font-weight:750}.notification-item{width:100%;min-height:64px;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#0f172a;padding:12px 14px;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left}.notification-item.danger{background:linear-gradient(180deg,#fff7f7,#fff)}.notification-item.info{background:linear-gradient(180deg,#f4fbff,#fff)}.notification-item.neutral{background:linear-gradient(180deg,#f8fafc,#fff)}.notification-item svg{color:#0284c7;flex:none}.notification-copy{display:grid;gap:2px;min-width:0}.notification-item span,.notification-copy small{display:block}.notification-item span{color:#334155;font-size:13px;font-weight:850}.notification-copy small{color:#64748b;font-size:12px;font-weight:750}.notification-item strong{margin-left:auto;color:#0369a1;font-size:13px;white-space:nowrap}.notification-empty{margin:0;padding:18px;color:#94a3b8;font-size:13px;font-weight:850;text-align:center}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 25% 10%,rgba(14,165,233,.18),transparent 30%),linear-gradient(135deg,#050b16,#0d1b2a)}.auth-card{width:min(520px,100%);border-radius:28px;background:#fff;padding:28px;box-shadow:0 30px 80px #02061759}.auth-brand{display:flex;align-items:center;justify-items:initial;gap:12px;color:#0f172a;border-bottom-color:#e2e8f0}.auth-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0;padding:6px;border-radius:16px;background:#f1f5f9}.managed-note{display:grid;gap:4px;margin-top:18px;border:1px solid #bae6fd;border-radius:16px;background:#f0f9ff;padding:13px}.managed-note strong{color:#0369a1;font-size:13px}.managed-note span{color:#475569;font-size:12px;font-weight:700}.auth-toggle button{border:0;border-radius:12px;padding:11px;background:transparent;color:#64748b;font-weight:900;cursor:pointer}.auth-toggle button.active{background:#fff;color:#0369a1;box-shadow:0 1px 2px #0f172a14}.auth-form,.side-form,.modal-form{display:grid;gap:13px}.auth-form label,.side-form label,.modal-form label{display:grid;gap:8px;color:#475569;font-size:13px;font-weight:900}.auth-form input,.side-form input,.side-form select,.modal-form input,.modal-form select{width:100%;border:1px solid #dbe3ee;border-radius:13px;background:#fff;color:#0f172a;padding:12px;outline:none}.auth-submit{width:100%;justify-content:center}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-grid.three-cols,.form-grid.two-plus-one{grid-template-columns:repeat(3,minmax(0,1fr))}.form-error,.notice-error{margin:0;border-radius:14px;background:#fee2e2;color:#991b1b;padding:12px;font-size:13px;font-weight:800}.notice-error{border:1px solid #fecaca}.simple-list{padding:8px 18px 18px}.list-row{min-height:64px;border-top:1px solid #edf2f7;display:flex;align-items:center;justify-content:space-between;gap:14px}.client-row{display:grid;grid-template-columns:minmax(220px,1fr) auto auto}.client-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.client-actions button,.ghost-mini{min-height:34px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#334155;padding:7px 10px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;cursor:pointer}.client-actions button:hover,.ghost-mini:hover{border-color:#93c5fd;color:#0369a1}.client-actions .danger-action{border-color:#fecaca;background:#fff1f2;color:#be123c}.client-actions .danger-action:hover{border-color:#fb7185;background:#ffe4e6;color:#9f1239}.locked-chip{min-height:34px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;padding:7px 10px;display:inline-flex;align-items:center;font-size:12px;font-weight:900}.list-row strong,.list-row span{display:block}.list-row strong{font-weight:900}.list-row span{margin-top:4px;color:#64748b;font-size:13px;font-weight:650}.list-row small{display:block;margin-top:6px;color:#0284c7;font-size:12px;font-weight:900}.list-row em{color:#0369a1;font-style:normal;font-weight:900}.payment-followup-row{align-items:flex-start;padding:14px 0}.payment-followup-main{min-width:0}.payment-followup-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}.compact-row{min-height:56px}.row-actions{display:flex;align-items:center;gap:10px}.row-actions strong{color:#0f172a;white-space:nowrap}.empty-state{margin:0;padding:28px;color:#94a3b8;text-align:center;font-weight:800}.field-hint{display:block;margin-top:6px;color:#64748b;font-size:12px;font-weight:700}.company-card{display:grid;gap:10px;margin:18px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:18px}.company-card strong{font-size:20px;font-weight:900}.company-card span{color:#475569;font-weight:750}.company-edit-button{width:fit-content;margin-top:8px}.side-form{padding:16px}.side-form .primary-action{justify-content:center;width:100%}.item-stack{display:grid;gap:10px}.draft-item{display:grid;gap:10px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:#ffffff0f;padding:12px}.light-item{border-color:#e2e8f0;background:#f8fafc}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:#0206178c;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.operation-modal{width:min(880px,100%);max-height:min(760px,calc(100vh - 48px));display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border-radius:26px;background:#fff;border:1px solid rgba(226,232,240,.9);box-shadow:0 30px 100px #02061759}.operation-modal.document-modal{width:min(1240px,calc(100vw - 48px))}.operation-modal.history-modal{width:min(1380px,calc(100vw - 40px))}.operation-modal.settings-modal{width:min(1480px,calc(100vw - 40px));max-height:min(900px,calc(100vh - 32px))}.modal-header{min-height:104px;padding:22px 24px;display:flex;justify-content:space-between;gap:16px;color:#fff;background:linear-gradient(135deg,#07111f,#0f2f4f 54%,#0ea5e9)}.modal-header p,.modal-header h2,.modal-header span{margin:0}.modal-header p{color:#bae6fd;font-size:12px;font-weight:950;text-transform:uppercase}.modal-header h2{margin-top:5px;font-size:24px;line-height:1.1}.modal-header span{display:block;margin-top:7px;color:#dbeafe;font-size:13px;font-weight:700}.modal-close{width:42px;height:42px;display:grid;place-items:center;flex:none;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:#ffffff1f;color:#fff;cursor:pointer}.modal-body{overflow:auto;padding:22px 24px 24px}.settings-modal .modal-body{padding:24px 30px 30px}.modal-error{margin:0 0 14px;border:1px solid #fecaca;border-radius:14px;background:#fee2e2;color:#991b1b;padding:12px 14px;font-size:13px;font-weight:850}.loading-note{margin:0 0 14px;border:1px solid #bae6fd;border-radius:14px;background:#f0f9ff;color:#0369a1;padding:12px 14px;font-size:13px;font-weight:850}.modal-form{gap:16px}.modal-form input,.modal-form select,.modal-form textarea{min-width:0}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:10px}.document-footer{flex-wrap:wrap}.document-footer .preview-button{border-color:#bae6fd;background:#f0f9ff;color:#0369a1}.document-footer .draft-action{background:#111827}.ghost-button{height:44px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;color:#334155;padding:0 16px;font-weight:900;cursor:pointer}.document-create-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(420px,.82fr);gap:18px;align-items:start}.document-form-column{display:grid;gap:16px;min-width:0}.quick-client-shell{display:grid;gap:12px}.client-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.quick-client-toggle{height:47px;border:1px solid #bae6fd;border-radius:14px;padding:0 14px;background:#f0f9ff;color:#0369a1;font-weight:950;display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}.quick-client-toggle:hover{background:#e0f2fe;border-color:#7dd3fc}.quick-client-card{border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(180deg,#eff6ff,#fff);padding:14px;box-shadow:0 12px 30px #0f172a0f}.quick-client-card>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.quick-client-card strong{color:#0f172a;font-size:14px}.quick-client-card span{color:#64748b;font-size:12px;font-weight:800;text-align:right}.quick-client-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-client-email{grid-column:1 / -1}.quick-client-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;flex-wrap:wrap}.document-preview{position:sticky;top:0;min-width:0}.preview-paper{border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 18px 45px #0f172a14;overflow:hidden;min-width:0}.preview-top{min-height:96px;display:flex;justify-content:space-between;gap:14px;padding:16px;color:#fff;background:linear-gradient(135deg,#07111f,#0f2f4f 68%,#0ea5e9)}.preview-top strong,.preview-top span,.preview-legal span{display:block}.preview-top strong{font-size:17px;font-weight:950}.preview-top span,.preview-legal span{margin-top:4px;color:#dbeafe;font-size:11px;font-weight:750}.preview-legal{text-align:right;flex:none}.preview-title{padding:15px 16px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;gap:12px}.preview-title h3,.preview-title span{margin:0}.preview-title h3{font-size:20px;font-weight:950}.preview-title span,.preview-meta small{color:#64748b;font-size:11px;font-weight:900;text-transform:uppercase}.preview-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px;border-bottom:1px solid #e2e8f0}.preview-meta strong,.preview-meta span{display:block}.preview-meta strong{margin-top:5px;font-size:13px;font-weight:950}.preview-meta span{margin-top:4px;color:#64748b;font-size:12px;font-weight:700}.preview-lines{padding:10px 16px}.preview-line{min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) 44px 100px;gap:10px;align-items:center;border-bottom:1px solid #edf2f7;font-size:12px}.preview-line span:first-child{color:#0f172a;font-weight:850}.preview-line span,.preview-line strong{overflow:hidden;text-overflow:ellipsis}.preview-line strong{color:#0369a1;text-align:right;white-space:nowrap}.preview-line-head{min-height:32px;color:#64748b;font-size:10px;font-weight:950;text-transform:uppercase}.preview-empty{margin:0;padding:24px 8px;color:#94a3b8;text-align:center;font-size:12px;font-weight:850}.preview-totals{display:grid;gap:8px;padding:14px 16px 16px;background:#f8fafc}.preview-totals span{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-totals small{color:#64748b;font-size:12px;font-weight:900}.preview-totals strong{color:#0f172a;font-size:13px}.preview-grand-total{border-radius:12px;background:#ecfdf5;padding:10px 12px}.preview-grand-total strong{color:#047857;font-size:17px}.credit-editor{display:grid;gap:16px}.credit-source{border:1px solid #bae6fd;border-radius:18px;background:linear-gradient(135deg,#f0f9ff,#fff);padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}.credit-source span{color:#2563eb;font-size:11px;font-weight:950;text-transform:uppercase}.credit-source strong{font-size:18px;font-weight:950}.credit-source em{color:#475569;font-size:13px;font-style:normal;font-weight:750;justify-self:end;text-align:right}.credit-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.credit-mode label{border:1px solid #dbe3ee;border-radius:16px;background:#fff;color:#334155;padding:14px;display:flex;align-items:center;gap:9px;min-height:54px;line-height:1.25;font-weight:900;cursor:pointer;white-space:normal}.credit-mode label input{width:18px;height:18px;flex:none}.credit-mode label.active{border-color:#0ea5e9;background:linear-gradient(135deg,#eff6ff,#f0f9ff);color:#0369a1;box-shadow:inset 0 0 0 1px #0ea5e91f}.credit-lines{display:grid;gap:8px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:10px}.credit-line{display:grid;grid-template-columns:34px minmax(220px,1fr) 78px 96px 116px;gap:10px;align-items:center;border:1px solid #e5edf6;border-radius:12px;background:#fff;padding:10px}.credit-line span{color:#0f172a;font-size:13px;font-weight:850}.credit-line strong,.credit-line em{color:#0369a1;font-size:12px;font-style:normal;font-weight:900;white-space:nowrap}.credit-line input[type=number]{width:100%;height:38px;border:1px solid #dbe3ee;border-radius:10px;padding:0 9px}.credit-head{min-height:auto;border:0;background:transparent;color:#64748b;padding:0 10px 2px}.credit-head span{color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase}.credit-total{border-radius:16px;background:linear-gradient(135deg,#ecfdf5,#f0fdf4);border:1px solid #bbf7d0;padding:15px 16px;display:flex;justify-content:space-between;gap:14px}.credit-total span{color:#047857;font-weight:900}.credit-total strong{color:#047857;font-size:20px;font-weight:950}.confirm-box{border:1px solid #fdba74;border-radius:16px;background:linear-gradient(135deg,#fff7ed,#fffbeb);color:#9a3412;padding:14px 16px;display:flex!important;grid-template-columns:none!important;flex-direction:row!important;align-items:center;gap:10px!important;font-size:13px;font-weight:900;line-height:1.45}.confirm-box input{width:18px;height:18px;flex:none}.document-detail{display:grid;gap:16px}.detail-hero{border-radius:18px;background:linear-gradient(135deg,#07111f,#0f2f4f 64%,#0ea5e9);color:#fff;padding:18px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.detail-hero span,.detail-hero h3,.detail-hero p{margin:0}.detail-hero span{color:#bae6fd;font-size:12px;font-weight:950;text-transform:uppercase}.detail-hero h3{margin-top:5px;font-size:26px;font-weight:950}.detail-hero p{margin-top:6px;color:#dbeafe;font-size:13px;font-weight:750}.detail-hero-notes{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.detail-hero-notes small{border-radius:999px;background:#ffffff24;color:#f8fafc;padding:6px 10px;font-size:11px;font-weight:850}.detail-hero em{border-radius:999px;background:#ffffff29;color:#fff;padding:8px 12px;font-size:12px;font-style:normal;font-weight:950}.detail-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.detail-action-button{min-height:40px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#334155;padding:0 12px;display:inline-flex;align-items:center;gap:8px;font-weight:900;cursor:pointer}.detail-action-button:disabled{cursor:not-allowed;opacity:.52}.detail-action-button.primary{border-color:#0ea5e9;background:#0ea5e9;color:#fff}.detail-action-button.dark{border-color:#111827;background:#111827;color:#fff}.detail-action-button.danger{border-color:#dc2626;background:#dc2626;color:#fff}.detail-action-button.muted{border-color:#475569;background:#475569;color:#fff}.detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.detail-stats span{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:13px}.detail-stats small,.detail-stats strong{display:block}.detail-stats small{color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase}.detail-stats strong{margin-top:6px;font-size:18px;font-weight:950}.detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:12px}.detail-card{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:16px}.detail-card.wide{grid-row:span 3}.detail-card h4{margin:0 0 12px;font-size:15px;font-weight:950}.detail-card p{margin:0;border-top:1px solid #edf2f7;padding:10px 0;color:#475569;font-size:13px;font-weight:800}.linked-document-stack{display:grid;gap:10px}.linked-document-stack p{border-top:1px solid #edf2f7}.linked-document-button{width:100%;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff;padding:11px 12px;display:grid;gap:4px;text-align:left;cursor:pointer}.linked-document-button span,.linked-document-button strong{display:block}.linked-document-button span{color:#0369a1;font-size:11px;font-weight:950;text-transform:uppercase}.linked-document-button strong{color:#0f172a;font-size:13px;font-weight:900}.field-hint{color:#64748b;font-size:11px;font-weight:700;line-height:1.5}.detail-lines{display:grid;gap:8px}.detail-line{display:grid;grid-template-columns:minmax(220px,1fr) 60px 90px 62px 110px;gap:8px;align-items:center;border:1px solid #edf2f7;border-radius:12px;padding:10px;font-size:13px}.detail-line.head{border:0;padding:0 10px;color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase}.detail-line strong{color:#0369a1;text-align:right}.soft-action{background:#e0f2fe;color:#0369a1}.timeline-card{grid-column:2}.timeline-list{display:grid;gap:10px}.timeline-item{position:relative;border-left:3px solid #0ea5e9;border-radius:12px;background:#f8fafc;padding:10px 12px}.timeline-item span,.timeline-item strong,.timeline-item em{display:block}.timeline-item span{color:#0369a1;font-size:11px;font-weight:950;text-transform:uppercase}.timeline-item strong{margin-top:4px;color:#0f172a;font-size:13px;font-weight:900}.timeline-item em{margin-top:5px;color:#64748b;font-size:11px;font-style:normal;font-weight:750}.items-editor{display:grid;gap:12px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:14px}.items-toolbar,.items-total{display:flex;align-items:center;justify-content:space-between;gap:12px}.items-toolbar strong,.items-toolbar span{display:block}.items-toolbar strong{color:#0f172a;font-weight:950}.items-toolbar span{margin-top:3px;color:#64748b;font-size:12px;font-weight:750}.items-toolbar button{border:0;border-radius:12px;background:#0ea5e9;color:#fff;padding:10px 12px;font-size:13px;font-weight:900;cursor:pointer}.items-table{display:grid;gap:8px;overflow-x:visible;min-width:0}.items-head,.items-row{display:grid;grid-template-columns:minmax(170px,1fr) 64px 96px 74px 104px 38px;gap:8px;align-items:center}.items-head{color:#64748b;font-size:11px;font-weight:950;text-transform:uppercase}.items-row{border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:8px;min-width:0}.items-row input,.items-row select{width:100%;height:40px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#0f172a;padding:0 10px;outline:none;min-width:0}.items-row strong{color:#0369a1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.items-row button{width:34px;height:38px;border:0;border-radius:10px;background:#fee2e2;color:#b91c1c;font-weight:950;cursor:pointer}.items-row button:disabled{cursor:not-allowed;opacity:.45}.items-total{border-top:1px solid #e2e8f0;padding-top:12px}.items-total span{color:#64748b;font-size:13px;font-weight:850}.items-total strong{color:#047857;font-size:20px;font-weight:950}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;background:linear-gradient(180deg,#f8fafcbf,#fff0),#fff}.accountant-dashboard{display:grid;gap:16px}.accountant-workbench{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portfolio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding-bottom:8px}.portfolio-card,.portfolio-empty{border-radius:16px;border:1px solid #dbeafe;background:linear-gradient(180deg,#fff,#f8fbff);padding:14px}.portfolio-card{display:grid;gap:12px;text-align:left;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.portfolio-card:hover{transform:translateY(-1px);box-shadow:0 14px 32px #2563eb1f;border-color:#93c5fd}.portfolio-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.portfolio-card-head strong,.portfolio-empty strong{display:block;color:#0f172a;font-size:15px;font-weight:950}.portfolio-card-head span,.portfolio-empty span{color:#475569;font-size:12px;font-weight:700;line-height:1.5}.portfolio-card-head em{color:#0f766e;font-size:14px;font-style:normal;font-weight:950;white-space:nowrap}.portfolio-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.portfolio-meta span{border-radius:12px;background:#eff6ffe6;padding:10px}.portfolio-meta small,.portfolio-invoice-row small,.portfolio-invoice-row span{display:block;font-weight:800}.portfolio-meta small,.portfolio-invoice-row small{color:#64748b;font-size:11px}.portfolio-meta strong,.portfolio-invoice-row span{color:#0f172a;font-size:13px;font-weight:900}.portfolio-invoices{display:grid;gap:8px}.portfolio-actions{display:flex;flex-wrap:wrap;gap:8px}.portfolio-invoice-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:12px;border:1px solid #e2e8f0;background:#ffffffe6;padding:9px 10px}.portfolio-empty{display:grid;gap:6px;place-items:start;border-style:dashed}.workflow-card{min-height:132px;display:grid;align-content:start;gap:10px;border-radius:20px;padding:18px;border:1px solid transparent}.workflow-card strong{font-size:17px;font-weight:950}.workflow-card span{color:#475569;font-size:13px;font-weight:700;line-height:1.55}.accent-blue{background:#eff6ff;border-color:#bfdbfe}.accent-green{background:#ecfdf5;border-color:#a7f3d0}.accent-orange{background:#fff7ed;border-color:#fed7aa}.mini-table{grid-column:auto;border:1px solid #e2e8f0;border-radius:20px;padding:0 16px 10px;background:#fff;box-shadow:0 14px 34px #0f172a0f;overflow:hidden}.mini-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mini-table.priority-table{border-color:#0ea5e92e;background:linear-gradient(180deg,#f0f9fff2,#fff 42%)}.mini-table:nth-child(2){border-color:#7c3aed2e;background:linear-gradient(180deg,#f5f3fff2,#fff 42%)}.mini-table h3{margin:0;padding:16px 0;font-size:15px;font-weight:950;display:flex;align-items:center;gap:8px;color:#0f172a}.mini-table h3 svg{color:#0ea5e9}.mini-table:nth-child(2) h3 svg{color:#7c3aed}.mini-table .compact-row,.mini-table .list-row{border-radius:14px;border:1px solid #e2e8f0;background:#ffffffd1;margin-bottom:8px;padding:12px}.workbench-link{justify-self:start}.dashboard-followup-list,.dashboard-affair-list{gap:8px}.compact-followup-row{margin-bottom:0}.dashboard-affair-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-affair-actions{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:1280px)and (min-width:901px){.operation-modal.document-modal{width:min(1120px,calc(100vw - 24px))}.document-create-layout{grid-template-columns:minmax(0,1fr) minmax(330px,.72fr);gap:14px}.items-head,.items-row{grid-template-columns:minmax(145px,1fr) 58px 82px 66px 86px 34px;gap:6px}.items-row input,.items-row select{padding:0 8px;font-size:13px}.preview-line{grid-template-columns:minmax(0,1fr) 38px 82px}.document-head,.document-row{grid-template-columns:1fr .95fr .58fr .62fr .52fr minmax(210px,.85fr);gap:8px}.document-head.with-select,.document-row.with-select{grid-template-columns:32px 1fr .95fr .58fr .62fr .52fr minmax(210px,.85fr)}}@media(max-width:1080px){.app{display:block;min-width:0;overflow-x:hidden}.sidebar{position:fixed;inset:0 auto 0 0;z-index:80;width:min(292px,86vw);height:100vh;max-height:100vh;overflow-y:auto;padding:22px;gap:18px;transform:translate(-105%);transition:transform .24s ease;box-shadow:26px 0 80px #02061747}.sidebar.sidebar-open{transform:translate(0)}.sidebar nav{display:grid;flex:0 1 auto;gap:8px;overflow-x:hidden;overflow-y:auto;padding:0 4px 0 0;margin:0}.sidebar nav button{width:100%;flex:initial;min-width:0;border-radius:14px;padding:12px 14px}.sidebar nav button span{white-space:normal}.brand{padding-bottom:18px}.brand-mark{border-radius:14px;font-size:21px;padding:8px 11px}.plan-card{display:block}.logout-button{align-self:stretch;justify-content:flex-start;width:100%!important}.mobile-menu-button{display:inline-grid}.mobile-sidebar-overlay{display:block;position:fixed;inset:0;z-index:70;border:0;background:#0f172a70;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:pointer}.workspace{margin-left:0;width:100%;min-width:0;overflow-x:hidden;padding:18px}.affair-card{grid-template-columns:1fr}.affair-card-actions{justify-content:flex-start}.topbar{min-height:58px;align-items:center;border-radius:0;border-left:0;border-right:0;padding:8px 14px;box-shadow:none}.topbar-title-row{width:auto;flex:1 1 auto;align-items:center;justify-content:flex-start}.desktop-page-title{display:none}.mobile-top-brand{position:absolute;left:50%;transform:translate(-50%);display:grid;justify-items:center;gap:2px;pointer-events:none}.mobile-page-heading{display:block;border-radius:18px;background:#fff;border:1px solid #e2e8f0;padding:14px 16px;box-shadow:0 1px 2px #0f172a0a}.mobile-page-heading h1{margin:3px 0 0;font-size:22px;line-height:1.15;overflow-wrap:anywhere}.content-grid,.metrics,.dashboard-grid,.accountant-workbench,.dashboard-hero{grid-template-columns:1fr}.dashboard-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.client-history-summary,.client-history-columns,.client-history-toolbar{grid-template-columns:1fr}.payment-sort-bar{align-items:flex-start;flex-direction:column}.portfolio-grid,.portfolio-meta{grid-template-columns:1fr}.client-portfolio-head{display:none}.client-portfolio-row{grid-template-columns:1fr}.payment-followup-head{display:none}.payment-followup-grid-row{grid-template-columns:1fr}.client-portfolio-actions{justify-content:flex-start}.mini-table{grid-column:auto}.topbar-actions,.panel-header,.panel-actions{align-items:stretch;flex-direction:column}.topbar-actions{width:auto;flex:0 0 auto}.search{width:100%}.form-grid{grid-template-columns:1fr}.settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.document-advanced-filters{grid-template-columns:1fr 1fr}.filter-title,.document-advanced-filters button{grid-column:span 2}.template-layout-grid,.settings-template-read,.settings-read-grid{grid-template-columns:1fr}.settings-read-grid span.wide{grid-column:auto}.template-text-grid,.template-switches{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three-cols,.form-grid.two-plus-one,.client-row,.client-select-row,.quick-client-grid{grid-template-columns:1fr}.quick-client-toggle{width:100%;justify-content:center}.quick-client-card>div:first-child{flex-direction:column}.quick-client-card span{text-align:left}.client-actions{justify-content:flex-start}.document-preview{position:static}.document-create-layout{grid-template-columns:1fr}.preview-top,.preview-title,.preview-meta{grid-template-columns:1fr;flex-direction:column}.preview-legal{text-align:left}.items-head{display:none}.items-row{grid-template-columns:1fr 1fr}.items-row input:first-child{grid-column:1 / -1}.credit-mode,.credit-line{grid-template-columns:1fr}.credit-head{display:none}.detail-hero,.detail-actions{flex-direction:column;align-items:stretch}.detail-stats,.detail-grid,.detail-line{grid-template-columns:1fr}.timeline-card{grid-column:auto}.operation-modal{max-height:calc(100vh - 24px);border-radius:20px}.operation-modal.document-modal,.operation-modal.history-modal,.operation-modal.settings-modal{width:calc(100vw - 24px)}.modal-backdrop{padding:12px}.notification-menu,.bell-button{width:auto}.notification-popover{position:fixed;top:82px;left:auto;right:18px;width:min(360px,calc(100vw - 28px));z-index:90}.topbar-actions .search,.topbar-actions>.primary-action{display:none}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;flex-direction:row;gap:0}.settings-tabs,.template-text-grid,.template-switches,.dashboard-hero-stats{grid-template-columns:1fr}.invoice-table{overflow:visible}.document-head{display:none}.document-row,.document-row.with-select{grid-template-columns:1fr;gap:8px;padding:14px 0}.document-row>*{min-width:0}.document-row strong{font-size:16px}.document-row .row-actions{justify-content:flex-start;flex-wrap:wrap}.settings-tabs button{min-height:56px}}@media(max-width:640px){.sidebar{width:min(300px,88vw);padding:18px;gap:14px}.brand{gap:10px;padding-bottom:10px}.brand small{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar nav{padding-bottom:6px}.sidebar nav button{padding:9px 12px;font-size:13px}.sidebar nav button svg{width:17px;height:17px}.logout-button{width:100%!important;justify-content:flex-start}.workspace{padding:12px}.topbar{border-radius:0;padding:8px 12px;min-height:58px}.topbar-title-row{align-items:center}.mobile-page-heading h1{font-size:19px}.mobile-menu-button{width:42px;height:42px}.primary-action,.secondary-button{width:100%;justify-content:center}.bell-button{width:42px;height:42px;justify-content:center}.mobile-wordmark{font-size:22px}.mobile-page-heading{padding:12px 14px;border-radius:16px}.notification-popover{top:70px;right:12px;width:calc(100vw - 24px)}.document-advanced-filters{grid-template-columns:1fr}.filter-title,.document-advanced-filters button{grid-column:auto}.panel,.topbar,.dashboard-card,.stat-card,.preview-paper,.items-editor,.invoice-table,.settings-shell{min-width:0;max-width:100%}.modal-backdrop{padding:0;align-items:stretch}.operation-modal,.operation-modal.document-modal,.operation-modal.history-modal,.operation-modal.settings-modal{width:100vw;max-height:100vh;height:100vh;border-radius:0;border-left:0;border-right:0}.modal-header{min-height:auto;padding:18px}.modal-header h2{font-size:20px}.modal-header span{font-size:12px}.modal-body{padding:16px}.document-footer,.modal-footer{align-items:stretch;justify-content:stretch}.document-footer button,.modal-footer button{width:100%;justify-content:center}.quick-client-card,.items-editor{padding:12px}.items-toolbar,.items-total{align-items:stretch;flex-direction:column}.items-toolbar button{width:100%}.items-row{grid-template-columns:1fr;gap:10px}.items-row input:first-child,.items-row strong,.items-row button{grid-column:auto}.items-row strong{border-radius:10px;background:#eff6ff;padding:10px;text-align:right}.items-row button{width:100%}.preview-paper{border-radius:14px}.preview-line{grid-template-columns:1fr;gap:4px;padding:10px 0}.preview-line-head{display:none}.preview-line strong{text-align:left}.detail-line.head{display:none}.detail-line{border:1px solid #e2e8f0;border-radius:14px;padding:12px}.detail-action-button{width:100%;justify-content:center}.table-toolbar{align-items:stretch;flex-direction:column}.table-toolbar button{width:100%}.payment-followup-row{align-items:stretch;flex-direction:column}.payment-followup-actions{justify-content:stretch}.payment-followup-actions button{flex:1 1 100%;justify-content:center}}.activity-report{padding:18px;display:grid;gap:16px}.activity-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.activity-summary-grid article{border:1px solid #dbeafe;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#eef8ff);padding:16px;min-height:104px;box-shadow:0 12px 28px #0f172a0f}.activity-summary-grid span,.activity-summary-grid small{display:block;color:#64748b;font-size:12px;font-weight:900}.activity-summary-grid strong{display:block;margin:7px 0;color:#08111f;font-size:28px;line-height:1}.activity-table-wrap{overflow-x:auto;border:1px solid #dbe3ee;border-radius:18px;background:#fff}.activity-table{width:100%;border-collapse:collapse;min-width:860px}.activity-table th{background:#07111f;color:#fff;padding:14px 16px;text-align:left;font-size:12px;letter-spacing:0}.activity-table td{border-top:1px solid #edf2f7;padding:14px 16px;color:#172033;vertical-align:top;font-size:13px;font-weight:700}.audit-pill{display:inline-flex;align-items:center;border-radius:999px;background:#e0f2fe;color:#0369a1;padding:6px 10px;font-size:12px;font-weight:950;white-space:nowrap}.audit-details{max-width:520px;color:#475569!important;line-height:1.45;white-space:normal}@media(max-width:900px){.activity-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.activity-report{padding:12px}.activity-summary-grid{grid-template-columns:1fr}}.activity-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(5,minmax(130px,1fr)) auto;gap:10px;align-items:end;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff;padding:14px}.activity-filters label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:950}.activity-filters input,.activity-filters select,.activity-pagination select{min-height:42px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#0f172a;padding:0 12px;font-weight:800;outline:none}.activity-filters input:focus,.activity-filters select:focus,.activity-pagination select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px #38bdf829}.activity-filters button,.activity-pagination button{min-height:42px;border:1px solid #cbd5e1;border-radius:12px;background:#0f172a;color:#fff;padding:0 14px;font-weight:950;cursor:pointer}.activity-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #dbe3ee;border-radius:16px;background:#f8fafc;padding:12px 14px;color:#475569;font-size:13px;font-weight:900}.activity-pagination>div{display:flex;align-items:center;gap:8px}.activity-pagination button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1180px){.activity-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.activity-filters,.activity-pagination,.activity-pagination>div{grid-template-columns:1fr;align-items:stretch}.activity-pagination,.activity-pagination>div{display:grid}}.modal-backdrop{z-index:220!important}.operation-modal{position:relative;z-index:221}.invoice-login-shell{position:relative;overflow:hidden;background:radial-gradient(circle at 82% 12%,rgba(14,165,233,.18),transparent 28%),radial-gradient(circle at 16% 84%,rgba(148,163,184,.12),transparent 32%),linear-gradient(135deg,#050b16,#08111f 46%,#0d1b2a);isolation:isolate}.auth-glow{position:absolute;border-radius:999px;pointer-events:none;filter:blur(2px);opacity:.16;z-index:-1}.auth-glow-one{width:520px;height:520px;top:-150px;right:-110px;background:radial-gradient(circle,#38bdf8,transparent 64%)}.auth-glow-two{width:440px;height:440px;bottom:-150px;left:-120px;background:radial-gradient(circle,#ffffff,transparent 65%)}.invoice-login-card{width:min(456px,calc(100vw - 32px));border:1px solid rgba(255,255,255,.1);border-radius:30px;background:#ffffff13;color:#fff;padding:32px;box-shadow:0 34px 90px #00000061;-webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px)}.invoice-login-brand{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:16px;padding:0 0 24px;border-bottom:1px solid rgba(255,255,255,.08)}.invoice-logo-mark{position:relative;width:66px;height:66px;border-radius:22px;background:linear-gradient(135deg,#0ea5e93d,#02061714),#ffffff14;border:1px solid rgba(186,230,253,.22);display:grid;place-items:center;color:#fff;box-shadow:inset 0 1px #ffffff1f,0 18px 38px #0284c729}.invoice-logo-mark span{position:absolute;right:13px;bottom:13px;width:12px;height:12px;border-radius:999px;background:#38bdf8;box-shadow:0 0 0 4px #38bdf826}.invoice-brand-copy{min-width:0;display:grid;gap:8px}.invoice-brand-line{display:flex;align-items:center;gap:10px;min-width:0}.invoice-wordmark{color:#fff;font-size:33px;line-height:1;font-weight:950;letter-spacing:0}.invoice-wordmark span{color:#22c55e}.invoice-product-pill{border:1px solid rgba(186,230,253,.28);border-radius:999px;background:#ffffff14;color:#e0f2fe;padding:4px 10px;font-size:10px;line-height:1;font-weight:950}.invoice-login-brand small{color:#ffffff8c;font-size:12px;font-weight:850}.invoice-login-copy{margin:26px 0 20px}.invoice-login-copy span{color:#7dd3fc;font-size:12px;font-weight:950;text-transform:uppercase}.invoice-login-copy h1{margin:8px 0 0;color:#fff;font-size:25px;font-weight:950;line-height:1.1}.invoice-auth-form label{color:#ffffffb8}.invoice-auth-form input{min-height:50px;border-color:#ffffff1a;background:#ffffff0f;color:#fff;padding:0 14px}.invoice-auth-form input::placeholder{color:#ffffff4d}.invoice-auth-form input:focus{border-color:#38bdf88c;background:#ffffff1a;box-shadow:0 0 0 3px #38bdf82e}.invoice-login-submit{width:100%;min-height:50px;margin-top:4px;justify-content:center;border-radius:14px;background:linear-gradient(135deg,#0ea5e9,#0369a1);box-shadow:0 18px 38px #0ea5e93d}.auth-error{margin:0 0 16px;border:1px solid rgba(248,113,113,.22);background:#ef44441f;color:#fecaca}.invoice-login-footer{margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.06);color:#ffffff6b;text-align:center;font-size:12px;font-weight:750}@media(max-width:560px){.invoice-login-shell{padding:16px}.invoice-login-card{padding:26px 20px;border-radius:24px}.invoice-login-brand{grid-template-columns:56px minmax(0,1fr);gap:12px}.invoice-logo-mark{width:56px;height:56px;border-radius:18px}.invoice-wordmark{font-size:29px}}.product-brand-row{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px}.product-wordmark span,.mobile-wordmark .brand-dot,.invoice-wordmark span{color:#22c55e}.product-tag,.mobile-product-tag,.invoice-product-pill{border:0;border-radius:0;background:transparent;color:#22c55e;padding:0;line-height:1;font-weight:950;letter-spacing:.28em}.product-tag{font-size:11px}.mobile-product-tag{font-size:9px;letter-spacing:.24em}.invoice-login-brand{display:flex;align-items:center;justify-content:center;text-align:center;gap:18px}.invoice-logo-mark{display:none}.invoice-app-logo{width:96px;height:96px;flex:0 0 auto}.sidebar-app-logo{width:56px;height:56px;flex:0 0 auto}.brand{display:flex;align-items:center;gap:12px;min-height:82px}.brand .product-brand{min-width:0;gap:7px}.brand .product-wordmark{font-size:30px}.brand .product-tag{font-size:11px}.brand .product-brand small{margin-top:0;padding-left:0}.invoice-brand-copy{justify-items:center}.invoice-brand-line{display:inline-flex;flex-direction:column;align-items:center;gap:7px}.invoice-product-pill{font-size:12px}@media(max-width:560px){.invoice-app-logo{width:82px;height:82px}}
