.qedu-director-command {
  --command-ink:#10213b;
  --command-muted:#64748b;
  --command-border:#e3eaf3;
  --command-surface:#ffffff;
  display:grid;
  gap:18px;
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
  color:var(--command-ink);
}

.qedu-director-command * { box-sizing:border-box; }

.qedu-command-hero {
  position:relative;
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
  padding:28px 32px;
  border:1px solid #dcdcfb;
  border-radius:24px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.2), transparent 30%),
    linear-gradient(135deg,#4323a9 0%,#6d2ee9 48%,#2563eb 100%);
  box-shadow:0 18px 42px rgba(76,45,190,.18);
}

.qedu-command-hero::after {
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-72px;
  bottom:-160px;
  border:30px solid rgba(255,255,255,.1);
  border-radius:50%;
}

.qedu-command-hero > div,
.qedu-command-hero > i { position:relative; z-index:1; }
.qedu-command-hero > i { font-size:64px; opacity:.9; }
.qedu-command-hero span,
.qedu-command-section header > div > span,
.qedu-command-balance > span {
  display:block;
  margin-bottom:7px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}
.qedu-command-hero h2 { margin:0 0 9px; font-size:30px; line-height:1.15; color:#fff; }
.qedu-command-hero p { margin:0; color:rgba(255,255,255,.82); font-weight:600; }
.qedu-command-hero p i { margin-right:7px; font-size:8px; color:#6ee7b7; }

.qedu-command-section {
  min-width:0;
  padding:20px;
  border:1px solid var(--command-border);
  border-radius:20px;
  background:var(--command-surface);
  box-shadow:0 9px 26px rgba(15,23,42,.045);
}

.qedu-command-section > header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.qedu-command-section header > div > span { color:#7c3aed; }
.qedu-command-section h3 { margin:0; font-size:19px; color:var(--command-ink); }
.qedu-command-section > header > em,
.qedu-command-section > header > b { color:var(--command-muted); font-size:12px; font-style:normal; }

.qedu-command-metric-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.qedu-command-metric-grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.qedu-command-metric {
  position:relative;
  min-width:0;
  min-height:106px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:15px;
  border:1px solid #e6edf6;
  border-radius:16px;
  background:#fbfdff;
}
.qedu-command-metric[role="button"] { cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.qedu-command-metric[role="button"]:hover { transform:translateY(-2px); border-color:#c9d5e8; box-shadow:0 10px 20px rgba(15,23,42,.07); }
.qedu-command-metric-icon {
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#2563eb;
  background:#eaf2ff;
}
.qedu-command-metric > div { min-width:0; display:flex; flex-direction:column; }
.qedu-command-metric small { color:var(--command-muted); font-weight:700; line-height:1.25; }
.qedu-command-metric strong { margin-top:6px; color:var(--command-ink); font-size:22px; line-height:1.1; overflow-wrap:anywhere; }
.qedu-command-metric em { margin-top:6px; color:#8794a8; font-size:11px; font-style:normal; line-height:1.35; }
.qedu-command-metric-arrow { position:absolute; right:12px; top:12px; color:#a8b4c5; font-size:10px; }
.qedu-command-metric.green .qedu-command-metric-icon { color:#15803d; background:#e8f8ed; }
.qedu-command-metric.red .qedu-command-metric-icon { color:#dc2626; background:#feeeee; }
.qedu-command-metric.purple .qedu-command-metric-icon { color:#7c3aed; background:#f1eafe; }
.qedu-command-metric.cyan .qedu-command-metric-icon { color:#0e7490; background:#e4f8fc; }
.qedu-command-metric.amber .qedu-command-metric-icon { color:#c2410c; background:#fff3df; }

.qedu-command-two-column {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.qedu-command-planning { overflow:hidden; }
.qedu-command-planning-layout {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr);
  gap:16px;
}
.qedu-command-plan-cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.qedu-command-balance {
  min-height:100%;
  padding:22px;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(145deg,#0f766e,#16a34a);
}
.qedu-command-balance.negative { background:linear-gradient(145deg,#b91c1c,#e8590c); }
.qedu-command-balance strong { display:block; margin:8px 0; font-size:30px; color:#fff; }
.qedu-command-balance p { margin:0; color:rgba(255,255,255,.78); font-size:12px; line-height:1.5; }
.qedu-command-balance > div { height:7px; margin-top:22px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.22); }
.qedu-command-balance > div > span { display:block; height:100%; border-radius:inherit; background:#fff; }

.qedu-command-attendance-layout {
  display:grid;
  grid-template-columns:minmax(310px,.75fr) minmax(420px,1.25fr);
  gap:16px;
}
.qedu-command-attendance-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.qedu-command-table-wrap { min-width:0; overflow:auto; border:1px solid #e7edf5; border-radius:16px; }
.qedu-command-table-wrap table { width:100%; border-collapse:collapse; }
.qedu-command-table-wrap th,
.qedu-command-table-wrap td { padding:12px 14px; border-bottom:1px solid #edf1f6; text-align:left; white-space:nowrap; }
.qedu-command-table-wrap th { color:#66758c; background:#f8fafc; font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.qedu-command-table-wrap td { font-size:13px; }
.qedu-command-table-wrap tbody tr:last-child td { border-bottom:0; }
.qedu-command-table-wrap td.positive { color:#15803d; font-weight:800; }
.qedu-command-table-wrap td.negative { color:#dc2626; font-weight:800; }
.qedu-command-percent { display:inline-flex; padding:4px 8px; border-radius:999px; color:#15803d; background:#e9f8ed; font-weight:800; }
.qedu-command-empty { color:#8794a8; text-align:center !important; white-space:normal !important; }

.qedu-command-registers { display:grid; gap:9px; }
.qedu-command-registers article {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #e9eef5;
  border-radius:13px;
  background:#fbfdff;
}
.qedu-command-registers article > span { display:flex; min-width:0; flex-direction:column; gap:3px; }
.qedu-command-registers strong { color:var(--command-ink); }
.qedu-command-registers small { overflow:hidden; color:var(--command-muted); text-overflow:ellipsis; white-space:nowrap; }
.qedu-command-registers b { color:#15803d; }
.qedu-command-empty-block { min-height:150px; display:grid; place-content:center; justify-items:center; color:#94a3b8; text-align:center; }
.qedu-command-empty-block i { font-size:28px; }
.qedu-command-empty-block p { margin:8px 0 0; }

.qedu-command-existing .user-view-card { margin:0; }
.qedu-command-existing .user-view-controls { flex-wrap:wrap; }
.qedu-command-existing .user-view-controls .input { min-width:220px; flex:1; }
.qedu-command-user-count { padding:5px 9px; border-radius:999px; color:#6d28d9 !important; background:#f1eafe; }

.qedu-command-error {
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:34px;
  border:1px solid #fecaca;
  border-radius:22px;
  background:#fff;
  text-align:left;
}
.qedu-command-error > i { color:#dc2626; font-size:44px; }
.qedu-command-error h2 { margin:0 0 8px; }
.qedu-command-error p { margin:0 0 16px; color:var(--command-muted); }

.qedu-command-loading-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.qedu-command-loading-grid span { height:120px; border-radius:18px; background:linear-gradient(90deg,#edf2f7 25%,#f8fafc 45%,#edf2f7 65%); background-size:300% 100%; animation:qedu-command-shimmer 1.25s infinite linear; }
@keyframes qedu-command-shimmer { to { background-position:-300% 0; } }

@media (max-width:1350px) {
  .qedu-command-plan-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .qedu-command-attendance-layout { grid-template-columns:1fr; }
}

@media (max-width:1050px) {
  .qedu-command-metric-grid.four,
  .qedu-command-loading-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .qedu-command-two-column,
  .qedu-command-planning-layout { grid-template-columns:1fr; }
}

@media (max-width:720px) {
  .qedu-director-command { gap:12px; }
  .qedu-command-hero { min-height:132px; padding:22px; border-radius:18px; }
  .qedu-command-hero h2 { font-size:24px; }
  .qedu-command-hero > i { font-size:44px; }
  .qedu-command-section { padding:15px; border-radius:16px; }
  .qedu-command-section > header { align-items:flex-start; flex-wrap:wrap; }
  .qedu-command-section > header .btn { padding:8px; font-size:0; }
  .qedu-command-section > header .btn i { font-size:12px; }
  .qedu-command-metric-grid,
  .qedu-command-metric-grid.four,
  .qedu-command-plan-cards,
  .qedu-command-attendance-summary { grid-template-columns:1fr; }
  .qedu-command-metric { min-height:92px; }
  .qedu-command-attendance-layout { grid-template-columns:minmax(0,1fr); }
  .qedu-command-table-wrap { width:100%; max-width:100%; }
  .qedu-command-error { align-items:flex-start; flex-direction:column; }
}

@media (max-width:480px) {
  .qedu-command-hero > i { display:none; }
  .qedu-command-hero h2 { font-size:21px; }
  .qedu-command-planning > header > em { width:100%; }
  .qedu-command-balance strong { font-size:25px; }
}
