/* DB2 Dashboard Pro v2 – visual only, existing API/routes untouched */
.db2pro-dashboard{--pro-ink:#14253c;--pro-muted:#71829a;--pro-line:#e5ebf3;--pro-white:#fff;--pro-soft:#f5f8fc;--pro-shadow:0 10px 32px rgba(19,45,80,.055);max-width:1560px!important;padding:22px 34px 64px!important;color:var(--pro-ink)}
.db2pro-dashboard *, .db2pro-dashboard *::before,.db2pro-dashboard *::after{box-sizing:border-box}
.db2pro-dashboard button,.db2pro-dashboard input{font:inherit}
.db2pro-dashboard button{cursor:pointer}
.db2pro-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px;color:var(--pro-muted);font-size:12px}
.db2pro-breadcrumb{display:flex;align-items:center;gap:8px;font-weight:750;color:#415a74}
.db2pro-breadcrumb svg{color:#2563eb}.db2pro-breadcrumb span{opacity:.35}
.db2pro-live{display:flex;align-items:center;gap:7px;font-size:11px}.db2pro-live i{width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}
.db2pro-welcome{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;min-height:228px;padding:33px 40px;border-radius:23px;background:linear-gradient(113deg,#122c55 1%,#234b9b 58%,#138d91 100%);color:#fff;box-shadow:0 16px 34px rgba(28,70,125,.16)}
.db2pro-welcome:after{content:"";position:absolute;width:410px;height:410px;right:-130px;top:-165px;border:1px solid rgba(255,255,255,.18);border-radius:50%;pointer-events:none}
.db2pro-welcome-copy{position:relative;z-index:2;max-width:700px}
.db2pro-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.15em;font-weight:850;color:#a7fff0}
.db2pro-welcome h1{margin:12px 0 8px!important;color:#fff!important;font-size:clamp(27px,3vw,37px)!important;letter-spacing:-.045em!important;line-height:1.15}
.db2pro-welcome p{margin:0;max-width:620px;color:#d2e5fc;line-height:1.6;font-size:13px}
.db2pro-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}
.db2pro-btn{min-height:43px;padding:10px 16px;border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px!important;font-weight:800!important;transition:transform .18s,filter .18s}
.db2pro-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.db2pro-btn-primary{background:#fff;color:#174989;border-color:#fff;box-shadow:0 7px 18px rgba(12,38,70,.18)}
.db2pro-btn-light{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.34)}
.db2pro-hero-art{width:225px;min-width:205px;height:174px;display:flex;align-items:center;justify-content:center;position:relative;margin-right:35px}
.db2pro-hero-ring{position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:24px;transform:rotate(-20deg)}
.db2pro-ring-one{width:158px;height:158px;background:rgba(255,255,255,.06);box-shadow:0 16px 55px rgba(8,28,60,.17)}
.db2pro-ring-two{width:116px;height:116px;transform:rotate(20deg);background:rgba(255,255,255,.07)}
.db2pro-hero-symbol{position:relative;z-index:1;color:#fff;filter:drop-shadow(0 8px 15px rgba(6,25,65,.3))}
.db2pro-hero-note{position:absolute;bottom:-1px;right:-20px;background:rgba(12,41,75,.87);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:9px 14px;white-space:nowrap;font-size:10px;font-weight:800;display:flex;align-items:center;gap:7px;color:#d9fff8}
.db2pro-hero-pulse{display:block;width:7px;height:7px;background:#5ff1b4;border-radius:50%}
.db2pro-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:18px 0}
.db2pro-kpi{position:relative;min-height:150px;padding:21px 20px;background:var(--pro-white);border:1px solid var(--pro-line);border-radius:17px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:var(--pro-shadow);overflow:hidden;transition:transform .18s,box-shadow .18s}
.db2pro-kpi:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(23,46,85,.105)}
.db2pro-kpi:after{content:"";position:absolute;right:0;top:0;width:50%;height:4px;background:var(--accent)}
.db2pro-violet{--accent:#8b5cf6;--accent-soft:#f3edff}.db2pro-blue{--accent:#3b82f6;--accent-soft:#eaf3ff}.db2pro-green{--accent:#10b981;--accent-soft:#e6fbf3}.db2pro-amber{--accent:#f59e0b;--accent-soft:#fff7e6}
.db2pro-kpi-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);margin-bottom:12px}
.db2pro-kpi-caption{font-size:11px;color:var(--pro-muted);font-weight:700}
.db2pro-kpi strong{font-size:29px;line-height:1.25;margin:4px 0;color:var(--pro-ink);letter-spacing:-.05em;font-weight:850}
.db2pro-kpi-sub{font-size:10px;color:var(--pro-muted)}
.db2pro-main-grid{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(310px,1fr);gap:18px}
.db2pro-panel{background:var(--pro-white);border:1px solid var(--pro-line);border-radius:19px;box-shadow:var(--pro-shadow);padding:22px;min-width:0}
.db2pro-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:19px}
.db2pro-label{font-size:9px;color:#3382c5;font-weight:900;letter-spacing:.17em}
.db2pro-panel-head h2,.db2pro-section-head h2{font-size:18px!important;font-weight:850!important;letter-spacing:-.035em!important;margin:5px 0 5px!important;color:var(--pro-ink)!important}
.db2pro-panel-head p,.db2pro-section-head p{font-size:11px;color:var(--pro-muted);margin:0}
.db2pro-head-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#eef5ff;color:#3979c7;flex-shrink:0}
.db2pro-head-icon.db2pro-warning{background:#fff5e7;color:#e39418}
.db2pro-area-list{display:grid;gap:11px}
.db2pro-area-row{width:100%;min-height:69px;background:var(--pro-soft);border:1px solid transparent;border-radius:13px;padding:11px 13px;display:flex;align-items:center;gap:13px;text-align:left;color:var(--pro-ink);transition:background .15s,border-color .15s}
.db2pro-area-row:hover{background:#eef5ff;border-color:#cfe0fa}
.db2pro-area-icon{width:41px;height:41px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.db2pro-area-icon.blue{background:#e8f0ff;color:#3776e2}.db2pro-area-icon.green{background:#e2f8ed;color:#0b9a74}.db2pro-area-icon.violet{background:#f1ebff;color:#8353d8}.db2pro-area-icon.orange{background:#fff2e0;color:#d88b23}
.db2pro-area-details{flex:1;min-width:0}
.db2pro-area-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.db2pro-area-title strong{font-size:12px;color:var(--pro-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db2pro-area-title small{color:var(--pro-muted);font-size:10px;white-space:nowrap}
.db2pro-progress{height:6px;background:#e0e8f2;border-radius:999px;display:block;overflow:hidden}
.db2pro-progress>span{height:100%;display:block;background:linear-gradient(90deg,#438af6,#18c2a1);border-radius:999px}
.db2pro-area-count{font-size:10px;color:#536782;font-weight:800;white-space:nowrap;padding-left:2px}
.db2pro-alert-list{display:grid;gap:9px}
.db2pro-alert-item{width:100%;min-height:61px;display:flex;align-items:center;gap:11px;background:#fffaf3;border:1px solid #fff0da;border-radius:12px;padding:10px 12px;color:var(--pro-ink);text-align:left}
.db2pro-alert-item:hover{border-color:#f2c681;background:#fff6e7}
.db2pro-alert-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:#f5a21e;box-shadow:0 0 0 4px rgba(245,162,30,.13)}
.db2pro-alert-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.db2pro-alert-info b{font-size:11px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:var(--pro-ink)}
.db2pro-alert-info small{font-size:10px;color:#a0784f}
.db2pro-arrow{color:#b88b4b}
.db2pro-all-good{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:170px;gap:9px;color:#0d9c76;background:#edfbf5;border-radius:13px}
.db2pro-all-good strong{font-size:13px;color:#18775e}
.db2pro-all-good small{font-size:11px;color:#5d8f7c}
.db2pro-section{margin-top:29px;min-width:0}
.db2pro-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:15px}
.db2pro-section-head h2{font-size:20px!important}
.db2pro-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.db2pro-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:162px;padding:21px;background:var(--pro-white);border:1px solid var(--pro-line);border-radius:17px;text-align:left;color:var(--pro-ink);box-shadow:var(--pro-shadow);transition:transform .2s,box-shadow .2s}
.db2pro-tile:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(18,50,82,.1)}
.db2pro-tile-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:13px;background:#eaf3ff;color:#2c73e5}
.db2pro-tile-green .db2pro-tile-icon{background:#e3f8ed;color:#0fa47b}.db2pro-tile-violet .db2pro-tile-icon{background:#f3edff;color:#8751db}.db2pro-tile-orange .db2pro-tile-icon{background:#fff1e0;color:#d68a26}
.db2pro-tile-icon img{width:31px;height:31px;object-fit:contain}
.db2pro-tile strong{font-size:13px;font-weight:850}.db2pro-tile small{color:var(--pro-muted);font-size:11px}
.db2pro-tile-arrow{position:absolute;right:20px;top:30px;color:#9baec5}
.db2pro-two-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);gap:20px}
.db2pro-niche-list,.db2pro-recent-list{background:var(--pro-white);border:1px solid var(--pro-line);border-radius:18px;box-shadow:var(--pro-shadow);padding:10px;display:grid;gap:2px;max-height:360px;overflow:auto}
.db2pro-niche,.db2pro-recent-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:11px;padding:10px;color:var(--pro-ink);background:transparent}
.db2pro-niche:hover,.db2pro-recent-item:hover{background:var(--pro-soft)}
.db2pro-niche-icon,.db2pro-recent-image{height:40px;width:40px;flex-shrink:0;display:grid;place-items:center;background:#edf3ff;color:#4980dd;border-radius:11px;overflow:hidden}
.db2pro-niche-icon img,.db2pro-recent-image img{width:100%;height:100%;object-fit:cover}
.db2pro-niche>span:nth-child(2),.db2pro-recent-info{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.db2pro-niche strong,.db2pro-recent-item strong{font-size:11px;font-weight:800;color:var(--pro-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db2pro-niche small,.db2pro-recent-item small{font-size:10px;color:var(--pro-muted)}
.db2pro-niche-arrow{color:#8499af}.db2pro-recent-stock{font-size:10px;color:#148f72;background:#e5f8f0;padding:6px 9px;border-radius:999px;white-space:nowrap;font-weight:850}
.db2pro-search{display:flex;align-items:center;gap:7px;border-radius:11px;border:1px solid var(--pro-line);background:var(--pro-white);height:36px;padding:0 10px;color:#8ea0b5;max-width:190px}
.db2pro-search input{height:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;min-width:0;width:100%;font-size:11px!important;color:var(--pro-ink)}
.db2pro-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.db2pro-tool{display:flex;align-items:center;text-align:left;gap:12px;min-width:0;background:var(--pro-white);border:1px solid var(--pro-line);border-radius:13px;min-height:80px;padding:13px;box-shadow:var(--pro-shadow);color:var(--pro-ink)}
.db2pro-tool:hover{transform:translateY(-2px);border-color:#b9d4f9}
.db2pro-tool-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
.db2pro-tool-blue{color:#3978e7;background:#eaf2ff}.db2pro-tool-teal{color:#099b85;background:#e6f9f2}.db2pro-tool-purple{color:#8754d4;background:#f2ecff}.db2pro-tool-orange{color:#de921d;background:#fff2e2}.db2pro-tool-slate{color:#617d99;background:#eff3f9}
.db2pro-tool>span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.db2pro-tool strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db2pro-tool small{font-size:9px;color:var(--pro-muted);line-height:1.35}
.db2pro-tool-arrow{color:#9badbe}
.db2pro-empty{font-size:12px;color:var(--pro-muted);padding:26px 16px;text-align:center}
.db2pro-dashboard [hidden]{display:none!important}
@media(max-width:1250px){.db2pro-tiles,.db2pro-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.db2pro-area-count{display:none}}
@media(max-width:1050px){.db2pro-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.db2pro-main-grid,.db2pro-two-columns{grid-template-columns:1fr}.db2pro-area-count{display:block}.db2pro-hero-art{min-width:155px;margin-right:0}}
@media(max-width:750px){.db2pro-dashboard{padding:17px 14px 42px!important}.db2pro-live{display:none}.db2pro-welcome{padding:25px 23px;min-height:230px}.db2pro-hero-art{display:none}.db2pro-tiles,.db2pro-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.db2pro-kpi{padding:17px;min-height:135px}.db2pro-kpi strong{font-size:25px}.db2pro-section-head{align-items:flex-start;flex-direction:column}.db2pro-search{max-width:none;width:100%}}
@media(max-width:500px){.db2pro-tiles,.db2pro-tools{grid-template-columns:1fr}.db2pro-main-grid{gap:13px}.db2pro-kpis{gap:10px}.db2pro-kpi{min-height:128px;padding:14px}.db2pro-kpi-icon{height:33px;width:33px;margin-bottom:9px}.db2pro-kpi strong{font-size:23px}.db2pro-kpi-caption{font-size:10px}.db2pro-panel{padding:16px}.db2pro-area-row{gap:9px;padding:10px}.db2pro-area-title{flex-direction:column;gap:3px}.db2pro-area-title small{font-size:9px}.db2pro-welcome h1{font-size:28px!important}}
:root[data-theme="dark"] .db2pro-dashboard{--pro-ink:#e9f3fc;--pro-muted:#9caebf;--pro-line:#314353;--pro-white:#1d2a35;--pro-soft:#253544;--pro-shadow:0 12px 30px rgba(0,0,0,.15)}
:root[data-theme="dark"] .db2pro-breadcrumb{color:#c1d4e5}
:root[data-theme="dark"] .db2pro-area-row:hover,:root[data-theme="dark"] .db2pro-niche:hover,:root[data-theme="dark"] .db2pro-recent-item:hover{background:#2e4254}
:root[data-theme="dark"] .db2pro-progress{background:#425466}
:root[data-theme="dark"] .db2pro-alert-item{background:#382f24;border-color:#57462e}
:root[data-theme="dark"] .db2pro-alert-item:hover{background:#443525}
:root[data-theme="dark"] .db2pro-alert-info small{color:#d4a96e}
:root[data-theme="dark"] .db2pro-all-good{background:#173c32}
:root[data-theme="dark"] .db2pro-all-good strong{color:#b2eed6}
:root[data-theme="dark"] .db2pro-all-good small{color:#8cb8a6}
:root[data-theme="dark"] .db2pro-recent-stock{background:#194739;color:#8aebc7}
:root[data-theme="dark"] .db2pro-head-icon{background:#293e56}
:root[data-theme="dark"] .db2pro-head-icon.db2pro-warning{background:#453821}
:root[data-theme="dark"] .db2pro-violet{--accent-soft:#302741}:root[data-theme="dark"] .db2pro-blue{--accent-soft:#223a53}:root[data-theme="dark"] .db2pro-green{--accent-soft:#1b4137}:root[data-theme="dark"] .db2pro-amber{--accent-soft:#453921}
:root[data-theme="dark"] .db2pro-tile-icon,:root[data-theme="dark"] .db2pro-niche-icon,:root[data-theme="dark"] .db2pro-recent-image{background:#30435b}
@media(prefers-reduced-motion:reduce){.db2pro-dashboard *{transition:none!important}}
