.direction-home,.home-module {
  color:#0a2452;
  --home-border:#c2d9f4;
  --home-shadow:0 4px 9px #18477914,0 1px 3px #18477912;
}
#content[data-screen="dashboard"]:has(.direction-home) {
  padding:16px clamp(12px,1.4vw,24px) 28px;
  background:linear-gradient(145deg,#f0f7ff 16%,#e1eefc);
}
.direction-home {display:grid;gap:12px;max-width:1700px;margin-inline:auto}
.home-welcome,.home-kpi,.home-shortcuts,.home-card {
  min-width:0;
  border:1px solid var(--home-border);
  border-radius:17px;
}
.home-welcome {
  padding:11px 21px 14px;
  background:
    linear-gradient(90deg,#f3f8ff 1%,#eaf4ff 31%,#d8eeff15 74%),
    url("/static/assets/campus-home-hero.jpg") right 49% / min(66%,820px) auto no-repeat,
    linear-gradient(110deg,#f2f8ff,#b9e4ff);
}
.home-welcome h1 {margin:0 0 4px;font-size:clamp(26px,2.45vw,40px);line-height:1.09;letter-spacing:-.045em}
.home-welcome p {margin:0;font-size:clamp(.82rem,1.08vw,1rem);line-height:1.37}
.home-kpis {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.home-kpi {
  display:flex;align-items:center;gap:11px;
  min-height:103px;padding:11px;
  background:linear-gradient(145deg,#fff 18%,var(--tint));box-shadow:var(--home-shadow)
}
.home-kpi img {width:clamp(29px,3.2vw,52px);height:auto;flex:none}
.home-kpi h2 {margin:0 0 4px;font-size:clamp(.76rem,1.03vw,.96rem);line-height:1.15}
.home-kpi strong {display:block;font-size:clamp(1.16rem,2vw,2rem);letter-spacing:-.05em;line-height:1.1;overflow-wrap:anywhere}
.home-kpi small {display:block;color:#3c5578;font-size:.72rem;line-height:1.2;margin-top:4px}
.home-sky {--tint:#d1f4fa}.home-mint {--tint:#ccf4e5}.home-rose {--tint:#fce5ec}
.home-lavender {--tint:#eae2fa}.home-ice {--tint:#e4efff}

.home-shortcuts,.home-card,.home-module {
  background:linear-gradient(150deg,#fff,#f0f7ff);box-shadow:var(--home-shadow)
}
.home-shortcuts {display:flex;align-items:center;gap:14px;padding:9px 12px;flex-wrap:wrap}
.home-shortcuts h2 {margin:0;font-size:1.05rem;white-space:nowrap}
.home-shortcut-buttons {display:flex;flex:1 1 460px;flex-wrap:wrap;gap:7px}
.home-action {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:42px;padding:7px 12px;border:1px solid #bdd8f6;border-radius:12px;
  background:linear-gradient(155deg,#fff,#e7f1ff);color:#123969;
  font:inherit;font-size:.82rem;font-weight:750;line-height:1.16;cursor:pointer;text-align:start;
}
.home-action img {width:24px;height:24px;flex:none;object-fit:contain}
.home-action-primary {background:linear-gradient(160deg,#f1fff9,#ccf1e1);border-color:#b6e5d7;color:#124f3f}
.home-action:hover {background:#d8eaff;border-color:#8fbae9}
.home-action-primary:hover {background:#bce9d7;border-color:#83c3b3}
.home-action:focus-visible,.home-link:focus-visible,.home-alerts button:focus-visible {outline:2px solid #1261c5;outline-offset:2px}
.home-module {border:1px solid var(--home-border);border-radius:17px;padding:clamp(14px,2vw,28px)}
.home-module h1 {margin:0 0 14px;font-size:clamp(1.4rem,2.25vw,2rem)}
.home-module-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:10px}
.home-module-grid .home-action {justify-content:flex-start;min-height:70px;padding:10px 14px;font-size:.98rem}
.home-module-grid .home-action img {width:32px;height:32px}

.home-panels {display:grid;grid-template-columns:1.08fr 1.04fr 1fr;gap:12px}
.home-card {padding:12px;box-shadow:var(--home-shadow)}
.home-card header {display:flex;align-items:center;gap:6px;margin-bottom:9px;min-height:26px}
.home-card header img {width:25px;height:25px;object-fit:contain;flex:none}
.home-card h2 {font-size:clamp(.88rem,1.17vw,1.09rem);line-height:1.18;margin:0;letter-spacing:-.025em}
.home-link {color:#1153b7;border:0;background:none;font:inherit;font-size:.73rem;font-weight:750;
  margin-inline-start:auto;padding:5px 3px;cursor:pointer;white-space:nowrap}
.home-link:hover {text-decoration:underline}
.home-table-wrap {overflow-x:auto;border-radius:8px}
.home-card .home-table {width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:.74rem}
.home-card .home-table :is(td,th) {padding:5px;border-bottom:1px solid #dce9f8;text-align:start;line-height:1.19}
.home-card .home-table th {background:#dceafe;color:#122e54;white-space:normal;font-size:.72rem;text-transform:none;letter-spacing:0}
.home-card .home-table td {white-space:normal;overflow-wrap:anywhere}
.home-card .home-table th:nth-child(1) {width:29%}
.home-card .home-table th:nth-child(2) {width:27%}
.home-card .home-table th:nth-child(3) {width:26%}
.home-card .home-table th:nth-child(4) {width:18%}
.home-card .home-table td:first-child {white-space:nowrap;font-variant-numeric:tabular-nums}
.home-amount {
  background:none;border:0;padding:0;color:#123969;cursor:pointer;font:inherit;
  font-weight:750;text-align:right;overflow-wrap:anywhere;
}
.home-amount:hover {text-decoration:underline}
.home-amount:focus-visible {outline:2px solid #1261c5;outline-offset:1px}
.home-card .home-table td:first-child::before {content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#19a872;margin-right:5px}
.home-card .home-table :is(td,th):last-child {text-align:end;font-weight:750}
.home-card .home-table tbody tr:nth-child(even) {background:#eaf3ff65}
.home-empty {margin:14px 4px;color:#466083;font-size:.85rem}
.home-academic {display:grid;grid-template-columns:minmax(80px,1fr) minmax(135px,1.6fr);align-items:center;gap:10px}
.home-average {aspect-ratio:1;width:100%;max-width:136px;justify-self:center;border-radius:50%;
  background:conic-gradient(#1276f2 0%,#09b8df var(--grade),#dae8fa var(--grade));padding:9%;
  display:grid;place-items:center;text-align:center}
.home-average > div {width:100%;height:100%;background:#f8fbff;border-radius:50%;display:grid;place-content:center;padding:5px}
.home-average strong {font-size:clamp(1.5rem,2.5vw,2.35rem);line-height:1}
.home-average span {font-size:.67rem;margin-top:4px;line-height:1.1}
.home-academic dl {margin:0;font-size:.74rem}
.home-academic dl > div {display:flex;justify-content:space-between;align-items:center;gap:4px;border-bottom:1px solid #dce9f8;padding:6px 3px}
.home-academic dd {margin:0;font-weight:750}
.home-distribution {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:12px}
.home-bar {min-width:0;text-align:center;font-size:.72rem;font-weight:700}
.home-bar-track {height:105px;border-bottom:1px solid #8ab8ed;display:flex;align-items:flex-end}
.home-bar-track > div {position:relative;height:var(--share);width:100%;border-radius:7px 7px 0 0;background:var(--bar)}
.home-bar-track strong {position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-bottom:3px;white-space:nowrap}
.home-bar:nth-child(1) {--bar:#fa6b75}.home-bar:nth-child(2) {--bar:#ffbc60}
.home-bar:nth-child(3) {--bar:#3daafb}.home-bar:nth-child(4) {--bar:#4bbd48}
.home-bar > span {display:block;margin-top:4px;white-space:nowrap}

.home-agenda,.home-alerts,.home-methods {list-style:none;margin:0;padding:0}
.home-agenda li {
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;
  padding:7px 2px;border-bottom:1px solid #dbe9f8;font-size:.77rem
}
.home-agenda time,.home-alerts b {border-radius:20px;padding:4px 8px;background:#d8eafe;
  text-align:center;font-size:.72rem;font-weight:750;white-space:nowrap}
.home-agenda small,.home-alerts small {color:#426083;display:block;font-size:.7rem;margin-top:2px}
.home-agenda small {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-methods li {display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 1px;font-size:.75rem}
.home-methods img,.home-alerts img {width:22px;height:22px;object-fit:contain}
.home-methods li > div > div:first-child {display:flex;justify-content:space-between;gap:7px}
.home-method-track {border-radius:8px;background:#e0eaf7;height:7px;margin-top:3px;overflow:hidden}
.home-method-track span {display:block;border-radius:8px;height:100%;background:linear-gradient(90deg,#0e65eb,#4a9fff)}
.home-methods li:nth-child(2) .home-method-track span {background:#17a9d9}
.home-methods li:nth-child(3) .home-method-track span {background:#9360f4}
.home-total {background:#dcebff;border-radius:8px;margin:7px 0 0;padding:6px 9px;
  display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:.77rem}
.home-total b {font-size:1rem}
.home-alerts li > :is(button,div) {
  display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:8px;
  width:100%;background:transparent;border:0;border-bottom:1px solid #dce9f8;color:inherit;
  text-align:start;font:inherit;font-size:.76rem;padding:5px 2px;
}
.home-alerts button {cursor:pointer}
.home-alerts button:hover {background:#e4efff}
.home-alerts li:first-child b {background:#ffdce2;color:#a01e37}
.home-alerts li:nth-child(2) b {background:#ffead2;color:#854518}

@media(max-width:1200px) {
  .home-panels {grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-kpi {min-height:86px;gap:7px;padding:8px}
}
@media(max-width:850px) {
  .home-kpis {grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-kpi strong {font-size:1.36rem}
}
@media(max-width:575px) {
  .home-panels {grid-template-columns:minmax(0,1fr)}
  .home-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-welcome {background:linear-gradient(115deg,#f4f9ff,#d5edff);padding:12px}
  .home-action {padding-inline:8px}
}
