:root{--navy:#07111f;--navy-2:#0c1a2d;--ink:#142033;--muted:#6d7889;--line:#e7ebf1;--soft:#f4f6f9;--white:#fff;--blue:#2563eb;--blue-soft:#eaf1ff;--green:#12a678;--green-soft:#e7f8f2;--violet:#7c3aed;--violet-soft:#f1eaff;--amber:#e79a13;--amber-soft:#fff5dd;--red:#dc3f4f;--red-soft:#fff0f1;--shadow:0 10px 35px rgba(20,32,51,.07);--radius:18px;--sidebar:252px}
*{box-sizing:border-box}html{min-height:100%;background:var(--soft)}body{margin:0;min-height:100vh;color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3,.kpi-card>strong,.tax-summary>strong,.hero-amount strong{font-family:'Manrope',sans-serif}h1{font-size:25px;line-height:1.2;margin-bottom:0}h2{font-size:17px;line-height:1.35;margin-bottom:0}strong{font-weight:700}small{font-size:12px;color:var(--muted)}code{font:600 12px ui-monospace,SFMono-Regular,Menlo,monospace;background:#eef2f7;border:1px solid #e1e6ed;padding:3px 7px;border-radius:7px;color:#364152}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:#8893a4;margin:0 0 5px;text-transform:uppercase}.muted{color:var(--muted)}.small{font-size:12px}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.warning-text{color:#c27b04!important}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.grow{flex:1}.full{width:100%;justify-content:center}.stack-md>*+*{margin-top:16px}.stack-lg>*+*{margin-top:22px}

.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);padding:24px 16px;background:linear-gradient(180deg,#07111f 0%,#0a1728 100%);color:#d7deea;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 25px}.brand>span:last-child{min-width:0}.brand strong{display:block;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:'Manrope',sans-serif;font-size:14px}.brand small{display:block;color:#728198;margin-top:1px}.brand-mark{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:12px;flex:0 0 auto;background:linear-gradient(135deg,#2d6df6,#743de4);box-shadow:0 8px 22px rgba(57,91,230,.35);color:#fff;font:800 13px 'Manrope',sans-serif;letter-spacing:-.04em}.brand-mark.large{width:52px;height:52px;border-radius:15px;font-size:17px}.nav-list{display:flex;flex-direction:column;gap:3px;flex:1}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:#8391a5;font-weight:600;transition:.18s ease}.nav-item:hover{background:rgba(255,255,255,.045);color:#dce4f1}.nav-item.active{background:linear-gradient(90deg,rgba(49,102,236,.22),rgba(49,102,236,.08));box-shadow:inset 2px 0 #4c7cff;color:#fff}.nav-item svg,.icon-button svg,.mobile-nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.sidebar-foot{border-top:1px solid rgba(255,255,255,.075);padding:18px 7px 0;display:flex;align-items:center;justify-content:space-between;gap:8px}.user-card{display:flex;align-items:center;gap:9px;min-width:0}.user-card>span:last-child{min-width:0}.user-card strong,.user-card small{display:block;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-card strong{color:#e7ebf2;font-size:12px}.user-card small{color:#718096;font-size:10px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#20314a;color:#b8c8e1;font-weight:700}.sidebar .icon-button{color:#6f7e93;background:transparent}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:91px;padding:23px 32px 18px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.topbar-actions{display:flex;align-items:center;gap:10px}.live-pill{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:100px;color:#596476;background:#fff;font-size:12px;font-weight:600}.live-pill i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px var(--green-soft)}.content-area{padding:26px 32px 50px;max-width:1600px;margin:auto}.mobile-nav{display:none}

.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-width:0}.card.compact{padding:14px 16px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.card-head>a{color:var(--blue);font-weight:700;font-size:12px}.toolbar{display:flex;align-items:end;gap:12px;margin-bottom:20px}.toolbar.compact{display:inline-flex}.toolbar label,.sync-form label{font-size:10px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}.toolbar input,.toolbar select,.sync-form input{margin-top:4px}.quick-ranges{display:flex;align-items:center;gap:4px;padding:4px;background:var(--soft);border-radius:10px}.quick-ranges button{border:0;background:transparent;padding:7px 10px;border-radius:7px;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer}.quick-ranges button:hover{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.06)}.date-range{display:flex;align-items:end;gap:8px;margin-left:auto}.date-range>span{padding-bottom:9px;color:#a4adba}.search-field{height:40px;display:flex;align-items:center;gap:7px;flex:1;min-width:210px;padding:0 12px;border:1px solid #dfe4eb;border-radius:10px;background:#fff}.search-field:focus-within{border-color:#94b4ff;box-shadow:0 0 0 3px #eaf1ff}.search-field span{font-size:18px;color:#9aa5b5}.search-field input{border:0;padding:0;margin:0;outline:0;width:100%;height:100%}
input,select,textarea{width:100%;border:1px solid #dfe4eb;background:#fff;border-radius:10px;padding:9px 11px;outline:none;transition:.15s}input,select{height:40px}textarea{resize:vertical;min-height:70px}input:focus,select:focus,textarea:focus{border-color:#8eaffc;box-shadow:0 0 0 3px #edf3ff}label{display:block;color:#465266;font-weight:600;font-size:12px}label small{display:block;margin-top:5px;font-weight:400;line-height:1.35}.form-grid{display:grid;gap:16px;margin-bottom:20px}.form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.checks{display:flex;flex-direction:column;justify-content:center;gap:8px}.check-row{display:flex;align-items:center;gap:9px;font-weight:500;text-transform:none!important;letter-spacing:0!important;color:#465266!important;cursor:pointer}.check-row input{width:16px;height:16px;margin:0;accent-color:var(--blue)}.settings-sections{display:flex;flex-direction:column;gap:22px}.settings-sections fieldset{border:0;border-top:1px solid var(--line);padding:21px 0 0;margin:0}.settings-sections legend{font:700 13px 'Manrope',sans-serif;padding:0 12px 0 0}.settings-sections>label{border-top:1px solid var(--line);padding-top:20px}.btn{height:40px;border:0;border-radius:10px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap;transition:.16s}.btn:hover{transform:translateY(-1px)}.btn:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}.btn-primary{background:linear-gradient(135deg,#2b65ed,#2259d7);color:#fff;box-shadow:0 7px 18px rgba(37,99,235,.2)}.btn-secondary{background:#fff;color:#364152;border:1px solid #dfe4eb}.btn-danger{background:var(--red-soft);color:var(--red);border:1px solid #ffd6d9}.btn-large{height:48px;padding:0 22px;font-size:13px}.button-group,.page-actions,.form-actions{display:flex;align-items:center;gap:10px}.page-actions{justify-content:space-between;margin-bottom:18px}.form-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.icon-button{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer}.icon-button.danger{color:var(--red);border-color:#ffdadd;background:var(--red-soft)}.back-link{display:inline-block;color:var(--blue);font-weight:700;font-size:12px;margin-bottom:15px}.row-link{width:29px;height:29px;border-radius:8px;background:#f1f4f8;display:grid;place-items:center;font-size:16px;color:#667386;transition:.15s}.row-link:hover{background:var(--blue);color:#fff}.tag,.period-badge{display:inline-flex;padding:4px 8px;border-radius:100px;background:#eef2f7;color:#5f6b7b;font-size:10px;font-weight:700}.period-badge{background:var(--blue-soft);color:var(--blue)}

.alert{border-radius:12px;padding:12px 15px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;font-weight:500}.alert button{background:transparent;border:0;font-size:20px;cursor:pointer;color:inherit}.alert a{font-weight:800;text-decoration:underline}.alert-success{background:var(--green-soft);border:1px solid #c9efdf;color:#087d5b}.alert-error{background:var(--red-soft);border:1px solid #ffd3d7;color:#b82736}.alert-warning{background:var(--amber-soft);border:1px solid #f6dfaa;color:#9a6405}.tax-warning{display:flex;align-items:center;gap:15px;background:#0c1c30;color:#d8e2ef;border-radius:14px;padding:14px 18px;margin-bottom:18px}.tax-warning strong{color:#fff;white-space:nowrap}.tax-warning span{font-size:12px;color:#98a9bd;border-left:1px solid #2c3b50;padding-left:15px}.callout{background:#f0f5ff;border-left:3px solid var(--blue);border-radius:8px;padding:11px 12px;color:#4f5f76;font-size:11px;line-height:1.5;margin-top:15px}

.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 19px;box-shadow:var(--shadow);position:relative;overflow:hidden}.kpi-card.featured{background:linear-gradient(145deg,#0c1a2c,#102742);border-color:#17304f;color:#fff}.kpi-card.featured:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-55px;bottom:-70px;background:rgba(33,198,146,.14)}.kpi-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:700}.featured .kpi-head,.featured small{color:#91a4ba}.kpi-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;font-style:normal;font-size:12px}.kpi-icon.blue{background:var(--blue-soft);color:var(--blue)}.kpi-icon.violet{background:var(--violet-soft);color:var(--violet)}.kpi-icon.green{background:rgba(24,196,142,.15);color:#4be1b1}.kpi-icon.amber{background:var(--amber-soft);color:var(--amber)}.kpi-card>strong{display:block;font-size:25px;letter-spacing:-.04em;margin:9px 0 7px}.kpi-card>div:last-child{display:flex;align-items:center;gap:7px}.delta{padding:3px 6px;border-radius:6px;font-size:10px;font-weight:800}.delta.up{color:#078360;background:var(--green-soft)}.delta.down{color:var(--red);background:var(--red-soft)}.delta.neutral{color:#778293;background:#eff2f6}

.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}.dashboard-grid>*{min-width:0}.dashboard-grid .span-2{grid-column:span 2}.main-charts{grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr)}.main-charts .span-2{grid-column:span 1}.chart-card{min-height:360px}.chart-wrap{height:275px;position:relative}.chart-wrap canvas{width:100%;height:100%}.chart-empty{display:none;position:absolute;inset:0;place-items:center;color:var(--muted)}.legend{display:flex;gap:13px;color:var(--muted);font-size:10px;font-weight:600}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:7px;height:7px;border-radius:50%}.legend i.blue{background:var(--blue)}.legend i.green{background:var(--green)}.donut-layout{width:178px;height:178px;margin:4px auto 16px;position:relative}.donut-layout canvas{width:100%;height:100%}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.donut-center small{font-size:10px}.donut-center strong{font:800 21px 'Manrope',sans-serif}.breakdown-list{display:flex;flex-direction:column;gap:9px}.breakdown-list>div{display:flex;align-items:center;justify-content:space-between;font-size:11px}.breakdown-list span{display:flex;align-items:center;gap:7px;color:var(--muted)}.swatch{width:7px;height:7px;border-radius:50%}.swatch.blue{background:var(--blue)}.swatch.violet{background:var(--violet)}.swatch.amber{background:var(--amber)}.swatch.gray{background:#aab2be}.tax-total{background:linear-gradient(135deg,#f0f6ff,#f7f4ff);padding:16px;border-radius:13px;margin-bottom:15px}.tax-total small,.tax-total strong{display:block}.tax-total strong{font:800 25px 'Manrope',sans-serif;margin-top:3px}.tax-lines{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.tax-lines>div{display:flex;justify-content:space-between;border-bottom:1px dashed #e2e6ec;padding-bottom:8px;font-size:11px}.tax-lines span{color:var(--muted)}.mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.mini-stats article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 15px}.mini-stats span,.mini-stats strong{display:block}.mini-stats span{color:var(--muted);font-size:10px;margin-bottom:4px}.mini-stats strong{font:700 16px 'Manrope',sans-serif}.mini-stats article.warn{border-color:#f0d18f;background:#fffbf1}.margin-bar{width:48px;height:5px;display:inline-flex;vertical-align:middle;margin-right:7px;background:#edf0f4;border-radius:10px;overflow:hidden}.margin-bar i{height:100%;background:var(--green);border-radius:10px}

.table-wrap{overflow:auto;margin:0 -7px}.table-wrap.wide{margin-right:-15px}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);color:#8a94a3;font-size:9px;text-transform:uppercase;letter-spacing:.07em}td{padding:12px;border-bottom:1px solid #eef1f5;font-size:11px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfc}td strong,td small{display:block}td small{margin-top:3px}.empty-cell{text-align:center!important;padding:35px!important;color:var(--muted)}.truncate-cell{max-width:270px}.truncate-cell strong,.truncate-cell small{overflow:hidden;text-overflow:ellipsis}.muted-row{opacity:.52}.product-cell{display:flex;align-items:center;gap:10px;max-width:330px}.product-cell img,.product-placeholder{width:38px;height:38px;flex:0 0 auto;border-radius:9px;object-fit:cover;background:#f1f4f7;display:grid;place-items:center}.product-cell>span:last-child{min-width:0}.product-cell strong{max-width:270px;overflow:hidden;text-overflow:ellipsis}.status-badge{display:inline-flex;padding:4px 8px;border-radius:100px;background:#eef2f6;color:#667386;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.status-active,.status-paid,.status-confirmed,.status-valid,.status-success,.status-processed{background:var(--green-soft);color:#087c5b}.status-paused,.status-warning,.status-pending{background:var(--amber-soft);color:#9a6506}.status-closed,.status-cancelled,.status-error{background:var(--red-soft);color:#bd3040}.status-running,.status-preview{background:var(--blue-soft);color:var(--blue)}.pagination{display:flex;align-items:center;justify-content:center;gap:4px;padding-top:20px}.pagination a,.pagination span{min-width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:#657184;font-size:11px}.pagination a{border:1px solid var(--line)}.pagination a.active{background:var(--blue);color:#fff;border-color:var(--blue)}

.detail-hero{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;background:linear-gradient(135deg,#fff,#f8faff)}.detail-hero h2{font-size:23px}.detail-hero p:last-child{margin:6px 0 0;color:var(--muted)}.hero-amount{text-align:right}.hero-amount small,.hero-amount strong{display:block}.hero-amount strong{font-size:25px}.detail-list{margin:0}.detail-list>div{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.detail-list>div:last-child{border-bottom:0}.detail-list dt{color:var(--muted);font-size:11px}.detail-list dd{margin:0;font-weight:700;font-size:11px}

.import-steps{display:flex;align-items:center;justify-content:center;margin:0 auto 22px;max-width:600px}.import-steps>div{display:flex;align-items:center;gap:8px;color:#a2aab5}.import-steps>div span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1px solid #d7dce4;background:#fff;font-size:10px;font-weight:800}.import-steps>div strong{font-size:11px}.import-steps>div.active{color:var(--blue)}.import-steps>div.active span{background:var(--blue);border-color:var(--blue);color:#fff}.import-steps>i{height:1px;background:#dce1e8;flex:1;margin:0 14px}.upload-zone{border:1.5px dashed #bdc9d9;border-radius:15px;padding:8px;background:#fbfcfe}.upload-zone input[type=file]{position:absolute;opacity:0;pointer-events:none}.upload-zone>label{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.upload-zone>label strong{font:700 16px 'Manrope',sans-serif;margin:7px 0 3px}.upload-zone>label small{margin:0}.upload-zone>label em{font-style:normal;color:var(--blue);font-size:11px;margin-top:12px}.upload-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-size:23px}.upload-options{border-top:1px solid var(--line);padding:13px;display:flex;align-items:end;justify-content:flex-end;gap:12px}.upload-options label{width:180px}.column-guide{display:grid;grid-template-columns:1fr 1fr;gap:9px}.column-guide>div{border:1px solid var(--line);border-radius:10px;padding:10px}.column-guide strong,.column-guide span{display:block}.column-guide strong{font-size:11px}.column-guide span{font-size:9px;color:var(--muted)}.instruction-list{display:flex;list-style:none;padding:0;margin:0;gap:28px}.instruction-list li{display:flex;gap:10px;flex:1}.instruction-list li>span{width:27px;height:27px;display:grid;place-items:center;flex:0 0 auto;background:var(--navy);color:#fff;border-radius:8px;font-weight:800;font-size:10px}.instruction-list p{color:var(--muted);font-size:11px;margin:3px 0 0}.preview-counts{display:flex;gap:8px}.preview-counts span{padding:5px 8px;border-radius:7px;background:#f2f5f8;font-size:10px;font-weight:700}

.tax-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.tax-summary{min-height:137px;border-radius:17px;padding:19px;color:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden}.tax-summary:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-50px;bottom:-70px;background:rgba(255,255,255,.08)}.tax-summary.vat{background:linear-gradient(135deg,#225cda,#3376ff)}.tax-summary.iibb{background:linear-gradient(135deg,#6431bd,#8548e7)}.tax-summary.reserve{background:linear-gradient(135deg,#087c5e,#0db386)}.tax-summary .eyebrow{color:rgba(255,255,255,.63)}.tax-summary h2{font-size:13px}.tax-summary>strong{font-size:28px;letter-spacing:-.04em;margin-top:auto}.tax-summary>span{font-size:10px;color:rgba(255,255,255,.72)}.equation{display:flex;flex-direction:column;gap:0}.equation>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px dashed var(--line);font-size:11px}.equation>div span{color:var(--muted)}.equation .minus strong{color:#8b4b55}.equation .total{border:0;background:#f4f7fb;border-radius:10px;padding:12px;margin-top:8px}.equation .total span,.equation .total strong{color:var(--ink);font-weight:800}

.check-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.check-list li{position:relative;padding-left:25px;color:#526075;font-size:12px}.check-list li:before{content:'✓';position:absolute;left:0;top:-1px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:800}.connection-card{display:flex;align-items:center;gap:15px;padding:20px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow);margin-bottom:18px}.connection-card.connected{border-color:#bfe9da;background:linear-gradient(90deg,#fff,#f4fcf9)}.ml-logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#ffe600;color:#2d3440;font:800 14px 'Manrope',sans-serif}.connection-card p:last-child{margin:5px 0 0;color:var(--muted);font-size:11px}.connection-actions{margin-left:auto}.sync-form{display:flex;align-items:end;gap:12px}.sync-form label{width:160px}.danger-zone{border-color:#f4dadd}.requirements{display:grid;grid-template-columns:1fr 1fr;gap:8px}.requirement{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;font-size:11px}.requirement strong{margin-left:auto;font-size:9px}.status-dot{width:7px;height:7px;border-radius:50%}.status-dot.ok{background:var(--green)}.status-dot.bad{background:var(--red)}

.auth-body{background:#07111f}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr}.auth-visual{padding:8vh 8vw;color:#fff;background:radial-gradient(circle at 20% 20%,rgba(45,109,246,.27),transparent 38%),radial-gradient(circle at 80% 85%,rgba(124,58,237,.2),transparent 34%),#07111f;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-visual:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent)}.auth-visual>div{position:relative;z-index:1}.auth-visual .eyebrow{margin-top:35px;color:#6e94ec}.auth-visual h1{font-size:48px;line-height:1.1;letter-spacing:-.05em;max-width:620px;margin:14px 0 20px}.auth-visual h1 em{font-style:normal;color:#6e96f6}.auth-visual p:last-child{color:#8797ad;max-width:480px}.auth-preview{align-self:flex-end;width:245px;padding:17px 19px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.055);backdrop-filter:blur(12px)}.auth-preview span,.auth-preview strong,.auth-preview i{display:block}.auth-preview span{font-size:11px;color:#8291a7}.auth-preview strong{font:800 31px 'Manrope';color:#5cdfb4}.auth-preview i{font-style:normal;color:#697a90;font-size:9px}.auth-form-wrap{background:#fff;display:grid;place-items:center;padding:35px}.auth-form{width:min(380px,100%)}.auth-form h2{font-size:27px;margin:6px 0}.auth-form>.muted{margin-bottom:27px}.auth-form label{margin-top:15px}.auth-form button{margin-top:20px;width:100%}.security-note{text-align:center;color:#9aa3af;font-size:10px;margin-top:25px}.install-body{background:linear-gradient(180deg,#081321 0 285px,#f4f6f9 285px);padding:45px 20px}.install-shell{max-width:850px;margin:auto}.install-hero{color:#fff;text-align:center;margin-bottom:28px}.install-hero .brand-mark{margin:auto}.install-hero .eyebrow{color:#7397e9;margin-top:15px}.install-hero h1{font-size:34px;margin:5px 0 8px}.install-hero p{color:#8fa0b5}.install-card h2{margin-bottom:18px}.error-body{background:var(--soft);display:grid;place-items:center;padding:20px}.error-card{text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:45px;max-width:460px;box-shadow:var(--shadow)}.error-card>span{font:800 54px 'Manrope';color:#dce3ec}.error-card h1{font-size:25px;margin:5px}.error-card p{color:var(--muted);margin-bottom:22px}.empty-state{text-align:center;padding:30px}.empty-state p{color:var(--muted)}.empty-state.compact{padding:15px 5px}

@media(max-width:1180px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.main-charts{grid-template-columns:1fr 1fr}.dashboard-grid .span-2{grid-column:span 2}.mini-stats{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3{grid-template-columns:repeat(2,1fr)}.form-grid.cols-3 .span-3{grid-column:span 2}}
@media(max-width:820px){:root{--sidebar:0}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:75px;padding:15px 18px;position:relative}.topbar h1{font-size:21px}.topbar .eyebrow{display:none}.live-pill{display:none}.content-area{padding:16px 14px 90px}.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;height:72px;padding:7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;justify-content:space-around}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:56px;color:#8b95a4;font-size:8px;font-weight:700}.mobile-nav a.active{color:var(--blue)}.mobile-nav svg{width:19px;height:19px}.toolbar{align-items:stretch;flex-wrap:wrap}.toolbar.compact{display:flex}.quick-ranges{width:100%;overflow:auto}.date-range{margin-left:0;width:100%;align-items:end}.date-range label,.date-range input{min-width:0;flex:1}.date-range .btn{flex:0 0 auto}.kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.kpi-card{padding:15px}.kpi-card>strong{font-size:20px}.kpi-card>div:last-child small{display:none}.dashboard-grid,.main-charts{grid-template-columns:1fr}.dashboard-grid .span-2{grid-column:span 1}.chart-card{min-height:315px}.chart-wrap{height:225px}.mini-stats{grid-template-columns:1fr 1fr;gap:8px}.card{padding:17px;border-radius:15px}.page-actions{align-items:stretch;flex-direction:column}.page-actions .button-group{width:100%}.page-actions .button-group .btn{flex:1}.table-wrap{margin-right:-17px}.tax-summary-grid{grid-template-columns:1fr}.tax-summary{min-height:120px}.form-grid.cols-2,.form-grid.cols-3{grid-template-columns:1fr}.span-2,.span-3,.form-grid.cols-3 .span-3{grid-column:span 1}.instruction-list{flex-direction:column;gap:15px}.sync-form{flex-wrap:wrap}.sync-form label{flex:1;min-width:130px}.sync-form .btn{width:100%}.tax-warning{align-items:flex-start;flex-direction:column}.tax-warning span{border-left:0;border-top:1px solid #2c3b50;padding:10px 0 0}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-form-wrap{min-height:100vh;padding:28px}.requirements{grid-template-columns:1fr}.install-body{padding:25px 12px}.upload-options{align-items:stretch;flex-direction:column}.upload-options label{width:100%}.connection-card{align-items:flex-start;flex-wrap:wrap}.connection-actions{margin-left:63px;width:100%}.connection-actions .btn{width:100%}}
@media(max-width:430px){.kpi-grid{grid-template-columns:1fr}.mini-stats{grid-template-columns:1fr 1fr}.topbar-actions .icon-button{display:none}.quick-ranges button{flex:1}.date-range{flex-wrap:wrap}.date-range label{width:calc(50% - 14px);flex:auto}.date-range .btn{width:100%}.button-group{flex-direction:column}.button-group .btn{width:100%}.auth-form h2{font-size:24px}.product-cell strong{max-width:200px}}

@media print{.sidebar,.mobile-nav,.topbar,.toolbar,.page-actions,.btn{display:none!important}.workspace{margin:0}.content-area{padding:0}.card,.kpi-card{box-shadow:none;break-inside:avoid}.dashboard-grid{display:block}.dashboard-grid>*{margin-bottom:15px}}
