/* DWELLIVRA Reports & Insights — native shared SaaS reporting workspace.
   Consistent with the existing Inter, midnight-navy and trust-teal system. */
.dwr-root{--dwr-ink:#14263d;--dwr-muted:#697f91;--dwr-teal:#147d78;--dwr-border:#dfe8ef;--dwr-bg:#fff;font-family:Inter,Manrope,"Plus Jakarta Sans",system-ui,sans-serif;color:var(--dwr-ink);padding-bottom:28px;min-width:0}
.dwr-root *{box-sizing:border-box}
.dwr-root h1,.dwr-root h2,.dwr-root h3,.dwr-root p{margin-top:0}
.dwr-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 18px;flex-wrap:wrap}
.dwr-heading>div:first-child{flex:1;min-width:280px}
.dwr-kicker{font-size:10px;font-weight:820;letter-spacing:.13em;color:#147d78;margin:0 0 8px}
.dwr-heading h1{font-size:clamp(26px,2.3vw,32px);letter-spacing:-.04em;line-height:1.18;margin:0 0 6px;font-weight:820;color:#132b40}
.dwr-heading p{font-size:13px;color:#667e92;line-height:1.6;margin:0}
.dwr-tools{display:flex;gap:9px;flex-wrap:wrap;align-items:flex-end}
.dwr-tools .btn{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;border-radius:8px;white-space:nowrap}
.dwr-period{font-size:10px;font-weight:780;color:#62788a;display:flex;gap:3px;flex-direction:column}
.dwr-period select{border:1px solid #cfdee8;background:white;border-radius:8px;padding:8px 12px;font-family:inherit;font-size:12px;font-weight:650;min-width:148px;height:42px;color:#1b364c;cursor:pointer}
.dwr-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:5px;background:#fff;border:1px solid var(--dwr-border);border-radius:10px;margin-bottom:18px}
.dwr-tabs button{display:inline-flex;gap:8px;align-items:center;border:0;background:transparent;border-radius:7px;white-space:nowrap;padding:11px 13px;font:750 12px/1.3 Inter,Manrope,system-ui,sans-serif;color:#3e5368;cursor:pointer;transition:background .12s}
.dwr-tabs button:hover{background:#eaf5f2}
.dwr-tabs button svg{color:#4b7186}
.dwr-tabs button.selected{color:#fff;background:#147d78}
.dwr-tabs button.selected svg{color:#fff}
.dwr-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.84fr);align-items:start;gap:17px}
.dwr-main{min-width:0;display:grid;gap:16px}
.dwr-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dwr-kpi{background:#fff;border:1px solid var(--dwr-border);border-radius:12px;box-shadow:0 4px 14px rgba(23,45,68,.042);min-height:123px;padding:15px 14px;display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-width:0}
.dwr-kpi-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;color:#147d78;background:#e6f5f1;margin-bottom:2px}
.dwr-kpi strong{display:block;font-size:clamp(19px,2.1vw,28px);line-height:1.2;color:#14263d;letter-spacing:-.04em;overflow-wrap:anywhere}
.dwr-kpi>span:not(.dwr-kpi-icon){font-size:12px;font-weight:750;color:#2b455c}
.dwr-kpi small{font-size:10px;color:#72869a;line-height:1.45;display:block}
.dwr-two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dwr-panel{background:#fff;border:1px solid var(--dwr-border);border-radius:12px;box-shadow:0 3px 13px rgba(19,42,68,.038);min-width:0;overflow:hidden}
.dwr-panel-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid #ebf0f3;min-height:59px;padding:15px 17px}
.dwr-panel-head>svg{color:#147d78}
.dwr-panel-head h2{font-size:15px;font-weight:820;letter-spacing:-.02em;line-height:1.35;color:#182d43;margin:0}
.dwr-panel-body{padding:12px 17px 19px}
.dwr-progress{padding:9px 1px 11px}
.dwr-progress>div:first-child{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:9px}
.dwr-progress strong{font-size:11px;color:#284157;font-weight:790}
.dwr-progress small{font-size:10px;color:#788b9c}
.dwr-progress-track{height:7px;background:#e7f0fa;border-radius:6px;overflow:hidden}
.dwr-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#147d78,#31b9aa);border-radius:6px;min-width:0}
.dwr-empty{display:grid;place-items:center;text-align:center;min-height:100px;color:#8492a0;font-size:12px;padding:20px}
.dwr-note{display:flex;gap:10px;align-items:start;border-bottom:1px solid #edf1f5;padding:10px 0;color:#647d8f;font-size:11px;line-height:1.55}
.dwr-note:last-child{border-bottom:0}
.dwr-note svg{flex-shrink:0;color:#147d78;margin-top:1px}
.dwr-section-note{font-size:11px;color:#7e8e9b;margin:0 0 12px}
.dwr-table-scroll{overflow-x:auto;scrollbar-width:thin}
.dwr-table{border-collapse:collapse;width:100%;font-size:11px}
.dwr-table th{color:#4e687d;text-align:left;background:#f2f6f9;font-size:10px;font-weight:790;padding:10px 12px;white-space:nowrap}
.dwr-table td{color:#3d546c;padding:11px 12px;white-space:nowrap;border-top:1px solid #ebf1f3;line-height:1.45}
.dwr-table tr:hover td{background:#f6fbfa}
.dwr-table td:first-child{color:#1b3549;font-weight:780}
.dwr-preview{position:sticky;top:18px;background:#fff;border:1px solid #dbe7ec;border-radius:12px;overflow:hidden;box-shadow:0 5px 20px rgba(20,48,68,.065);min-width:0}
.dwr-preview-head{padding:14px 16px;background:#edf7f5;border-bottom:1px solid #d8ebe7;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dwr-preview-head>div{display:flex;align-items:center;gap:8px;color:#174c53}
.dwr-preview-head strong{font-size:12px;white-space:nowrap}
.dwr-preview-head svg{color:#147d78}
.dwr-preview-head small{color:#68918c;font-size:10px;white-space:nowrap}
.dwr-paper{min-height:370px;background:#fff;color:#14263d;margin:18px 16px 14px;padding:24px 18px 24px;border:1px solid #e0e8eb;border-radius:4px;box-shadow:0 6px 18px rgba(17,41,57,.065)}
.dwr-paper>header{display:flex;gap:10px;align-items:center;padding-bottom:16px;border-bottom:1px solid #e1e8ec}
.dwr-paper>header img{max-width:81px;max-height:39px;object-fit:contain;flex-shrink:0}
.dwr-no-logo{display:grid;place-items:center;flex:0 0 44px;height:39px;border-radius:5px;background:#14263d;color:white;font-weight:850}
.dwr-paper>header div:last-child{min-width:0}
.dwr-paper>header strong{font-size:11px;display:block;line-height:1.25;color:#14263d;overflow-wrap:anywhere}
.dwr-paper>header small{font-size:7px;color:#147d78;display:block;line-height:1.4;font-weight:780;margin-top:3px;letter-spacing:.065em}
.dwr-paper-band{height:5px;background:#147d78;margin:0 0 24px}
.dwr-paper h3{font-size:19px;letter-spacing:-.03em;line-height:1.22;color:#14263d;margin-bottom:5px}
.dwr-paper>p{font-size:9px;color:#718498;line-height:1.5;margin:0 0 21px}
.dwr-paper h4{font-size:9px;letter-spacing:.13em;color:#147d78;font-weight:850;margin:0 0 12px}
.dwr-paper-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 24px}
.dwr-paper-stats>div{padding:10px;border-radius:6px;background:#f3f8f9;border:1px solid #e3edef}
.dwr-paper-stats small{font-size:9px;color:#607485;display:block;line-height:1.35}
.dwr-paper-stats strong{font-size:15px;color:#14263d;display:block;margin-top:3px;overflow-wrap:anywhere}
.dwr-paper-rows{margin-bottom:20px}
.dwr-paper-rows>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e8eff1;padding:8px 2px;font-size:9px;color:#2e4354}
.dwr-paper-rows>div span:first-child{font-weight:750}
.dwr-paper .dwr-preview-note{border-top:1px solid #e0e8eb;padding-top:10px;font-size:8px;color:#8795a2}
.dwr-brand-upload{padding:15px 16px;background:#f7fafb;border-top:1px solid #e6ecef}
.dwr-brand-upload label{display:block;font-size:12px;color:#21394c;margin-bottom:9px}
.dwr-brand-upload label strong{display:block;font-size:12px}
.dwr-brand-upload label small{display:block;font-size:10px;line-height:1.5;margin:4px 0 6px;color:#667e8e}
.dwr-brand-upload input{max-width:100%;border:1px dashed #a4cbc4;border-radius:8px;background:#fff;color:#254959;font-family:inherit;font-size:11px;padding:9px;cursor:pointer}
.dwr-brand-upload input::file-selector-button{background:#e7f5f1;border:0;border-radius:5px;color:#126d68;font:700 11px Inter,system-ui;padding:8px;margin-right:9px;cursor:pointer}
.dwr-upload-hint{display:block;font-size:10px;color:#798c9b;line-height:1.5;margin-top:9px}
.dwr-error{color:#b64b35;font-size:11px;display:block;margin-top:6px}
.dwr-logo-remove{font:720 11px Inter,system-ui;border:0;background:transparent;color:#c05140;padding:8px 0;cursor:pointer}
.dwr-download{display:flex;width:calc(100% - 32px);margin:15px 16px 18px;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:8px!important}
.workspace.dw-theme-dark .dwr-root :is(.dwr-panel,.dwr-kpi,.dwr-tabs,.dwr-preview){background:#142230;border-color:#2e4455}
.workspace.dw-theme-dark .dwr-root :is(h1,h2,.dwr-kpi strong,.dwr-kpi>span:not(.dwr-kpi-icon),.dwr-note,.dwr-table td:first-child){color:#e6f1f6}
.workspace.dw-theme-dark .dwr-root :is(p,small,.dwr-table td,.dwr-progress strong){color:#adc0cf}
.workspace.dw-theme-dark .dwr-root .dwr-table th{background:#1e3544;color:#b3cbd4}
.workspace.dw-theme-dark .dwr-root .dwr-table tr:hover td{background:#1c3744}
.workspace.dw-theme-dark .dwr-root .dwr-table td{border-color:#314759}
.workspace.dw-theme-dark .dwr-root .dwr-preview-head,.workspace.dw-theme-dark .dwr-root .dwr-brand-upload{background:#1b3542;border-color:#314d58}
.workspace.dw-theme-dark .dwr-root .dwr-period select,.workspace.dw-theme-dark .dwr-root .dwr-brand-upload input{background:#1b3544;color:#e9f3f7;border-color:#3d5867}
.workspace.dw-theme-dark .dwr-root .dwr-tabs button{color:#bed3da}
.workspace.dw-theme-dark .dwr-root .dwr-tabs button.selected{color:#fff}
.workspace.dw-theme-dark .dwr-root .dwr-paper{background:#fff;color:#14263d}
.workspace.dw-theme-dark .dwr-root .dwr-paper :is(strong,h3,h4,p,small,span){color:inherit}
@media(max-width:1270px){.dwr-layout{grid-template-columns:minmax(0,1.4fr) minmax(270px,.95fr)}.dwr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dwr-two-col{grid-template-columns:1fr}}
@media(max-width:900px){.dwr-layout{grid-template-columns:1fr}.dwr-preview{position:static}.dwr-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.dwr-two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.dwr-paper{max-width:540px;margin:18px auto 14px}}
@media(max-width:620px){.dwr-kpis,.dwr-two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.dwr-heading h1{font-size:25px}.dwr-tools{width:100%}.dwr-tools .btn{flex:1}.dwr-period{flex:1}.dwr-period select{width:100%}.dwr-card{padding:12px}}
@media(max-width:440px){.dwr-kpis,.dwr-two-col{grid-template-columns:1fr}.dwr-kpi{min-height:95px}.dwr-preview-head small{display:none}}
@media(prefers-reduced-motion:reduce){.dwr-tabs button{transition:none}}
