.brand-block{
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px;
  align-items:center;
  gap:8px;
  padding:12px 10px;
  border-bottom:1px solid var(--line);
  min-width:0;
}

.brand-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  overflow:hidden;
}

.brand-icon{
  width:30px;
  height:30px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--purple1),var(--purple2));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:18px;
  letter-spacing:-0.03em;
  flex:0 0 30px;
}

.brand-copy{
  min-width:0;
  overflow:hidden;
}

.brand-copy h2{
  margin:0;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:-0.02em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-copy p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-toggle{
  width:30px;
  height:30px;
  border:1px solid var(--line);
  background:#f6f7fb;
  border-radius:10px;
  display:grid;
  place-items:center;
  cursor:pointer;
  padding:0;
  flex:0 0 30px;
  justify-self:end;
}

.sidebar-toggle svg{
  width:14px;
  height:14px;
  stroke:#556176;
  fill:none;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease;
}

.sidebar-nav{
  padding:10px 8px;
  display:grid;
  gap:6px;
  min-width:0;
}

.sidebar-link,
.logout-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  color:#556176;
  font-weight:800;
  font-size:12px;
  border:1px solid transparent;
  transition:.2s ease;
  min-width:0;
}

.sidebar-link:hover,
.logout-link:hover{
  background:#f7f8fc;
}

.sidebar-link.active{
  background:#edf7f6;
  color:#0f766e;
  border-color:#bfe8e3;
}

.nav-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  flex:0 0 22px;
}

.nav-icon svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.sidebar-footer{
  margin-top:auto;
  padding:10px 8px;
  border-top:1px solid var(--line);
  min-width:0;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.input-lite,
.select-lite,
.btn-primary,
.btn-ghost{
  min-height:42px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  padding:0 14px;
  font-size:14px;
  color:var(--text);
}

.btn-primary{
  background:linear-gradient(135deg,var(--purple1),var(--purple2));
  color:#fff;
  border:0;
  font-weight:800;
  box-shadow:0 12px 24px rgba(109,40,217,.18);
}

.btn-ghost{
  background:#fff;
  color:var(--text);
  font-weight:700;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.card-pad{
  padding:18px;
}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.kpi-card{
  padding:18px;
  display:grid;
  gap:10px;
}

.kpi-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.kpi-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:18px;
}

.kpi-icon.green{background:var(--green-soft);color:var(--green)}
.kpi-icon.orange{background:var(--orange-soft);color:var(--orange)}
.kpi-icon.red{background:var(--red-soft);color:var(--red)}
.kpi-icon.teal{background:var(--teal-soft);color:var(--teal)}
.kpi-icon.purple{background:#efe8ff;color:var(--purple2)}

.kpi-chip{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  background:#f4f6fa;
  color:var(--muted);
}

.kpi-value{
  font-size:34px;
  font-weight:900;
  line-height:1;
  letter-spacing:-0.03em;
}

.kpi-label{
  color:var(--muted);
  font-size:14px;
}

.split-grid{
  display:grid;
  grid-template-columns:1.65fr .85fr;
  gap:16px;
}

.sub-grid{
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:16px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.panel-head h3{
  margin:0;
  font-size:17px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:-0.02em;
}

.panel-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:18px;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:1320px;
}

th,td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}

th{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  background:#fbfcff;
}

td{
  font-size:14px;
}

tr:last-child td{
  border-bottom:0;
}

.emp-cell{
  display:flex;
  align-items:center;
  gap:12px;
}

.emp-avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,#21b4a6,#0f766e);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:14px;
}

.emp-meta strong{
  display:block;
  font-size:14px;
  line-height:1.15;
}

.emp-meta span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.badge.green{background:var(--green-soft);color:var(--green)}
.badge.orange{background:var(--orange-soft);color:var(--orange)}
.badge.red{background:var(--red-soft);color:var(--red)}
.badge.purple{background:#efe8ff;color:var(--purple2)}
.badge.teal{background:var(--teal-soft);color:var(--teal)}

.flag-break{
  color:var(--red);
  font-weight:900;
}

.feed-list{
  display:grid;
  gap:12px;
  max-height:320px;
  overflow:auto;
}

.feed-item{
  display:grid;
  grid-template-columns:48px 1fr auto;
  gap:12px;
  align-items:center;
}

.feed-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-weight:900;
}

.feed-copy strong{
  display:block;
  font-size:14px;
}

.feed-copy span{
  display:block;
  color:var(--muted);
  margin-top:4px;
  font-size:12px;
}

.feed-time{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

.quick-list{
  display:grid;
  gap:12px;
}

.quick-item{
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px;
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:800;
  font-size:14px;
}

.mini-note{
  color:var(--muted);
  font-size:12px;
}

.chart-box{
  height:300px;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fcfb,#f4f8ff);
  border:1px solid var(--line);
  padding:16px;
  position:relative;
  overflow:hidden;
}

.chart-box svg{
  width:100%;
  height:100%;
}

.legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.legend span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}

.legend i{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
}

@media (max-width:1280px){
  .kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .split-grid,
  .sub-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:1100px){
  .sidebar-toggle{
    display:none;
  }
}