:root{
  --navy:#10233f;
  --navy-2:#173255;
  --ink:#1a2b43;
  --muted:#6f7f91;
  --line:#dde5ec;
  --surface:#ffffff;
  --bg:#f4f7f9;
  --green:#1f8a5b;
  --green-soft:#e9f6ef;
  --red:#b84b55;
  --red-soft:#fbecee;
  --amber:#a36a17;
  --amber-soft:#fff5df;
  --blue:#315f91;
  --blue-soft:#edf4fb;
  --shadow:0 12px 30px rgba(16,35,63,.08);
  --radius:18px;
  --radius-sm:12px;
  --sidebar:248px;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit}
[hidden]{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;background:var(--navy);color:#fff;padding:24px 16px 18px;display:flex;flex-direction:column;z-index:20}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:3px 10px 24px;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.11)}
.sidebar-brand img{display:block;width:132px;height:auto;filter:brightness(0) invert(1)}
.sidebar-brand span{font-weight:800;font-size:12px;letter-spacing:.12em;border:1px solid rgba(255,255,255,.34);border-radius:999px;padding:3px 7px}
.sidebar-nav{display:flex;flex-direction:column;gap:5px;margin-top:22px}
.nav-link{border:0;background:transparent;color:#d9e4ee;border-radius:12px;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;font-weight:650;transition:.18s ease}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.11);color:#fff}
.nav-link.active{box-shadow:inset 3px 0 0 #fff}
.nav-icon{width:22px;text-align:center;font-size:18px;opacity:.92}
.sidebar-user{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:18px 7px 0;display:grid;grid-template-columns:38px 1fr 34px;gap:10px;align-items:center}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);font-weight:800}
.sidebar-user-copy{min-width:0;display:flex;flex-direction:column}.sidebar-user-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.sidebar-user-copy span{font-size:11px;color:#b9c9d7;text-transform:uppercase;letter-spacing:.08em}
.icon-button{border:0;background:transparent;color:inherit;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;font-size:20px}.icon-button:hover{background:rgba(255,255,255,.1)}
.main-area{min-width:0;padding:0 0 50px}
.view{width:min(1320px,calc(100% - 64px));margin:0 auto;padding-top:34px}
.mobile-header,.mobile-dock{display:none}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.page-head h1{margin:0;font-size:clamp(28px,3vw,42px);line-height:1.06;letter-spacing:-.035em;color:var(--navy)}
.page-head p{margin:8px 0 0;color:var(--muted);max-width:760px}
.page-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn{border:1px solid transparent;border-radius:11px;padding:10px 16px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.15s ease;min-height:42px}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--navy);color:#fff}.btn-primary:hover{background:var(--navy-2)}
.btn-green{background:var(--green);color:#fff}.btn-green:hover{filter:brightness(.96)}
.btn-secondary{background:#fff;border-color:var(--line);color:var(--ink)}
.btn-danger{background:#fff;border-color:#edc4c8;color:var(--red)}
.btn-ghost{background:transparent;color:var(--navy);padding-inline:10px}
.btn-small{min-height:34px;padding:6px 10px;border-radius:9px;font-size:13px}
.announcement{background:linear-gradient(135deg,#fff7e3,#fffdf8);border:1px solid #edd9a9;border-left:5px solid #d5a243;border-radius:16px;padding:18px 20px;margin-bottom:22px;box-shadow:0 8px 22px rgba(124,91,23,.07);display:flex;gap:13px;align-items:flex-start}
.announcement-icon{width:36px;height:36px;border-radius:50%;background:#f7e6ba;display:grid;place-items:center;flex:0 0 auto}.announcement strong{display:block;color:#75500e;margin-bottom:3px}.announcement p{margin:0;color:#5f5033;font-weight:600}
.greeting{margin-bottom:26px}.greeting h1{font-size:34px;margin:0;color:var(--navy);letter-spacing:-.03em}.greeting p{margin:5px 0 0;color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 5px 18px rgba(20,45,72,.04)}
.metric-label{font-size:12px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.07em}.metric-value{font-size:30px;color:var(--navy);font-weight:800;letter-spacing:-.04em;margin-top:7px}.metric-sub{font-size:12px;color:var(--muted);margin-top:4px}
.dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-top:18px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 18px rgba(20,45,72,.04);overflow:hidden}
.panel-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-head h2{font-size:17px;color:var(--navy);margin:0}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.panel-body{padding:18px 20px}
.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th{text-align:left;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 14px;border-bottom:1px solid #edf1f4;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fafcfd}.data-table td strong{color:var(--navy)}
.sort-button{border:0;background:none;padding:0;color:inherit;font:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit}
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.badge::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}
.badge-green{background:var(--green-soft);color:var(--green)}.badge-red{background:var(--red-soft);color:var(--red)}.badge-amber{background:var(--amber-soft);color:var(--amber)}.badge-blue{background:var(--blue-soft);color:var(--blue)}.badge-gray{background:#eef2f4;color:#687887}
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar .search{flex:1;min-width:240px}.field,.search{position:relative}.field label{display:block;font-size:12px;font-weight:750;color:#506174;margin-bottom:6px}.input,select.input,textarea.input{width:100%;border:1px solid #cad5df;border-radius:11px;background:#fff;color:var(--ink);padding:10px 12px;outline:none;min-height:42px}.input:focus{border-color:#7c9abc;box-shadow:0 0 0 3px rgba(49,95,145,.11)}textarea.input{min-height:96px;resize:vertical}.input-error{border-color:var(--red)!important;box-shadow:0 0 0 3px rgba(184,75,85,.1)!important}.help{font-size:11px;color:var(--muted);margin-top:5px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.span-2{grid-column:1/-1}.form-section{margin-bottom:22px}.form-section h3{margin:0 0 12px;color:var(--navy);font-size:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.segmented{display:inline-flex;background:#e9eef2;border-radius:11px;padding:3px;gap:2px}.segmented button{border:0;background:transparent;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:750;color:#667789}.segmented button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(20,45,72,.08)}
.pipeline{display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:14px;overflow:auto;padding-bottom:10px}.pipeline-col{background:#eef3f6;border:1px solid #dce5eb;border-radius:16px;min-height:460px;padding:12px}.pipeline-head{display:flex;justify-content:space-between;align-items:center;padding:5px 3px 12px}.pipeline-head strong{color:var(--navy)}.pipeline-count{font-size:11px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 7px;color:var(--muted)}.pipeline-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;margin-bottom:10px;box-shadow:0 4px 12px rgba(20,45,72,.04)}.pipeline-card h3{font-size:14px;margin:0;color:var(--navy)}.pipeline-card p{font-size:12px;margin:6px 0;color:var(--muted)}.pipeline-card .money{font-size:13px;font-weight:800;color:var(--ink)}
.leader-list{display:flex;flex-direction:column;gap:11px}.leader{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f4}.leader:last-child{border:0}.rank{width:28px;height:28px;border-radius:50%;background:#eef3f7;display:grid;place-items:center;font-weight:800;color:var(--navy)}.leader strong{display:block;font-size:13px}.leader span{font-size:11px;color:var(--muted)}.leader-value{text-align:right;font-weight:800;color:var(--navy)}
.empty-state{text-align:center;padding:42px 24px;color:var(--muted)}.empty-state strong{display:block;color:var(--navy);margin-bottom:6px;font-size:16px}

.inventory-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:5px;background:#eef3f7;border:1px solid var(--line);border-radius:14px;width:max-content;max-width:100%}.inventory-tabs button{border:0;background:transparent;color:var(--muted);padding:10px 15px;border-radius:10px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.inventory-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(16,35,63,.08)}
.followup-row.due-today{border-color:#e4c46a;background:#fffaf0}.followup-row.due-today .followup-arrow{background:#fff0c5;color:#8a6412}.today-label{display:block;color:#8a6412!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.09em;font-weight:900;margin-bottom:2px}
.slot-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.slot-summary-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:16px}.slot-summary-card strong{font-size:26px;color:var(--navy);display:block}.slot-summary-card span{font-size:12px;color:var(--muted)}
.slot-groups{display:flex;flex-direction:column;gap:18px}.slot-group h2{font-size:16px;color:var(--navy);margin:0 0 10px}.slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.slot-card{border:1px solid var(--line);border-left:5px solid var(--green);background:#fff;border-radius:14px;padding:14px 15px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.slot-card.booked{border-left-color:var(--red)}.slot-card.future{border-left-color:var(--amber)}.slot-card h3{font-size:13px;line-height:1.35;margin:0 0 5px;color:var(--navy)}.slot-card p{font-size:11px;margin:0;color:var(--muted)}.slot-status{text-align:right}.slot-status strong{font-size:11px;display:block}.slot-status span{font-size:10px;color:var(--muted)}
.period-box{background:#f7f9fb;border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:16px}.period-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.quick-periods{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.quick-periods button{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;padding:5px 10px;font-size:11px;font-weight:750}.quick-periods button:hover{border-color:#9bb0c3}
.order-line{display:grid;grid-template-columns:2fr 1fr 90px 42px;gap:8px;align-items:end;margin-bottom:8px}.order-total{margin-left:auto;width:min(360px,100%);display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.order-total strong{color:var(--navy)}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.message-preview{background:var(--amber-soft);border:1px solid #ecd6a3;border-radius:12px;padding:13px;color:#6d531f;font-size:13px;margin-top:10px}
.modal-backdrop{position:fixed;inset:0;background:rgba(8,22,38,.48);backdrop-filter:blur(2px);z-index:90}.modal{position:fixed;z-index:100;top:50%;left:50%;transform:translate(-50%,-50%);width:min(760px,calc(100% - 32px));max-height:min(88vh,900px);background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(7,20,36,.28);overflow:hidden}.modal.wide{width:min(980px,calc(100% - 32px))}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:19px;color:var(--navy)}.modal-head .icon-button{color:var(--muted);background:#f0f3f5}.modal-body{padding:20px;overflow:auto;max-height:calc(88vh - 68px)}
.toast{position:fixed;right:24px;bottom:24px;background:var(--navy);color:#fff;border-radius:12px;padding:12px 16px;box-shadow:var(--shadow);z-index:200;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s ease;max-width:420px;font-weight:650}.toast.show{opacity:1;transform:none}.toast.error{background:#8f3540}
.loading-card{margin:70px auto;width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--navy);box-shadow:var(--shadow)}.spinner{width:18px;height:18px;border-radius:50%;border:2px solid #d6e0e8;border-top-color:var(--navy);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.global-error{width:min(1320px,calc(100% - 64px));margin:24px auto 0;background:var(--red-soft);color:#893b44;border:1px solid #ecc5c9;border-radius:12px;padding:12px 15px;font-weight:650}
.muted{color:var(--muted)}.small{font-size:12px}.money{font-variant-numeric:tabular-nums}.nowrap{white-space:nowrap}.link-button{border:0;background:none;color:var(--blue);font-weight:750;padding:0;text-decoration:underline;text-underline-offset:2px}.danger-text{color:var(--red)}
@media(max-width:1080px){.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.admin-grid{grid-template-columns:1fr}.slot-grid{grid-template-columns:1fr}.view{width:min(100% - 36px,1100px)}}
@media(max-width:760px){
  body{padding-bottom:72px}.app-shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:min(290px,86vw);transform:translateX(-105%);transition:.2s ease;box-shadow:30px 0 70px rgba(8,22,38,.25)}.app-shell.menu-open .sidebar{transform:none}.main-area{padding:0}.mobile-header{position:sticky;top:0;z-index:40;height:64px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:0 16px}.mobile-header img{width:126px;height:auto}.mobile-header span{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--navy)}.mobile-header .icon-button{color:var(--navy);background:#f0f3f5}.view{width:calc(100% - 28px);padding-top:20px}.mobile-dock{position:fixed;z-index:60;left:0;right:0;bottom:0;height:66px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -8px 24px rgba(16,35,63,.07)}.mobile-dock button{border:0;background:none;color:#718092;font-size:10px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.mobile-dock button span{font-size:19px}.mobile-dock button.active{color:var(--navy)}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:18px}.page-head h1{font-size:30px}.page-actions{width:100%}.page-actions .btn{flex:1}.announcement{padding:15px}.greeting h1{font-size:28px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric-card{padding:15px}.metric-value{font-size:23px}.dashboard-grid{gap:12px}.panel-head,.panel-body{padding:15px}.toolbar{align-items:stretch}.toolbar .search{min-width:100%;flex-basis:100%}.segmented{width:100%}.segmented button{flex:1}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.pipeline{grid-template-columns:repeat(4,82vw)}.slot-summary{grid-template-columns:1fr 1fr}.slot-summary-card:last-child{grid-column:1/-1}.slot-card{grid-template-columns:1fr}.slot-status{text-align:left}.period-grid{grid-template-columns:1fr 1fr}.period-grid .btn{grid-column:1/-1}.order-line{grid-template-columns:1fr 1fr}.order-line .remove-line{grid-column:2;justify-self:end}.modal{width:calc(100% - 18px);max-height:92vh;border-radius:18px}.modal-body{padding:16px;max-height:calc(92vh - 64px)}.global-error{width:calc(100% - 28px);margin-top:14px}.toast{left:14px;right:14px;bottom:82px;max-width:none}.data-table{min-width:650px}}
@media(max-width:420px){.metrics{grid-template-columns:1fr 1fr}.metric-label{font-size:10px}.metric-value{font-size:21px}.slot-summary{grid-template-columns:1fr}.slot-summary-card:last-child{grid-column:auto}.period-grid{grid-template-columns:1fr}.order-line{grid-template-columns:1fr}.order-line .remove-line{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Pensionaren CRM 1.2.0 */
.dashboard-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dashboard-new-company{margin-top:4px;white-space:nowrap}
.announcement{align-items:flex-start}.announcement-copy{min-width:0;flex:1}.message-time{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#718095;margin-bottom:5px}.message-history{margin-top:10px;border-top:1px solid rgba(16,35,63,.1);padding-top:8px}.message-history summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--navy)}.message-history-list{display:grid;gap:8px;margin-top:9px}.message-history-item{background:rgba(255,255,255,.7);border:1px solid rgba(16,35,63,.08);border-radius:10px;padding:9px 11px;font-size:12px}.message-archive-only{margin-bottom:14px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:10px 14px}
.followup-list{display:flex;flex-direction:column;gap:8px}.followup-row{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 12px;display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;text-align:left;cursor:pointer;color:var(--ink)}.followup-row:hover{border-color:#aebdca;background:#fbfcfd}.followup-arrow{width:26px;height:26px;border-radius:50%;background:#eef3f7;display:grid;place-items:center;color:var(--navy);font-weight:800}.followup-main strong{display:block;color:var(--navy);font-size:13px}.followup-main span{font-size:11px;color:var(--muted)}.followup-date{text-align:right}.followup-date strong{display:block;font-size:12px;color:var(--navy)}.followup-row.overdue{border-color:#e3a7ad;background:#fff7f8}.followup-row.overdue .followup-arrow{background:#f8dfe2;color:var(--red)}.followup-row.overdue .followup-date strong{color:var(--red)}.overdue-label{display:block;color:var(--red)!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.09em;font-weight:900;margin-bottom:2px}.followup-summary{font-size:13px;color:var(--muted)}.followup-summary strong{font-size:20px;color:var(--navy);margin-right:3px}.followup-summary span{color:var(--red);font-weight:800}
.package-description p{margin:0 0 5px}.package-description p:last-child{margin-bottom:0}.package-list{margin:4px 0 4px 18px;padding:0}.package-list li{margin:2px 0}.mini-editor-toolbar{display:flex;gap:7px;margin-bottom:7px;flex-wrap:wrap}
@media(max-width:760px){.dashboard-top{flex-direction:column}.dashboard-new-company{width:100%;margin-top:-6px}.followup-row{grid-template-columns:28px 1fr}.followup-date{grid-column:2;text-align:left;margin-top:-3px}}

/* Pensionaren CRM 1.2.1 */
.contact-link{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-weight:750;text-decoration:none;overflow-wrap:anywhere}.contact-link:hover{text-decoration:underline;text-underline-offset:2px}.legacy-note{white-space:pre-wrap;background:#f7f9fb;border:1px solid var(--line);border-radius:11px;padding:11px 12px;color:var(--ink)}.note-list{display:flex;flex-direction:column;gap:9px}.note-entry{border:1px solid var(--line);border-radius:12px;background:#fbfcfd;padding:11px 12px}.note-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.note-meta strong{font-size:12px;color:var(--navy)}.note-meta span{font-size:10px;color:var(--muted);font-weight:750}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}.company-note-form{border-top:1px solid var(--line);padding-top:18px;margin-top:4px}.note-actions{display:flex;justify-content:flex-end;margin-top:10px}@media(max-width:760px){.contact-link{min-height:36px}.note-meta{align-items:flex-start;flex-direction:column;gap:1px}.note-actions .btn{width:100%}}


/* Pensionaren CRM 1.2.6 */
.sales-goal-section{border-top:1px solid var(--line);margin-top:17px;padding-top:16px}.sales-goal-section-title{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.075em;color:var(--muted);margin-bottom:10px}.sales-goal-list{display:grid;gap:11px}.sales-goal-card{border:1px solid #dce5eb;background:#f8fafb;border-radius:13px;padding:13px 14px}.sales-goal-card.achieved{border-color:#b9dfcc;background:var(--green-soft)}.sales-goal-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.sales-goal-meta span{font-size:11px;font-weight:800;color:var(--blue)}.sales-goal-meta strong{font-size:12px;color:var(--navy)}.sales-goal-card p{margin:6px 0 9px;font-size:13px;font-weight:700;color:var(--navy);line-height:1.45}.sales-goal-values{display:flex;align-items:baseline;gap:5px;margin-bottom:7px}.sales-goal-values strong{font-size:19px;color:var(--navy);letter-spacing:-.02em}.sales-goal-values span{font-size:11px;color:var(--muted)}.sales-goal-bar{height:12px;background:#e4eaf0;border-radius:999px;overflow:hidden;border:1px solid #d9e1e8}.sales-goal-bar-fill{height:100%;background:linear-gradient(90deg,var(--green),#48a978);border-radius:999px;transition:width .25s ease}.sales-goal-card.achieved .sales-goal-bar-fill{background:var(--green)}.sales-goal-period{font-size:10px;color:var(--muted);margin-top:7px;font-weight:700}.sales-goal-empty{font-size:12px;color:var(--muted);padding:4px 0}.sales-goal-admin-table td:nth-child(5){min-width:260px;max-width:420px;white-space:normal}
@media(max-width:760px){.sales-goal-values strong{font-size:17px}.sales-goal-card{padding:12px}.sales-goal-admin-table{min-width:900px}}

/* v1.3.1 – Dashboard Annonsutrymmen */
.dashboard-inventory-summary{display:grid;gap:10px}.dashboard-inventory-summary>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.dashboard-inventory-summary strong{color:var(--navy);font-size:13px}.dashboard-inventory-summary span{color:var(--muted);font-size:12px;text-align:right}.dashboard-inventory-summary b{color:#2f7d52;font-size:14px}.dashboard-inventory-panel .panel-body{padding-top:16px}@media(max-width:560px){.dashboard-inventory-summary>div{align-items:flex-start;flex-direction:column;gap:4px}.dashboard-inventory-summary span{text-align:left}}

/* Pensionaren CRM 1.4.0 – firanden + orderbekräftelse */
.celebration-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(8,22,38,.68);backdrop-filter:blur(5px);overflow:hidden}.celebration-card{position:relative;z-index:2;width:min(520px,calc(100vw - 32px));background:#fff;border-radius:28px;padding:38px 34px 32px;text-align:center;box-shadow:0 28px 90px rgba(0,0,0,.28);animation:celebration-pop .38s cubic-bezier(.2,.9,.25,1.25)}.celebration-icon{font-size:58px;line-height:1;margin-bottom:10px;animation:celebration-bounce .9s ease-in-out infinite alternate}.celebration-kicker{font-size:11px;letter-spacing:.16em;font-weight:900;color:var(--green);margin-bottom:8px}.celebration-card h2{margin:0;color:var(--navy);font-size:34px;letter-spacing:-.035em}.celebration-card p{margin:13px auto 0;max-width:420px;color:var(--muted);font-size:16px;line-height:1.55}.celebration-achiever{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:2px 0 12px;padding:8px 12px;border-radius:999px;background:#eef4fb;color:var(--navy);font-size:13px;font-weight:850}.celebration-reward{margin:18px 0 0;padding:13px 15px;border-radius:14px;background:var(--green-soft);border:1px solid #b9dfcc;color:#256341;font-weight:850}.celebration-close{margin-top:23px;min-width:150px}.celebration-effects{position:absolute;inset:0;pointer-events:none}.celebration-effects i{position:absolute;left:50%;top:50%;width:10px;height:16px;border-radius:3px;background:hsl(calc(var(--i)*37deg) 72% 55%);transform:rotate(calc(var(--i)*29deg)) translateY(-80px);animation:celebration-fly 1.6s ease-out infinite;animation-delay:calc(var(--i)*-.07s)}.celebration-rockets .celebration-effects i:nth-child(3n){width:28px;height:28px;background:transparent}.celebration-rockets .celebration-effects i:nth-child(3n)::before{content:'🚀';font-size:24px}.celebration-stars .celebration-effects i{width:auto;height:auto;background:transparent}.celebration-stars .celebration-effects i::before{content:'★';font-size:22px;color:#e8b742}@keyframes celebration-pop{from{opacity:0;transform:scale(.8) translateY(18px)}to{opacity:1;transform:none}}@keyframes celebration-bounce{to{transform:translateY(-7px) rotate(4deg)}}@keyframes celebration-fly{0%{opacity:0;transform:rotate(calc(var(--i)*29deg)) translateY(-40px) scale(.5)}20%{opacity:1}100%{opacity:0;transform:rotate(calc(var(--i)*29deg)) translateY(-380px) scale(1.1)}}
.mandatory-celebration-box{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #b9dfcc;background:var(--green-soft);border-radius:14px;margin-bottom:18px}.mandatory-celebration-box strong{display:block;color:var(--navy)}.mandatory-celebration-box span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.always-on{display:flex;align-items:center;min-height:42px;color:#28704b}.celebration-admin-table{min-width:900px}
.order-template-admin{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:28px;align-items:start}.order-template-preview-wrap{position:sticky;top:20px;padding:16px;border-radius:16px;background:#eef2f6}.order-preview{background:#fff;min-height:590px;padding:30px 32px;border-radius:8px;box-shadow:0 8px 30px rgba(16,35,63,.12);font-size:11px;color:#25354d}.order-preview-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.order-preview-head img{width:150px;height:auto;object-fit:contain}.order-preview-head span{font-size:10px;font-weight:800;color:#627187}.order-preview-line{height:3px;background:var(--order-accent);margin:15px 0 22px}.order-preview h3{font-size:25px;color:#10233f;margin:0 0 12px}.order-preview>p{line-height:1.5;color:#5e6d80}.order-preview dl{display:grid;grid-template-columns:115px 1fr;gap:6px 10px;margin:18px 0}.order-preview dt{font-weight:800;color:#667588}.order-preview dd{margin:0}.order-preview h4{font-size:10px;letter-spacing:.08em;color:var(--order-accent);margin:20px 0 8px}.order-preview-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #e2e7ec}.order-preview-footer{margin-top:28px;padding-top:12px;border-top:1px solid #e0e5ea;font-weight:400}.order-preview-footer small{display:block;margin-top:5px;color:#778495;font-weight:500}.check-field{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--navy);font-weight:700}.check-field input{width:18px;height:18px;accent-color:var(--green)}.color-input{height:44px;padding:5px}
@media(max-width:980px){.order-template-admin{grid-template-columns:1fr}.order-template-preview-wrap{position:static}.mandatory-celebration-box{align-items:flex-start;flex-direction:column}.celebration-card h2{font-size:29px}}


/* Pensionaren CRM 1.4.3 – rich-text för orderbekräftelse */
.rich-field{min-width:0}.rich-editor-shell{border:1px solid #d7dee8;border-radius:12px;background:#fff;overflow:hidden}.rich-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px;background:#f6f8fb;border-bottom:1px solid #dfe5ed}.rich-tool,.rich-size{height:32px;border:1px solid #cfd7e2;border-radius:7px;background:#fff;color:#24364f;font:700 12px/1 'Plus Jakarta Sans',sans-serif;padding:0 10px;cursor:pointer}.rich-tool:hover,.rich-tool.active,.rich-size:focus{border-color:#6a7f9d;background:#edf2f8}.rich-tool-bold{font-size:15px}.rich-tool-italic{font-size:14px}.rich-toolbar-spacer{flex:1 1 10px}.rich-editor{min-height:115px;padding:12px 14px;outline:none;font-size:14px;line-height:1.55;color:#25354d;overflow-wrap:anywhere}.rich-editor:focus{box-shadow:inset 0 0 0 2px rgba(35,83,135,.16)}.rich-editor p{margin:0 0 8px}.rich-editor p:last-child{margin-bottom:0}.rich-editor ul,.rich-editor ol{margin:6px 0 8px 22px;padding:0}.rich-editor li{margin:3px 0}.rich-editor a,.order-rich-content a{color:#245d9c;text-decoration:underline}.rich-status{min-height:18px;padding:0 12px 6px;font-size:11px;font-weight:700;color:#506987}.rich-editor-shell>.help{padding:0 12px 10px}.order-rich-content{line-height:1.5;color:#5e6d80}.order-rich-content p{margin:0 0 7px}.order-rich-content ul,.order-rich-content ol{margin:6px 0 8px 18px;padding:0}.order-rich-content li{margin:2px 0}.order-rich-content strong,.order-rich-content b{font-weight:700}.order-rich-content em,.order-rich-content i{font-style:italic}.order-preview-footer .order-rich-content{color:#25354d;font-weight:400}.order-preview-footer .order-rich-content p{margin:0 0 6px}.order-preview-footer small{margin-top:7px}
@media(max-width:720px){.rich-toolbar-spacer{display:none}.rich-tool,.rich-size{flex:0 0 auto}.rich-editor{min-height:135px}}

/* v1.4.7 – exakt PDF-preview i orderflödet */
.order-pdf-preview{margin-top:22px;border:1px solid #d7e1ec;border-radius:16px;background:#f4f7fb;padding:14px}
.order-pdf-preview[hidden]{display:none!important}
.order-pdf-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#122846}
.order-pdf-preview-head span{font-size:12px;color:#6d7d91}

/* v1.5.0 – stabil orderredigering + live PDF-preview */
.modal.order-wide{width:min(1320px,calc(100% - 28px));max-height:94vh}
.modal.order-wide .modal-body{max-height:calc(94vh - 68px)}
.order-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,46%);gap:20px;align-items:start}
.order-builder-fields{min-width:0}
.order-pdf-preview.order-pdf-preview-live{margin-top:0;position:sticky;top:0;min-height:640px;padding:12px;background:#f4f7fb}
.order-pdf-preview-live .order-pdf-preview-head{padding:2px 2px 0}
.order-pdf-placeholder{min-height:590px;border:1px dashed #c7d4e3;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;color:#6d7d91;font-size:14px;line-height:1.5}
.order-pdf-placeholder.loading{color:#274b73;background:#f8fbff}
@media(max-width:1050px){
  .modal.order-wide{width:min(980px,calc(100% - 24px))}
  .order-builder-grid{grid-template-columns:1fr}
  .order-pdf-preview.order-pdf-preview-live{position:static;min-height:0}
  .order-pdf-placeholder{min-height:220px}
}
@media(max-width:760px){
  .modal.order-wide{width:calc(100% - 16px);max-height:96vh}
  .modal.order-wide .modal-body{max-height:calc(96vh - 68px);padding:14px}
  .order-builder-grid{gap:14px}
}


/* v1.5.1 – dokumentpreview och förbättrad orderbyggare */
.modal.order-wide{
  width:min(1480px,calc(100% - 24px));
  height:min(94vh,980px);
  max-height:94vh;
}
.modal.order-wide .modal-body{
  height:calc(100% - 68px);
  max-height:none;
  overflow:hidden;
  padding:0 18px 0 20px;
}
.order-builder-grid{
  height:100%;
  display:grid;
  grid-template-columns:minmax(520px,1.05fr) minmax(520px,.95fr);
  gap:20px;
  align-items:stretch;
}
.order-builder-fields{
  min-width:0;
  overflow-y:auto;
  padding:20px 8px 90px 0;
  scrollbar-gutter:stable;
}
.order-builder-fields .form-section{margin-bottom:18px}
.order-builder-actions{
  position:sticky;
  bottom:0;
  z-index:8;
  margin:26px -8px -90px 0;
  padding:15px 8px 18px;
  background:linear-gradient(180deg,rgba(255,255,255,.84),#fff 24%);
  box-shadow:0 -10px 24px rgba(16,35,63,.06);
}
.order-line.order-line-card{
  display:block;
  border:1px solid #dce4ed;
  border-radius:14px;
  background:#fbfcfe;
  padding:13px;
  margin-bottom:10px;
}
.order-line-product{margin:0}
.order-line-pricing{
  display:grid;
  grid-template-columns:minmax(160px,1fr) 110px 42px;
  gap:9px;
  align-items:end;
  margin-top:10px;
}
.order-line-pricing .remove-line{
  width:42px;
  min-width:42px;
  height:42px;
  padding:0;
  display:grid;
  place-items:center;
}
.order-package-details{
  margin-top:7px;
  border-top:1px solid #e4eaf0;
  padding-top:7px;
}
.order-package-details summary{
  cursor:pointer;
  color:#426180;
  font-size:11px;
  font-weight:800;
  list-style:none;
}
.order-package-details summary::-webkit-details-marker{display:none}
.order-package-details summary::before{content:"›";display:inline-block;margin-right:6px;transition:transform .15s ease}
.order-package-details[open] summary::before{transform:rotate(90deg)}
.order-package-details .line-product-description{margin-top:8px}
.order-package-details .package-description{font-size:11px;line-height:1.45}
.order-package-details .package-list{margin:5px 0 5px 18px}

.order-pdf-preview.order-pdf-preview-live{
  position:sticky;
  top:0;
  height:100%;
  min-height:0;
  margin:0;
  padding:14px;
  overflow:auto;
  border:0;
  border-left:1px solid #dbe3ec;
  border-radius:0;
  background:#eef2f6;
}
.order-pdf-preview-live .order-pdf-preview-head{
  position:sticky;
  top:-14px;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:-14px -14px 14px;
  padding:14px 16px;
  background:rgba(238,242,246,.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid #d8e1ea;
}
.order-pdf-preview-head>div{display:flex;flex-direction:column;gap:2px}
.order-pdf-preview-head strong{font-size:15px;color:#142a47}
.order-pdf-preview-head span{font-size:11px;color:#718096}
.order-preview-badge{
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:26px;
  padding:0 8px;
  border:1px solid #c8d3df;
  border-radius:7px;
  background:#fff;
  color:#3d5877!important;
  font-size:10px!important;
  font-weight:800;
  letter-spacing:.05em;
}
.order-pdf-placeholder{
  min-height:420px;
  border:1px dashed #becbd9;
  background:rgba(255,255,255,.72);
}
.order-live-preview{display:flex;justify-content:center;padding:2px 2px 28px}
.order-live-preview[hidden]{display:none!important}
.order-live-page{
  width:min(100%,690px);
  min-height:975px;
  aspect-ratio:210/297;
  box-sizing:border-box;
  background:#fff;
  color:#111c2e;
  padding:42px 45px 34px;
  box-shadow:0 8px 30px rgba(16,35,63,.16);
  border-radius:2px;
  font-size:10.5px;
  line-height:1.38;
}
.order-live-brand{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.order-live-brand img{width:148px;height:auto;object-fit:contain}
.order-live-brand span{font-size:8.5px;color:#59687b;font-weight:700}
.order-live-rule{height:3px;background:var(--order-accent);margin:18px 0 20px}
.order-live-page h2{margin:0 0 10px;font-size:25px;line-height:1.1;color:#0f2038}
.order-live-intro{font-size:10.5px;color:#26364c}
.order-live-meta{
  display:grid;
  grid-template-columns:118px 1fr;
  gap:3px 10px;
  margin:13px 0 18px;
}
.order-live-meta dt{font-weight:800;color:#17263d}
.order-live-meta dd{margin:0}
.order-live-section{
  margin-top:13px;
  padding-top:11px;
  border-top:1.5px solid #365f91;
}
.order-live-section h3{
  margin:0 0 8px;
  font-size:10.5px;
  letter-spacing:.045em;
  color:#0a3a73;
}
.live-order-item{
  margin-bottom:9px;
  padding-bottom:8px;
  border-bottom:1px solid #e5eaf0;
}
.live-order-item:last-child{border-bottom:0}
.live-order-item>strong{font-size:11.3px;color:#111d2e}
.live-order-item .package-description{
  margin-top:5px;
  color:#26364b;
  font-size:9.5px;
  line-height:1.35;
}
.live-order-item .package-description p{margin:2px 0}
.live-order-item .package-list{margin:4px 0 4px 17px;padding:0}
.live-order-item .package-list li{margin:2px 0;padding-left:1px}
.live-order-item-price{
  margin-top:6px;
  padding:6px 8px;
  background:#f4f7fa;
  border-radius:5px;
  color:#26364b;
}
.order-live-totals{
  display:grid;
  grid-template-columns:1fr auto;
  gap:3px 18px;
  margin:11px 0 0 auto;
  padding-top:9px;
  border-top:1px solid #cfd8e2;
  max-width:300px;
}
.order-live-totals strong{color:#0e2039}
.order-live-totals strong:last-child{font-size:11.5px}
.order-live-section p{margin:3px 0}
.order-live-page .order-rich-content{font-size:10px;line-height:1.4;color:#26364b}
.order-live-page .order-rich-content p{margin:0 0 5px}
.order-live-page .order-rich-content ul,
.order-live-page .order-rich-content ol{margin:4px 0 5px 17px}
.order-live-footer{
  margin-top:17px;
  padding-top:9px;
  border-top:1px solid #dde4eb;
  color:#26364b;
}
.order-live-footer small{
  display:block;
  margin-top:6px;
  color:#6f7d8e;
  font-size:8px;
}

@media(max-width:1120px){
  .modal.order-wide{width:min(1040px,calc(100% - 20px))}
  .modal.order-wide .modal-body{overflow:auto;padding:16px}
  .order-builder-grid{height:auto;grid-template-columns:1fr}
  .order-builder-fields{overflow:visible;padding:0}
  .order-builder-actions{position:static;margin-top:22px;padding-top:18px;background:#fff;box-shadow:none}
  .order-pdf-preview.order-pdf-preview-live{position:static;height:auto;min-height:0;border:1px solid #d7e1ec;border-radius:16px}
  .order-pdf-preview-live .order-pdf-preview-head{position:static;margin:0 0 12px;padding:0 0 10px;background:transparent}
}
@media(max-width:760px){
  .modal.order-wide{width:calc(100% - 12px);height:auto;max-height:96vh}
  .modal.order-wide .modal-body{height:auto;max-height:calc(96vh - 64px);overflow:auto;padding:12px}
  .order-builder-grid{gap:12px}
  .order-line-pricing{grid-template-columns:1fr 86px 42px}
  .order-live-page{padding:26px 24px 24px;min-height:auto;font-size:9px}
  .order-live-page h2{font-size:20px}
  .order-live-meta{grid-template-columns:95px 1fr}
}

/* v1.5.3 – robust tvåpanels-scroll i orderbyggaren */
.modal.order-wide{
  width:min(1480px,calc(100vw - 24px));
  height:calc(100dvh - 24px);
  max-height:calc(100dvh - 24px);
}
.modal.order-wide .modal-body{
  height:calc(100% - 69px);
  min-height:0;
  max-height:none;
  overflow:hidden;
  padding:0 18px 0 20px;
}
.order-builder-grid{
  height:100%;
  min-height:0;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  grid-template-rows:minmax(0,1fr);
  align-items:stretch;
}
.order-builder-fields{
  min-width:0;
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
}
.order-builder-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:20px 10px 24px 0;
}
.order-builder-actions{
  position:relative;
  bottom:auto;
  z-index:10;
  flex:0 0 auto;
  margin:0;
  padding:14px 10px 16px 0;
  border-top:1px solid #dbe3ec;
  background:#fff;
  box-shadow:0 -10px 22px rgba(16,35,63,.06);
}
.order-pdf-preview.order-pdf-preview-live{
  position:relative;
  top:auto;
  min-width:0;
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
  border:0;
  border-left:1px solid #dbe3ec;
  border-radius:0;
  background:#eef2f6;
}
.order-pdf-preview-live .order-pdf-preview-head{
  position:relative;
  top:auto;
  flex:0 0 auto;
  margin:0;
  padding:14px 16px;
  background:#eef2f6;
  border-bottom:1px solid #d8e1ea;
}
.order-preview-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:14px 14px 26px;
}
.order-live-preview{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:max-content;
  padding:0 2px 28px;
}
.order-live-page{
  flex:0 0 auto;
}
@media(max-width:1120px){
  .modal.order-wide{height:auto;max-height:96dvh}
  .modal.order-wide .modal-body{height:auto;max-height:calc(96dvh - 64px);overflow:auto;padding:16px}
  .order-builder-grid{height:auto;display:block}
  .order-builder-fields{height:auto;display:block;overflow:visible}
  .order-builder-scroll{overflow:visible;padding:0}
  .order-builder-actions{position:sticky;bottom:0;margin-top:18px;padding:14px 0 16px}
  .order-pdf-preview.order-pdf-preview-live{height:auto;display:block;overflow:visible;border:1px solid #d7e1ec;border-radius:16px;margin-top:18px}
  .order-preview-scroll{max-height:70dvh;overflow-y:auto;padding:12px}
}
@media(max-width:760px){
  .modal.order-wide{width:calc(100vw - 12px);max-height:96dvh}
  .modal.order-wide .modal-body{max-height:calc(96dvh - 64px);padding:12px}
  .order-preview-scroll{max-height:62dvh}
}

/* v1.5.4 – orderbyggaren har en explicit två-raders layout:
   scrollbart arbetsområde + alltid synlig åtgärdsrad. */
.modal.order-wide{
  width:min(1480px,calc(100vw - 24px));
  height:calc(100dvh - 24px);
  max-height:calc(100dvh - 24px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
}
.modal.order-wide .modal-body{
  height:auto;
  min-height:0;
  max-height:none;
  overflow:hidden;
  padding:0;
}
.modal.order-wide #order-form{
  height:100%;
  min-height:0;
  margin:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
}
.modal.order-wide .order-builder-grid{
  min-height:0;
  height:auto;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  grid-template-rows:minmax(0,1fr);
  align-items:stretch;
  gap:0;
}
.modal.order-wide .order-builder-fields{
  min-width:0;
  min-height:0;
  height:auto;
  display:block;
  overflow:hidden;
  padding:0;
  background:#fff;
}
.modal.order-wide .order-builder-scroll{
  width:100%;
  height:100%;
  min-height:0;
  overflow-y:scroll;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:20px 18px 28px 20px;
}
.modal.order-wide .order-pdf-preview.order-pdf-preview-live{
  min-width:0;
  min-height:0;
  height:auto;
  position:relative;
  top:auto;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  padding:0;
  border:0;
  border-left:1px solid #dbe3ec;
  border-radius:0;
  background:#eef2f6;
}
.modal.order-wide .order-pdf-preview-live .order-pdf-preview-head{
  position:relative;
  top:auto;
  margin:0;
  padding:14px 16px;
  background:#eef2f6;
  border-bottom:1px solid #d8e1ea;
}
.modal.order-wide .order-preview-scroll{
  min-height:0;
  height:auto;
  overflow-y:scroll;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:14px 14px 32px;
}
.modal.order-wide .order-builder-actions{
  position:relative;
  inset:auto;
  z-index:20;
  margin:0;
  padding:12px 20px 14px;
  border-top:1px solid #dbe3ec;
  background:#fff;
  box-shadow:0 -8px 20px rgba(16,35,63,.07);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
@media(max-width:1120px){
  .modal.order-wide{
    height:calc(100dvh - 12px);
    max-height:calc(100dvh - 12px);
  }
  .modal.order-wide .modal-body{overflow:hidden;padding:0}
  .modal.order-wide #order-form{grid-template-rows:minmax(0,1fr) auto}
  .modal.order-wide .order-builder-grid{
    grid-template-columns:1fr;
    grid-template-rows:minmax(0,1fr);
  }
  .modal.order-wide .order-pdf-preview.order-pdf-preview-live{display:none}
  .modal.order-wide .order-builder-scroll{padding:16px 16px 24px}
  .modal.order-wide .order-builder-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
}


/* v1.5.5 – riktig flersidig A4-livepreview */
.order-live-preview.is-paginated{
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:22px;
}
.order-live-preview.is-paginated .order-live-page{
  width:min(100%,690px);
  min-height:0;
  overflow:hidden;
  flex:0 0 auto;
}
.order-live-continuation{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:11px;
  margin-bottom:15px;
  border-bottom:2px solid var(--order-accent,#0A2C5E);
  color:#42566e;
  font-size:8.5px;
  font-weight:800;
}
.order-live-preview.is-paginated .order-live-page + .order-live-page{margin-top:0}
