:root{
  --navy:#0d2040;
  --text:#081d46;
  --muted:#566b8d;
  --blue:#287ff0;
  --bg:#edf4fb;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:13px}
button,input,select{font:inherit}
a{text-decoration:none;color:inherit}
.app{display:flex;min-height:100vh}
.sidebar{
  width:265px;flex:0 0 265px;min-height:100vh;
  background:linear-gradient(155deg,#172b49,#142740 75%,#1b3455);
  color:#c5d6ef;position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;overflow-y:auto
}
.brand{height:80px;display:flex;align-items:center;gap:13px;padding:0 22px;color:#fff;font-size:25px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.brand-icon{font-size:34px;color:#348dff}
.brand-blue{color:#4e9cff}
.side-nav{padding:7px 13px;display:flex;flex-direction:column;gap:3px}
.nav-item{height:47px;display:flex;align-items:center;gap:17px;padding:0 12px;border-radius:10px;font-size:15px;color:#c5d6ef}
.nav-item:hover{background:#29496e;color:white}
.nav-item.active{background:linear-gradient(110deg,#2d86f4,#2774e8);color:white}
.nav-icon{font-size:24px;width:29px;text-align:center;color:#a6c2e8;font-weight:bold}
.nav-item.active .nav-icon{color:#fff}
.sidebar-bottom{margin-top:auto;min-height:145px;display:flex;flex-direction:column;justify-content:flex-end;padding:0 0 33px 45px;gap:5px;color:#94abc9;font-size:10px;letter-spacing:3px;background:linear-gradient(0deg,rgba(6,17,35,.35),transparent)}
.workspace{flex:1;min-width:0}
.topbar{height:68px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:20px;border-bottom:1px solid #e3eaf2}
.search-wrap{height:43px;width:min(540px,52%);background:#f0f4f9;border-radius:9px;display:flex;align-items:center;gap:13px;padding:0 16px}
.search-icon{font-size:27px;color:#617b9f}
.search-wrap input{width:100%;border:0;outline:0;background:transparent;color:#18345a;font-size:14px}
.search-wrap input::placeholder{color:#8597b0}
.topbar-right{display:flex;align-items:center;gap:15px}
.notification-button{border:0;background:transparent;font-size:26px;color:#0c2857;position:relative;cursor:pointer}
.notification-count{position:absolute;top:-4px;right:-7px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e2232d;color:white;font-size:10px;font-weight:bold}
.profile-avatar{width:42px;height:42px;border-radius:50%;background:#456da6;color:white;display:grid;place-items:center;font-size:15px}
.profile-info{display:flex;flex-direction:column;gap:4px;min-width:112px}
.profile-info strong{font-size:13px;color:#12356a}
.profile-info span{font-size:12px;color:#6980a0}
.profile-chevron{font-size:23px;color:#163c73;margin-left:9px}
main{padding:0 20px 25px}
.dashboard-heading{
  height:255px;display:flex;align-items:center;justify-content:space-between;
  padding:0 22px 0 3px;
  background-image:linear-gradient(90deg,#edf4fb 0%,rgba(237,244,251,.94) 25%,rgba(237,244,251,.2) 57%,rgba(237,244,251,0) 100%),url('/Assets/Images/hero-bg.png');
  background-size:cover;background-position:center
}
.heading-text h1{font-size:39px;line-height:1.1;margin:0 0 4px;letter-spacing:-1.5px;color:#091e47}
.heading-text p{font-size:18px;color:#4b6387;margin:0}
.hero-motto{display:flex;flex-direction:column;gap:6px;border-left:2px solid #318bff;padding-left:12px;color:#3d547b;font-size:11px;letter-spacing:2.5px;font-weight:800}
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:5px;margin-bottom:15px}
.kpi{min-height:121px;border-radius:11px;border:2px solid #fff;display:flex;align-items:flex-start;gap:14px;padding:17px 13px;box-shadow:0 2px 8px rgba(35,70,120,.035)}
.kpi-blue{background:#e9f3fe}.kpi-green{background:#e7f9f0}.kpi-red{background:#fff0f2}.kpi-orange{background:#fff7ec}.kpi-purple{background:#f1edff}
.kpi-symbol{font-size:34px;line-height:1;color:#0a458d;width:49px;flex-shrink:0;text-align:center}
.kpi-green .kpi-symbol{color:#078e47}.kpi-red .kpi-symbol{color:#e2323c}.kpi-orange .kpi-symbol{color:#c97800}.kpi-purple .kpi-symbol{color:#5a359c}
.kpi-body{min-width:0}
.kpi-body h2{font-size:13px;font-weight:700;margin:3px 0 6px;white-space:nowrap;color:#183966}
.kpi-body strong{font-size:30px;line-height:1.1;color:#091b43}
.kpi-body p{font-size:11px;color:#657a99;margin:10px 0 0;white-space:nowrap}
.trend-up{color:#0bae6a}.trend-red{color:#e52e39}.trend-orange{color:#e38c0a}
.analytics-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:13px;margin-bottom:15px}
.panel{background:#fff;border-radius:11px;padding:15px 16px;box-shadow:0 2px 10px rgba(22,55,95,.035);min-width:0}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}
.panel-heading h2{font-size:17px;margin:0;display:flex;align-items:center;gap:12px;color:#0b2047}
.panel-icon{font-size:25px;color:#0a2b61;width:29px;text-align:center}
.panel-heading select{height:32px;padding:0 12px;background:#fff;border:1px solid #dce6f2;border-radius:6px;color:#435c7e;font-size:12px}
.panel-heading a{font-size:12px;color:#0876e8;white-space:nowrap}
.hours-panel,.project-status-panel{height:252px}
.hours-content{display:flex;align-items:center;gap:22px}
.hours-chart{display:flex;flex:1;min-width:0;height:174px;gap:10px}
.chart-y-axis{display:flex;flex-direction:column;justify-content:space-between;height:135px;color:#607492;font-size:11px;text-align:right}
.chart-main{flex:1;min-width:0}
.chart-main svg{width:100%;height:135px;overflow:visible}
.chart-days{display:flex;justify-content:space-between;margin-top:7px;font-size:11px;color:#607492;text-align:center}
.chart-days small{display:block;margin-top:3px;font-size:10px}
.hours-total{width:112px;flex-shrink:0;display:flex;flex-direction:column;gap:8px}
.hours-total strong{font-size:27px;color:#091e49}
.hours-total span{color:#5d7294;font-size:13px;line-height:1.4}
.hours-total b{font-size:18px;color:#0eaa68;margin-top:12px}
.status-chart{height:174px;display:flex;gap:13px;padding:9px 0 0}
.status-axis{height:139px;display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:#566b8d}
.status-bars{flex:1;display:grid;grid-template-columns:repeat(5,1fr);gap:18px;border-bottom:1px solid #dce6f2;background:repeating-linear-gradient(to bottom,#e8eef6 0,#e8eef6 1px,transparent 1px,transparent 27.8px);height:139px}
.status-bar{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.status-bar b{position:absolute;bottom:calc(var(--bar-height) + 5px);font-size:13px}
.status-bar i{height:var(--bar-height);width:65%;max-width:65px;background:var(--bar-color);border-radius:3px 3px 0 0}
.status-bar span{position:absolute;top:calc(100% + 9px);white-space:nowrap;font-size:11px;color:#4e6485}
.detail-grid{display:grid;grid-template-columns:1.45fr 1.05fr .93fr;gap:11px;align-items:start}
.assignments-panel,.briefings-panel{min-height:339px}
.table-scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:11px}
thead{background:#f0f5fa}
th{text-align:left;padding:10px 9px;color:#2a4368;font-size:11px;white-space:nowrap}
td{padding:9px;border-bottom:1px solid #e6edf4;color:#1b3359;vertical-align:middle}
td small{display:block;color:#7084a2;font-size:10px;margin-top:3px}
.person{display:flex;align-items:center;gap:7px;white-space:nowrap}
.person i{width:29px;height:29px;flex-shrink:0;border-radius:50%;background:#397de4;color:#fff;display:grid;place-items:center;font-size:10px;font-style:normal}
tbody tr:nth-child(2) .person i{background:#5273b4}
tbody tr:nth-child(3) .person i{background:#4d6fa9}
tbody tr:nth-child(4) .person i{background:#7651ae}
tbody tr:nth-child(5) .person i{background:#70518e}
.pill{display:inline-block;padding:7px 10px;border-radius:20px;font-size:10px;text-align:center;white-space:nowrap}
.pill.green{background:#daf5e6;color:#078c50}
.pill.blue{background:#dfedff;color:#0870db}
.pill.gray{background:#e9edf2;color:#64748a}
.pill.amber{background:#fff0d9;color:#b66d09}
.briefing-row{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e6edf4;padding:9px 0}
.briefing-row>div:first-child{flex:1;min-width:0}
.briefing-row strong,.alert-row strong,.material-row strong{display:block;font-size:11px;color:#0c2148}
.briefing-row small,.alert-row small,.material-row small{display:block;font-size:10px;color:#6980a0;margin-top:4px}
.briefing-row .pill{min-width:72px}
.qr{font-size:24px;color:#0a2147;line-height:1}
.signed{min-width:40px}
.signed b{display:block;font-size:13px}
.right-stack{display:flex;flex-direction:column;gap:11px}
.right-stack .panel{padding:13px 14px}
.right-stack .panel-heading{margin-bottom:8px}
.right-stack .panel-heading h2{font-size:15px;gap:8px}
.alert-row,.material-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e8edf4}
.alert-row:last-child,.material-row:last-child,.briefing-row:last-child{border-bottom:0}
.alert-row>div,.material-row>div{flex:1;min-width:0}
.alert-row>span:last-child{font-size:23px;color:#44638b}
.alert-symbol{width:24px;height:24px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;color:#fff;font-weight:800;font-size:15px}
.alert-symbol.red{background:#e52d37}.alert-symbol.orange{background:#ff970e}
.material-icon{width:36px;height:31px;background:#e7edf4;border-radius:5px;display:grid;place-items:center;color:#758397;font-size:23px}
.material-row .pill{min-width:76px}
@media(max-width:1450px){
  .sidebar{width:235px;flex-basis:235px}
  .brand{font-size:21px;padding:0 14px}
  .nav-item{font-size:13px}
  .kpi{gap:7px;padding:13px 8px}
  .kpi-symbol{width:30px;font-size:27px}
  .kpi-body h2{font-size:11px}
  .kpi-body strong{font-size:25px}
  .kpi-body p{font-size:9px}
  .detail-grid{grid-template-columns:1.2fr 1fr}
  .right-stack{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr}
}
@media(max-width:1050px){
  .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .analytics-grid{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr}
  .right-stack{grid-column:auto}
  .hours-panel,.project-status-panel{height:auto;min-height:252px}
}
@media(max-width:720px){
  .app{display:block}
  .sidebar{position:relative;width:100%;height:auto;min-height:0}
  .brand{height:58px}
  .side-nav{flex-direction:row;overflow-x:auto;padding:5px 10px}
  .nav-item{white-space:nowrap;flex-shrink:0}
  .sidebar-bottom{display:none}
  .topbar{padding:0 12px}
  .search-wrap{width:100%}
  .profile-info,.profile-chevron{display:none}
  main{padding:0 10px 20px}
  .dashboard-heading{height:105px}
  .heading-text h1{font-size:29px}
  .heading-text p{font-size:13px}
  .hero-motto{font-size:9px}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .right-stack{grid-template-columns:1fr}
}
@media(max-width:420px){
  .kpi{min-height:112px}
  .kpi-symbol{display:none}
  .hours-content{gap:7px}
  .hours-total{width:75px}
  .hours-total strong{font-size:20px}
  .hours-total span{font-size:10px}
  .status-bars{gap:5px}
  .status-bar span{font-size:9px}
}

/* Uploaded WyseTrack branding */
.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}
.dashboard-heading {
    background-image: url('/Assets/Images/hero-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}


/* WYSETRACK DASHBOARD COMPONENT GRID */
.db-dashboard{display:flex;flex-direction:column;gap:14px;margin-top:0}
.db-row{display:grid;gap:12px;align-items:stretch}
.db-row-1{grid-template-columns:repeat(3,minmax(0,1fr))}
.db-row-2,.db-row-3{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.db-row-4{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.db-row-5{grid-template-columns:repeat(4,minmax(0,1fr))}
.db-slot{min-width:0;display:flex;align-self:stretch}
.db-panel{background:#fff;border-radius:11px;box-shadow:0 2px 10px rgba(22,55,95,.05);padding:16px;width:100%;height:100%;display:flex;flex-direction:column;min-width:0}
.db-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.db-panel-header h2{font-size:17px;color:#0b2047;margin:0}
.db-panel-header a{font-size:12px;color:#0876e8;white-space:nowrap}
.db-panel-content{flex:1;min-width:0}
.db-bar-chart{display:flex;align-items:stretch;justify-content:space-around;gap:12px;height:205px;padding:12px 5px 0;border-bottom:1px solid #dce6f2}
.db-bar-item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}
.db-bar-value{font-size:12px;font-weight:700;margin-bottom:5px}
.db-bar-track{height:160px;width:100%;max-width:54px;display:flex;align-items:flex-end}
.db-bar-fill{width:100%;border-radius:4px 4px 0 0}
.db-bar-label{font-size:10px;color:#607492;text-align:center;min-height:29px;margin-top:7px}
.db-chart-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.db-chart-summary strong{font-size:26px;color:#0b2047}
.db-chart-summary span{font-size:12px;color:#607492}
.db-chart-summary b{font-size:12px;color:#0eaa68}
.db-line-chart svg{width:100%;height:168px;display:block;overflow:visible}
.db-chart-labels{display:flex;justify-content:space-between;color:#607492;font-size:11px;margin-top:5px}
.db-donut-layout{display:flex;align-items:center;justify-content:center;gap:20px;min-height:220px;flex-wrap:wrap}
.db-donut{width:175px;height:175px;border-radius:50%;background:conic-gradient(#3186ed 0 45%,#31bd91 45% 70%,#f5ad44 70% 90%,#8d79db 90% 100%);display:grid;place-items:center}
.db-donut-center{width:108px;height:108px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.db-donut-center strong{font-size:24px}
.db-donut-center small{font-size:11px;color:#607492}
.db-legend{display:flex;flex-direction:column;gap:12px;min-width:115px}
.db-legend div{display:flex;align-items:center;gap:7px;font-size:12px}
.db-legend i{width:11px;height:11px;border-radius:3px}
.db-legend strong{margin-left:auto}
.db-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.db-filters label{font-size:12px;color:#607492;display:flex;align-items:center;gap:8px}
.db-filters select{background:#fff;border:1px solid #dce6f2;border-radius:6px;padding:7px;color:#1c385d}
.db-record{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #e6edf4}
.db-record:last-child{border-bottom:0}
.db-record>div{min-width:0}
.db-record strong{display:block;font-size:12px;color:#0c2148}
.db-record small{display:block;font-size:11px;color:#6980a0;margin-top:5px}
.db-status{display:inline-block;padding:6px 9px;border-radius:20px;font-size:10px;white-space:nowrap}
.db-status.green{background:#daf5e6;color:#078c50}
.db-status.blue{background:#dfedff;color:#0870db}
.db-status.amber{background:#fff0d9;color:#b66d09}
.db-status.red{background:#ffe5e7;color:#d52b37}
.db-status.gray{background:#e9edf2;color:#64748a}
.db-table-wrap{overflow-x:auto}
.db-table{width:100%;border-collapse:collapse;font-size:11px}
.db-table th{text-align:left;background:#f0f5fa;padding:10px 8px;color:#2a4368;white-space:nowrap}
.db-table td{padding:11px 8px;border-bottom:1px solid #e6edf4;vertical-align:middle}
.db-table td small{color:#7084a2}
@media(max-width:1200px){
 .db-row-1{grid-template-columns:repeat(2,minmax(0,1fr))}
 .db-row-5{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .db-row-1,.db-row-2,.db-row-3,.db-row-4,.db-row-5{grid-template-columns:minmax(0,1fr)}
}
