/* Admin palette and Dashboard layout */
#admin{
  --ink:#122e2d;--nav:#102c2b;--nav-deep:#0a2221;--muted:#4c6864;
  --paper:#eff5f3;--line:#dbe7e3;--accent:#006557;--green:#006557;
  --shadow:0 2px 5px #142d2808;
  background:var(--paper);color:var(--ink);
}
#admin .sidebar{background:linear-gradient(165deg,#163b36,#0d2827 62%);border-right:1px solid #214945;color:#e1f0eb}
#admin .sidebar .logo{background:#bdf5d8;color:#123b33;border-radius:11px}
#admin .side-label{color:#adc6be;font-weight:650;margin-top:4px}
#admin .nav:hover,#admin .nav[aria-current=page]{background:#254b44}
#admin .nav[aria-current=page]{box-shadow:inset 3px 0 #a3edc6}
#admin .nav .ico{color:#a5d7c8}
#admin .topbar{background:#fff;border-bottom-color:#deebe6}
#admin .demo{background:#eaf4ee;border-color:#dbede2;color:#3c6158}
#admin .primary:hover{background:#004b43}
#admin .soft:hover{background:#eaf5f0}
#admin :focus-visible{outline-color:#278770}
#admin .sidebar :focus-visible,#admin .dashboard-hero :focus-visible{outline-color:#bdf5d8}
.dashboard-view{display:grid;gap:16px;max-width:1320px;margin-inline:auto}
.dashboard-hero{
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
  padding:23px clamp(18px,3vw,33px);border-radius:17px;isolation:isolate;overflow:hidden;position:relative;
  background:linear-gradient(106deg,#123935 8%,#134840 62%,#176456);color:#fff;
}
.dashboard-hero::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;inset:0;
  background:repeating-radial-gradient(circle at 92% 112%,transparent 0 23px,#a4ecd326 24px 25px,transparent 26px 34px);
  mask-image:linear-gradient(90deg,transparent 49%,#000 97%);
}
.dashboard-hero h1{font-size:clamp(1.85rem,3.5vw,2.8rem);letter-spacing:-.04em}
.dashboard-period{font-size:.82rem;color:#c5f0df;font-weight:700;margin-bottom:7px}
.dashboard-period span{margin-inline:3px}
.dashboard-hero-copy>p:last-child{color:#d8ede5;margin-top:7px;font-size:.88rem}
#admin .dashboard-hero .dashboard-cta{flex:none;background:#c0f4da;color:#11392f;border-radius:9px}
#admin .dashboard-hero .dashboard-cta:hover{background:#d9ffeb;color:#11392f}
.dashboard-cta span{font-size:1.05rem}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dashboard-kpi{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 15px 15px;box-shadow:var(--shadow);min-width:0}
.dashboard-kpi>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.dashboard-kpi h2{font-size:.82rem;font-weight:650;letter-spacing:0;color:#47625d}
.dashboard-kpi>strong{display:block;font-size:clamp(1.22rem,2.1vw,1.8rem);letter-spacing:-.047em;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.15}
.dashboard-kpi>strong small{font-size:.68em;color:#4c6864}
.dashboard-mark{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:9px;font-size:1.03rem;font-weight:750}
.mark-teal{background:#dff5ec;color:#0e6457}
.mark-blue{background:#e7effb;color:#365684}
.mark-lime{background:#edf3dd;color:#50642a}
.mark-amber{background:#f8ecd8;color:#84511c}
.dashboard-analysis{display:grid;grid-template-columns:minmax(0,1.63fr) minmax(240px,1fr);gap:15px}
.dashboard-view .panel{margin:0;border-radius:14px;padding:15px 16px}
.dashboard-view .panel-head{margin-bottom:11px}
.dashboard-view .panel-head h2{font-size:1.06rem}
.dashboard-caption,.dashboard-chart-unit{font-size:.76rem;color:var(--muted)}
.dashboard-caption{margin-top:2px}
.dashboard-chart{
  --chart-height:120px;
  position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:7px;
  padding-top:5px;font-variant-numeric:tabular-nums;
}
.chart-axis{height:var(--chart-height);display:flex;flex-direction:column;justify-content:space-between;position:relative;color:#4c6864;font-size:.7rem}
.chart-axis span{position:absolute;right:0;top:var(--axis-offset);transform:translateY(-50%)}
.chart-days{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;
  background:repeating-linear-gradient(to bottom,#e0ebe6 0 1px,transparent 1px 25%) no-repeat;
  background-size:100% calc(var(--chart-height) + 1px);
}
.chart-day{display:grid;justify-items:center;align-items:end;grid-template-rows:var(--chart-height) auto;min-width:0}
.chart-bar{
  display:block;width:min(48%,38px);height:var(--bar-height);background:linear-gradient(180deg,#76c9ad,#43967e);
  border-radius:5px 5px 0 0;
}
.chart-day.is-peak .chart-bar{background:linear-gradient(180deg,#25937c,#086758)}
.chart-day .chart-bar.is-zero{height:2px;border-radius:4px;background:#cddfd8}
.chart-day .chart-date{font-size:.7rem;color:#4c6864;line-height:1.15;padding-top:8px;white-space:nowrap}
.dashboard-work .panel-head{margin-bottom:6px}
.dashboard-queue{display:grid}
.queue-row{
  display:grid;grid-template-columns:32px minmax(0,1fr) 22px 8px;align-items:center;text-align:left;gap:9px;
  border:0;border-bottom:1px solid #e8efeb;padding:7px 3px;background:transparent;color:var(--ink);min-height:46px;font-size:.83rem;font-weight:650;
}
.queue-row:hover{background:#f1f8f5}
.queue-row strong{font-size:.95rem;text-align:right;font-variant-numeric:tabular-nums}
.queue-arrow{color:#496a60;text-align:right;font-size:1.16rem}
.dashboard-finance-link{min-height:30px;margin-top:5px;padding-block:5px}
.dashboard-recent table{min-width:0}
.dashboard-recent th{background:#f2f7f5;border-bottom:1px solid #e3ece8;color:#41615b}
.dashboard-recent td{font-size:.84rem}
.dashboard-recent th:first-child{border-radius:7px 0 0 7px}
.dashboard-recent th:last-child{border-radius:0 7px 7px 0}
.dashboard-recent th:last-child,.dashboard-recent td:last-child{text-align:right}
.dashboard-recent td .soft{min-height:33px;padding:5px 9px;border-color:#d9e8e1;white-space:nowrap;font-size:.78rem}
.dashboard-recent .money{color:#164438}
@media(max-width:1040px){
  .dashboard-kpi{padding-inline:12px}
  .dashboard-kpi .dashboard-mark{width:28px;height:28px}
}
@media(min-width:801px) and (max-width:970px){
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-analysis{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .dashboard-view{gap:12px}
  .dashboard-hero{flex-direction:column;align-items:flex-start;gap:11px}
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dashboard-analysis{grid-template-columns:minmax(0,1fr);gap:10px}
  .dashboard-work{grid-row:1}
  .dashboard-view .panel{padding:13px}
  .dashboard-kpi h2{font-size:.77rem}
  .dashboard-kpi>strong{font-size:clamp(1.1rem,5.4vw,1.45rem)}
}
@media(max-width:365px){
  .dashboard-kpi>div{gap:4px}
  .dashboard-kpi .dashboard-mark{width:24px;height:24px;font-size:.85rem}
  .dashboard-kpi{padding-inline:9px}
}
