*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#0c2342;background:#f5f8fc}a{text-decoration:none;color:inherit}.brand-logo{display:block;object-fit:contain}.light-logo{width:245px;max-width:100%;height:auto}.dark-logo{width:250px;max-width:100%;height:auto}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}.auth-visual{padding:54px;display:flex;flex-direction:column;color:#fff;background:radial-gradient(circle at 85% 90%,#0976a8 0,transparent 32%),linear-gradient(135deg,#081b43,#0a2d63 65%,#0b6f98);position:relative;overflow:hidden}.auth-visual:after{content:"";position:absolute;width:500px;height:500px;border:1px solid #ffffff18;border-radius:50%;right:-200px;bottom:-220px}.auth-visual h1{font-size:58px;line-height:1.05;margin:120px 0 20px;max-width:650px}.auth-visual p{font-size:18px;line-height:1.7;color:#d8e7ff;max-width:620px}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:auto}.benefit{padding:18px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff0c;font-size:13px}.benefit b{display:block;margin-bottom:7px}.auth-panel{display:grid;place-items:center;padding:40px;background:#f6f8fb}.card{background:#fff;border:1px solid #e7edf5;border-radius:20px;box-shadow:0 20px 55px rgba(19,55,95,.10)}.auth-card{width:min(440px,100%);padding:34px}.logo-lockup{display:flex;align-items:center;gap:14px}.logo-lockup .logo-symbol{display:block;width:86px;height:auto;flex:0 0 auto}.logo-lockup .logo-word{font-weight:900;letter-spacing:.16em;line-height:1;font-size:28px;color:#0a2347}.logo-lockup .logo-tag{margin-top:6px;font-size:10px;letter-spacing:.28em;color:#5b6b7e;white-space:nowrap}.logo-lockup.dark .logo-word{color:#fff}.logo-lockup.dark .logo-tag{color:#b7c9e3}.logo-lockup.compact .logo-symbol{width:66px}.logo-lockup.compact .logo-word{font-size:21px}.logo-lockup.compact .logo-tag{font-size:7px;letter-spacing:.20em}.auth-card .logo-lockup{margin-bottom:12px}.setup-top .logo-lockup{transform:translateY(1px)}.auth-card h2{font-size:28px;margin:22px 0 6px}.muted{color:#6e7d92}.field{margin:17px 0}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.input,.select,.textarea{width:100%;border:1px solid #dbe4ef;border-radius:10px;padding:13px 14px;font:inherit;color:#102846;background:#fff;outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#2085f7;box-shadow:0 0 0 3px #2085f717}.textarea{min-height:95px;resize:vertical}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:12px 18px;font-weight:750;cursor:pointer;font:inherit}.btn.primary{background:linear-gradient(90deg,#146ff4,#158fe2);color:#fff;box-shadow:0 8px 20px #167cf52c}.btn.secondary{background:#edf4fc;color:#176bd0}.btn.full{width:100%}.switch-link{text-align:center;margin-top:18px;font-size:14px;color:#607087}.switch-link a{color:#0878f9;font-weight:750}.alert{padding:12px 14px;border-radius:10px;margin:12px 0;font-size:14px}.alert.error{background:#fff0f1;color:#a7232d;border:1px solid #ffd2d5}.alert.success{background:#ecfbf3;color:#147045;border:1px solid #c9f1dc}.app{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:linear-gradient(180deg,#061a3a,#082b5e);color:#d7e5f8;padding:24px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .logo-wrap{padding:5px 12px 25px}.nav-label{font-size:10px;letter-spacing:.13em;color:#7594b9;margin:20px 12px 8px;text-transform:uppercase}.nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:9px;font-size:14px;margin:2px 0}.nav a:hover,.nav a.active{background:linear-gradient(90deg,#0878f9,#1097ea);color:#fff}.nav .ico{width:19px;text-align:center}.userbox{margin-top:auto;border-top:1px solid #ffffff13;padding:18px 10px 4px}.userbox b{display:block;color:#fff;font-size:13px}.userbox small{color:#87a4c7}.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid #e6edf6;display:flex;align-items:center;padding:0 28px;gap:16px;position:sticky;top:0;z-index:5}.search{max-width:420px;flex:1}.top-spacer{flex:1}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#092957;color:#fff;font-weight:800}.content{padding:30px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.welcome h1{margin:0;font-size:27px}.welcome p{margin:4px 0 0;color:#718096}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.kpi{padding:20px}.kpi .label{font-size:13px;color:#6e7d92}.kpi .value{font-size:26px;font-weight:850;margin:10px 0 2px}.kpi .sub{font-size:12px;color:#8a97a8}.dashboard-grid{display:grid;grid-template-columns:1.7fr .8fr;gap:16px;margin-top:16px}.panel{padding:20px}.panel h3{margin:0 0 18px;font-size:16px}.chart-empty{height:230px;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px dashed #d7e3f2;display:grid;place-items:center;text-align:center;color:#8392a6}.quick{display:grid;gap:9px}.quick .btn{width:100%}.table-card{margin-top:16px;padding:20px;overflow:auto}.table-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.table{width:100%;border-collapse:collapse;min-width:720px}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid #edf1f6;font-size:13px}.table th{font-size:11px;color:#78869a;background:#f8fafc}.empty-row{text-align:center!important;color:#8794a7;padding:30px!important}.badge{padding:5px 9px;border-radius:20px;font-size:11px;font-weight:700}.badge.open{background:#fff5e0;color:#a96400}.setup-page{min-height:100vh;background:#f5f8fc}.setup-top{height:76px;background:#fff;border-bottom:1px solid #e4ebf4;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.setup-shell{width:min(980px,calc(100% - 30px));margin:34px auto}.progress{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin-bottom:18px}.step{height:7px;background:#dfe8f3;border-radius:10px}.step.on{background:linear-gradient(90deg,#1578f6,#11a1df)}.setup-card{padding:32px}.setup-card h1{margin:0 0 5px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding-top:20px;border-top:1px solid #edf1f6}.simple{min-height:100vh;display:grid;place-items:center;padding:30px}.install-card{width:min(560px,100%);background:#fff;padding:35px;border-radius:18px;border:1px solid #e1e8f1;box-shadow:0 20px 60px #12345a18}.placeholder{padding:28px}.placeholder h1{margin-top:0}.mobile-toggle{display:none;background:none;border:0;font-size:24px}@media(max-width:1020px){.kpis{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-visual{display:none}}@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;left:-260px;width:245px;transition:.25s}.sidebar.open{left:0}.mobile-toggle{display:block}.content{padding:18px}.topbar{padding:0 16px}.kpis{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}.setup-top{padding:0 18px}.setup-grid{grid-template-columns:1fr}.auth-panel{padding:20px}.benefits{grid-template-columns:1fr}.setup-shell{margin:20px auto}.setup-card{padding:22px}}

.auth-visual>.logo-lockup{transform:scale(1.08);transform-origin:left top}.sidebar .logo-lockup{gap:10px}.sidebar .logo-wrap{overflow:hidden}

.auth-visual .logo-lockup.dark .logo-word,.sidebar .logo-lockup.dark .logo-word{color:#fff!important}.auth-visual .logo-lockup.dark .logo-tag,.sidebar .logo-lockup.dark .logo-tag{color:#c7d7eb!important}

.password-hint{margin-top:7px;font-size:11px;line-height:1.45;color:#75859b}

/* v0.1.6 — Sidebar logo + invoices */
.sidebar .logo-wrap{padding:2px 4px 18px;overflow:visible}
.sidebar .logo-lockup{gap:9px;max-width:100%}
.sidebar .logo-lockup .logo-symbol{width:42px;min-width:42px}
.sidebar .logo-lockup .logo-word{font-size:19px;letter-spacing:.13em;white-space:nowrap}
.sidebar .logo-lockup .logo-tag{font-size:5.8px;letter-spacing:.14em;white-space:nowrap;margin-top:4px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:4px 0 4px;font-size:28px}.back-link{font-size:13px;color:#2676d9;font-weight:700}.invoice-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.invoice-main,.invoice-side{display:grid;gap:18px}.invoice-side{position:sticky;top:88px}.invoice-section{padding:22px}.invoice-section h3{margin:0 0 16px;font-size:17px}.new-customer-box{padding:16px;background:#f8fbff;border:1px solid #e2ecf8;border-radius:12px}.items-table-wrap{overflow-x:auto;margin-bottom:14px}.items-table{width:100%;border-collapse:separate;border-spacing:0 8px;min-width:850px}.items-table th{text-align:left;color:#708198;font-size:11px;font-weight:750;padding:0 6px}.items-table td{padding:0 5px}.items-table .input,.items-table .select{padding:10px 10px;border-radius:9px}.items-table th:nth-child(1){width:34%}.items-table th:nth-child(2){width:10%}.items-table th:nth-child(3){width:12%}.items-table th:nth-child(4){width:14%}.items-table th:nth-child(5){width:11%}.items-table th:nth-child(6){width:11%}.icon-btn{width:36px;height:38px;border:0;border-radius:8px;background:#fff0f1;color:#b72a35;font-size:20px;cursor:pointer}.inline-field{display:grid;grid-template-columns:1fr auto;align-items:center;gap:9px}.inline-field span{font-size:13px;color:#718096}.total-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #edf2f7;font-size:14px}.total-row.grand{font-size:18px;border-bottom:0;padding-top:15px}.total-row.grand strong{font-size:22px}.save-card{display:grid;gap:10px}.tiny{font-size:11px;line-height:1.5;text-align:center;margin:2px 0 0}.invoices-card{margin-top:0}.badge.status-draft{background:#edf1f6;color:#667789}.badge.status-open{background:#fff3da;color:#9b6500}.badge.status-partial{background:#e9f4ff;color:#1769bd}.badge.status-paid{background:#e6f8ed;color:#147448}.badge.status-overdue{background:#ffe9eb;color:#b62631}.badge.status-cancelled{background:#f0f1f4;color:#6b7280}
@media(max-width:1100px){.invoice-layout{grid-template-columns:1fr}.invoice-side{position:static;grid-template-columns:1fr 1fr}.save-card{grid-column:1/-1}}
@media(max-width:760px){.page-head{flex-direction:column}.page-head .btn{width:100%}.invoice-side{grid-template-columns:1fr}.save-card{grid-column:auto}.invoice-section{padding:17px}.sidebar .logo-lockup .logo-symbol{width:38px;min-width:38px}.sidebar .logo-lockup .logo-word{font-size:17px}.sidebar .logo-lockup .logo-tag{font-size:5.2px}}

/* v0.2.0 full MVP modules */
.form-card{padding:24px;margin-bottom:18px}.form-card h3,.settings-card h3{margin:0 0 16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.actions-row{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:18px}.row-actions{display:flex;gap:12px;align-items:center;white-space:nowrap}.row-actions form{margin:0}.link-danger{border:0;background:none;color:#c3323d;padding:0;cursor:pointer;font:inherit}.strong-link{color:#086fdc;font-weight:800}.btn.danger{background:#fff0f2;color:#b82935}.page-buttons{display:flex;gap:9px;align-items:center}.page-buttons form{margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.detail-card{padding:22px}.detail-card h3{margin-top:0}.detail-card dl{display:grid;grid-template-columns:130px 1fr;gap:10px;margin:0}.detail-card dt{color:#76869a}.detail-card dd{margin:0}.doc-total{text-align:right;padding:20px 8px 2px;font-size:20px}.inline-form{display:flex;gap:6px;align-items:center;margin:0}.mini-input{border:1px solid #dbe4ef;border-radius:7px;padding:7px 8px;max-width:120px;background:#fff;color:#102846}.mini-btn{border:0;border-radius:7px;background:#e8f2ff;color:#116bc9;padding:8px 10px;cursor:pointer;font-weight:700}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.report-card{padding:20px}.report-card>strong{display:block;margin-bottom:14px;font-size:16px}.report-card div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #edf2f7}.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px}.settings-nav{display:grid;gap:7px;align-content:start}.settings-nav a{padding:12px 14px;border-radius:10px;color:#5c6f86}.settings-nav a.active,.settings-nav a:hover{background:#e8f2ff;color:#096ed5;font-weight:750}.settings-card{padding:26px}.design-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.logo-preview{background:#f7f9fc;border:1px solid #e5ebf3;border-radius:12px;padding:18px;margin-top:10px;display:grid;place-items:center;min-height:110px}.logo-preview img{max-width:260px;max-height:90px}.color-input{width:100%;height:48px;border:1px solid #dbe4ef;border-radius:10px;padding:5px;background:#fff}.check{display:flex;gap:9px;align-items:center;margin:12px 0;color:#43546a}.doc-preview{margin-top:22px;border:1px solid #e4eaf2;border-radius:14px;padding:24px;background:#fff;box-shadow:0 14px 34px #193a6510}.preview-line.brand{height:5px;background:var(--accent);border-radius:4px;margin-bottom:25px}.doc-preview h4{margin:0 0 20px}.preview-table{height:75px;background:repeating-linear-gradient(#f1f5f9 0 1px,transparent 1px 24px)}.preview-total{text-align:right;font-size:20px;font-weight:800;margin-top:18px}.badge.status-created{background:#e7f2ff;color:#0b6ccf}.badge.status-sent{background:#e6f8ed;color:#147448}.page-head .btn{flex:0 0 auto}
@media(max-width:1000px){.report-grid{grid-template-columns:1fr 1fr}.settings-layout{grid-template-columns:1fr}.settings-nav{grid-template-columns:repeat(5,auto);overflow:auto}.detail-grid{grid-template-columns:1fr}}
@media(max-width:760px){.form-grid,.design-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.page-buttons{width:100%;flex-wrap:wrap}.page-buttons .btn,.page-buttons form,.page-buttons form .btn{width:100%}.settings-nav{grid-template-columns:1fr 1fr}.inline-form{flex-wrap:wrap}.detail-card dl{grid-template-columns:100px 1fr}}
.mini-chart{height:245px;display:flex;align-items:flex-end;gap:18px;padding:25px 12px 8px;border-bottom:1px solid #dbe4ef}.bar-col{flex:1;min-width:42px;text-align:center;position:relative}.bar{width:72%;max-width:54px;margin:0 auto;background:linear-gradient(180deg,#0aa5e8,#0878f9);border-radius:8px 8px 2px 2px}.bar-col span{display:block;margin-top:8px;font-size:11px;color:#75859b}.bar-value{font-size:10px;color:#506176;margin-bottom:6px;white-space:nowrap}
/* RECHVIO Launch v0.3: Pakete, Freischaltung & Admin */
.user-plan{display:inline-flex;margin-top:8px;padding:4px 8px;border-radius:999px;background:#ffffff12;color:#9edcff;font-size:10px;font-weight:800;letter-spacing:.06em}.top-plan{padding:6px 10px;border-radius:999px;background:#eaf5ff;color:#0876df;font-size:11px;font-weight:800}.admin-link{font-size:12px;font-weight:800;color:#0b64ca;padding:7px 10px;border-radius:8px;background:#edf5ff}.plan-page{min-height:100vh;background:#f5f8fc}.plan-top{height:78px;background:#fff;border-bottom:1px solid #e4ebf4;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.plan-shell{max-width:1120px;margin:0 auto;padding:55px 22px 70px}.plan-intro{text-align:center;max-width:720px;margin:0 auto 34px}.plan-intro h1{font-size:39px;margin:10px 0 8px}.plan-intro p{color:#6d7c90;line-height:1.6}.eyebrow{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.18em;color:#0a84ee}.plan-grid-app{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;align-items:stretch}.plan-card-app{position:relative;background:#fff;border:1px solid #dfe7f1;border-radius:18px;padding:29px;box-shadow:0 14px 40px #12345a0b}.plan-card-app.recommended{border:2px solid #1585f1;box-shadow:0 20px 55px #0878f91c}.plan-card-app.selected{outline:4px solid #1a8df011}.recommend-tag{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:linear-gradient(90deg,#1087ef,#554bd9);color:#fff;border-radius:999px;padding:6px 13px;font-size:10px;font-weight:800}.plan-card-app h2{margin:4px 0 9px;font-size:24px}.plan-card-app>p{color:#718096;line-height:1.5;min-height:64px;font-size:13px}.plan-price{margin-top:20px}.plan-price strong{font-size:34px;letter-spacing:-.03em}.plan-price span{font-size:12px;color:#718096}.annual-note{font-size:11px;color:#718096;margin:5px 0 22px}.plan-card-app ul{list-style:none;padding:0;margin:20px 0 24px}.plan-card-app li{padding-left:20px;position:relative;margin:11px 0;font-size:13px}.plan-card-app li:before{content:'✓';position:absolute;left:0;color:#0e8fe9;font-weight:900}.plan-footnote{text-align:center;font-size:12px;color:#77869a;margin-top:25px}.pending-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 0,#eaf7ff,#f5f8fc 48%);padding:25px}.pending-card{width:min(560px,100%);padding:38px}.pending-icon{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:#e9fbf1;color:#14a45f;font-size:30px;font-weight:900;margin:30px 0 18px}.pending-card h1{font-size:30px;margin:0 0 8px}.pending-status{display:inline-flex;align-items:center;gap:8px;background:#fff6df;color:#a76a00;padding:8px 11px;border-radius:999px;font-size:12px;font-weight:800;margin:12px 0 18px}.pending-status span{width:8px;height:8px;border-radius:50%;background:#f0a51e}.pending-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:25px 0}.pending-summary div{padding:15px;border-radius:12px;background:#f7faff;border:1px solid #e7eef7}.pending-summary span,.pending-summary strong{display:block}.pending-summary span{font-size:10px;color:#758398}.pending-summary strong{margin-top:5px}.upgrade-card{max-width:700px;padding:42px}.upgrade-card h1{font-size:31px}.admin-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr;background:#f5f8fc}.admin-side{background:linear-gradient(180deg,#061a3a,#082b5e);color:#d8e7fa;padding:28px 18px}.admin-side .logo-word{color:#fff}.admin-side .logo-tag{color:#9bb6d5}.admin-side nav{margin-top:38px;display:grid;gap:6px}.admin-side nav a{padding:11px 12px;border-radius:9px;font-size:13px}.admin-side nav a:hover,.admin-side nav a.active{background:#0c7df3;color:#fff}.admin-main{padding:34px;min-width:0}.admin-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.admin-head h1{margin:6px 0;font-size:34px}.admin-head p{margin:0;color:#718096}.admin-user{background:#0a2a59;color:#fff;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800}.admin-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}.admin-kpis .card{padding:19px}.admin-kpis span,.admin-kpis strong{display:block}.admin-kpis span{font-size:11px;color:#718096}.admin-kpis strong{font-size:27px;margin-top:7px}.admin-table-card{padding:22px}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.admin-toolbar h2{margin:0}.admin-toolbar p{margin:4px 0 0;font-size:12px;color:#718096}.admin-toolbar form{display:flex;gap:8px;min-width:390px}.admin-customer-list{display:grid;gap:10px}.admin-customer{border:1px solid #e4ebf3;border-radius:14px;padding:17px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff}.customer-main{min-width:0}.customer-title{display:flex;align-items:center;gap:9px}.customer-title strong{font-size:15px}.customer-meta,.customer-plan{font-size:11px;color:#718096;margin-top:5px}.customer-plan b{color:#0b5fbf}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.status-pill.green{background:#e7f9ef;color:#11884f}.status-pill.orange{background:#fff3da;color:#aa6a00}.status-pill.red{background:#ffe8e8;color:#ad2e2e}.customer-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.customer-actions form{margin:0}.inline-admin-form{display:flex;gap:6px}.inline-admin-form .select{min-width:125px;padding:9px}.success-btn{background:#e8f9ef;color:#0c874d}.danger-btn{background:#fff0f0;color:#b32828}.badge.status-paid{background:#e6f8ee;color:#10824b}.badge.status-open{background:#fff3db;color:#a96800}.badge.status-overdue{background:#ffe7e7;color:#b32626}.badge.status-partial{background:#e8f2ff;color:#1769c2}.badge.status-draft{background:#edf0f4;color:#617084}.badge.status-cancelled{background:#ece7ea;color:#6c5360}@media(max-width:980px){.plan-grid-app{grid-template-columns:1fr}.admin-shell{grid-template-columns:1fr}.admin-side{display:none}.admin-kpis{grid-template-columns:repeat(2,1fr)}.admin-main{padding:20px}.admin-customer{align-items:flex-start;flex-direction:column}.customer-actions{justify-content:flex-start}.admin-toolbar{align-items:flex-start;flex-direction:column}.admin-toolbar form{min-width:0;width:100%}}@media(max-width:600px){.plan-top{padding:0 18px}.plan-shell{padding:35px 14px}.plan-intro h1{font-size:31px}.pending-summary{grid-template-columns:1fr}.admin-kpis{grid-template-columns:1fr}.inline-admin-form{width:100%;flex-direction:column}.customer-actions{width:100%;flex-direction:column;align-items:stretch}.customer-actions form,.customer-actions button{width:100%}}
.account-plan-card{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}.account-plan-card>div{border:1px solid #e3ebf4;background:#f8fbff;border-radius:12px;padding:15px}.account-plan-card span,.account-plan-card strong{display:block}.account-plan-card span{font-size:10px;color:#718096}.account-plan-card strong{margin-top:5px;font-size:16px}@media(max-width:600px){.account-plan-card{grid-template-columns:1fr}}
.template-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.template-option{cursor:pointer}.template-option input{position:absolute;opacity:0;pointer-events:none}.template-thumb{display:block;position:relative;height:125px;border:2px solid #e2e9f2;border-radius:12px;background:#fff;padding:14px;overflow:hidden;transition:.2s}.template-option input:checked+.template-thumb{border-color:#1286f2;box-shadow:0 0 0 3px #1286f216}.template-thumb i{display:block;width:32%;height:8px;border-radius:4px;background:#0d80ef;margin-bottom:18px}.template-thumb b{display:block;font-size:11px}.template-thumb small{display:block;font-size:7px;color:#718096;margin-top:4px}.template-thumb em{display:block;height:28px;border-top:2px solid #0d80ef;border-bottom:1px solid #dfe7f0;margin-top:15px}.template-thumb.business{background:linear-gradient(90deg,#0c244c 0 18%,#fff 18%)}.template-thumb.business i{margin-left:22%;width:28%}.template-thumb.classic i{background:#20324b;width:50%;height:4px}.template-thumb.classic em{border-top-color:#20324b}.template-thumb.minimal i{width:20%;height:5px;background:#a8b2c0}.template-thumb.minimal em{border-top:1px solid #d9e0e8}.designer-hint{display:flex;flex-direction:column;gap:5px;background:#f0f7ff;border:1px solid #dcecff;border-radius:12px;padding:15px;margin:15px 0}.designer-hint strong{font-size:13px}.designer-hint span{font-size:11px;color:#65758b;line-height:1.5}.color-row{display:flex;align-items:center;gap:12px}@media(max-width:600px){.template-picker{grid-template-columns:1fr 1fr}}
.logo-upload-zone{display:block;cursor:pointer}.logo-upload-zone>input{position:absolute;opacity:0;pointer-events:none}.logo-upload-preview{min-height:135px;border:2px dashed #cad9e9;border-radius:13px;background:#f8fbff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:18px;transition:.2s}.logo-upload-zone:hover .logo-upload-preview{border-color:#1685f1;background:#f0f7ff}.logo-upload-preview img{max-width:230px;max-height:90px;object-fit:contain}.logo-upload-preview b{color:#0878f9}.logo-upload-preview small{font-size:10px;color:#718096}

/* RECHVIO v0.3.2 – responsive document designer */
.sidebar{overflow:hidden}.sidebar .nav{overflow-y:auto;min-height:0;padding-right:3px;scrollbar-width:thin}.sidebar .userbox{flex:0 0 auto;background:linear-gradient(180deg,rgba(6,26,58,.94),rgba(8,43,94,.98));position:relative;z-index:2}.sidebar .nav::-webkit-scrollbar{width:5px}.sidebar .nav::-webkit-scrollbar-thumb{background:#ffffff28;border-radius:8px}
.designer-intro{margin-top:-7px;margin-bottom:22px}.doc-designer{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,.9fr);gap:24px;align-items:start}.designer-controls{min-width:0}.designer-steps{display:grid;grid-template-columns:repeat(6,minmax(76px,1fr));gap:7px;margin-bottom:18px;overflow:auto;padding-bottom:2px}.designer-step{border:1px solid #dce6f1;background:#f8fbff;color:#52657c;border-radius:12px;padding:10px 7px;font:inherit;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap}.designer-step span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;margin:0 auto 5px;background:#e6eef8;color:#54708d}.designer-step.active{background:#eaf4ff;border-color:#9dcbfa;color:#056dcf}.designer-step.active span{background:#0878f9;color:#fff}.designer-panel{display:none;border:1px solid #e4ebf3;border-radius:16px;padding:20px;background:#fbfdff}.designer-panel.active{display:block}.panel-title{display:flex;flex-direction:column;gap:5px;margin-bottom:16px}.panel-title b{font-size:15px}.panel-title small{color:#728197;line-height:1.5}.designer-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.designer-form-grid .wide{grid-column:1/-1}.pro-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pro-template-card{position:relative;display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center;border:2px solid #e2e9f1;border-radius:15px;padding:12px;background:#fff;cursor:pointer;transition:.18s}.pro-template-card:hover{border-color:#a9ccef;box-shadow:0 10px 26px #143a6411}.pro-template-card>input{position:absolute;opacity:0}.pro-template-card:has(input:checked){border-color:#0878f9;box-shadow:0 0 0 3px #0878f916}.template-copy{display:flex;flex-direction:column;gap:4px}.template-copy small{color:#718096}.template-check{position:absolute;right:10px;top:9px;width:23px;height:23px;border-radius:50%;display:none;place-items:center;background:#0878f9;color:#fff;font-size:12px}.pro-template-card:has(input:checked) .template-check{display:grid}.template-paper{height:150px;aspect-ratio:210/297;background:#fff;border:1px solid #dce4ed;box-shadow:0 5px 15px #132c4b13;display:block;position:relative;overflow:hidden;padding:9px}.template-paper span{position:absolute;display:block}.tp-logo{left:10px;top:10px;width:32px;height:8px;background:#182c48;border-radius:2px}.tp-address{left:10px;top:34px;width:38px;height:24px;border-top:2px solid #d8e0ea}.tp-title{left:10px;top:64px;width:32px;height:8px;background:#132b4b}.tp-meta{right:10px;top:60px;width:29px;height:22px;border-top:2px solid #c9d5e2}.tp-table{left:10px;right:10px;top:88px;height:29px;border-top:3px solid #0878f9;border-bottom:1px solid #dae3ed;background:repeating-linear-gradient(to bottom,transparent 0 8px,#edf2f7 8px 9px)}.tp-total{right:10px;top:121px;width:34px;height:8px;border-top:2px solid #162d4d}.tp-footer{left:10px;right:10px;bottom:7px;height:5px;border-top:1px solid #d8e0e8}.pro-template-card.business .template-paper{border-left:15px solid #102c54}.pro-template-card.business .tp-logo{left:24px}.pro-template-card.business .tp-table{border-top-color:#102c54}.pro-template-card.elegant .tp-logo,.pro-template-card.elegant .tp-title{background:#4e5967}.pro-template-card.elegant .tp-table{border-top:1px solid #697789}.pro-template-card.compact .template-paper{padding:7px}.pro-template-card.compact .tp-address{top:29px}.pro-template-card.compact .tp-title{top:54px}.pro-template-card.compact .tp-meta{top:51px}.pro-template-card.compact .tp-table{top:74px;height:45px}.logo-setup-card{display:flex;gap:16px;align-items:center;border:2px dashed #bed3ea;border-radius:16px;padding:16px;background:#f7fbff;cursor:pointer}.logo-file-input{display:block}.logo-setup-card:focus{outline:3px solid #0878f922;border-color:#69acf2}.logo-live{width:130px;height:80px;background:#fff;border:1px solid #e1e7ef;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 auto}.logo-live img{max-width:112px;max-height:62px;object-fit:contain}.logo-placeholder{font-size:34px;color:#0878f9}.logo-actions{display:flex;flex-direction:column;gap:5px}.logo-actions small{color:#718096}.logo-file-name{font-size:12px;color:#52657c;margin-top:4px;word-break:break-word}.logo-select-btn{align-self:flex-start;margin-top:7px;padding:9px 14px}.logo-setup-card:hover{border-color:#7db7f1;background:#f1f8ff}.segmented{display:flex;gap:6px;flex-wrap:wrap}.segmented label{flex:1;min-width:80px}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;padding:10px 12px;border:1px solid #dbe5ef;border-radius:9px;background:#fff;cursor:pointer;font-size:12px}.segmented input:checked+span{border-color:#0878f9;background:#eaf4ff;color:#056ed1;font-weight:800}.range{width:100%;accent-color:#0878f9}.color-control{display:flex;gap:10px;align-items:center}.color-control input{width:58px;height:46px;padding:3px;border:1px solid #dbe5ef;border-radius:10px;background:#fff}.color-control code{background:#edf3f8;padding:9px 10px;border-radius:8px;color:#33465e}.switch-row{display:flex;gap:11px;align-items:flex-start;background:#f7faff;border:1px solid #e1eaf4;border-radius:12px;padding:13px}.switch-row span{display:flex;flex-direction:column;gap:4px}.switch-row small{color:#748398}.designer-bottom{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.preview-mobile-btn{display:none}.designer-preview-wrap{position:sticky;top:88px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 4px 10px}.preview-toolbar button{display:none;border:0;background:#edf3f8;width:32px;height:32px;border-radius:50%;font-size:22px;color:#38506a}.a4-stage{background:#e7edf4;border-radius:18px;padding:20px;overflow:auto}.a4-preview{--doc-accent:#0878f9;width:100%;max-width:520px;aspect-ratio:210/297;margin:auto;background:#fff;box-shadow:0 10px 34px #14304f25;padding:7% 7% 5%;font-size:7.5px;color:#14243b;display:flex;flex-direction:column}.p-head{display:flex;justify-content:space-between;gap:18px;border-bottom:2px solid var(--doc-accent);padding-bottom:12px}.p-logo{width:55%;display:flex;justify-content:flex-start}.p-logo[data-pos="center"]{justify-content:center}.p-logo[data-pos="right"]{justify-content:flex-end}.p-logo img{max-width:var(--logo-width);max-height:40px;object-fit:contain}.p-logo strong{font-size:15px;color:var(--doc-accent)}.p-company{text-align:right;display:flex;flex-direction:column;line-height:1.55}.p-recipient{display:flex;flex-direction:column;gap:2px;min-height:22%;padding-top:9%;line-height:1.5}.p-recipient small{font-size:5.5px;color:#75859a;text-decoration:underline;margin-bottom:8px}.p-title-row{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}.p-title-row h2{font-size:18px;margin:0 0 5px;color:var(--doc-accent)}.p-title-row p{margin:0;color:#596a7f}.p-meta{display:flex;flex-direction:column;text-align:right;line-height:1.55}.p-table{width:100%;border-collapse:collapse}.p-table th{text-align:left;border-bottom:2px solid var(--doc-accent);padding:6px 4px}.p-table td{padding:7px 4px;border-bottom:1px solid #e6ebf1}.p-table th:nth-child(n+3),.p-table td:nth-child(n+3){text-align:right}.p-sums{width:45%;margin:16px 0 14px auto;display:flex;flex-direction:column}.p-sums span,.p-sums strong{display:flex;justify-content:space-between;padding:4px 0}.p-sums>strong{border-top:2px solid #192d49;margin-top:3px;padding-top:7px}.p-outro{line-height:1.55;margin:5px 0 20px}.p-footer{margin-top:auto;border-top:1px solid #d9e1ea;padding-top:8px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;color:#5f7085;font-size:5.8px}.p-footer div{display:flex;flex-direction:column;gap:2px}.a4-preview.template-business .p-head{background:#102c54;color:#fff;margin:-7.5% -7.5% 0;padding:7% 7% 16px;border:0}.a4-preview.template-business .p-company{color:#dce9f7}.a4-preview.template-business .p-title-row h2{color:#102c54}.a4-preview.template-elegant{font-family:Georgia,serif;color:#323942}.a4-preview.template-elegant .p-head{border-bottom:1px solid #6f7884}.a4-preview.template-elegant .p-title-row h2{color:#3c4653;font-weight:400}.a4-preview.template-elegant .p-table th{border-bottom:1px solid #65707c}.a4-preview.template-compact{padding:5.5%;font-size:7px}.a4-preview.template-compact .p-recipient{min-height:17%;padding-top:6%}.a4-preview.template-compact .p-table td{padding:5px 3px}
@media(max-width:1250px){.doc-designer{grid-template-columns:minmax(0,1fr) 390px}.pro-template-card{grid-template-columns:100px 1fr}.template-paper{height:130px}}
@media(max-width:1000px){.doc-designer{grid-template-columns:1fr}.designer-preview-wrap{position:relative;top:auto}.a4-stage{max-width:680px;margin:auto}.designer-steps{grid-template-columns:repeat(6,120px)}}
@media(max-width:700px){.settings-card{padding:16px}.designer-intro{font-size:13px}.designer-steps{display:flex;gap:7px;overflow-x:auto;margin-left:-2px;margin-right:-2px}.designer-step{min-width:90px}.designer-panel{padding:15px}.pro-template-grid{grid-template-columns:1fr}.pro-template-card{grid-template-columns:105px 1fr}.logo-setup-card{flex-direction:column;text-align:center}.logo-live{width:100%;height:100px}.designer-form-grid{grid-template-columns:1fr}.designer-form-grid .wide{grid-column:auto}.designer-bottom{position:sticky;bottom:0;background:#fff;padding:12px 0 2px;z-index:3}.designer-bottom .btn{flex:1}.preview-mobile-btn{display:inline-flex}.designer-preview-wrap{display:none;position:fixed;inset:0;background:#e8eef5;z-index:100;padding:12px;overflow:auto}.designer-preview-wrap.mobile-open{display:block}.preview-toolbar{position:sticky;top:0;background:#e8eef5;padding:5px 2px 10px;z-index:2}.preview-toolbar button{display:block}.a4-stage{padding:8px;border-radius:12px}.a4-preview{width:min(100%,520px);min-width:0}.settings-layout{display:block}.settings-nav{display:flex;overflow:auto;margin-bottom:14px}.settings-nav a{white-space:nowrap}.sidebar{height:100dvh}.sidebar .nav{overflow-y:auto}.sidebar .userbox{position:sticky;bottom:0;padding-bottom:14px}}

/* Global tablet & smartphone refinements */
@media(max-width:1100px){.content{padding:22px}.topbar{padding:0 18px}.kpis{grid-template-columns:repeat(2,1fr)}.invoice-layout{grid-template-columns:1fr}.invoice-side{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.save-card{grid-column:1/-1}.table-card{overflow-x:auto;-webkit-overflow-scrolling:touch}}
@media(max-width:760px){body{overflow-x:hidden}.topbar{height:62px}.topbar .search{display:none}.topbar .btn.primary{padding:10px 12px;font-size:12px}.content{padding:14px}.card{border-radius:15px}.page-head h1,.welcome h1{font-size:23px}.page-buttons{width:100%;flex-wrap:wrap}.page-buttons .btn,.page-buttons form{flex:1}.page-buttons form .btn{width:100%}.invoice-side{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.table{min-width:660px}.table-card{padding:14px}.kpi{padding:16px}.kpi .value{font-size:22px}.report-grid{grid-template-columns:1fr}.detail-card dl{grid-template-columns:1fr;gap:3px}.detail-card dt{margin-top:8px}.inline-form{flex-wrap:wrap}.mini-input{max-width:none;flex:1}.setup-top{height:66px}.setup-top .logo-lockup{transform:scale(.84);transform-origin:left center}.auth-card{padding:24px}.settings-card{box-shadow:none;border-radius:14px}.sidebar{width:min(86vw,285px);left:-100%;}.sidebar.open{left:0}.sidebar .userbox{background:#082b5e}.mobile-toggle{min-width:38px;min-height:38px}}

.real-file-label{display:inline-flex;align-items:center;justify-content:center;width:max-content;margin-top:8px;padding:10px 15px;border-radius:9px;background:#eaf4ff;color:#056ed1;font-weight:800;font-size:12px;cursor:pointer;border:1px solid #b9dafb}.real-file-label:hover{background:#dceeff}.real-file-input{display:block;width:100%;max-width:420px;margin-top:8px;padding:10px;border:1px solid #dbe5ef;border-radius:10px;background:#fff;font:inherit;font-size:12px;color:#42566f}.real-file-input::file-selector-button{border:0;border-radius:7px;background:#0878f9;color:#fff;padding:8px 12px;margin-right:10px;cursor:pointer;font-weight:700}.color-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.color-preset{position:relative;display:flex;align-items:center;gap:10px;border:1px solid #dce6f1;border-radius:12px;padding:11px;background:#fff;cursor:pointer;min-width:0}.color-preset input{position:absolute;opacity:0;pointer-events:none}.color-preset:has(input:checked){border-color:#0878f9;box-shadow:0 0 0 3px #0878f914;background:#f8fbff}.color-dot{width:26px;height:26px;border-radius:8px;background:var(--preset);flex:0 0 auto;box-shadow:inset 0 0 0 1px #00000012}.color-preset>span:last-child{display:flex;min-width:0;flex-direction:column}.color-preset b{font-size:12px}.color-preset small{font-size:10px;color:#718096;margin-top:2px}@media(max-width:900px){.color-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.color-presets{grid-template-columns:1fr}.real-file-label{width:100%}.real-file-input{max-width:none}}

/* v0.3.5 professional templates */
.design-note{border:1px solid #dfe8f2;background:#f7faff;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px}.design-note b{font-size:13px}.design-note span{font-size:12px;color:#687a91;line-height:1.5}.template-palette{display:flex;gap:5px;margin-top:5px}.template-palette i{width:18px;height:6px;border-radius:999px;background:#dbe4ee}.pro-template-card.pure .template-palette i:nth-child(1){background:#20252b}.pro-template-card.pure .template-palette i:nth-child(2){background:#737b84}.pro-template-card.pure .template-palette i:nth-child(3){background:#e7e9ec}.pro-template-card.modern .template-palette i:nth-child(1){background:#0878f9}.pro-template-card.modern .template-palette i:nth-child(2){background:#20b9ed}.pro-template-card.modern .template-palette i:nth-child(3){background:#eaf4ff}.pro-template-card.ocean .template-palette i:nth-child(1){background:#0f8b8d}.pro-template-card.ocean .template-palette i:nth-child(2){background:#4cc9c0}.pro-template-card.ocean .template-palette i:nth-child(3){background:#e8f8f6}.pro-template-card.indigo .template-palette i:nth-child(1){background:#4f46e5}.pro-template-card.indigo .template-palette i:nth-child(2){background:#7c6ff2}.pro-template-card.indigo .template-palette i:nth-child(3){background:#efefff}.pro-template-card.business .template-palette i:nth-child(1){background:#102c54}.pro-template-card.business .template-palette i:nth-child(2){background:#416489}.pro-template-card.business .template-palette i:nth-child(3){background:#dfe8f3}.pro-template-card.elegant .template-palette i:nth-child(1){background:#5d5145}.pro-template-card.elegant .template-palette i:nth-child(2){background:#a18362}.pro-template-card.elegant .template-palette i:nth-child(3){background:#eee7df}.pro-template-card.pure .tp-table{border-top-color:#2a2f35}.pro-template-card.pure .tp-logo,.pro-template-card.pure .tp-title{background:#2a2f35}.pro-template-card.ocean .tp-table{border-top-color:#0f8b8d}.pro-template-card.ocean .tp-logo,.pro-template-card.ocean .tp-title{background:#0f8b8d}.pro-template-card.indigo .tp-table{border-top-color:#4f46e5}.pro-template-card.indigo .tp-logo,.pro-template-card.indigo .tp-title{background:#4f46e5}.pro-template-card.business .template-paper{background:linear-gradient(180deg,#102c54 0 23%,#fff 23%)}.pro-template-card.business .tp-logo{background:#fff}.pro-template-card.business .tp-title{background:#102c54}.pro-template-card.elegant .template-paper{background:#fffdfa}.pro-template-card.elegant .tp-table{border-top-color:#8a6a42}.pro-template-card.elegant .tp-logo,.pro-template-card.elegant .tp-title{background:#8a6a42}.a4-preview.template-pure .p-head{border-bottom:1px solid #2a2f35}.a4-preview.template-pure .p-title-row h2{color:#20252b}.a4-preview.template-ocean .p-head{border-bottom-color:#0f8b8d}.a4-preview.template-ocean .p-title-row h2{color:#0f8b8d}.a4-preview.template-ocean .p-sums>strong{border-top-color:#0f8b8d}.a4-preview.template-indigo .p-head{border-bottom-color:#4f46e5}.a4-preview.template-indigo .p-title-row h2{color:#4f46e5}.a4-preview.template-indigo .p-sums>strong{border-top-color:#4f46e5}.a4-preview.template-elegant{background:#fffdfa}.a4-preview.template-elegant .p-title-row h2{color:#8a6a42}.a4-preview.template-elegant .p-head{border-bottom-color:#8a6a42}.logo-live img,#previewLogo img{display:block;max-width:100%;max-height:100%;object-fit:contain}.logo-live{padding:8px}.color-presets,.color-control{display:none!important}

/* v0.3.6 persistent document designer fixes */
.sidebar-brand-link{display:block;border-radius:10px}.sidebar-brand-link:focus-visible{outline:2px solid #29a9ff;outline-offset:3px}.p-head.logo-right .p-logo{order:2;justify-content:flex-end}.p-head.logo-right .p-company{order:1;text-align:left}.p-head.logo-center{flex-direction:column;align-items:center;gap:8px}.p-head.logo-center .p-logo{width:100%;justify-content:center}.p-head.logo-center .p-company{text-align:center;width:100%}.p-logo img{width:var(--logo-width);max-width:100%;max-height:48px;object-fit:contain}.logo-live img{width:auto;max-width:100%;max-height:100%;object-fit:contain}

/* v0.4.0 UX + search + invoice controls */
.top-search-form{flex:1;max-width:420px}.top-search-form .search{width:100%;max-width:none;pointer-events:auto;cursor:text}.inline-check{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;color:#65758a}.inline-check input{width:16px;height:16px}.row-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}.row-actions form{display:inline}.small-link{color:#0878f9;font-weight:700}.link-danger{border:0;background:none;padding:0;color:#c63c45;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.search-result-grid{display:grid;gap:16px}.export-card{margin-top:18px;padding:22px}.export-form{max-width:760px}.admin-brand-link{display:block;text-decoration:none;color:inherit;border-radius:12px}.admin-brand-link:focus-visible{outline:2px solid #29a9ff;outline-offset:4px}
/* logo sizing must visibly react in preview */
.p-logo img{width:var(--logo-width)!important;max-width:100%!important;max-height:110px!important;height:auto!important}.p-head.logo-right .p-logo{order:2;justify-content:flex-end}.p-head.logo-right .p-company{order:1;text-align:left}.p-head.logo-center{flex-direction:column;align-items:center}.p-head.logo-center .p-company{text-align:center}.p-head.logo-left .p-company{text-align:right}
/* more distinct professional layouts */
.a4-preview.template-modern{border-top:10px solid #0878f9}.a4-preview.template-modern .p-title-row{padding-left:12px;border-left:4px solid #0878f9}.a4-preview.template-ocean .p-head{border:0;background:linear-gradient(135deg,#0f8b8d,#33b6b0);color:#fff;padding:14px;border-radius:12px}.a4-preview.template-ocean .p-company,.a4-preview.template-ocean .p-logo strong{color:#fff}.a4-preview.template-indigo .p-head{border-bottom:0;border-left:7px solid #4f46e5;padding-left:14px}.a4-preview.template-indigo .p-title-row{background:#f2f1ff;padding:12px;border-radius:10px}.a4-preview.template-business .p-head{border-radius:0 0 16px 16px}.a4-preview.template-business .p-title-row{margin-top:8px}.a4-preview.template-elegant{border:1px solid #e7dfd6}.a4-preview.template-elegant .p-head{padding-bottom:18px}.a4-preview.template-elegant .p-title-row{text-align:center;display:block}.a4-preview.template-elegant .p-meta{text-align:center;margin-top:8px}.a4-preview.template-pure .p-head{border:0}.a4-preview.template-pure .p-title-row{border-top:1px solid #222;border-bottom:1px solid #222;padding:10px 0}
.pro-template-card.modern .template-paper{border-top:8px solid #0878f9}.pro-template-card.ocean .template-paper{background:linear-gradient(180deg,#0f8b8d 0 27%,#fff 27%)}.pro-template-card.ocean .tp-logo{background:#fff}.pro-template-card.indigo .template-paper{border-left:8px solid #4f46e5}.pro-template-card.elegant .template-paper{border:1px solid #cdbba8;background:#fffdfa}.pro-template-card.elegant .tp-title{left:35%;width:30%;}.pro-template-card.pure .template-paper{box-shadow:none;border-color:#bfc5cc}
@media(max-width:760px){.top-search-form{display:none}.row-actions{flex-wrap:wrap}.inline-check{font-size:11px}}

/* v0.4.0 premium template differentiation */
.pro-template-card.pure .template-paper{background:#fff}.pro-template-card.pure .tp-title{width:48px;height:10px;background:#111}.pro-template-card.pure .tp-table{border-top:1px solid #111;background:repeating-linear-gradient(to bottom,transparent 0 9px,#eee 9px 10px)}
.pro-template-card.modern .template-paper{border-top:8px solid #0878f9}.pro-template-card.modern .tp-title{left:15px;border-left:5px solid #0878f9;padding-left:6px;width:50px}.pro-template-card.modern .tp-meta{background:#eef6ff;border:0;border-radius:4px;height:25px}.pro-template-card.modern .tp-table{border-top-color:#0878f9}
.pro-template-card.ocean .template-paper{background:linear-gradient(180deg,#eaf9f8 0 38px,#fff 38px)}.pro-template-card.ocean .tp-title{background:#0f8b8d;border-radius:3px;width:42px}.pro-template-card.ocean .tp-table{background:#edf9f8;border-top:0}.pro-template-card.ocean .tp-total{border-top-color:#0f8b8d}
.pro-template-card.indigo .template-paper{border-left:8px solid #4f46e5}.pro-template-card.indigo .tp-logo{left:17px}.pro-template-card.indigo .tp-title{left:17px;background:#4f46e5}.pro-template-card.indigo .tp-table{left:17px;background:#f2f0ff;border-top:0}.pro-template-card.indigo .tp-footer{left:17px}
.pro-template-card.business .template-paper{border:0;background:linear-gradient(180deg,#102c54 0 48px,#fff 48px);box-shadow:0 7px 18px #102c5430}.pro-template-card.business .tp-logo{background:#fff}.pro-template-card.business .tp-address{border-color:#dbe7f4}.pro-template-card.business .tp-title{top:62px;background:#102c54}.pro-template-card.business .tp-table{border-top:0;background:#eef3f8}
.pro-template-card.elegant .template-paper{background:#fffdfa;border:1px solid #d8ccb8}.pro-template-card.elegant .tp-logo{left:50%;transform:translateX(-50%);background:#8a6a42}.pro-template-card.elegant .tp-address{left:50%;transform:translateX(-50%);width:55px;text-align:center}.pro-template-card.elegant .tp-title{left:50%;transform:translateX(-50%);background:#8a6a42;width:38px}.pro-template-card.elegant .tp-table{border-top:1px solid #bca98b;background:transparent}
.a4-preview.template-modern{border-top:8px solid #0878f9}.a4-preview.template-modern .p-head{border:0}.a4-preview.template-modern .p-title-row{border-left:5px solid #0878f9;padding-left:12px}.a4-preview.template-modern .p-meta{background:#eef6ff;border-radius:8px;padding:7px}
.a4-preview.template-ocean .p-head{border:0;background:linear-gradient(90deg,#e9f8f7,#fff);margin:-7% -7% 0;padding:7% 7% 12px}.a4-preview.template-ocean .p-title-row h2{background:#0f8b8d;color:#fff;padding:6px 8px;border-radius:6px}.a4-preview.template-ocean .p-table th{background:#e8f6f5;border:0}
.a4-preview.template-indigo .p-head{border:0;border-left:7px solid #4f46e5;padding-left:10px}.a4-preview.template-indigo .p-title-row{background:#f2f0ff;border-radius:9px;padding:10px}.a4-preview.template-indigo .p-table th{background:#4f46e5;color:#fff;border:0}
.a4-preview.template-pure .p-head{border-bottom:1px solid #111}.a4-preview.template-pure .p-title-row h2{font-size:22px;color:#111;letter-spacing:-.04em}.a4-preview.template-pure .p-table th{border-bottom:1px solid #111}
.a4-preview.template-elegant .p-head{flex-direction:column;align-items:center}.a4-preview.template-elegant .p-company{text-align:center}.a4-preview.template-elegant .p-title-row{border-top:1px solid #c5b393;border-bottom:1px solid #c5b393;padding:10px 0}.a4-preview.template-elegant .p-title-row h2{color:#8a6a42}.a4-preview.template-elegant .p-table th{color:#8a6a42}
.export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:4px 0 18px}.export-options label{display:flex;align-items:center;gap:8px;font-size:13px;color:#52657c}.export-options input{width:17px;height:17px}
@media(max-width:700px){.export-options{grid-template-columns:1fr}}
/* v0.4.1 getrennter Plattform-Admin */
.admin-login-page{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 0,#eaf7ff,#f5f8fc 45%)}.admin-login-card{width:min(470px,100%);padding:36px}.admin-login-card .eyebrow{margin-top:30px}.admin-login-card h1{font-size:30px;margin:8px 0}.admin-login-links{display:flex;justify-content:space-between;gap:15px;margin-top:18px;font-size:12px;color:#0b6ed8;font-weight:750}.admin-payments{margin-top:18px}.admin-payments h2{margin:0}.table-wrap{overflow:auto}
@media(max-width:600px){.admin-login-card{padding:26px}.admin-login-links{flex-direction:column}.admin-head{flex-direction:column;gap:12px}.admin-user{align-self:flex-start}}


/* v0.4.2 – Focus Designer */
.designer-mode-note{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(135deg,#eef6ff,#f9fcff);border:1px solid #d8e9fb;border-radius:14px;padding:13px 15px;margin:0 0 16px;color:#17385f}.designer-mode-note b{display:block;font-size:13px;margin-bottom:3px}.designer-mode-note small{display:block;color:#68809b;line-height:1.45}.designer-mode-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#0878f9;color:#fff;font-size:18px;flex:0 0 auto}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-toolbar>div:first-child{display:flex;flex-direction:column;gap:2px}.preview-toolbar small{font-size:10px;color:#75879b;font-weight:500}.preview-toolbar-actions{display:flex;align-items:center;gap:7px}.preview-back-btn{display:none!important;border:1px solid #d6e2ef;background:#fff;color:#285f99;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:750;cursor:pointer}.preview-back-btn.show{display:inline-flex!important}.a4-stage{overflow:hidden;position:relative;min-height:620px;transition:.25s ease}.a4-stage.focus-active{background:radial-gradient(circle at center,#f6faff,#e2eaf4);box-shadow:inset 0 0 0 1px #dce7f2}.a4-preview{transition:transform .42s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease}.a4-preview.focus-mode{box-shadow:0 30px 80px rgba(9,34,72,.18)}.designer-zone{position:relative;cursor:pointer;transition:opacity .25s ease,filter .25s ease,box-shadow .25s ease,outline .25s ease}.designer-zone:hover{outline:2px solid rgba(8,120,249,.28);outline-offset:4px}.designer-zone:hover:after,.designer-zone.zone-active:after{content:'Bearbeiten';position:absolute;z-index:8;top:6px;right:6px;background:#0a254c;color:#fff;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800;letter-spacing:.04em;box-shadow:0 4px 12px rgba(0,0,0,.15)}.designer-zone.zone-active{outline:2px solid #0878f9;outline-offset:5px;box-shadow:0 0 0 7px rgba(8,120,249,.08)}.designer-zone.zone-muted{opacity:.42;filter:saturate(.65)}.p-logo.designer-zone,.p-company.designer-zone{border-radius:7px}.p-table.designer-zone{display:table}.p-table.designer-zone:after{top:-20px}.p-footer.designer-zone:after{top:-18px}

/* Sechs deutlich eigenständigere Template-Karten */
.pro-template-grid{gap:16px}.pro-template-card{border-radius:16px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.pro-template-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(22,56,94,.12)}.pro-template-card .template-paper{height:168px;border-radius:9px;position:relative;overflow:hidden}.pro-template-card .template-copy{padding-top:3px}.pro-template-card .template-copy b{font-size:13px}.pro-template-card .template-copy small{line-height:1.35}.pro-template-card.pure .template-paper{border:1px solid #bac1c8;background:#fff}.pro-template-card.pure .tp-logo{width:26px;height:7px;background:#111}.pro-template-card.pure .tp-title{top:47px;left:14px;width:66px;height:15px;background:#111}.pro-template-card.pure .tp-meta{top:45px;right:14px;width:42px;height:23px;background:transparent;border:1px solid #bbb}.pro-template-card.pure .tp-table{top:88px;left:14px;right:14px;height:42px;background:repeating-linear-gradient(to bottom,#fff 0 10px,#e9e9e9 10px 11px);border-top:2px solid #111}.pro-template-card.modern .template-paper{border:0;background:linear-gradient(90deg,#0878f9 0 6px,#fff 6px)}.pro-template-card.modern .tp-logo{left:18px;top:16px;width:35px;height:10px;background:#0878f9;border-radius:6px}.pro-template-card.modern .tp-title{top:47px;left:18px;width:58px;height:17px;background:#102c54;border-radius:3px}.pro-template-card.modern .tp-meta{top:42px;right:13px;width:47px;height:32px;background:#edf6ff;border-radius:6px}.pro-template-card.modern .tp-table{left:18px;right:13px;top:88px;height:46px;background:linear-gradient(#edf6ff 0 12px,#fff 12px);border-top:0}.pro-template-card.ocean .template-paper{border:0;background:linear-gradient(155deg,#0c7477 0 39%,#eaf8f7 39% 47%,#fff 47%)}.pro-template-card.ocean .tp-logo{background:#fff;top:17px}.pro-template-card.ocean .tp-address{top:18px;border-color:#bfe4e2}.pro-template-card.ocean .tp-title{top:61px;left:15px;background:#0f8b8d;width:48px;height:15px;border-radius:8px}.pro-template-card.ocean .tp-meta{top:57px;right:14px;background:#fff;border:0;box-shadow:0 2px 8px #0f8b8d20}.pro-template-card.ocean .tp-table{top:92px;background:#eff9f8;border-radius:5px;border:0}.pro-template-card.indigo .template-paper{border:0;background:#fafaff}.pro-template-card.indigo .template-paper:before{content:'';position:absolute;left:0;top:0;bottom:0;width:10px;background:linear-gradient(#4f46e5,#8b5cf6)}.pro-template-card.indigo .tp-logo{left:22px}.pro-template-card.indigo .tp-title{left:22px;top:45px;width:74px;height:22px;background:#4f46e5;border-radius:4px}.pro-template-card.indigo .tp-meta{right:13px;top:45px;background:#f0efff;border:0;border-radius:5px}.pro-template-card.indigo .tp-table{left:22px;top:88px;background:#f1efff;border:0;border-radius:5px}.pro-template-card.business .template-paper{border:0;background:linear-gradient(180deg,#0a2347 0 57px,#fff 57px);box-shadow:0 8px 20px rgba(10,35,71,.2)}.pro-template-card.business .tp-logo{top:18px;left:15px;width:38px;background:#fff}.pro-template-card.business .tp-address{top:18px;right:15px;border-color:#7e94af}.pro-template-card.business .tp-title{top:72px;left:15px;width:62px;height:17px;background:#0a2347}.pro-template-card.business .tp-meta{top:68px;right:14px;background:#f2f5f8;border:0;border-radius:4px}.pro-template-card.business .tp-table{top:102px;background:linear-gradient(#0a2347 0 11px,#edf2f6 11px 22px,#fff 22px);border:0}.pro-template-card.elegant .template-paper{border:1px solid #d9c9b5;background:#fffdfa}.pro-template-card.elegant .template-paper:before{content:'';position:absolute;left:50%;top:12px;width:1px;height:29px;background:#c8b392}.pro-template-card.elegant .tp-logo{left:50%;transform:translateX(-50%);top:13px;width:26px;background:#8a6a42}.pro-template-card.elegant .tp-address{top:48px;left:50%;transform:translateX(-50%);width:62px;border-color:#cab99e}.pro-template-card.elegant .tp-title{top:68px;left:50%;transform:translateX(-50%);width:44px;height:13px;background:#8a6a42}.pro-template-card.elegant .tp-meta{top:87px;left:50%;right:auto;transform:translateX(-50%);width:52px;background:transparent;border:0}.pro-template-card.elegant .tp-table{top:112px;background:transparent;border-top:1px solid #aa9270}

@media(max-width:700px){.designer-mode-note{font-size:12px}.a4-stage{min-height:0}.preview-back-btn.show{display:inline-flex!important}.designer-zone:hover:after{display:none}.a4-preview.focus-mode{transform:none!important}.designer-zone.zone-muted{opacity:1;filter:none}.designer-zone.zone-active{outline:2px solid #0878f9;box-shadow:0 0 0 5px rgba(8,120,249,.08)}}


/* RECHVIO v0.4.6 — Mobile / iPhone hardening */
html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%}
.input,.select,.textarea{font-size:16px!important}
.auth,.auth-panel,.auth-card,.setup-page,.setup-shell,.setup-card,.plan-page,.plan-shell,.app,.main,.content,.admin-shell,.admin-main,.admin-login-page,.admin-login-card{min-width:0;max-width:100%}
.logo-lockup,.logo-lockup>div,.logo-text-wrap{min-width:0;max-width:100%}

@media(max-width:760px){
  .auth{display:block;min-height:100dvh}
  .auth-visual{display:none!important}
  .auth-panel{display:flex!important;align-items:center;justify-content:center;min-height:100dvh;padding:18px 14px calc(18px + env(safe-area-inset-bottom));width:100%}
  .auth-card{width:100%!important;max-width:460px!important;margin:0 auto;padding:24px 20px!important;border-radius:18px;overflow:hidden}
  .auth-card .logo-lockup{gap:10px;align-items:center}
  .auth-card .logo-lockup .logo-symbol{width:62px!important;flex:0 0 62px}
  .auth-card .logo-lockup .logo-word{font-size:23px!important;letter-spacing:.12em!important;white-space:nowrap}
  .auth-card .logo-lockup .logo-tag{font-size:7px!important;letter-spacing:.18em!important;white-space:normal!important;line-height:1.35}
  .auth-card h2{font-size:30px!important;line-height:1.1;margin-top:22px}
  .auth-card .muted{font-size:16px;line-height:1.45}
  .field{margin:15px 0}
  .input,.select,.textarea{width:100%!important;min-height:48px}
  .btn{min-height:48px}
  .switch-link{font-size:15px;line-height:1.45}

  .setup-top{height:auto;min-height:68px;padding:12px 16px;gap:10px}
  .setup-top .logo-lockup .logo-symbol{width:48px!important}
  .setup-top .logo-lockup .logo-word{font-size:18px!important}
  .setup-top .logo-lockup .logo-tag{display:none}
  .setup-shell{width:100%!important;margin:16px auto!important;padding:0 12px}
  .setup-card{padding:20px 16px!important;border-radius:16px}
  .progress{gap:5px}
  .actions{gap:10px;flex-wrap:wrap}
  .actions .btn{flex:1 1 140px}
  .plan-shell{width:100%!important;padding:18px 12px!important}
  .plan-card-app{min-width:0}

  .app{display:block!important;width:100%}
  .main{width:100%;min-width:0}
  .content{width:100%;padding:16px 12px!important}
  .topbar{width:100%;padding:0 12px!important;gap:8px}
  .topbar .btn{padding:10px 12px;font-size:13px}
  .card{max-width:100%}
  .table-card,.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  .admin-login-page{min-height:100dvh;padding:18px 14px calc(18px + env(safe-area-inset-bottom))!important;display:flex!important;align-items:center;justify-content:center}
  .admin-login-card{width:100%!important;max-width:460px!important;padding:24px 20px!important;margin:0 auto;overflow:hidden}
  .admin-login-card .logo-lockup{gap:10px}
  .admin-login-card .logo-symbol{width:60px!important}
  .admin-login-card .logo-word{font-size:22px!important;letter-spacing:.12em!important}
  .admin-login-card .logo-tag{font-size:7px!important;letter-spacing:.16em!important;white-space:normal!important}
  .admin-login-links{gap:10px}

  .admin-shell{display:block!important;width:100%;min-height:100dvh}
  .admin-side{display:none!important}
  .admin-main{width:100%!important;padding:18px 12px calc(92px + env(safe-area-inset-bottom))!important}
  .admin-head{gap:10px;margin-bottom:16px}
  .admin-head h1{font-size:28px;margin:3px 0 4px}
  .admin-head p{font-size:14px;line-height:1.45;margin:0}
  .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  .admin-kpis .card{padding:14px!important}
  .admin-kpis strong{font-size:23px}
  .admin-table-card{padding:14px!important;border-radius:16px}
  .admin-toolbar{gap:12px!important}
  .admin-toolbar form{display:grid!important;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:8px}
  .admin-customer{padding:14px!important;gap:14px!important;width:100%}
  .customer-main,.customer-actions{width:100%;min-width:0}
  .customer-title{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
  .customer-meta,.customer-plan{overflow-wrap:anywhere;line-height:1.45}
  .customer-actions{display:grid!important;grid-template-columns:1fr;gap:8px!important}
  .customer-actions form,.inline-admin-form{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .customer-actions .btn,.customer-actions .select{width:100%!important;min-height:46px}
  .admin-payments .table{min-width:680px}
}

@media(max-width:430px){
  .auth-panel{padding-left:10px!important;padding-right:10px!important}
  .auth-card{padding:22px 16px!important}
  .auth-card .logo-lockup .logo-symbol{width:54px!important;flex-basis:54px}
  .auth-card .logo-lockup .logo-word{font-size:20px!important;letter-spacing:.10em!important}
  .auth-card h2{font-size:27px!important}
  .admin-kpis{grid-template-columns:1fr 1fr!important}
}


/* RECHVIO Admin PWA – Pull-to-refresh */
.admin-head-right{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.admin-last-refresh{font-size:11px;color:#8293a9;white-space:nowrap}
.admin-pull-refresh{position:fixed;z-index:1000;top:max(0px,env(safe-area-inset-top));left:50%;width:min(310px,calc(100% - 32px));min-height:50px;padding:10px 16px;border-radius:0 0 16px 16px;background:#07182f;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 24px rgba(7,24,47,.18);transform:translate(-50%,-70px);opacity:0;pointer-events:none;transition:opacity .12s ease;will-change:transform}.admin-pull-refresh.visible{opacity:1}.admin-pull-refresh b{font-size:12px;letter-spacing:.01em}.admin-pull-spinner{width:17px;height:17px;border:2px solid rgba(255,255,255,.34);border-top-color:#fff;border-radius:50%;transition:transform .18s ease}.admin-pull-refresh.armed .admin-pull-spinner{transform:rotate(180deg)}.admin-pull-refresh.loading .admin-pull-spinner{animation:adminPullSpin .7s linear infinite}@keyframes adminPullSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.admin-head-right{align-items:flex-start}.admin-last-refresh{margin-top:2px}}

/* RECHVIO Final Build – Multi-Company, archive and identity protection */
.sidebar-company-switch{margin:0 14px 14px;padding:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);border-radius:12px}.sidebar-company-switch small{display:block;color:#8fa9c8;font-size:10px;text-transform:uppercase;letter-spacing:.11em;margin-bottom:7px}.sidebar-company-switch select{width:100%;border:1px solid rgba(255,255,255,.14);background:#0a274f;color:#fff;border-radius:8px;padding:9px 28px 9px 9px;font-size:12px}.sidebar-company-switch a{display:inline-block;color:#82c8ff;font-size:11px;margin-top:8px;font-weight:700}.top-company-link{font-size:12px;font-weight:800;color:#176fcb;border:1px solid #d7e7f7;background:#f4f9ff;border-radius:9px;padding:9px 11px;white-space:nowrap}.company-hub-page{min-height:100vh;background:#f5f8fc}.company-hub-shell{max-width:1120px;margin:0 auto;padding:46px 24px 70px}.company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.company-card{padding:22px}.company-card.current{border:2px solid #1684f2;box-shadow:0 15px 36px rgba(8,120,249,.12)}.company-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.company-card-top small{color:#7b8ba0}.company-card-top h2{font-size:21px;margin:4px 0 16px}.company-meta{display:grid;gap:8px;font-size:13px;color:#718096;margin-bottom:18px}.company-meta span{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2f7;padding-bottom:7px}.company-meta b{text-align:right;color:#183a63}.company-isolation-note{margin-top:18px;padding:20px;background:#edf7ff;border-color:#cce6fb;line-height:1.55}.identity-review-card{max-width:680px!important}.identity-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.identity-compare>div{border:1px solid #dfe8f2;border-radius:13px;padding:17px;background:#f8fbff;display:grid;gap:7px}.identity-compare small{color:#7c8a9c;text-transform:uppercase;letter-spacing:.08em}.identity-compare b{font-size:17px;color:#0b315e}.identity-compare span{font-size:13px;color:#5e7086}.identity-action{margin:12px 0}.archive-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-radius:11px;margin:14px 0 18px;font-size:12px}.archive-banner strong{white-space:nowrap}.archive-banner.ok{background:#eaf8f0;border:1px solid #c8ead6;color:#17623a}.archive-banner.warn{background:#fff5df;border:1px solid #efd39a;color:#805b12}
@media(max-width:980px){.company-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-company-link{display:none}}
@media(max-width:650px){.company-hub-shell{padding:24px 12px 50px}.company-grid,.identity-compare{grid-template-columns:1fr}.company-card{padding:17px}.archive-banner{align-items:flex-start;flex-direction:column}.top-plan{display:none}}

/* v1.0.2 UX fixes */
.password-wrap{position:relative}.password-wrap .input{padding-right:48px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#55708f;font-size:18px;cursor:pointer}.password-toggle:hover{background:#edf5fd;color:#0878f9}
/* Desktop: navigation remains anchored while content scrolls */
@media(min-width:761px){.app{align-items:start}.sidebar{position:fixed!important;left:0;top:0;width:245px;height:100vh;height:100dvh;overflow:hidden;z-index:20}.sidebar .nav{overflow-y:auto;min-height:0;padding-right:3px}.sidebar .userbox{flex:0 0 auto;background:#082b5e}.main{margin-left:245px;width:calc(100% - 245px)}}
/* package cards intentionally compact */
.plan-shell{max-width:1120px!important}.plan-grid-app{grid-template-columns:repeat(3,minmax(0,320px))!important;justify-content:center;gap:18px!important}.plan-card-app{padding:24px!important;min-height:0!important}.plan-card-app>p{min-height:46px!important}.plan-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.plan-price del{font-size:15px;color:#9aa8b9;text-decoration-thickness:2px}.plan-price em{width:100%;font-style:normal;font-size:11px;font-weight:800;color:#16834b}.company-discount-note{max-width:900px;margin:22px auto 0!important;padding:18px!important;border:1px solid #d8e8f6;border-radius:16px;background:linear-gradient(135deg,#fff,#eef7ff);display:grid!important;grid-template-columns:auto 1fr;gap:12px 20px;align-items:center}.company-discount-note b{font-size:14px;color:#0a315f}.company-discount-note span{font-size:12px;line-height:1.65;color:#55708f}.plan-footnote{max-width:800px;margin:12px auto 0!important;text-align:center}
@media(max-width:1000px){.plan-grid-app{grid-template-columns:minmax(0,520px)!important}.company-discount-note{grid-template-columns:1fr}.main{margin-left:245px}}
@media(max-width:760px){.main{margin-left:0;width:100%}.plan-grid-app{grid-template-columns:1fr!important}.company-discount-note{margin-left:0!important;margin-right:0!important}}

/* v1.0.2 fixed invoice designer */
.fixed-designer{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(520px,1.15fr);gap:24px;align-items:start}.fixed-designer-left{min-width:0}.fixed-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.fixed-template-card{position:relative;border:1px solid #dce6f1;border-radius:13px;padding:14px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px}.fixed-template-card input{position:absolute;opacity:0}.fixed-template-card:has(input:checked){border-color:#0878f9;box-shadow:0 0 0 3px #0878f916;background:#f8fbff}.fixed-template-card span{display:flex;flex-direction:column}.fixed-template-card small{font-size:11px;color:#718096;margin-top:3px}.fixed-template-card i{font-style:normal;color:#0878f9;opacity:0}.fixed-template-card:has(input:checked) i{opacity:1}.edit-area-list{display:grid;gap:9px}.edit-area-btn{width:100%;border:1px solid #dce6f1;border-radius:13px;background:#fff;padding:13px;text-align:left;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:11px;cursor:pointer;color:#163656}.edit-area-btn>span{width:32px;height:32px;border-radius:9px;background:#eaf4ff;color:#0878f9;display:grid;place-items:center;font-weight:900}.edit-area-btn b,.edit-area-btn small{display:block}.edit-area-btn small{font-size:11px;color:#718096;margin-top:2px}.edit-area-btn strong{font-size:11px;color:#0878f9}.edit-area-btn:hover{border-color:#9dcbf7;background:#fafdff}.fixed-designer-note{font-size:11px;line-height:1.55;margin:14px 0}.fixed-preview-shell{position:sticky;top:88px;background:#e9eff6;border-radius:16px;padding:14px}.fixed-a4-stage{display:grid;place-items:center;padding:8px}.fixed-a4{width:min(100%,520px);aspect-ratio:210/297;background:#fff;box-shadow:0 12px 30px #16365a22;padding:7%;display:flex;flex-direction:column;font-size:7px;color:#17243a;overflow:hidden;position:relative}.fa-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;height:17%;border-bottom:2px solid #0878f9;padding-bottom:8px}.fa-zone{border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;position:relative}.fa-zone:hover{outline:2px solid #0878f944;outline-offset:4px;border-radius:4px}.fa-sender{text-align:left;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fa-logo{width:42%;height:100%;display:flex;align-items:flex-start;justify-content:flex-end}.fa-logo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.fa-logo span{font-size:15px;font-weight:900;color:#173b67}.fa-address-row{height:18%;padding-top:7%;display:flex;justify-content:space-between;gap:18px}.fa-address-row>div{display:flex;flex-direction:column;gap:2px}.fa-meta{text-align:right}.fa-greeting{min-height:10%;line-height:1.55;overflow:hidden}.fa-table{width:100%;border-collapse:collapse;table-layout:fixed}.fa-table th{border-bottom:2px solid #0878f9;text-align:left;padding:5px 3px}.fa-table td{border-bottom:1px solid #e7edf4;padding:6px 3px;vertical-align:top;overflow:hidden;text-overflow:ellipsis}.fa-table th:nth-child(n+3),.fa-table td:nth-child(n+3){text-align:right}.fa-total{width:48%;margin:10px 0 8px auto;display:grid;gap:3px}.fa-total span,.fa-total strong{display:flex;justify-content:space-between;gap:8px}.fa-total strong{border-top:1.5px solid #17243a;padding-top:5px}.fa-footer-text{text-align:left;min-height:10%;max-height:12%;overflow:hidden;line-height:1.55;margin-top:2px}.fa-legal{margin-top:auto;border-top:2px solid #0878f9;padding-top:7px;width:100%;display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:8px;text-align:left;min-height:11%;max-height:13%;overflow:hidden}.fa-legal div{display:flex;flex-direction:column;gap:2px;min-width:0}.fa-legal span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fixed-a4.template-business .fa-head{background:#102c54;color:#fff;margin:-7% -7% 0;padding:7%;height:20%;border:0}.fixed-a4.template-business .fa-logo span{color:#fff}.fixed-a4.template-business .fa-table th{background:#102c54;color:#fff;border:0}.fixed-a4.template-business .fa-legal{border-top-color:#102c54}.fixed-a4.template-elegant{font-family:Georgia,'Times New Roman',serif}.fixed-a4.template-elegant .fa-head,.fixed-a4.template-elegant .fa-table th,.fixed-a4.template-elegant .fa-legal{border-color:#8a6a42}.fixed-a4.template-elegant .fa-logo span{color:#8a6a42}.fixed-a4.template-pure .fa-head,.fixed-a4.template-pure .fa-table th,.fixed-a4.template-pure .fa-legal{border-color:#23282f}.doc-modal{display:none;position:fixed;inset:0;z-index:200}.doc-modal.open{display:grid;place-items:center}.doc-modal-backdrop{position:absolute;inset:0;background:#06193399;backdrop-filter:blur(2px)}.doc-modal-card{position:relative;z-index:1;width:min(680px,calc(100% - 28px));max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:18px;padding:25px;box-shadow:0 30px 100px #001b3f55}.doc-modal-card h3{margin:0 0 5px;font-size:22px}.doc-modal-x{position:absolute;right:15px;top:13px;width:34px;height:34px;border:0;border-radius:50%;background:#edf3f9;color:#31506f;font-size:21px;cursor:pointer}.modal-open{overflow:hidden}.single-logo-upload{display:grid;justify-items:center;gap:13px;padding:18px;border:1px dashed #b8d3ed;border-radius:14px;background:#f8fbff;margin:18px 0}.single-logo-preview{width:220px;height:100px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;display:grid;place-items:center;position:relative;overflow:hidden;color:#7b8ba0}.single-logo-preview img{max-width:92%;max-height:84%;object-fit:contain}.logo-delete-x{position:absolute;right:7px;top:7px;width:28px;height:28px;border:0;border-radius:50%;background:#e93445;color:#fff;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 4px 12px #b51c2b44}.hidden-file-input{display:none}.single-logo-upload small{color:#718096}.fixed-a4 .fa-logo,.fixed-a4 .fa-footer-text,.fixed-a4 .fa-legal,.fixed-a4 .fa-sender{overflow:hidden}
@media(max-width:1180px){.fixed-designer{grid-template-columns:1fr}.fixed-preview-shell{position:relative;top:auto}.fixed-a4{width:min(100%,620px)}}@media(max-width:700px){.fixed-template-grid{grid-template-columns:1fr}.edit-area-btn{grid-template-columns:32px 1fr}.edit-area-btn strong{display:none}.fixed-preview-shell{padding:8px}.doc-modal-card{padding:20px}.fixed-a4{font-size:6px}.fa-logo{width:38%}}
.progress{grid-template-columns:repeat(6,1fr)!important}.plan-header-actions{display:flex;align-items:center;gap:18px}.plan-header-actions a{white-space:nowrap}
.user-plan-inline{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#103b70;color:#80d3ff;font-size:9px;vertical-align:1px}

.password-toggle .eye-icon{display:block;position:relative;width:18px;height:12px;border:1.8px solid currentColor;border-radius:70% 25% 70% 25%;transform:rotate(45deg)}.password-toggle .eye-icon:before{content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:currentColor;left:50%;top:50%;transform:translate(-50%,-50%)}.password-toggle.showing .eye-icon:after{content:"";position:absolute;left:8px;top:-5px;width:1.8px;height:22px;background:#e14a56;transform:rotate(-45deg);border-radius:2px}

/* RECHVIO Admin v1.0.3 – einheitliche Aktionen & sichere Löschmaske */
.customer-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(170px,1fr));
  gap:9px!important;
  width:min(520px,100%);
  align-items:stretch!important;
}
.customer-actions form,.customer-actions>.btn{margin:0!important;width:100%}
.customer-actions form:not(.inline-admin-form){display:block}
.customer-actions .btn,.customer-actions .select{width:100%!important;min-height:46px;height:46px;display:flex;align-items:center;justify-content:center}
.customer-actions .inline-admin-form{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(145px,1fr) minmax(145px,1fr);gap:9px!important;width:100%!important}
.warning-btn{background:#fff5d9;color:#956000;border:1px solid #f2d58a}.warning-btn:hover{background:#ffedba}
.admin-delete-trigger{border:1px solid #ffd0d0}
.modal-open{overflow:hidden}
.admin-delete-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px}
.admin-delete-modal[hidden]{display:none}
.admin-delete-backdrop{position:absolute;inset:0;background:rgba(3,17,38,.56);backdrop-filter:blur(5px)}
.admin-delete-dialog{position:relative;z-index:1;width:min(520px,100%);background:#fff;border-radius:20px;padding:28px;box-shadow:0 30px 90px rgba(4,22,52,.28);border:1px solid #e4ebf4}
.admin-delete-dialog h3{font-size:24px;margin:8px 0 10px}.admin-delete-dialog p{color:#68788e;line-height:1.55}.admin-delete-company{padding:12px 14px;border-radius:12px;background:#f6f9fd;border:1px solid #e2eaf4;color:#082c59!important;font-weight:800}
.admin-delete-close{position:absolute;top:14px;right:15px;width:36px;height:36px;border:0;border-radius:50%;background:#f2f6fb;font-size:22px;cursor:pointer}.admin-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.admin-delete-actions .btn{width:100%}
@media(max-width:1250px){.admin-customer{align-items:flex-start;flex-direction:column}.customer-actions{width:100%;grid-template-columns:repeat(3,minmax(150px,1fr))}.customer-actions .inline-admin-form{grid-column:1/-1}}
@media(max-width:760px){.customer-actions{grid-template-columns:1fr!important}.customer-actions .inline-admin-form{grid-template-columns:1fr!important}.admin-delete-actions{grid-template-columns:1fr}.admin-delete-dialog{padding:24px 18px}}


/* RECHVIO v1.1.0 — final responsive/layout consolidation */
@media (min-width:761px){
  .app{display:block!important;min-height:100vh!important}
  .sidebar{position:fixed!important;left:0!important;top:0!important;width:245px!important;height:100dvh!important;z-index:30!important;overflow:hidden!important}
  .sidebar .nav{overflow-y:auto!important;min-height:0!important;scrollbar-width:thin}
  .main{margin-left:245px!important;width:calc(100% - 245px)!important;min-width:0!important}
}
.main{min-width:0!important}
.content{width:100%;max-width:none!important}
.welcome{margin-top:0!important}
.kpis{width:100%}
.kpi{min-width:0}
.dashboard-grid{width:100%;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr)!important}
.table-card{width:100%}
.settings-layout{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:22px!important;align-items:start!important;width:100%!important}
.settings-nav{min-width:0!important}
.settings-card{min-width:0!important;width:100%!important;padding:28px!important}
.settings-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 20px!important}
.settings-card .muted{max-width:820px;line-height:1.6}

/* Compact, stable document canvas: fixed zones never push one another around. */
.fixed-a4{padding:6.2%!important}
.fa-head{height:13.5%!important;min-height:13.5%!important;padding-bottom:5px!important;gap:12px!important}
.fa-logo{height:100%!important;max-height:100%!important}
.fa-logo img{max-height:100%!important;max-width:100%!important;object-fit:contain!important}
.fa-address-row{height:13.5%!important;min-height:13.5%!important;padding-top:3.1%!important;gap:14px!important;overflow:hidden!important}
.fa-greeting{min-height:7.5%!important;max-height:8.5%!important;margin-top:0!important;line-height:1.45!important}
.fa-table th{padding:4px 3px!important}.fa-table td{padding:5px 3px!important}
.fa-total{margin:7px 0 6px auto!important}
.fa-footer-text{min-height:7%!important;max-height:9%!important;margin-top:1px!important}
.fa-legal{min-height:10%!important;max-height:11%!important;padding-top:5px!important}
.fixed-a4.template-business .fa-head{height:16%!important;min-height:16%!important;padding:5.5%!important;margin:-6.2% -6.2% 0!important}
.fixed-a4.template-elegant .fa-head{height:15%!important;min-height:15%!important}

@media (max-width:1100px) and (min-width:761px){
  .content{padding:22px!important}
  .dashboard-grid{grid-template-columns:1fr!important}
  .settings-layout{grid-template-columns:190px minmax(0,1fr)!important;gap:16px!important}
  .settings-card{padding:22px!important}
}
@media (max-width:760px){
  .app{display:block!important}
  .main{margin-left:0!important;width:100%!important}
  .content{padding:14px!important}
  .topbar{width:100%!important;min-width:0!important}
  .welcome{margin-top:0!important}
  .dashboard-grid{grid-template-columns:1fr!important}
  .settings-layout{display:block!important}
  .settings-nav{display:flex!important;overflow-x:auto!important;gap:7px!important;margin-bottom:14px!important;padding-bottom:3px!important}
  .settings-nav a{white-space:nowrap!important;flex:0 0 auto!important}
  .settings-card{padding:18px!important}
  .settings-card .form-grid{grid-template-columns:1fr!important}
  .fixed-a4{font-size:6px!important}
}


/* RECHVIO v1.1.2 – four genuinely distinct fixed invoice templates */
.fixed-a4.template-modern{border-top:0!important;background:linear-gradient(180deg,#f7fbff 0 11%,#fff 11%);}
.fixed-a4.template-modern .fa-head{height:15%!important;min-height:15%!important;border:0!important;border-left:7px solid #0878f9!important;padding:2.5% 0 2.5% 3.5%!important;margin:0!important;align-items:center!important;}
.fixed-a4.template-modern .fa-logo{height:88%!important;align-items:center!important;}
.fixed-a4.template-modern .fa-address-row{height:15%!important;padding-top:4.5%!important;}
.fixed-a4.template-modern .fa-meta{background:#eef6ff;border:1px solid #d6eaff;border-radius:8px;padding:6px 8px;min-width:31%;}
.fixed-a4.template-modern .fa-table th{background:#0878f9;color:#fff;border:0!important;padding-top:6px;padding-bottom:6px;}
.fixed-a4.template-modern .fa-table th:first-child{border-radius:5px 0 0 5px}.fixed-a4.template-modern .fa-table th:last-child{border-radius:0 5px 5px 0}
.fixed-a4.template-modern .fa-total strong{color:#0878f9;border-top-color:#0878f9!important;}
.fixed-a4.template-modern .fa-legal{border-top:0!important;background:#f3f8fe;padding:7px 8px;margin-left:-1%;width:102%;border-radius:6px;}

.fixed-a4.template-business{background:#fff!important;padding-top:0!important;}
.fixed-a4.template-business .fa-head{height:19%!important;min-height:19%!important;background:linear-gradient(120deg,#071b34,#123b69)!important;color:#fff!important;margin:0 -6.2%!important;padding:5.5% 6.2%!important;border:0!important;align-items:center!important;}
.fixed-a4.template-business .fa-sender{color:#dce9f7}.fixed-a4.template-business .fa-logo{align-items:center!important}.fixed-a4.template-business .fa-logo span{color:#fff!important}
.fixed-a4.template-business .fa-address-row{height:15%!important;padding-top:4.5%!important;border-bottom:1px solid #d7e1eb;padding-bottom:3%;}
.fixed-a4.template-business .fa-meta{border-left:3px solid #102c54;padding-left:8px;}
.fixed-a4.template-business .fa-table th{background:#102c54!important;color:#fff!important;border:0!important;}
.fixed-a4.template-business .fa-total{background:#f2f5f8;padding:7px 8px;border-radius:5px;}
.fixed-a4.template-business .fa-total strong{border-top-color:#102c54!important;}
.fixed-a4.template-business .fa-legal{border-top:4px solid #102c54!important;color:#263d57;}

.fixed-a4.template-elegant{background:#fffdf9!important;color:#39342e!important;font-family:Georgia,'Times New Roman',serif!important;padding-top:5%!important;}
.fixed-a4.template-elegant .fa-head{height:17%!important;min-height:17%!important;display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;border:0!important;border-top:1px solid #b89a6a!important;border-bottom:1px solid #b89a6a!important;padding:2.5% 0!important;gap:2px!important;}
.fixed-a4.template-elegant .fa-sender{order:2;max-width:100%!important;text-align:center!important;color:#7b684d;}
.fixed-a4.template-elegant .fa-logo{order:1;width:48%!important;height:70%!important;justify-content:center!important;align-items:center!important;}
.fixed-a4.template-elegant .fa-logo span{color:#8a6a42!important;font-family:Georgia,'Times New Roman',serif!important;}
.fixed-a4.template-elegant .fa-address-row{height:16%!important;padding-top:4.5%!important;}
.fixed-a4.template-elegant .fa-meta{color:#6f604d;}
.fixed-a4.template-elegant .fa-greeting{font-style:italic;color:#5e5345;}
.fixed-a4.template-elegant .fa-table th{background:transparent!important;color:#8a6a42!important;border-top:1px solid #b89a6a!important;border-bottom:1px solid #b89a6a!important;font-weight:600;}
.fixed-a4.template-elegant .fa-table td{border-bottom:1px solid #eee5d8!important;}
.fixed-a4.template-elegant .fa-total strong{border-top:1px solid #8a6a42!important;color:#765937;}
.fixed-a4.template-elegant .fa-legal{border-top:1px solid #b89a6a!important;color:#655746;}

.fixed-a4.template-pure{background:#fff!important;color:#111!important;padding-top:5.5%!important;}
.fixed-a4.template-pure .fa-head{height:14%!important;min-height:14%!important;border:0!important;padding:0 0 3%!important;margin:0!important;align-items:center!important;}
.fixed-a4.template-pure .fa-sender{font-size:6px;color:#666;}
.fixed-a4.template-pure .fa-logo{height:95%!important;align-items:center!important;}
.fixed-a4.template-pure .fa-logo span{color:#111!important;letter-spacing:.12em;}
.fixed-a4.template-pure .fa-address-row{height:17%!important;padding-top:5%!important;border-top:3px solid #111;}
.fixed-a4.template-pure .fa-meta{font-family:Arial,sans-serif;text-align:right;}
.fixed-a4.template-pure .fa-greeting{min-height:9%!important;}
.fixed-a4.template-pure .fa-table th{background:#fff!important;color:#111!important;border-top:2px solid #111!important;border-bottom:1px solid #111!important;text-transform:uppercase;font-size:6px;letter-spacing:.05em;}
.fixed-a4.template-pure .fa-table td{border-bottom:0!important;padding-top:7px;padding-bottom:7px;}
.fixed-a4.template-pure .fa-table tbody tr+tr td{border-top:1px solid #ececec!important;}
.fixed-a4.template-pure .fa-total{width:42%!important;}
.fixed-a4.template-pure .fa-total strong{border-top:2px solid #111!important;font-size:1.08em;}
.fixed-a4.template-pure .fa-footer-text{font-size:6px;color:#555;}
.fixed-a4.template-pure .fa-legal{border-top:1px solid #111!important;color:#333;}

/* RECHVIO v1.1.3 invoice polish */
.business-color-setting{margin:12px 0 16px;padding:14px 16px;border:1px solid #dce7f4;border-radius:14px;background:#f8fbff;display:none}.business-color-setting.show{display:block}.business-color-setting label{display:flex;align-items:center;justify-content:space-between;gap:16px}.business-color-setting b,.business-color-setting small{display:block}.business-color-setting small{color:#728197;margin-top:3px}.business-color-setting input[type=color]{width:58px;height:38px;border:0;background:transparent;padding:0;cursor:pointer}
.wordmark-box{margin:18px 0;padding:16px;border:1px solid #e0e8f2;border-radius:14px;background:#f9fbfe}.wordmark-box h4{margin:0 0 10px}.wordmark-box input[type=range]{width:100%}
.fa-sender-spacer{display:block;flex:1}.fixed-a4 .fa-meta{margin-left:auto!important;text-align:right!important;min-width:34%!important}.fixed-a4 .fa-total{margin-left:auto!important;width:38%!important}.fixed-a4 .fa-total span,.fixed-a4 .fa-total strong{display:grid!important;grid-template-columns:1fr minmax(72px,auto)!important;column-gap:14px!important;align-items:center}.fixed-a4 .fa-total b{text-align:right!important;white-space:nowrap}.fixed-a4 .fa-table th:nth-child(n+3),.fixed-a4 .fa-table td:nth-child(n+3){text-align:right!important}.fixed-a4 .fa-table th:nth-child(2),.fixed-a4 .fa-table td:nth-child(2){padding-right:18px!important}.fixed-a4 .fa-table th:nth-child(3),.fixed-a4 .fa-table td:nth-child(3){padding-left:14px!important;padding-right:16px!important}.fixed-a4 .fa-table th:nth-child(4),.fixed-a4 .fa-table td:nth-child(4){padding-left:16px!important;padding-right:18px!important}.fixed-a4 .fa-table th:nth-child(5),.fixed-a4 .fa-table td:nth-child(5){padding-left:18px!important}
.fixed-a4 .fa-legal{grid-template-columns:1fr 1fr 1fr!important;gap:0!important}.fixed-a4 .fa-legal>div{padding:0 10px!important}.fixed-a4 .fa-legal>div:first-child{padding-left:0!important}.fixed-a4 .fa-legal>div+div{border-left:2px solid var(--footer-accent,#dce6f2)!important}.fixed-a4.template-modern{--footer-accent:#0878f9}.fixed-a4.template-business{--footer-accent:var(--business-accent,#102c54)}.fixed-a4.template-elegant{--footer-accent:#b89a6a}.fixed-a4.template-pure{--footer-accent:#111}
.fixed-a4.template-business .fa-head{background:var(--business-accent,#102c54)!important}.fixed-a4.template-business .fa-meta{border-left-color:var(--business-accent,#102c54)!important}.fixed-a4.template-business .fa-table th{background:var(--business-accent,#102c54)!important}.fixed-a4.template-business .fa-total strong{border-top-color:var(--business-accent,#102c54)!important}.fixed-a4.template-business .fa-legal{border-top-color:var(--business-accent,#102c54)!important}
.fixed-a4 .fa-logo span{display:block!important;max-width:100%!important;max-height:100%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;line-height:1.05!important}
.fa-return-address{display:block!important;font-size:5.6px!important;color:#718096!important;margin-bottom:7px!important;text-decoration:underline!important;text-underline-offset:2px!important}

/* RECHVIO v1.1.6 — reusable accent color for all fixed invoice templates */
.business-color-setting.show{display:block!important}
.accent-color-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.accent-color-controls input[type="color"]{width:56px;height:42px;min-width:56px;border:1px solid #cfdaea;border-radius:9px;padding:3px;background:#fff;cursor:pointer}
.accent-color-controls .accent-hex{width:100px;min-width:100px;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.accent-color-controls .accent-reset{min-height:42px;padding:0 13px}
@media(max-width:760px){.business-color-setting>label{align-items:flex-start;gap:12px}.accent-color-controls{width:100%;justify-content:flex-start}.accent-color-controls .accent-hex{flex:1;min-width:110px}}

/* No vertical divider rules inside invoice layouts. */
.fixed-a4 .fa-meta{border-left:0!important;padding-left:0!important}
.fixed-a4 .fa-legal>div+div{border-left:0!important}

/* One accent variable, shared by all four templates. */
.fixed-a4.template-modern .fa-head{border-left-color:var(--template-accent,#0878f9)!important}
.fixed-a4.template-modern .fa-table th{background:var(--template-accent,#0878f9)!important}
.fixed-a4.template-modern .fa-total strong{color:var(--template-accent,#0878f9)!important;border-top-color:var(--template-accent,#0878f9)!important}
.fixed-a4.template-modern .fa-legal{border-top:3px solid var(--template-accent,#0878f9)!important}

.fixed-a4.template-business .fa-head{background:var(--template-accent,#102c54)!important}
.fixed-a4.template-business .fa-table th{background:var(--template-accent,#102c54)!important}
.fixed-a4.template-business .fa-total strong{border-top-color:var(--template-accent,#102c54)!important}
.fixed-a4.template-business .fa-legal{border-top-color:var(--template-accent,#102c54)!important}

.fixed-a4.template-elegant .fa-head{border-top-color:var(--template-accent,#8a6a42)!important;border-bottom-color:var(--template-accent,#8a6a42)!important}
.fixed-a4.template-elegant .fa-logo span,.fixed-a4.template-elegant .fa-table th,.fixed-a4.template-elegant .fa-total strong{color:var(--template-accent,#8a6a42)!important}
.fixed-a4.template-elegant .fa-table th,.fixed-a4.template-elegant .fa-total strong,.fixed-a4.template-elegant .fa-legal{border-color:var(--template-accent,#8a6a42)!important}

.fixed-a4.template-pure .fa-address-row{border-top-color:var(--template-accent,#2a2f35)!important}
.fixed-a4.template-pure .fa-table th{border-top-color:var(--template-accent,#2a2f35)!important;border-bottom-color:var(--template-accent,#2a2f35)!important;color:var(--template-accent,#2a2f35)!important}
.fixed-a4.template-pure .fa-total strong,.fixed-a4.template-pure .fa-legal{border-color:var(--template-accent,#2a2f35)!important}
.fixed-a4.template-pure .fa-total strong{color:var(--template-accent,#2a2f35)!important}

/* v1.2.6 design save feedback */
.design-save-state{min-height:22px;margin-top:10px;text-align:center;font-size:12px;font-weight:750}.design-save-state.saving{color:#5e718a}.design-save-state.saved{color:#16834b}.design-save-state.error{color:#bd2b35}
