/* NineSoft interface v3 preview skin. Visual only: existing IDs, routes and editors stay intact. */
:root{
  --v3-navy:#061a39;
  --v3-navy-2:#0c2f67;
  --v3-blue:#2878ff;
  --v3-page:#f4f7fb;
  --v3-line:#e5eaf1;
  --v3-muted:#718096;
}

body{background:var(--v3-page)}
.app{background:var(--v3-page)}
.main{background:var(--v3-page)}

@media (min-width:1024px){
  :root{--sidebar-w:270px}
  .sidebar{position:fixed;width:var(--sidebar-w);padding:18px 14px;background:linear-gradient(180deg,#06172f 0%,#071f42 100%);border-left:1px solid rgba(255,255,255,.08);box-shadow:-14px 0 42px rgba(5,22,49,.14);color:#fff}
  .sidebar-head{min-height:76px;padding:4px 8px 13px;border-bottom:1px solid rgba(255,255,255,.09)}
  .sidebar-head strong{font-size:25px;letter-spacing:.3px}.sidebar-head .muted{color:#8fa6c4;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}
  .sidebar-search{height:48px;margin:14px 0 18px;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.12);box-shadow:none;color:#d5e2f4}
  .sidebar-search input{color:#fff}.sidebar-search input::placeholder{color:#9eb0c8}
  .nav-list{gap:4px}.nav-link{min-height:47px;padding:7px 9px;border:0;border-radius:13px;background:transparent;color:#aebdd2;font-size:13px}
  .nav-link .nav-icon-shell{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.06);display:grid;place-items:center}
  .nav-link .nav-icon-shell .icon{color:var(--nav-accent)!important}.nav-link .num{border-radius:8px;padding:3px 6px;background:rgba(255,255,255,.06);color:#c4d0e0}
  .nav-link:hover{background:rgba(255,255,255,.07);color:#fff}.nav-link.active{background:linear-gradient(135deg,#144a96,#0e60dc);color:#fff;box-shadow:0 9px 22px rgba(0,91,218,.26)}
  .nav-link.active .nav-icon-shell{background:rgba(255,255,255,.14)}.nav-link.active .nav-icon-shell .icon{color:#fff!important}.nav-link.active .num{background:rgba(255,255,255,.14);color:#fff}
  .sidebar-divider,.sidebar-state,.sidebar>.section-title,.sidebar>small{display:none}

  .topbar{right:var(--sidebar-w);height:76px;padding:0 26px;background:rgba(255,255,255,.97);color:#1b2b43;border-bottom:1px solid var(--v3-line);box-shadow:0 4px 18px rgba(21,40,70,.045)}
  .topbar .brand strong{font-size:17px;color:#10233f}.topbar .brand span{font-size:10px;color:#78879a;opacity:1}.topbar .brand img{border:1px solid var(--v3-line)}
  .topbar .icon-btn{width:40px;height:40px;border:1px solid #e3e9f1;border-radius:12px;background:#fff;color:#40536d}.topbar .connection-status{background:#effaf4;color:#298b58;border:1px solid #d7f0e2;border-radius:12px;padding:8px 11px}
  .workspace-bar{position:fixed;top:76px;right:var(--sidebar-w);height:51px;padding:7px 24px;background:rgba(247,249,252,.97);border-bottom:1px solid var(--v3-line)}
  .workspace-tab{height:36px;border-radius:11px;background:#fff}.workspace-tab.active{background:#edf4ff;border-color:#b9cff4;color:#174f9e}
  .shell{padding-right:var(--sidebar-w);padding-top:127px}.main{padding:30px 32px 42px}.screen{max-width:1600px}
}

.dashboard-v3{display:grid;gap:15px}
.dashboard-search-v3{padding:0;border:0;background:transparent;box-shadow:none}.dashboard-search-v3 .searchbar{height:50px;margin:0;border-radius:16px;box-shadow:0 8px 24px rgba(28,54,87,.055)}
[data-screen="dashboard"]>.screen-head{display:none}

.dashboard-shortcuts-v3{border-radius:25px;padding:20px;background:radial-gradient(circle at 5% -30%,rgba(55,132,255,.52),transparent 36%),linear-gradient(120deg,#071d42,#123f84 75%,#1959b8);color:#fff;box-shadow:0 18px 40px rgba(11,49,104,.17)}
.dashboard-section-copy{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:15px}.dashboard-section-copy small{display:block;color:#91bfff;font-size:10px;font-weight:800}.dashboard-section-copy h2{margin:2px 0 0;font-size:24px}.dashboard-section-copy>span{color:#b9c9de;font-size:11px}
.dashboard-shortcut-grid-v3{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:9px}
.dashboard-shortcut-v3{position:relative;min-width:0;min-height:96px;padding:11px 5px;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.075);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.dashboard-shortcut-v3:hover{transform:translateY(-3px);background:#fff;color:#182942;border-color:#fff}.dashboard-shortcut-v3>span{width:50px;height:50px;border-radius:15px;background:var(--shortcut);color:#fff;display:grid;place-items:center;box-shadow:0 8px 17px color-mix(in srgb,var(--shortcut) 35%,transparent)}
.dashboard-shortcut-v3>span .icon{width:25px;height:25px;color:#fff!important}.dashboard-shortcut-v3 strong{font-size:10px;line-height:1.25;text-align:center}.dashboard-shortcut-v3 kbd{position:absolute;top:7px;left:7px;border:0;border-radius:6px;padding:2px 5px;background:rgba(255,255,255,.12);color:#d7e6fb;font-size:7px}.dashboard-shortcut-v3:hover kbd{background:var(--shortcut-soft);color:var(--shortcut)}

.dashboard-pulse-v3{min-height:78px;padding:11px 15px;border:1px solid var(--v3-line);border-radius:19px;background:#fff;box-shadow:0 8px 24px rgba(28,54,87,.05);display:grid;grid-template-columns:200px repeat(6,minmax(0,1fr));align-items:center;gap:8px}
.dashboard-pulse-title{display:flex;align-items:center;gap:10px}.dashboard-pulse-title>span{width:42px;height:42px;border-radius:13px;background:#eaf2ff;color:var(--v3-blue);display:grid;place-items:center}.dashboard-pulse-title strong{display:block;font-size:13px}.dashboard-pulse-title small{display:block;color:var(--v3-muted);font-size:9px;margin-top:2px}
.dashboard-pulse-v3>div:not(.dashboard-pulse-title){padding-right:12px;border-right:3px solid #2878ff}.dashboard-pulse-v3>div:nth-child(3){border-color:#19a86b}.dashboard-pulse-v3>div:nth-child(4){border-color:#f49a2f}.dashboard-pulse-v3>div:nth-child(5){border-color:#e86667}.dashboard-pulse-v3>div:nth-child(6){border-color:#7c63ee}.dashboard-pulse-v3>div:nth-child(7){border-color:#16a36a}.dashboard-pulse-v3>div>small{display:block;color:var(--v3-muted);font-size:9px}.dashboard-pulse-v3>div>strong{font-size:17px;direction:ltr;display:inline-block;margin-top:4px}.dashboard-pulse-v3>div>em{font-style:normal;color:var(--v3-muted);font-size:8px;margin-right:4px}.dashboard-pulse-v3 .red strong{color:#dc3d50}

.dashboard-main-grid-v3{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.85fr);gap:15px}.dashboard-main-grid-v3>.card,.dashboard-main-grid-v3>.dashboard-modules-v3{margin:0;padding:18px;border:1px solid var(--v3-line);border-radius:21px;background:#fff;box-shadow:0 10px 30px rgba(28,54,87,.055)}
.dashboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.dashboard-card-head small{display:block;color:var(--v3-muted);font-size:9px}.dashboard-card-head h2{font-size:18px;margin:2px 0 0}.dashboard-card-head>span,.dashboard-card-head>button{border:0;border-radius:10px;padding:7px 10px;background:#edf4ff;color:#2764b6;font-size:9px;font-weight:800}
.dashboard-modules-v3 .module-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.dashboard-modules-v3 .module-card{min-height:88px;padding:9px 5px;border-radius:15px;flex-direction:column;justify-content:center;text-align:center;gap:7px;background:#fbfcfe}.dashboard-modules-v3 .module-icon{width:46px;height:46px;border-radius:14px;background:var(--module-soft);color:var(--module-accent)}.dashboard-modules-v3 .module-icon .icon{color:var(--module-accent)!important}.dashboard-modules-v3 .module-card>span:last-child{font-size:9px;line-height:1.25}
.dashboard-activity-v3 .table-wrap{border:0;border-radius:0}.dashboard-activity-v3 .data-table{min-width:520px}.dashboard-activity-v3 .data-table th{background:#f4f7fb}.dashboard-activity-v3 .data-table td,.dashboard-activity-v3 .data-table th{font-size:10px;padding:9px 7px}

@media (max-width:1250px) and (min-width:1024px){
  :root{--sidebar-w:235px}.dashboard-shortcut-grid-v3{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-pulse-v3{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-pulse-title{grid-column:1/-1}.dashboard-main-grid-v3{grid-template-columns:1fr}.dashboard-modules-v3 .module-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
}

@media (max-width:1000px){
  .topbar{background:linear-gradient(135deg,#0d3b78,#071f45);color:#fff}.topbar .icon-btn{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.1)}
  .dashboard-v3{gap:10px}.dashboard-search-v3 .searchbar{height:44px}.dashboard-shortcuts-v3{padding:14px;border-radius:20px}.dashboard-section-copy h2{font-size:19px}.dashboard-section-copy>span{display:none}
  .dashboard-shortcut-grid-v3{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.dashboard-shortcut-v3{min-height:88px;border-radius:15px}.dashboard-shortcut-v3>span{width:48px;height:48px}
  .dashboard-pulse-v3{grid-template-columns:1fr 1fr;padding:11px}.dashboard-pulse-title{grid-column:1/-1}.dashboard-pulse-v3>div:not(.dashboard-pulse-title){min-width:0}.dashboard-main-grid-v3{grid-template-columns:1fr}.dashboard-modules-v3 .module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-main-grid-v3>.card,.dashboard-main-grid-v3>.dashboard-modules-v3{padding:12px;border-radius:17px}
}

@media (max-width:700px){
  .dashboard-shortcuts-v3{padding:12px 9px}.dashboard-section-copy{margin-bottom:10px}.dashboard-section-copy h2{font-size:17px}
  .dashboard-shortcut-grid-v3{grid-template-columns:repeat(3,minmax(0,1fr));overflow-x:auto;gap:6px}.dashboard-shortcut-v3{min-height:84px;padding:7px 2px}.dashboard-shortcut-v3>span{width:46px;height:46px;border-radius:14px}.dashboard-shortcut-v3 strong{font-size:8.5px}.dashboard-shortcut-v3 kbd{top:4px;left:4px;font-size:6px}
  .dashboard-pulse-v3{min-height:0}.dashboard-pulse-v3>div>strong{font-size:14px}.dashboard-modules-v3 .module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.dashboard-modules-v3 .module-card{min-height:78px}.dashboard-modules-v3 .module-icon{width:42px;height:42px}.dashboard-activity-v3{overflow:hidden}
}

@media (prefers-reduced-motion:reduce){.dashboard-shortcut-v3{transition:none}}

/* Reusable UI-only analytical pulse for every operational section. */
.section-insights{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:stretch;gap:10px;margin:0 0 14px;padding:10px;border:1px solid #dfe8f5;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 7px 22px rgba(24,53,91,.055)}
.section-insights-title{min-width:145px;display:flex;align-items:center;gap:9px;padding:7px 10px;border-inline-end:1px solid #e5edf7}.section-insights-title>span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e8f1ff;color:#2469d8}.section-insights-title div{display:grid;gap:2px}.section-insights-title strong{font-size:13px;color:#18304f}.section-insights-title small{font-size:9px;color:#7b8ba2}
.section-insights-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}.section-insight-card{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:9px;min-width:0;min-height:70px;padding:9px 10px;border:1px solid #e5ebf4;border-radius:14px;background:#fff}.section-insight-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#edf4ff;color:#2878ff}.section-insight-card>div{display:grid;min-width:0;gap:1px}.section-insight-card small{overflow:hidden;color:#718199;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.section-insight-card strong{overflow:hidden;color:#152b48;font-size:17px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.section-insight-card em{overflow:hidden;color:#8b98aa;font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.section-insight-card.tone-green .section-insight-icon{background:#e6f8ee;color:#15945d}.section-insight-card.tone-red .section-insight-icon{background:#fff0f2;color:#df4c62}.section-insight-card.tone-orange .section-insight-icon{background:#fff4e5;color:#ed8c20}.section-insight-card.tone-purple .section-insight-icon{background:#f2efff;color:#735be4}
@media(max-width:1100px){.section-insights{grid-template-columns:1fr}.section-insights-title{min-width:0;border-inline-end:0;border-bottom:1px solid #e5edf7;padding:3px 4px 8px}.section-insights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.section-insights{padding:8px;border-radius:15px}.section-insights-title>span{width:34px;height:34px}.section-insights-grid{gap:6px}.section-insight-card{grid-template-columns:34px minmax(0,1fr);gap:7px;min-height:64px;padding:7px}.section-insight-icon{width:34px;height:34px}.section-insight-card strong{font-size:14px}.section-insight-card em{font-size:7px}}
@media print{.section-insights{display:none!important}}
