:root{--navy:#0d3a55;--navy-deep:#082d43;--gold:#dab159;--gold-deep:#b8892d;--cream:#f7f2e8;--paper:#fffdf8;--ink:#173646;--muted:#697b83;--line:#dfd8c9;--green:#3c7150;--red:#9d4037;--blue-soft:#e3edf1;--shadow:0 16px 38px rgba(8,45,67,.09);--radius:18px;--heading:"Squada One","Arial Narrow",sans-serif;--body:"Barlow Condensed","Arial Narrow",sans-serif}
[hidden]{display:none!important}.back-link{display:inline-flex;align-items:center;min-height:40px;margin-bottom:5px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:18px/1.45 var(--body);letter-spacing:.018em;background-image:radial-gradient(rgba(13,58,85,.045) .65px,transparent .65px);background-size:5px 5px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--paper);border-right:1px solid #e7dfcf;display:flex;flex-direction:column;z-index:50;padding:24px 18px}.brand{display:flex;align-items:center;gap:8px}.brand img{width:145px;height:70px;object-fit:contain}.brand>span{font:22px/1 var(--heading);color:var(--gold);letter-spacing:.08em;border-left:1px solid var(--line);padding-left:10px}.sidebar nav{display:flex;flex-direction:column;gap:6px;margin-top:34px}.sidebar nav a{display:flex;align-items:center;gap:12px;min-height:48px;border-radius:13px;padding:9px 12px;color:#526b76;font-weight:600}.sidebar nav a:hover{background:#f5efe2;color:var(--navy)}.sidebar nav a.active{background:var(--navy);color:#fff;box-shadow:4px 4px 0 rgba(218,177,89,.55)}.nav-icon{width:27px;height:27px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;font:15px var(--heading)}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:18px 8px 0;display:flex;flex-direction:column}.sidebar-footer span{font-weight:600}.sidebar-footer small{color:var(--muted)}.sidebar-footer button{border:0;background:none;padding:10px 0 0;color:var(--gold-deep);text-align:left}.app-main{margin-left:245px;padding:44px clamp(24px,4vw,66px) 90px;min-height:100vh}.mobile-header,.mobile-nav{display:none}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}.page-head h1,.wizard-top h1{font:clamp(42px,5vw,66px)/.95 var(--heading);text-transform:uppercase;letter-spacing:.025em;color:var(--navy);margin:4px 0}.page-head p,.wizard-top p{margin:5px 0 0;color:var(--muted)}.hero-head{background:var(--navy);padding:clamp(24px,4vw,42px);border-radius:24px;color:#fff;align-items:center;overflow:hidden;position:relative;box-shadow:var(--shadow)}.hero-head:after{content:"✦";position:absolute;right:22%;top:-42px;color:rgba(218,177,89,.11);font-size:180px}.hero-head h1{color:var(--gold);font-size:clamp(44px,6vw,76px)}.hero-head p{color:#d3dfe2}.hero-head .eyebrow{color:#fff}.hero-cta{font-size:22px;padding:16px 26px;z-index:1}.hero-cta span{font-size:27px}.eyebrow{display:block;color:var(--gold-deep);font:15px/1 var(--heading);letter-spacing:.14em;text-transform:uppercase}.back-link{display:block;color:var(--muted);font-weight:600;font-size:15px;margin-bottom:12px}.button{border:0;border-radius:999px;min-height:46px;padding:11px 21px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-transform:uppercase;letter-spacing:.035em;font:18px/1 var(--heading);transition:transform .18s,box-shadow .18s,background .18s}.button:hover{transform:translateY(-1px);box-shadow:0 8px 17px rgba(8,45,67,.15)}.button.primary{background:var(--navy);color:#fff;box-shadow:3px 3px 0 var(--gold)}.button.secondary{background:var(--gold);color:var(--navy-deep)}.button.tertiary{background:transparent;color:var(--navy);border:1px solid #9eb0b7}.button.full{width:100%}.head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:38px}.stat-card{background:rgba(255,253,248,.92);border:1px solid var(--line);border-radius:16px;padding:19px;display:flex;flex-direction:column;min-height:137px;box-shadow:0 6px 18px rgba(8,45,67,.045)}.stat-card:hover{border-color:var(--gold)}.stat-card>span{text-transform:uppercase;font:14px var(--heading);letter-spacing:.06em;color:var(--muted)}.stat-card strong{font:36px/1.1 var(--heading);color:var(--navy);margin-top:auto}.stat-card small{color:var(--muted)}.stat-card.accent{background:var(--gold);border-color:var(--gold)}.section-block{margin-top:34px}.section-title{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}.section-title h2,.card h2,.dialog-head h2{font:32px/1 var(--heading);text-transform:uppercase;color:var(--navy);margin:2px 0}.text-link,.row-action{color:var(--gold-deep);font-weight:600;border:0;background:none}.responsive-table{overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #ece7dc;padding:15px 16px;vertical-align:middle;white-space:nowrap}th{background:#f8f3e9;color:var(--muted);font:14px var(--heading);text-transform:uppercase;letter-spacing:.055em}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fffcf5}td small{display:block;color:var(--muted);font-size:14px}.right{text-align:right!important}.strong{font-weight:600}.doc-number{font-weight:600;color:var(--navy)}.status{display:inline-flex;border-radius:999px;padding:5px 10px;background:#e9edef;color:#49616c;font-size:14px;font-weight:600}.status-versendet,.status-offen{background:#dfeaf0;color:#315c72}.status-angenommen,.status-bezahlt{background:#dcecdf;color:#326442}.status-abgelehnt,.status-storniert,.status-überfällig{background:#f2dedb;color:#883c34}.status-erstellt,.status-entwurf{background:#eee7d7;color:#755e2f}.empty{text-align:center;background:rgba(255,253,248,.86);border:1px dashed #cdbb91;border-radius:var(--radius);padding:62px 24px}.empty>span{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--gold);margin:0 auto 14px;font:21px var(--heading)}.empty h3{font:30px var(--heading);color:var(--navy);text-transform:uppercase;margin:0}.empty p{color:var(--muted);margin:6px 0 20px}.filter-bar{display:grid;grid-template-columns:minmax(280px,1fr) 200px 140px auto;gap:12px;align-items:end;background:rgba(255,253,248,.85);border:1px solid var(--line);padding:16px;border-radius:15px;margin-bottom:17px}.filter-bar.compact{grid-template-columns:minmax(280px,1fr) auto;max-width:700px}.filter-bar label,.form-grid label,.wizard-step>label,.dialog-card label,.price-row label,.offer-toolbar label{display:flex;flex-direction:column;gap:5px}.filter-bar label>span,label>span{font:14px var(--heading);text-transform:uppercase;letter-spacing:.055em;color:#5d737c}input,select,textarea{width:100%;border:1px solid #cbd2d1;border-radius:9px;background:#fff;padding:11px 12px;outline:none;min-height:45px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--gold-deep);box-shadow:0 0 0 3px rgba(218,177,89,.2)}label small{color:var(--muted);font-size:14px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card-head{display:flex;gap:13px;align-items:flex-start;margin-bottom:21px}.card-head h2{margin:0}.card-head p{margin:3px 0 0;color:var(--muted)}.number-tag{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:var(--gold);font:18px var(--heading);flex:none}.customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.customer-card{display:flex;gap:16px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 7px 22px rgba(8,45,67,.05)}.customer-card:hover{border-color:var(--gold);transform:translateY(-1px)}.customer-avatar{width:48px;height:48px;border-radius:50%;background:var(--navy);color:var(--gold);display:grid;place-items:center;font:25px var(--heading);flex:none}.customer-main{min-width:0}.customer-main h2{font:25px/1 var(--heading);text-transform:uppercase;color:var(--navy);margin:6px 0}.customer-main p{margin:0;color:var(--muted)}.customer-meta{display:flex;gap:15px;margin-top:12px;color:#56707a;font-size:15px}.customer-arrow{margin-left:auto;font-size:25px;color:var(--gold-deep)}.detail-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.definition-list{margin:0}.definition-list>div{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #eee8dc}.definition-list>div:last-child{border-bottom:0}.definition-list dt{color:var(--muted)}.definition-list dd{margin:0;font-weight:500}.object-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #eee8dc}.object-row:last-child{border-bottom:0}.object-row div{display:flex;flex-direction:column}.object-row small{color:var(--muted)}.object-row a{color:var(--gold-deep);font-weight:600}.muted{color:var(--muted)}.draft-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.draft-card{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:15px}.draft-icon{width:38px;height:38px;border-radius:50%;background:#f0e3c5;display:grid;place-items:center}.draft-card div{display:flex;flex-direction:column;margin-right:auto}.draft-card small{color:var(--muted)}
/* Offer detail */
.offer-toolbar{display:flex;align-items:flex-end;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:14px;margin-bottom:18px}.offer-toolbar label{width:190px;margin-right:auto}.document-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.paper-preview{background:#fff;border:1px solid #dedbd3;box-shadow:0 18px 48px rgba(8,45,67,.12);padding:38px;min-height:1000px;color:var(--navy)}.paper-brand{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--gold);padding-bottom:13px}.paper-brand img{width:150px;height:68px;object-fit:contain}.paper-brand>div{text-align:right;display:flex;flex-direction:column;font-size:14px}.paper-brand span{color:var(--muted)}.paper-title{display:grid;grid-template-columns:1fr 250px;gap:40px;align-items:end;padding:35px 0 25px}.paper-title>div{display:flex;flex-direction:column}.paper-title>div span{font:48px/.9 var(--heading);color:var(--gold)}.paper-title>div strong{font:20px var(--heading)}.paper-title dl{margin:0}.paper-title dl div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:4px}.paper-title dt{font-size:13px;text-transform:uppercase;color:var(--muted)}.paper-title dd{margin:0;font-weight:600}.paper-addresses{display:grid;grid-template-columns:1fr 1fr;background:var(--cream);border-left:3px solid var(--gold);padding:18px 20px;gap:26px}.paper-addresses>div{display:flex;flex-direction:column}.paper-addresses span{font:13px var(--heading);color:var(--gold-deep);letter-spacing:.08em}.paper-addresses p{margin:4px 0}.paper-items{margin-top:26px}.paper-items th{background:var(--navy);color:#fff;font-size:12px}.paper-items td{white-space:normal;vertical-align:top;font-size:14px;padding:11px 9px}.paper-items td small{line-height:1.25;margin-top:4px}.paper-items td em{display:block;color:var(--gold-deep);font-size:12px}.paper-items td:nth-child(n+3),.paper-items th:nth-child(n+3){text-align:right}.paper-totals{width:330px;margin:22px 0 30px auto}.paper-totals>div{display:flex;justify-content:space-between;padding:6px 8px}.paper-totals .grand{background:var(--gold);font-size:18px}.paper-preview>h2{text-align:center;font:26px var(--heading);text-transform:uppercase;margin-top:25px}.paper-details>div{display:grid;grid-template-columns:185px 1fr;border-bottom:1px solid var(--line)}.paper-details dt{background:var(--navy);color:#fff;padding:7px 10px;font:13px var(--heading);text-transform:uppercase}.paper-details dd{margin:0;padding:7px 10px}.detail-aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:24px}.detail-aside h3{font:24px var(--heading);text-transform:uppercase;color:var(--navy);margin:0 0 14px}.summary-lines>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}.summary-lines .grand{background:var(--navy);color:#fff;border-radius:9px;padding:12px;margin-top:7px}.timeline-item{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #eee8dc}.timeline-item>span{width:32px;height:32px;border-radius:50%;background:var(--gold);display:grid;place-items:center;font:15px var(--heading);flex:none}.timeline-item>div{display:flex;flex-direction:column}.timeline-item small{color:var(--muted);font-size:13px}.timeline-item.subtle>span{background:#e8edef;color:var(--navy)}dialog{border:0;border-radius:20px;padding:0;box-shadow:0 26px 70px rgba(8,45,67,.25);width:min(620px,calc(100% - 24px))}dialog::backdrop{background:rgba(8,45,67,.55);backdrop-filter:blur(3px)}.dialog-card{padding:24px;display:flex;flex-direction:column;gap:14px}.dialog-head{display:flex;justify-content:space-between}.dialog-head button{border:0;background:none;font-size:28px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}
/* Settings */
.settings-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:20px;align-items:start}.settings-nav{position:sticky;top:20px;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);padding:9px;border-radius:15px}.settings-nav button{border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:9px;color:var(--muted)}.settings-nav button.active{background:var(--navy);color:#fff}.settings-panel{display:none}.settings-panel.active{display:block}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.alert{padding:13px 15px;border-radius:10px;margin:15px 0}.alert.error{background:#f5e2df;border:1px solid #e3bab4;color:#843b34}.alert.warning{background:#f7edd5;border:1px solid #e5cd97;color:#72561f}.alert.info{background:#e6eff3;border:1px solid #c8dde5;color:#31596b}.price-list{display:flex;flex-direction:column;gap:9px}.price-row{display:grid;grid-template-columns:minmax(190px,1fr) 140px 130px auto;gap:11px;align-items:end;background:#f9f5ec;border:1px solid #e8e0d0;border-radius:12px;padding:12px}.price-row>div{display:flex;flex-direction:column}.price-row small{color:var(--muted)}.rule-row{display:grid;grid-template-columns:1fr 1.5fr auto;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.rule-row span{color:var(--muted)}.section-spacer{margin-top:18px}.toggle-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important}.toggle-row input{width:22px;height:22px;min-height:0}.connection-state{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:16px}.connection-state>span{width:45px;height:45px;border-radius:50%;background:#e6ebed;display:grid;place-items:center;font:24px var(--heading)}.connection-state.connected>span{background:#dcecdf;color:var(--green)}.connection-state>div{display:flex;flex-direction:column}.connection-state small{color:var(--muted)}.user-list>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:11px 0}.user-list>div>div{display:flex;flex-direction:column;margin-right:auto}.user-list small{color:var(--muted)}.add-user{margin-top:18px;border:1px solid var(--line);border-radius:12px;padding:14px}.add-user summary{font-weight:600;color:var(--gold-deep);cursor:pointer}.add-user .form-grid{margin:15px 0}
.compact-notice{margin:9px 0 14px;border:1px solid #c8dde5;background:#f3f8fa;border-radius:9px;color:#31596b;font-size:14px}.compact-notice summary{cursor:pointer;padding:7px 11px;display:flex;align-items:center;gap:7px;font-weight:600;list-style:none}.compact-notice summary::-webkit-details-marker{display:none}.compact-notice summary>span{font-size:16px}.compact-notice[open] summary{border-bottom:1px solid #d7e6eb}.compact-notice-body{padding:9px 11px}.compact-notice-body p{margin:0}.window-size-legend ul{margin:0;padding-left:18px;columns:2;column-gap:28px}.window-size-legend li{margin:0 0 5px;break-inside:avoid}.window-size-legend small{display:block;margin-top:7px}.service-quantity-grid{align-items:start}.service-quantity-grid>label>span{display:flex;align-items:flex-end;min-height:2.9em}
.quantity-price-hint,.calculation-note{display:block;margin-top:2px;padding:6px 8px;border-radius:7px;background:#fff6df;color:#72561f;font-size:13px;line-height:1.35}.calculation-note{margin-top:7px}
@media(max-width:900px){.window-size-legend ul{columns:1}.service-quantity-grid>label>span{min-height:0}}
/* Authentication */
.public-main{min-height:100vh}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr minmax(380px,540px);align-items:center;gap:6vw;padding:7vw;background:linear-gradient(120deg,var(--navy-deep) 0 53%,var(--cream) 53%)}.auth-brand{text-align:center}.auth-brand img{width:min(420px,78%);filter:drop-shadow(0 7px 18px rgba(0,0,0,.2))}.auth-brand p{font:28px var(--heading);color:var(--gold);letter-spacing:.07em}.auth-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:clamp(26px,4vw,46px);box-shadow:0 25px 70px rgba(8,45,67,.24);display:flex;flex-direction:column;gap:15px}.auth-card h1{font:48px/.95 var(--heading);text-transform:uppercase;color:var(--navy);margin:5px 0}.auth-card>p{color:var(--muted);margin:0 0 8px}.auth-card label{display:flex;flex-direction:column;gap:5px}
/* Wizard */
.wizard-page{max-width:1500px;margin:0 auto}.wizard-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.save-state{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:15px}.save-state>span{width:9px;height:9px;border-radius:50%;background:#9aabb0}.save-state.saved>span{background:#4f8963}.progress-track{height:5px;background:#ded8ca;border-radius:999px;overflow:hidden;margin-bottom:25px}.progress-track>div{height:100%;width:14.285%;background:var(--gold);transition:width .25s}.wizard-shell{display:grid;grid-template-columns:210px minmax(480px,1fr) 290px;gap:18px;align-items:start}.step-nav{display:flex;flex-direction:column;gap:4px;position:sticky;top:18px}.step-nav button{border:0;background:transparent;border-radius:12px;padding:9px;display:flex;gap:10px;text-align:left;color:#647982}.step-nav button>span{width:30px;height:30px;border-radius:50%;border:1px solid #a7b4b8;display:grid;place-items:center;flex:none;font:15px var(--heading)}.step-nav button>div{display:flex;flex-direction:column}.step-nav button strong{font-weight:600}.step-nav button small{font-size:13px}.step-nav button.active{background:var(--navy);color:#fff}.step-nav button.active>span{background:var(--gold);color:var(--navy);border-color:var(--gold)}.step-nav button.complete>span{background:#dcecdf;color:var(--green);border-color:#a6cbb0}.wizard-form{background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);min-height:640px;position:relative;padding-bottom:84px}.wizard-step{display:none;padding:32px}.wizard-step.active{display:block}.wizard-step h2{font:38px/1 var(--heading);text-transform:uppercase;color:var(--navy);margin:5px 0}.step-kicker{color:var(--gold-deep);font:15px var(--heading);letter-spacing:.08em;text-transform:uppercase}.step-help{margin:7px 0 25px;color:var(--muted);max-width:650px}.segmented{display:grid;grid-template-columns:1fr 1fr;border:1px solid #abb8bc;border-radius:999px;padding:4px;margin-bottom:22px}.segmented button{border:0;border-radius:999px;background:transparent;padding:10px}.segmented button.active{background:var(--navy);color:#fff}.large-field{display:flex;flex-direction:column;gap:5px}.large-field input{font-size:20px;padding:14px}.choice-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}.choice-card{width:100%;border:1px solid var(--line);background:#fff;border-radius:13px;padding:13px 15px;display:flex;align-items:center;gap:13px;text-align:left}.choice-card:hover,.choice-card.selected{border-color:var(--gold-deep);background:#fffaf0}.choice-card.selected{box-shadow:inset 4px 0 0 var(--gold)}.choice-radio{width:22px;height:22px;border:1px solid #95a7ad;border-radius:50%;display:grid;place-items:center;flex:none}.choice-card.selected .choice-radio:after{content:"";width:12px;height:12px;border-radius:50%;background:var(--gold-deep)}.choice-card>div{display:flex;flex-direction:column}.choice-card small{color:var(--muted)}.choice-card .choice-tag{margin-left:auto;color:var(--muted);font-size:14px}.subpanel{border-top:1px solid var(--line);margin-top:18px;padding-top:20px}.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.category-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:18px;display:flex;align-items:center;gap:12px;text-align:left;min-height:84px}.category-card:last-child:nth-child(odd){grid-column:1/-1}.category-card>span:first-child{width:42px;height:42px;display:grid;place-items:center;background:#eee5d1;border-radius:50%;font:20px var(--heading)}.category-card strong{font-size:20px}.category-card small{display:block;color:var(--muted)}.category-card.selected{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:4px 4px 0 var(--gold)}.category-card.selected small{color:#d8e2e5}.service-selection{margin-top:20px}.service-group{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.service-group h3{font:23px var(--heading);color:var(--navy);margin:0 0 10px}.chip-grid{display:flex;flex-wrap:wrap;gap:8px}.service-chip{border:1px solid #aebabc;border-radius:999px;background:#fff;padding:8px 13px}.service-chip.selected{background:var(--gold);border-color:var(--gold);color:var(--navy-deep)}.dynamic-section{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px}.dynamic-section h3{font:25px var(--heading);color:var(--navy);margin:0 0 4px;text-transform:uppercase}.dynamic-section>p{color:var(--muted);margin:0 0 17px}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:15px}.check-card{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:10px}.check-card input{width:18px;height:18px;min-height:0}.calculation-items{display:flex;flex-direction:column;gap:10px}.calc-row{display:grid;grid-template-columns:minmax(180px,1.4fr) 95px 90px 140px 120px;gap:9px;align-items:end;border:1px solid var(--line);border-radius:12px;padding:12px}.calc-row>div:first-child{display:flex;flex-direction:column}.calc-row small{color:var(--muted)}.calc-row em{color:var(--gold-deep);font-size:13px}.calc-total{text-align:right;padding-bottom:10px;font-weight:600}.custom-row{grid-template-columns:minmax(160px,1fr) 90px 100px 130px 35px}.custom-remove{width:35px;height:43px;border:0;border-radius:8px;background:#f3e4e1;color:var(--red);font-size:21px}.adjustment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.input-combo{display:grid;grid-template-columns:1fr 75px}.input-combo input{border-radius:9px 0 0 9px}.input-combo select{border-radius:0 9px 9px 0;border-left:0}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.review-card{border:1px solid var(--line);border-radius:13px;padding:16px}.review-card.wide{grid-column:1/-1}.review-card>span{font:14px var(--heading);color:var(--gold-deep);letter-spacing:.07em}.review-card h3{font:24px var(--heading);color:var(--navy);margin:5px 0}.review-card p{margin:3px 0;color:var(--muted)}.review-total{display:flex;justify-content:space-between;background:var(--navy);color:#fff;border-radius:10px;padding:12px;margin-top:11px}.final-notice{display:flex;gap:12px;background:#e5efe8;border:1px solid #c2d9c8;border-radius:13px;padding:15px;margin-top:16px}.final-notice>span{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#cae2d0;color:var(--green)}.final-notice p{margin:3px 0;color:#536d5c}.wizard-actions{position:absolute;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:rgba(255,253,248,.96);padding:14px 22px;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 20px 20px}.mobile-step-label{display:none}.live-summary{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:var(--shadow);position:sticky;top:18px}.live-summary h2{font:30px var(--heading);text-transform:uppercase;color:var(--navy);margin:4px 0 13px}.summary-placeholder{background:#f5f1e8;border-radius:9px;padding:10px;color:var(--muted);font-size:15px}.live-services{margin:14px 0}.live-service{display:flex;justify-content:space-between;gap:10px;font-size:15px;padding:6px 0;border-bottom:1px solid #eee8dc}.summary-note{display:block;color:var(--muted);margin-top:13px}.wizard-form>.alert.error{margin:0 28px 80px}
.toast{position:fixed;right:25px;bottom:25px;background:var(--navy);color:#fff;padding:12px 17px;border-radius:10px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s;z-index:200}.toast.show{opacity:1;transform:none}
@media(max-width:1450px){.stat-grid{grid-template-columns:repeat(3,1fr)}.wizard-shell{grid-template-columns:180px minmax(450px,1fr)}.live-summary{grid-column:2;position:static}.document-layout{grid-template-columns:1fr}.detail-aside{position:static;display:grid;grid-template-columns:repeat(3,1fr)}.paper-preview{min-height:0}.settings-layout{grid-template-columns:190px 1fr}}
@media(max-width:900px){.sidebar{display:none}.mobile-header{display:flex;height:72px;background:var(--paper);border-bottom:2px solid var(--gold);align-items:center;justify-content:space-between;padding:7px 17px;position:sticky;top:0;z-index:80}.mobile-header .brand img{width:105px;height:52px}.mobile-header .brand span{font-size:18px}.menu-button{border:1px solid var(--navy);background:transparent;border-radius:999px;padding:7px 13px}.app-main{margin-left:0;padding:28px 20px 95px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;inset:auto 0 0;background:var(--paper);border-top:1px solid var(--line);height:69px;z-index:90;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;font:18px var(--heading);color:var(--navy);padding:8px 3px}.mobile-nav small{font:12px var(--body)}.mobile-nav .mobile-create{width:54px;height:54px;border-radius:50%;background:var(--gold);justify-self:center;align-self:center;margin-top:-19px;font-size:31px;box-shadow:0 6px 16px rgba(8,45,67,.2)}.stat-grid{grid-template-columns:repeat(2,1fr)}.customer-grid{grid-template-columns:1fr}.draft-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-nav{position:static;flex-direction:row;overflow:auto}.settings-nav button{white-space:nowrap}.wizard-shell{grid-template-columns:1fr}.step-nav{display:none}.live-summary{grid-column:1}.auth-shell{grid-template-columns:1fr;background:linear-gradient(160deg,var(--navy-deep) 0 32%,var(--cream) 32%);padding:35px 18px}.auth-brand img{width:220px}.auth-brand p{font-size:20px}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar .search-field{grid-column:1/-1}.detail-aside{grid-template-columns:1fr}.paper-preview{padding:25px}.paper-title{grid-template-columns:1fr 220px}.form-grid.two{grid-template-columns:1fr}.price-row{grid-template-columns:1fr 1fr}.price-row>div{grid-column:1/-1}.category-grid{grid-template-columns:1fr}.category-card:last-child:nth-child(odd){grid-column:auto}.calc-row{grid-template-columns:1fr 90px 110px}.calc-row>div:first-child{grid-column:1/-1}.calc-total{padding:10px}.custom-row{grid-template-columns:1fr 1fr 35px}.custom-row>label:first-child{grid-column:1/-1}}
@media(max-width:900px){body.menu-open .sidebar{display:flex;width:min(82vw,300px);box-shadow:20px 0 55px rgba(8,45,67,.28);z-index:110}body.menu-open:after{content:"";position:fixed;inset:0;background:rgba(8,45,67,.42);z-index:100}}
@media(max-width:620px){body{font-size:17px}.app-main{padding:20px 12px 92px}.page-head,.wizard-top{align-items:flex-start;flex-direction:column}.page-head h1,.wizard-top h1{font-size:43px}.page-head .button,.head-actions{width:100%}.head-actions .button{flex:1}.hero-head{padding:24px 20px}.hero-head h1{font-size:52px}.hero-head .hero-cta{width:100%}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:14px;min-height:120px}.stat-card strong{font-size:30px}.filter-bar{grid-template-columns:1fr}.filter-bar .search-field{grid-column:auto}.responsive-table{background:none;border:0;box-shadow:none;overflow:visible}.offer-list table,.offer-list tbody,.offer-list tr,.offer-list td{display:block}.offer-list thead{display:none}.offer-list tr{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:14px;margin-bottom:10px;position:relative}.offer-list td{border:0;padding:3px 0;white-space:normal}.offer-list td:nth-child(3),.offer-list td:nth-child(4),.offer-list td:nth-child(5),.offer-list td:nth-child(6){display:none}.offer-list td:last-child{position:absolute;right:14px;top:14px}.customer-card{padding:15px}.customer-meta{flex-wrap:wrap;gap:6px 12px}.paper-preview{padding:15px;overflow:auto}.paper-brand>div{display:none}.paper-title{grid-template-columns:1fr;gap:17px}.paper-addresses{grid-template-columns:1fr}.offer-toolbar{align-items:stretch;flex-direction:column}.offer-toolbar label{width:100%;margin:0}.offer-toolbar .button{width:100%}.wizard-page{margin:-6px}.wizard-top{padding:0 6px}.save-state{font-size:13px}.wizard-form{border-radius:15px;min-height:calc(100vh - 205px);padding-bottom:85px}.wizard-step{padding:22px 17px}.wizard-step h2{font-size:32px}.segmented{grid-template-columns:1fr;border-radius:13px}.segmented button{border-radius:9px}.form-grid.two,.check-grid,.review-grid,.adjustment-grid{grid-template-columns:1fr}.review-card.wide{grid-column:auto}.live-summary{display:none}.wizard-actions{position:fixed;bottom:69px;left:0;right:0;border-radius:0;z-index:75;padding:11px 12px}.wizard-actions .button{min-width:105px}.wizard-actions .final{font-size:15px;flex:1}.mobile-step-label{display:block;color:var(--muted)}.category-card{min-height:73px;padding:13px}.calc-row{grid-template-columns:1fr 1fr}.calc-row>div:first-child{grid-column:1/-1}.calc-total{grid-column:2}.custom-row{grid-template-columns:1fr 1fr 35px}.auth-card{padding:24px 20px}.auth-card h1{font-size:40px}.settings-content .card{padding:18px}.rule-row{grid-template-columns:1fr}.dialog-actions{flex-direction:column}.dialog-actions .button{width:100%}.toast{right:12px;left:12px;bottom:85px;text-align:center}}
@media print{.sidebar,.mobile-header,.mobile-nav,.page-head,.offer-toolbar,.detail-aside{display:none!important}.app-main{margin:0;padding:0}.paper-preview{border:0;box-shadow:none;padding:15mm;width:210mm;min-height:297mm}.document-layout{display:block}}

  /* Extended administration and document editing */

/* Simplified offer service selection */
.core-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.core-service-block{min-width:0}.core-service-button{width:100%;min-height:58px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 13px;display:flex;align-items:center;gap:10px;text-align:left;color:var(--navy)}.core-service-button:hover{border-color:var(--gold-deep);background:#fffaf0}.core-service-button.selected{border-color:var(--navy);background:#eef3f4;box-shadow:inset 4px 0 0 var(--gold)}.core-service-button.selected .choice-radio:after{content:"";width:12px;height:12px;border-radius:50%;background:var(--gold-deep)}.core-service-button small{display:block;color:var(--muted);font-weight:400}.variant-panel{border:1px solid #ddd4c4;border-top:0;border-radius:0 0 12px 12px;background:#faf7f0;padding:10px 12px;margin:-4px 5px 0}.variant-panel>span{display:block;color:var(--muted);font-size:13px;margin-bottom:7px}.individual-service{grid-column:1/-1;margin-top:4px}.individual-service .core-service-button{min-height:50px;border-style:dashed;background:#fafafa;color:var(--muted)}.individual-details,.extra-options{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:16px;background:#faf8f3}.individual-details summary,.extra-options summary{cursor:pointer;font-weight:600;color:var(--navy)}.extra-options{margin:18px 0}.extra-options>p{color:var(--muted);margin:7px 0 12px}.extra-options #extra-selection{margin-top:12px}.extra-options .form-grid{margin-top:12px}
@media(max-width:620px){.core-service-grid{grid-template-columns:1fr}.individual-service{grid-column:auto}}
.filter-bar{grid-template-columns:minmax(250px,1.4fr) repeat(4,minmax(130px,1fr)) auto}
.rule-row.editable-rule{grid-template-columns:1.1fr 1fr 1fr 110px 95px auto auto;align-items:center}
.compact-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important}
.compact-check input{width:20px;height:20px;min-height:0}
.description-editor{margin-top:7px}.description-editor summary{cursor:pointer;color:var(--gold-deep);font-size:14px}.description-editor textarea{margin-top:7px;font-size:15px}
.custom-row{grid-template-columns:minmax(150px,1fr) minmax(170px,1.3fr) 90px 100px 130px 35px}
.invoice-edit-row{grid-template-columns:1fr 1.4fr 90px 105px 130px}.invoice-edit-row textarea{min-height:45px}
@media(max-width:900px){.filter-bar{grid-template-columns:1fr 1fr}.rule-row.editable-rule{grid-template-columns:1fr 1fr}.custom-row,.invoice-edit-row{grid-template-columns:1fr 1fr}.custom-row>label:first-child,.invoice-edit-row>label:nth-child(-n+2){grid-column:1/-1}}
@media(max-width:620px){.filter-bar,.rule-row.editable-rule,.custom-row,.invoice-edit-row{grid-template-columns:1fr}.custom-row>label:first-child,.invoice-edit-row>label:nth-child(-n+2){grid-column:auto}}
