/* SIOS Theme v1.89.8 - AMIT dashboard inspired */
:root{
  --brand-900:#1f355d;
  --brand-850:#243d6b;
  --brand-800:#2a4776;
  --brand-700:#355b8f;
  --bg:#eef3f8;
  --surface:#f6f9fc;
  --card:#ffffff;
  --text:#10223a;
  --muted:#6c7a90;
  --border:#d9e2ef;
  --shadow-sm:0 2px 10px rgba(16,34,58,.08);
  --shadow-md:0 8px 24px rgba(16,34,58,.12);
  --radius:12px;
  --radius-sm:10px;
  --gap:18px;
  --sidebar-w:260px;
  --topbar-h:74px;
  --focus:0 0 0 4px rgba(53,91,143,.18);
  --ok:#2f855a;
  --warn:#b7791f;
  --info:#2b6cb0;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
body{
  margin:0;
  font-family:Calibri,"Segoe UI",Tahoma,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  display:flex;
  flex-direction:column;
  min-height:100vh;min-height:100dvh;
}
/* Admin panel: lock body + html to viewport, all scrolling internal */
html:has(body.admin-body){overflow:clip;height:100%}
body.admin-body{overflow:hidden;height:100%;min-height:unset;display:flex;flex-direction:column;}

/* Ensure form controls match the global font (better EN/AR consistency) */
input,textarea,select,button{
  font-family:Calibri,"Segoe UI",Tahoma,Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:22px;flex:1;width:100%;box-sizing:border-box;}
.topbar{
  height:var(--topbar-h);
  max-height:var(--topbar-h);
  flex-shrink:0;
  background:linear-gradient(90deg,var(--brand-900),var(--brand-800));
  color:#fff;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;
  box-shadow:var(--shadow-md);
  max-width:100vw;
  position:sticky;
  top:0;
  z-index:40;
}
.brand{
  font-size:42px;font-weight:800;letter-spacing:.2px;line-height:1;display:flex;align-items:baseline;gap:8px;white-space:nowrap;
}
.brand small{font-weight:600;opacity:.9;font-size:20px;}
.top-actions{display:flex;align-items:center;gap:14px}
.pill{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  padding:10px 12px;border-radius:10px;
  display:flex;align-items:center;gap:10px;
}

.topbar-btn{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  font-weight:800;
}
.topbar-btn:hover{
  background:rgba(255,255,255,.16);
}

.topbar-btn.admin-login{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.22);
}
.topbar-btn.admin-login:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.32);
}

.exam-lock-badge{
  background:#c53030 !important;
  border-color:#9b2c2c !important;
  color:#fff !important;
  font-weight:700;
}
.exam-lock-badge[aria-current="page"]{
  cursor:default;
  pointer-events:none;
  opacity:1;
}

.footer{
  margin-top:auto;
  padding:18px 22px;
  background:rgba(31,53,93,.08);
  border-top:1px solid var(--border);
}
.footer-inner{
  max-width:1200px;
  margin:0 auto;
  text-align:center;
  color:var(--muted);
  font-weight:700;
}
.footer-line{margin:4px 0}
.footer-sep{opacity:.7;padding:0 6px}


@media(min-width:641px) and (max-width:900px){
  .topbar{
    height:var(--topbar-h);
    max-height:var(--topbar-h);
    flex-shrink:0;
    padding:0 20px;
    gap:14px;
    align-items:center;
  }
  .brand{
    flex:0 0 auto;
    min-width:0;
    font-size:28px;
    line-height:1;
    white-space:nowrap;
  }
  .brand small{
    display:inline;
    font-size:14px;
  }
  .top-actions{
    flex:0 1 auto;
    gap:10px;
    flex-wrap:nowrap;
    margin-left:auto;
  }
  .lang-switch{
    font-size:14px;
    line-height:1.2;
    text-align:center;
  }
  .topbar-btn{
    padding:9px 12px;
    font-size:13px;
    line-height:1.2;
    min-width:98px;
  }
}

@media(max-width:640px){
  .topbar{
    height:var(--topbar-h);
    max-height:var(--topbar-h);
    flex-shrink:0;
    padding:0 12px;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
    justify-content:space-between;
  }
  .brand{
    font-size:24px;
    line-height:1;
    flex:0 0 auto;
    white-space:nowrap;
  }
  .brand small{display:none;}
  .top-actions{
    display:flex;
    flex:0 0 auto;
    gap:5px;
    flex-wrap:nowrap;
    align-items:center;
  }
  .lang-switch{display:none;}
  .topbar-btn{
    padding:7px 10px;
    font-size:12px;
    line-height:1.2;
    white-space:nowrap;
  }
}
@media(max-width:380px){
  .container{padding:12px}
  .brand{font-size:20px}
  .topbar-btn{padding:6px 8px;font-size:11px}
  .top-actions{gap:4px}
}
@media(max-width:360px){
  .brand{font-size:18px;}
  .top-actions{gap:4px;}
}
.dropdown{position:relative}
.dropdown button{
  background:transparent;border:0;color:#fff;cursor:pointer;
  display:flex;align-items:center;gap:10px;
  font-weight:600;font-size:14px;
}
.dropdown-menu{
  position:absolute; top:44px; right:0;
  min-width:160px;
  background:#fff;color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow-md);
  padding:8px;
  display:none;
  z-index:50;
}
.dropdown-menu a{
  display:block;padding:10px 10px;border-radius:10px;
}
.dropdown-menu a:hover{background:var(--surface)}
.dropdown.open .dropdown-menu{display:block}

.shell{
  display:flex;flex:1;min-height:0;
  background:linear-gradient(to right, #1f355d var(--sidebar-w), var(--bg) var(--sidebar-w));
}
.sidebar{
  width:var(--sidebar-w);
  flex-shrink:0;
  align-self:flex-start;
  background:linear-gradient(180deg,#1f355d,#203a66);
  padding:18px 14px;
  color:#dfe8f8;
  box-shadow:var(--shadow-md);
  position:sticky;
  top:0;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
}
.side-group{margin:10px 0}
.side-title{
  font-size:12px;text-transform:uppercase;letter-spacing:.12em;
  opacity:.75;margin:16px 12px 8px;
}
.side-link{
  display:flex;align-items:center;gap:12px;
  padding:12px 12px;border-radius:12px;
  color:#dfe8f8;
}
.side-link:hover{background:rgba(255,255,255,.08)}
.side-link.active{background:rgba(255,255,255,.14)}
.side-badge{
  margin-inline-start:auto;
  min-width:20px;height:20px;
  padding:0 6px;
  background:#f59e0b;
  color:#1a1a2e;
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  flex-shrink:0;
}
.icon{
  width:18px;height:18px;display:inline-block;flex:0 0 18px;
  opacity:.95
}
.main{
  flex:1;
  padding:22px 22px 28px;
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  min-height:0;
}

.content{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:0;
}
.content .main{
  flex:1;
  overflow-y:visible;
  overflow-x:hidden;
  min-height:0;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-left:4px solid var(--brand-700);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
  transition:box-shadow .18s, transform .18s;
}
[dir=rtl] .card{
  border-left:1px solid var(--border);
  border-right:4px solid var(--brand-700);
}
@media(hover:hover){
  .card:hover{
    box-shadow:0 6px 24px rgba(16,34,58,.13);
    transform:translateY(-1px);
  }
}
/* Cards that should NOT have the accent border */
.card.no-accent,
.card.stat,
.card-h,
.card.section-schedule-block,
.card.section-monthly-schedule-block,
.card.schedule-filter-card,
.card.student-bulk-card,
.card.students-empty-state,
label.card{
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
}
[dir=rtl] .card.no-accent,
[dir=rtl] .card.stat,
[dir=rtl] .card.section-schedule-block,
[dir=rtl] .card.section-monthly-schedule-block,
[dir=rtl] .card.schedule-filter-card,
[dir=rtl] .card.student-bulk-card,
[dir=rtl] .card.students-empty-state,
[dir=rtl] label.card{
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
}
.card.pad{padding:18px}
.grid{
  display:grid;
  gap:var(--gap);
  width:100%;
  box-sizing:border-box;
  min-width:0;
}
.grid.two{grid-template-columns:minmax(0,42fr) minmax(0,58fr)}
.grid.two.equal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{width:100%;border-collapse:separate;border-spacing:0}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 16px}
.page-head h1{margin:0;font-size:34px;font-weight:900}
.muted{color:var(--muted);font-weight:600}

/* Flash messages */
.alert{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  margin:0 0 16px;
  border-radius:12px;
  border:1px solid var(--border);
  font-weight:800;
  box-shadow:var(--shadow-sm);
}
.alert.success{
  background:rgba(47,133,90,.10);
  border-color:rgba(47,133,90,.25);
  color:var(--ok);
}
.alert.danger{
  background:rgba(220,38,38,.10);
  border-color:rgba(220,38,38,.25);
  color:#b91c1c;
}
.alert-ok{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;margin:0 0 16px;
  border-radius:12px;border:1px solid rgba(47,133,90,.3);
  font-weight:800;box-shadow:var(--shadow-sm);
  background:rgba(47,133,90,.12);color:#166534;
  transition:opacity .6s ease,transform .6s ease;
}
.alert-err{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;margin:0 0 16px;
  border-radius:12px;border:1px solid rgba(220,38,38,.3);
  font-weight:800;box-shadow:var(--shadow-sm);
  background:rgba(220,38,38,.10);color:#b91c1c;
  transition:opacity .6s ease;
}
.alert-ok.fade-out,.alert-err.fade-out{opacity:0;transform:translateY(-6px);}

.card-h{padding:14px 16px;font-weight:900;border-bottom:1px solid var(--border)}
.card-b{padding:16px;min-width:0;}

.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;white-space:nowrap}
@media(max-width:640px){.table th,.table td{white-space:normal}.td-nowrap{white-space:nowrap}}
.table thead th{background:var(--surface);font-weight:900}
.table tbody tr:last-child td{border-bottom:0}

.grid.stats{grid-template-columns:repeat(4,1fr)}
@media(max-width:1050px){.grid.stats{grid-template-columns:repeat(2,1fr)}}

@media(min-width:641px) and (max-width:900px){
  .topbar{
    height:var(--topbar-h);
    max-height:var(--topbar-h);
    flex-shrink:0;
    padding:0 20px;
    gap:14px;
    align-items:center;
  }
  .brand{
    flex:0 0 auto;
    min-width:0;
    font-size:28px;
    line-height:1;
    white-space:nowrap;
  }
  .brand small{
    display:inline;
    font-size:14px;
  }
  .top-actions{
    flex:0 1 auto;
    gap:10px;
    flex-wrap:nowrap;
    margin-left:auto;
  }
  .lang-switch{
    font-size:14px;
    line-height:1.2;
    text-align:center;
  }
  .topbar-btn{
    padding:9px 12px;
    font-size:13px;
    line-height:1.2;
    min-width:98px;
  }
}


.mobile-nav-toggle{
  display:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(255,255,255,.10);
  color:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  box-shadow:none;
}
.mobile-nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .18s ease, opacity .18s ease;
}
.sidebar-backdrop{display:none}

@media(max-width:640px){
  .topbar{
    position:sticky;
    top:0;
    z-index:40;
  }
  .mobile-nav-toggle{display:inline-flex;flex:0 0 44px}
  .brand{flex:1 1 calc(100% - 56px)}
  .topbar-welcome{display:none !important;}
  .side-user-block{display:block !important;}
  .shell{
    display:block;
    min-height:auto;
    overflow-x:hidden;
    max-width:100vw;
    width:100%;
    background:none;
  }
  .sidebar-backdrop{
    display:block;
    position:fixed;
    top:var(--topbar-h);
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-width:100vw;
    background:rgba(0,0,0,.45);
    z-index:38;
    opacity:0;
    pointer-events:none;
    transition:opacity .24s ease;
  }
  body.sidebar-open .sidebar-backdrop{
    opacity:1;
    pointer-events:auto;
  }
  .sidebar{
    /* reset all desktop sidebar properties */
    position:fixed !important;
    top:var(--topbar-h) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:100vw !important;
    height:auto !important;
    flex-shrink:unset !important;
    box-shadow:none;
    z-index:39;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    padding:0 16px;
    max-height:0;
    transition:max-height .28s ease, padding .28s ease, box-shadow .28s ease;
  }
  body.sidebar-open .sidebar{
    max-height:calc(100vh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));
    padding:0 16px 16px;
    box-shadow:0 12px 32px rgba(15,23,42,.22);
  }
  .side-group{
    margin:0;
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .side-group:first-child{padding-top:16px}
  .side-group:last-child{padding-bottom:4px}
  .side-title{margin:0 12px 10px}
  .side-link{
    min-height:48px;
    border-radius:14px;
  }
  body.sidebar-open .mobile-nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body.sidebar-open .mobile-nav-toggle span:nth-child(2){opacity:0}
  body.sidebar-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .content{min-width:0;width:100%;max-width:100vw;overflow-x:hidden;box-sizing:border-box;height:auto;overflow-y:visible;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;}
  .main{padding:16px;width:100%;max-width:100vw;box-sizing:border-box;overflow-x:hidden;overflow-y:visible;flex:1;}
  .grid.stats{grid-template-columns:1fr}
  .grid.two{display:block;}
  .grid.two > *{margin-bottom:var(--gap);}
  .grid.two > *:last-child{margin-bottom:0;}
}
.stat{
  display:flex;align-items:center;gap:16px;
  padding:18px;
}
.stat-link{display:block;text-decoration:none;color:inherit}
.stat-link .card{transition:transform .08s ease, box-shadow .12s ease, border-color .12s ease}
.stat-link:hover .card{transform:translateY(-1px);box-shadow:var(--shadow-md)}
.stat-active{border-color:rgba(43,108,176,.35);box-shadow:var(--shadow-md)}
.stat .ico{
  width:44px;height:44px;border-radius:14px;
  background:rgba(43,108,176,.12);
  display:flex;align-items:center;justify-content:center;
}
.stat .meta{display:flex;flex-direction:column;gap:2px}
.stat .meta .label{color:var(--muted);font-weight:600}
.stat .meta .value{font-size:38px;font-weight:800;line-height:1}
.h2{font-size:20px;margin:0 0 12px;font-weight:800}
.list{
  border-top:1px solid var(--border);
}
.list .row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  border-bottom:1px solid var(--border);
  gap:12px;
}
.badge{
  padding:7px 12px;border-radius:10px;
  font-weight:700;font-size:13px;
  border:1px solid var(--border);
  background:var(--surface);
}
.badge.ok{background:rgba(47,133,90,.12);border-color:rgba(47,133,90,.22);color:var(--ok)}
.badge.warn{background:rgba(183,121,31,.12);border-color:rgba(183,121,31,.22);color:var(--warn)}
.badge.info{background:rgba(43,108,176,.12);border-color:rgba(43,108,176,.22);color:var(--info)}
.badge.danger{background:rgba(197,48,48,.10);border-color:rgba(197,48,48,.22);color:#b83232}
.badge.purple{background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.22);color:#6d28d9}
.badge.teal{background:rgba(13,148,136,.10);border-color:rgba(13,148,136,.22);color:#0f766e}
.badge.muted{background:var(--surface);border-color:var(--border);color:var(--muted)}
.badge.sm{font-size:11px;padding:2px 8px;border-radius:6px;}
.badge-required{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#dc2626;color:#fff;border:none;line-height:1.6}

/* Toggle switch (used in Shifts list) */
.toggle{display:inline-flex;align-items:center;justify-content:center}
.toggle input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
.toggle-ui{
  width:44px;height:24px;border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  position:relative;
  transition:background .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.toggle-ui:after{
  content:"";
  width:18px;height:18px;border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  position:absolute;top:50%;left:3px;transform:translateY(-50%);
  transition:transform .12s ease;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.toggle input:checked + .toggle-ui{
  background:rgba(47,133,90,.18);
  border-color:rgba(47,133,90,.28);
}
.toggle input:checked + .toggle-ui:after{transform:translate(20px,-50%)}
.toggle input:focus + .toggle-ui{box-shadow:var(--focus)}
.toggle input:disabled + .toggle-ui{opacity:.65;cursor:not-allowed}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  cursor:pointer;
  font-weight:800;
}
.btn.primary{
  background:linear-gradient(180deg,#2b6cb0,#255f9c);
  border-color:rgba(255,255,255,.0);
  color:#fff;
}
.btn.sm{padding:8px 10px;border-radius:10px;font-size:13px}
.btn.danger{border-color:rgba(197,48,48,.22);background:rgba(197,48,48,.08);color:#b83232}
.btn.danger:hover{background:rgba(197,48,48,.12)}
.btn.warn{border-color:rgba(180,120,0,.28);background:rgba(234,179,8,.10);color:#92400e}
.btn.warn:hover{background:rgba(234,179,8,.18)}
.btn:focus{outline:none;box-shadow:var(--focus)}
.password-toggle{position:relative}
.password-toggle .input{padding-inline-end:46px}
.password-toggle-btn{position:absolute;top: 8px;bottom:0;inset-inline-end:12px;margin:auto 0;width:20px;height:20px;padding:0;border:none;border-radius:0;background:transparent;color:var(--brand-800);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .2s ease,color .2s ease;z-index:2;line-height:0;box-shadow:none}
.password-toggle-btn:hover{background:transparent;opacity:.72}
.password-toggle-btn:focus-visible{outline:none;opacity:.72}
.password-toggle-btn svg{width:18px;height:18px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.password-toggle-btn [data-password-icon-hide]{display:none}
.password-toggle-btn.is-visible [data-password-icon-show]{display:none}
.password-toggle-btn.is-visible [data-password-icon-hide]{display:block}
@media(max-width:640px){
  .password-toggle .input{padding-inline-end:44px}
  .password-toggle-btn{inset-inline-end:10px}
}

.input, select, textarea{
  margin-top:10px;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 12px;
  background:#fff;
  font-weight:600;
}
textarea{min-height:110px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:720px){.form-row{grid-template-columns:1fr}}
.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;box-sizing:border-box;min-width:0;}
.area-row-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;width:100%;box-sizing:border-box;min-width:0;}
@media(max-width:640px){
  .form-grid-2{grid-template-columns:1fr}
  .area-row-grid{grid-template-columns:1fr 1fr}
}

/* ── Units mobile cards ── */
.units-mobile-cards{display:none}
.shifts-mobile-cards{display:none}
.unit-mobile-card{
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  margin-bottom:10px;
  background:var(--surface);
}
.unit-mobile-card:last-child{margin-bottom:0}
.unit-mobile-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;}
.unit-mobile-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;}
.unit-mobile-card-label{font-size:12px;font-weight:700;color:var(--muted);}
.unit-mobile-card-actions{display:flex;gap:8px;flex-wrap:wrap;}
@media(max-width:900px){
  .units-desktop-table{display:none}
  .units-mobile-cards{display:block}
  .shifts-desktop-table{display:none}
  .shifts-mobile-cards{display:block}
}


/* ── Submissions responsive cards ── */
.submissions-mobile-cards{display:none}
.submissions-list-card{overflow:hidden}
.submission-mobile-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  margin-bottom:12px;
}
.submission-mobile-card:last-child{margin-bottom:0}
.submission-mobile-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.submission-mobile-check{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.submission-mobile-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.submission-mobile-student{font-size:16px;font-weight:900;line-height:1.2}
.submission-mobile-badge{margin-top:4px;font-size:12px;color:var(--muted);font-weight:700}
.submission-mobile-id{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  background:rgba(47,62,111,.06);
  border:1px solid rgba(47,62,111,.08);
  border-radius:999px;
  padding:6px 10px;
  white-space:nowrap;
}
.submission-mobile-section{
  padding:12px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:12px;
  background:rgba(255,255,255,.65);
}
.submission-mobile-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.submission-mobile-field{
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:12px;
  background:rgba(255,255,255,.65);
  min-width:0;
}
.submission-mobile-field-wide{grid-column:1 / -1}
.submission-mobile-label{font-size:11px;font-weight:800;color:var(--muted);margin-bottom:4px}
.submission-mobile-value{font-size:14px;font-weight:800;line-height:1.35;word-break:break-word}
.submission-mobile-meta{margin-top:4px;font-size:12px;color:var(--muted);font-weight:700;word-break:break-word}
.submission-mobile-actions{display:flex;justify-content:flex-end;margin-top:14px}
.submission-mobile-actions .btn{min-width:150px;text-align:center}
@media(max-width:980px){
  .submissions-desktop-table{display:none}
  .submissions-mobile-cards{display:block}
}
@media(max-width:640px){
  .submission-mobile-title-row{flex-direction:column;align-items:flex-start}
  .submission-mobile-grid{grid-template-columns:1fr}
  .submission-mobile-field-wide{grid-column:auto}
  .submission-mobile-actions{justify-content:stretch}
  .submission-mobile-actions .btn{width:100%;min-width:0}
}



/* ── Submission detail profile cards ── */
.submission-detail-summary-grid{align-items:stretch}
.submission-profile-card{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid rgba(47,62,111,.10);
  border-radius:20px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.submission-profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.submission-profile-label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.submission-profile-label-tight{margin-bottom:10px}
.submission-profile-name{
  margin-top:8px;
  font-size:26px;
  font-weight:900;
  line-height:1.1;
  color:#15233d;
}
.submission-profile-name-ar{
  margin-top:6px;
  font-size:15px;
  font-weight:800;
  color:#66748a;
}
.submission-profile-badge-wrap{display:flex;justify-content:flex-end}
.submission-profile-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(53,99,233,.08);
  border:1px solid rgba(53,99,233,.14);
  color:#23408e;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.submission-profile-divider{
  height:1px;
  margin:16px 0 14px;
  background:linear-gradient(90deg,rgba(47,62,111,.14),rgba(47,62,111,.02));
}
.submission-profile-meta-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.submission-meta-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
}
.submission-meta-tag-primary{
  background:linear-gradient(180deg,#eef4ff 0%,#e5efff 100%);
  border-color:rgba(53,99,233,.14);
  color:#23408e;
}
.submission-meta-tag-neutral{
  background:rgba(148,163,184,.10);
  border-color:rgba(100,116,139,.12);
  color:#4b5565;
}
.submission-meta-tag-status.badge,
.submission-meta-tag-status{
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
}
.submission-score-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.submission-score-stack{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.submission-score-item{
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.75);
  min-width:0;
}
.submission-score-item-total{
  background:linear-gradient(180deg,#f6fbf7 0%,#edf9f0 100%);
  border-color:rgba(47,133,90,.18);
}
.submission-score-item-label{
  display:block;
  margin-bottom:6px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.submission-score-item-value{
  font-size:18px;
  font-weight:900;
  line-height:1.25;
  color:#15233d;
  word-break:break-word;
}
.submission-score-action-form{margin-top:14px}
@media(max-width:980px){
  .submission-score-stack{grid-template-columns:1fr}
}
@media(max-width:640px){
  .submission-profile-head{flex-direction:column;align-items:flex-start}
  .submission-profile-badge-wrap{justify-content:flex-start;width:100%}
  .submission-profile-badge{white-space:normal}
  .submission-profile-name{font-size:22px}
  .submission-profile-meta-tags{gap:8px}
  .submission-meta-tag{width:100%;justify-content:flex-start;border-radius:14px}
}

/* ── Utility: form labels ── */
.form-label{font-weight:900;display:block;margin-bottom:8px}
.form-label-bold{font-weight:800;display:block;margin-bottom:8px}
.form-hint{font-size:12px;opacity:.75;margin-top:6px}

/* ── Utility: spacing ── */
.mt-6{margin-top:6px}
.mt-10{margin-top:10px}
.mt-12{margin-top:12px}
.mt-14{margin-top:14px}
.mt-18{margin-top:18px}
.mb-6{margin-bottom:6px}
.mb-8{margin-bottom:8px}
.lbl.mb-8{margin-bottom:15px}
.mb-10{margin-bottom:10px}
.mb-12{margin-bottom:12px}
.mb-14{margin-bottom:14px}
.mb-18{margin-bottom:18px}
.m-0{margin:0}
.dash-empty-row{padding:12px 0}

/* ── Utility: form groups ── */
.form-group{margin-bottom:14px}
.form-group-mt{margin-top:14px}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px;width:100%;box-sizing:border-box;}

/* ── Utility: areas ── */
.areas-wrap{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;}
.area-block{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid rgba(0,0,0,.06);border-radius:12px;width:100%;min-width:0;box-sizing:border-box;}
.area-controls{display:flex;align-items:center;gap:10px;width:100%;min-width:0;}
.area-add-row{display:flex;align-items:center;gap:10px;margin-top:10px;width:100%;min-width:0;}

/* ── Utility: layout helpers ── */
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%;min-width:0;}
.row-end{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:100%;min-width:0;}
.row-start{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;min-width:0;}
.row-wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;min-width:0;}
.card-mt{margin-top:18px}
.notice-mb{margin-bottom:12px}
.td-nowrap{white-space:nowrap}
.text-muted-sm{color:var(--muted);font-weight:700}
.text-muted-sm-mt{color:var(--muted);font-weight:700;margin-top:2px}
.text-bold{font-weight:900}
.text-italic-muted{color:var(--muted);font-style:italic}
.divider{margin:18px 0;border:none;border-top:1px solid rgba(0,0,0,.08)}
.max-card{max-width:820px}
.max-card-sm{max-width:520px;margin:40px auto}
.form-zero{margin:0}
.overflow-auto{overflow:auto}
.inline-form{display:inline}
.unit-order-placeholder{visibility:hidden;pointer-events:none;cursor:default;}
.notice{
  padding:12px 14px;border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface);
}
.notice.ok{border-color:rgba(47,133,90,.22);background:rgba(47,133,90,.08)}
.notice.err{border-color:rgba(197,48,48,.22);background:rgba(197,48,48,.08)}
.notice.warn{border-color:rgba(183,121,31,.30);background:rgba(183,121,31,.10);color:#7b4f0a}
.must-change-banner{font-size:14px;font-weight:700;margin-bottom:18px;}

/* Table helpers */
.table th.muted, .table td.muted{
  background:rgba(16,34,58,.04);
}
.section-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  padding:4px 0;
}

.notice-card{
  grid-column:1 / -1;
  width:100%;
}

/* Tablet: 2 columns */
@media(max-width:980px){
  .section-grid{grid-template-columns:repeat(2,1fr);gap:18px}
}

/* Large mobile: 2 columns, compact cards */
@media(max-width:640px){
  .section-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}

/* Small mobile ≤480px: 2 columns, tighter */
@media(max-width:480px){
  .section-grid{grid-template-columns:repeat(2,1fr);gap:10px}
}

/* Very small ≤380px: single column so nothing wraps */
@media(max-width:380px){
  .section-grid{grid-template-columns:1fr;gap:10px}
}

@media(max-width:1200px){
  .grid.two{display:block;}
  .grid.two > *{margin-bottom:var(--gap);}
  .grid.two > *:last-child{margin-bottom:0;}
  .form-grid-2{grid-template-columns:1fr;}
}
.section-card{
  padding:26px;
  min-height:110px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:18px;
  text-align:center;
  line-height:1.3;
  background:var(--brand-800);
  color:#fff;
  border:1px solid var(--brand-700);
  border-radius:var(--radius);
  transition:background .18s,transform .15s,box-shadow .18s;
  box-shadow:var(--shadow-sm);
  word-break:break-word;
  hyphens:auto;
}
.section-card:hover{
  background:var(--brand-700);
  transform:translateY(-3px);
  box-shadow:var(--shadow-md);
  color:#fff;
}

/* Tablet: slightly smaller font */
@media(max-width:980px){
  .section-card{font-size:16px;padding:22px 14px;min-height:90px}
}

/* Large mobile */
@media(max-width:640px){
  .section-card{font-size:14px;padding:18px 10px;min-height:80px}
}

/* Small mobile ≤480px */
@media(max-width:480px){
  .section-card{font-size:13px;padding:16px 8px;min-height:72px;border-radius:10px}
}

/* Very small ≤380px: single column, full width comfortable */
@media(max-width:380px){
  .section-card{font-size:15px;padding:20px 16px;min-height:64px}
}
.lang-switch a{color:#fff;opacity:.9}
.lang-switch a:hover{opacity:1;text-decoration:underline}

/* Calendar (weekly/monthly) */
.cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:12px;
}
.cal-grid.month{grid-template-columns:repeat(7,1fr)}
.cal-cell{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  min-height:120px;
}
.cal-cell.muted{opacity:.6}
.cal-day{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  margin-bottom:10px;
}
.cal-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  box-shadow:var(--shadow-sm);
  margin-bottom:10px;
}
@media(max-width:900px){
  .cal-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .cal-grid{grid-template-columns:1fr}
}


.help{color:var(--muted);font-size:12px;font-weight:700;margin-top:6px;line-height:1.3}
.area-row{border-radius:14px;padding:2px}
.area-row.selected{outline:2px solid var(--primary);outline-offset:2px}


/* Students bulk assign: filters + cards layout */
.bulk-filter-panel{
  background:linear-gradient(180deg,#f7fafe 0%,#f2f6fb 100%);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  width:min(100%, 520px);
}
.bulk-filter-bar{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.bulk-filter-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:end;
}
.bulk-filter-field .input{width:100%}
.bulk-filter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
  margin-top:15px;
}
.bulk-select-row{
  display:flex;
  align-items:center;
}
@media (max-width: 860px){
  .bulk-filter-panel{width:100%}
  .bulk-filter-actions{justify-content:stretch}
  .bulk-filter-actions .btn{flex:1 1 auto;text-align:center}
}

/* Students bulk assign: cards layout */
.students-grid{
  display:grid;
  gap:var(--gap);
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
}
@media (max-width: 992px){
  .students-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 860px){
  .students-grid{grid-template-columns:1fr}
}

/* ── Student card ─────────────────────────────────────────────────────────── */
.student-bulk-card{
  width:100%;min-width:0;
}

/* ── Card head ────────────────────────────────────────────────────────────── */
.student-bulk-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.student-bulk-title{
  font-weight:900;
  font-size:16px;
  line-height:1.2;
  color:var(--brand-800);
  letter-spacing:-.01em;
}
.is-hidden{display:none !important}
.student-profile-edit{margin-top:8px}
.student-profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width: 860px){
  .student-profile-grid{grid-template-columns:1fr}
}
.student-bulk-head-right{display:flex;align-items:center;gap:10px}

/* ── Meta rows ────────────────────────────────────────────────────────────── */
.student-bulk-meta{
  margin-bottom:12px;
  font-size:13px;
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:10px 12px;
  background:var(--surface);
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
}
.student-bulk-meta.is-hidden{display:none !important}
.student-bulk-meta>div{
  display:flex;
  align-items:baseline;
  gap:6px;
  line-height:1.5;
}
.student-bulk-meta .muted{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  white-space:nowrap;
  min-width:90px;
}
.student-bulk-meta strong{
  font-weight:800;
  color:var(--text);
}

/* Training period row in meta — highlighted */
/* ── Field labels (inline edit) ───────────────────────────────────────────── */
.student-field-label{
  font-size:11px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin:0 0 5px 0;
}
.student-field--full{grid-column:1 / -1}

/* ── Remarks ──────────────────────────────────────────────────────────────── */
.student-bulk-controls{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:12px;
}
.student-field-remarks>.student-field-label{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:6px;
  padding-bottom:5px;
  border-bottom:1px solid var(--border);
}
.student-remarks{min-height:56px;resize:vertical;padding:8px 12px;font-weight:600;font-size:13px}
.student-remarks-text{color:var(--brand-800);font-weight:700;line-height:1.6;font-size:13px}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.student-bulk-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-top:10px;
  border-top:1px solid var(--border);
  margin-top:4px;
}
.student-apply{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:13px;
  color:var(--muted);
}
.student-bulk-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.student-bulk-actions .btn.remarks-toggle{
  background:var(--brand-800);
  color:#fff;
  border:none;
  font-weight:700;
  font-size:13px;
  padding:6px 14px;
  border-radius:8px;
}
.student-bulk-actions .btn.remarks-toggle:hover{
  background:var(--brand-700);
}
.student-bulk-actions .btn.remarks-cancel{
  background:transparent;
  color:var(--muted);
  border:1px solid var(--border);
  font-weight:700;
  font-size:13px;
  padding:6px 14px;
  border-radius:8px;
}
.student-bulk-actions .btn.remarks-cancel:hover{
  background:var(--surface);
}

/* Students page structure cleanup */
.students-page-header-card,
.students-bulk-card-wrap,
.students-form-card,
.students-delete-card{margin-bottom:18px}
.students-page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.students-page-title{margin-bottom:6px}
.students-page-subtitle,
.students-bulk-hint,
.students-delete-hint,
.students-sections-empty{
  color:var(--muted);
  font-weight:700;
}
.students-page-notice{margin-bottom:18px}
.students-bulk-title{margin:0 0 10px 0}
.students-bulk-filter-panel{margin-top:16px;margin-bottom:16px}
.students-bulk-select-row{margin-bottom:14px}
.students-bulk-select-label{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.remarks-edit.is-hidden{display:none}
.students-empty-state{color:var(--muted);font-weight:800}
.students-bulk-submit-row{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.students-form-title{margin-bottom:14px}
.students-form-grid-2{grid-template-columns:1fr 1fr;gap:14px}
.students-form-grid-spaced{margin-top:14px}
.students-form-section{margin-top:14px}
.students-form-remarks{min-height:96px}
.students-sections-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.students-section-option{
  padding:10px;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
}
.students-section-name{font-weight:800}
.students-section-disabled.is-ltr{margin-left:auto}
.students-section-disabled.is-rtl{margin-right:auto}
.students-form-actions,
.students-delete-form{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.students-delete-title{margin-bottom:10px}
.students-delete-hint{margin-bottom:14px}
.students-delete-button,.students-bulk-delete-btn{background:#c53030;color:#fff;border:0}
.students-bulk-delete-btn[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none}
@media (max-width: 800px){
  .students-form-grid-2,
  .students-sections-grid{grid-template-columns:1fr}
}


@media (max-width: 800px){
  .students-form-grid-2,
  .students-sections-grid{grid-template-columns:1fr}
}

/* ── Student cards: small screen fixes (v1.92.5) ──────────────────────── */
@media(max-width:480px){
  /* Tighter card padding on small screens */
  .card.pad{padding:12px}

  /* Page header: stack title and Add button vertically */
  .students-page-header{flex-direction:column;align-items:stretch;gap:10px}
  .students-page-header .btn{width:100%;text-align:center}

  /* Card footer: stack Apply row and actions row vertically */
  .student-bulk-footer{flex-direction:column;align-items:stretch;gap:8px}

  /* Apply checkbox row: full width */
  .student-apply{width:100%}

  /* Actions row (toggle + Edit/Cancel): spread across full width */
  .student-bulk-actions{width:100%;justify-content:space-between}

  /* Save / Delete submit row: stretch buttons full width */
  .students-bulk-submit-row{flex-direction:column;align-items:stretch}
  .students-bulk-submit-row .btn{width:100%;text-align:center}

  /* Meta box: tighter padding, smaller label min-width */
  .student-bulk-meta{padding:8px 10px}
  .student-bulk-meta .muted{min-width:70px;font-size:10px}
  .student-bulk-meta{font-size:12px}

  /* Student name: allow wrapping */
  .student-bulk-title{font-size:14px;word-break:break-word}
}

@media(max-width:360px){
  /* Even tighter on very small screens */
  .card.pad{padding:10px}
  .student-bulk-meta{font-size:11px}
}

/* Students registration page */
/* .students-register-* removed v1.62.0 — replaced by .sreg-* */

.schedule-filter-card{
  overflow:visible;
  margin-bottom:18px;
  padding:22px;
  border:1px solid rgba(42,71,118,.08);
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);
  box-shadow:0 12px 30px rgba(16,34,58,.08);
}
.schedule-filter-grid{
  display:grid;
  grid-template-columns:minmax(240px,.9fr) minmax(440px,1.35fr) minmax(220px,.8fr);
  gap:16px;
  align-items:end;
}
.schedule-filter-field{min-width:0}
.schedule-filter-field > label,
.schedule-filter-label-row label{
  display:block;
  margin:0 0 10px;
  font-size:13px;
  font-weight:900;
  color:var(--brand-900);
  letter-spacing:.01em;
}
.schedule-filter-field-unit,
.schedule-filter-field-month{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.schedule-filter-grid .amit-input{
  min-height:48px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(53,91,143,.18);
  box-shadow:0 2px 8px rgba(16,34,58,.04);
}
.schedule-filter-grid .amit-input:hover{
  border-color:#b9cce4;
  box-shadow:0 4px 12px rgba(16,34,58,.06);
}
.schedule-filter-grid .amit-input:focus{
  border-color:rgba(43,108,176,.42);
  box-shadow:0 0 0 4px rgba(43,108,176,.12);
}
.schedule-filter-field-week{
  padding:12px;
  border:1px solid rgba(53,91,143,.1);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(247,250,255,.96) 0%,rgba(239,245,253,.96) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
}
.schedule-filter-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.schedule-filter-label-row label{margin-bottom:0}
.schedule-filter-week-range{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:1px solid rgba(43,108,176,.1);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--brand-800);
  font-size:12px;
  font-weight:900;
  letter-spacing:.01em;
  box-shadow:0 6px 16px rgba(43,108,176,.08);
}
.schedule-week-picker{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.schedule-week-picker .amit-input{margin:0;width:100%;}
.schedule-week-shortcuts{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  justify-content:center;
}
.schedule-week-shortcuts .btn{
  min-width:90px;
  min-height:40px;
  padding:8px 14px;
  border-radius:15px;
  border:1px solid rgba(53,91,143,.14);
  background:rgba(255,255,255,.92);
  color:var(--brand-900);
  box-shadow:0 6px 16px rgba(16,34,58,.05);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.schedule-week-shortcuts .btn:hover{
  transform:translateY(-1px);
  border-color:rgba(43,108,176,.28);
  background:#fff;
  box-shadow:0 10px 20px rgba(43,108,176,.12);
}
.schedule-week-shortcuts .btn:focus{
  box-shadow:0 0 0 4px rgba(43,108,176,.14);
}
.schedule-week-shortcuts .btn.is-current{
  background:linear-gradient(180deg,#2b6cb0 0%,#245a96 100%);
  color:#fff;
  border-color:#245a96;
  box-shadow:0 12px 24px rgba(43,108,176,.2);
}
.schedule-filter-field-month .amit-input,
.schedule-filter-field-unit .amit-input{
  width:100%;
}
.schedule-filter-field-month .amit-input,
.schedule-week-picker .amit-input{
  padding:14px 16px;
}
@media (max-width: 1220px){
  .schedule-filter-grid{grid-template-columns:minmax(220px,.95fr) minmax(0,1.25fr);}
  .schedule-filter-field-month{grid-column:1 / -1;max-width:300px;}
  .schedule-filter-field-unit .amit-input{max-width:300px;width:100%;}
  .schedule-filter-field-month .amit-input{max-width:290px;width:100%;}
  .schedule-filter-grid .amit-input{padding:13px 16px;}
  .schedule-week-shortcuts{flex-wrap:wrap;}
  .schedule-week-shortcuts .btn{min-width:100px;flex:1;}
  .schedule-filter-week-range{font-size:11px;}
}
@media (max-width: 920px){
  .schedule-filter-grid{grid-template-columns:1fr;gap:14px;align-items:stretch}
  .schedule-filter-field-month{grid-column:auto;max-width:none}
  .schedule-week-shortcuts{justify-content:flex-start;flex-wrap:wrap}
}
@media (max-width: 640px){
  .schedule-filter-card{padding:16px}
  .schedule-filter-field-week{padding:14px}
  .schedule-filter-label-row{flex-direction:column;align-items:flex-start}
  .schedule-filter-week-range{width:100%;justify-content:center;border-radius:14px}
  .schedule-week-shortcuts{flex-direction:column}
  .schedule-week-shortcuts .btn{width:100%;min-width:0}
}


.section-summary-card{margin-bottom:18px}
.section-schedule-block{margin-top:18px}
.section-monthly-schedule-block{margin-top:18px;background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%)}
.section-schedule-toolbar{justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.section-schedule-week{color:var(--muted);font-weight:700}
.section-schedule-weekend{color:var(--muted);margin-top:4px}
.section-schedule-nav{margin-top:15px;gap:10px;align-items:center;flex-wrap:wrap}
.section-schedule-content{margin-top:14px}
.section-schedule-notice{margin-top:10px}
.section-schedule-table-wrap{overflow:auto;margin-top:10px}
.section-schedule-table{min-width:0;width:100%;table-layout:auto}
.schedule-assign-table{min-width:1060px}
.sch-col-student{width:26%}
.sch-col-mode{width:14%}
.sch-col-unit{width:20%}
.sch-col-shift{width:18%}
.sch-col-area{width:22%}

/* ── Assignments table — mobile card layout ≤1200px ── */
@media(max-width:1200px){
  .schedule-assign-table{min-width:0;width:100%;}
  .schedule-assign-table thead{display:none;}
  .schedule-assign-table tbody tr{
    display:block;
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    margin-bottom:14px;
    padding:12px 14px;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
  }
  .schedule-assign-table tbody td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid var(--border);
    font-size:13px;
  }
  .schedule-assign-table tbody td:last-child{border-bottom:none;}
  .schedule-assign-table tbody td::before{
    content:attr(data-label);
    font-size:11px;
    font-weight:700;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
    flex-shrink:0;
    min-width:80px;
    padding-top:3px;
  }
  .schedule-assign-table tbody td > div,
  .schedule-assign-table tbody td > span,
  .schedule-assign-table tbody td > select{flex:1;min-width:0;}
  .sch-student-info{flex:1;min-width:0;}
  .schedule-assign-table .amit-input,
  .schedule-assign-table select{width:100%;max-width:160px;flex-shrink:0;}
}
.section-col-student{width:28%}
.section-col-shift{width:18%}
.section-col-time{width:16%}
.section-col-unit{width:18%}
.section-col-area{width:20%}
.section-student-cell{font-weight:900}
.section-student-badge{color:var(--muted);font-weight:700;margin-top:2px}

.section-schedule-cards{display:none;margin-top:10px}
.section-schedule-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.section-schedule-card + .section-schedule-card{margin-top:12px}

.section-schedule-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.section-schedule-period{margin-top:14px}
.section-schedule-card-name{font-weight:900;font-size:18px;line-height:1.3}
.section-schedule-card-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
.section-schedule-card-item{
  border-top:1px solid var(--border);
  padding-top:10px;
}
.section-schedule-card-label{color:var(--muted);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.section-schedule-card-value{font-weight:800;margin-top:4px;word-break:break-word}
.section-schedule-type-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.section-schedule-type-badge.weekly{background:rgba(5,150,105,.1);color:#047857;border:1px solid rgba(5,150,105,.18)}
.section-schedule-type-badge.monthly{background:rgba(29,78,216,.1);color:#1d4ed8;border:1px solid rgba(29,78,216,.18)}
.section-monthly-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.section-monthly-card{border:1px solid rgba(29,78,216,.12);border-radius:18px;padding:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.section-monthly-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.section-monthly-period{margin-top:14px;padding:12px 14px;border-radius:14px;background:rgba(29,78,216,.06);border:1px solid rgba(29,78,216,.1)}
.section-monthly-period-label{color:var(--muted);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.section-monthly-period-value{margin-top:6px;font-size:18px;font-weight:900}
.section-monthly-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.section-monthly-card-item{border-top:1px solid var(--border);padding-top:10px}

.admin-schedule-block{margin-top:18px}
.admin-schedule-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-schedule-card{height:100%}
.section-weekly-mobile{display:none;margin-top:12px}
@media (max-width: 900px){
  .section-schedule-table-wrap{display:none}
  .section-weekly-mobile{display:block}
  .admin-schedule-cards{grid-template-columns:1fr}
}
@media (max-width: 700px){
  html,body{overflow-x:clip}
  .container{overflow-x:clip}
  .section-summary-card,
  .section-schedule-block,
  .section-monthly-schedule-block,
  .section-schedule-content{max-width:100%;overflow-x:hidden}
  .section-schedule-toolbar{align-items:flex-start}
  .section-schedule-nav{width:100%}
  .section-schedule-nav .btn{flex:0 1 auto;min-width:150px;text-align:center}
  .section-schedule-cards{display:block;overflow-x:hidden}
  .section-schedule-card,
  .section-monthly-card{width:100%;max-width:100%;overflow:hidden}
  .section-schedule-card-top,
  .section-monthly-card-top{flex-direction:column}
  .section-schedule-type-badge.weekly,
  .section-schedule-type-badge.monthly{align-self:flex-start}
  .section-schedule-card{padding:16px}
  .section-schedule-card-grid,
  .section-monthly-card-grid{gap:10px}
  .section-schedule-card-item,
  .section-monthly-card-item{padding-top:8px}
  .section-schedule-card-name{font-size:20px}
  .section-monthly-cards{grid-template-columns:1fr}
  .section-monthly-card-grid,
  .section-schedule-card-grid{grid-template-columns:1fr}
  .section-monthly-period-value{font-size:16px;line-height:1.35;word-break:break-word;overflow-wrap:anywhere}
  .section-schedule-card-value,
  .section-schedule-card-name,
  .section-student-badge{overflow-wrap:anywhere;word-break:break-word}
}


.settings-section{border:1px solid var(--border);border-radius:18px;padding:16px;background:linear-gradient(180deg,#f9fbfe 0%,#f4f7fb 100%);margin-bottom:14px}
.settings-number-input{width:80px;text-align:center;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:15px;flex-shrink:0}
.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(15,23,42,.08)}
.settings-toggle-row:first-of-type{border-top:none;padding-top:0}
.settings-toggle-title{font-weight:800}
@media(max-width:640px){
  .settings-toggle-row{align-items:flex-start;flex-direction:column}
}

.settings-active-block{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.08)}
.settings-active-options{display:flex;flex-wrap:wrap;gap:10px}
.settings-active-option{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;font-weight:800}
.settings-active-option input{margin:0;width:auto}
@media(max-width:640px){
  .settings-active-options{flex-direction:column;align-items:stretch}
  .settings-active-option{width:100%;justify-content:flex-start}
}

/* ── Exam Question Cards ─────────────────────────────────────────────────── */
.exam-question-card{border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px;margin-bottom:12px;background:var(--surface)}
.exam-question-card:last-child{margin-bottom:0}
.exam-q-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.exam-q-title-wrap{flex:1;min-width:0}
.exam-q-title-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.exam-q-title{font-weight:800;font-size:15px;line-height:1.55;color:var(--text);min-width:0}
.exam-q-title-text{font-weight:700;color:var(--text);overflow-wrap:anywhere;word-break:break-word}
.exam-q-meta-badges{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex-shrink:0}
.exam-q-points-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid rgba(43,108,176,.18);background:rgba(43,108,176,.08);color:var(--brand-800);font-size:12px;font-weight:800;white-space:nowrap}
.exam-q-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.exam-q-num{font-weight:800;font-size:14px;color:var(--muted)}
.exam-q-points{font-size:12px;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:2px 7px}
.exam-q-text{font-weight:600;font-size:15px;margin-bottom:10px;line-height:1.5}
.exam-q-options{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.exam-q-option{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px}
.exam-q-option.correct{border-color:#2a9d5c;background:rgba(42,157,92,.07)}
.exam-q-opt-key{font-weight:800;min-width:18px;color:var(--brand-800)}
.exam-correct-tick{color:#2a9d5c;font-weight:800;margin-left:auto}
.exam-q-answer-row{font-size:14px;padding:8px 12px;background:rgba(42,157,92,.07);border:1px solid rgba(42,157,92,.2);border-radius:8px}
.exam-q-answer-lbl{font-weight:700;color:#2a9d5c;margin-inline-end:6px}
.exam-anatomy-img-wrap{margin-bottom:12px}
.exam-anatomy-img{width:100%;max-width:300px;height:auto;max-height:none;border-radius:var(--radius-sm);border:1px solid var(--border);display:block}
.exam-anatomy-answers{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.exam-anatomy-pair{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--bg)}
.exam-anatomy-num{font-weight:800;color:var(--brand-800);min-width:22px;text-align:center}
.exam-anatomy-ans{color:var(--text)}
.exam-anatomy-answer-builder{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.exam-anatomy-answer-row{display:grid;grid-template-columns:70px 1fr 38px;gap:8px;align-items:start}
.exam-num-input{text-align:center}
.exam-danger-zone{border:1px solid rgba(197,48,48,.22)!important}
.exam-danger-zone .h3{color:#b83232}
.exam-assign-grid{display:flex;flex-direction:column;gap:8px}
.exam-assign-row{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--border);border-radius:10px;cursor:pointer;transition:background .12s,border-color .12s}
.exam-assign-row:hover{background:var(--surface)}
.exam-assign-row.assigned{background:rgba(42,157,92,.06);border-color:rgba(42,157,92,.25)}
.exam-assign-row input[type=checkbox]{flex-shrink:0;width:18px;height:18px;accent-color:var(--brand)}
.exam-assign-info{flex:1;min-width:0}
.exam-assign-name{font-weight:700;font-size:14px}
.exam-assign-badge-no{font-size:12px;color:var(--muted)}
.exam-assign-right{display:flex;gap:6px;align-items:center;flex-wrap:wrap;flex-shrink:0}
@media(max-width:640px){.exam-assign-right{display:none}}
/* Assignment Matrix Table */
.assign-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border);border-radius:var(--radius-sm)}
.assign-table{width:100%;border-collapse:collapse;min-width:420px}
.assign-table thead tr{background:var(--surface)}
.assign-th-student{padding:12px 16px;text-align:start;font-size:13px;font-weight:700;color:var(--muted);border-bottom:1px solid var(--border);min-width:180px;position:sticky;left:0;background:var(--surface);z-index:2}
.assign-th-exam{padding:10px 12px;text-align:center;font-size:13px;border-bottom:1px solid var(--border);border-left:1px solid var(--border);min-width:130px;vertical-align:top}
.assign-exam-title{font-weight:700;font-size:13px;color:var(--text);line-height:1.3}
.assign-exam-type{margin-top:4px}
.assign-row:nth-child(even){background:var(--bg)}
.assign-row:hover{background:rgba(43,108,176,.04)}
.assign-td-student{padding:12px 16px;border-bottom:1px solid var(--border);position:sticky;left:0;background:inherit;z-index:1;min-width:180px}
.assign-student-name{font-weight:700;font-size:14px;color:var(--text)}
.assign-student-meta{display:flex;align-items:center;gap:6px;margin-top:4px}
.assign-student-badge{font-size:12px;color:var(--muted)}
.assign-td-check{padding:10px 8px;border-bottom:1px solid var(--border);border-left:1px solid var(--border);text-align:center;vertical-align:middle}
.assign-td-check input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand);cursor:pointer}
.assign-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding-top:14px;border-top:1px solid var(--border);margin-top:14px}
@media(max-width:480px){.assign-footer{flex-direction:column;align-items:stretch}.assign-footer .btn{width:100%;text-align:center}}
@media(max-width:640px){
  .exam-q-topline{flex-direction:column;align-items:stretch}
  .exam-q-title-row{flex-wrap:wrap}
  .exam-q-meta-badges{justify-content:flex-start}
  .exam-q-points-badge{white-space:normal}
}
.exam-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.exam-bulk-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm)}
@media(max-width:480px){.exam-bulk-bar{flex-direction:column;align-items:stretch}}
.exam-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:10px;transition:box-shadow .15s}
.exam-card:hover{box-shadow:0 4px 16px rgba(16,34,58,.08)}
.exam-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.exam-card-badges{display:flex;flex-wrap:wrap;gap:6px;flex:1}
.exam-card-title{font-size:16px;font-weight:800;color:var(--text);line-height:1.4}
.exam-card-unit{font-size:13px;color:var(--muted)}
.exam-card-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.exam-meta-item{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center}
.exam-meta-lbl{font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.exam-meta-val{font-size:15px;font-weight:800;color:var(--brand-900)}
.exam-card-actions{display:flex;gap:8px;margin-top:2px}
@media(max-width:640px){
  .exam-cards-grid{grid-template-columns:1fr}
  .exam-card-meta{grid-template-columns:repeat(3,1fr)}
}
.gap-8{gap:8px}

/* ── Admin Users ─────────────────────────────────────────────────────────── */
.admin-units-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}
.admin-unit-check{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;transition:background .15s}
.admin-unit-check:hover{background:var(--bg)}
.admin-unit-check input[type=checkbox]{width:16px;height:16px;flex-shrink:0;cursor:pointer}

/* ── Profile assigned units ──────────────────────────────────────────────── */
.profile-units-list{display:flex;flex-wrap:wrap;gap:8px}

/* ── Settings page layout ────────────────────────────────────────────────── */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.settings-card-solo{max-width:680px}
@media(max-width:860px){
  .settings-grid{grid-template-columns:1fr}
}

/* ── Database Tools card ─────────────────────────────────────────────────── */
.db-tools-card{border-color:rgba(43,108,176,.3)}
.db-tools-title{color:var(--info,#2b6cb0);margin-bottom:20px}
.db-tools-badge{font-size:11px;vertical-align:middle}
.db-tools-section{border-top:1px solid var(--border);padding-top:18px;margin-top:4px}
.db-tools-section-danger{border-top:1px solid rgba(197,48,48,.25);padding-top:18px;margin-top:4px}
.db-tools-section-title-warn{color:var(--warn,#b7791f)}
.db-tools-section-title-danger{color:#b83232}
.db-tools-backup-btn{white-space:nowrap}
.db-tools-backup-form{flex-shrink:0}
.db-tools-details summary{cursor:pointer;font-weight:700;font-size:13px;user-select:none}
.db-tools-details.warn summary{color:var(--warn,#b7791f)}
.db-tools-details.danger summary{color:#b83232}
.db-tools-details-body{margin-top:12px}
.db-tools-confirm-input{max-width:220px}
.db-tools-ack-label{display:flex;gap:10px;align-items:center;font-weight:700;margin:0 0 12px}
.db-tools-ack-checkbox{width:auto;min-height:auto}

/* ── Admin edit: status toggle row ──────────────────────────────────────── */
.admin-status-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid rgba(15,23,42,.08);margin-top:4px}
.admin-status-title{font-weight:800;margin-bottom:2px}

/* ── Admin edit: privileges panel ───────────────────────────────────────── */
/* ── Privileges panel (v1.62.0) ──────────────────────────────────────────── */
.admin-priv-preview-box{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  margin-top:16px;
}
.admin-priv-grid{display:flex;flex-direction:column;gap:14px;margin-bottom:4px}

/* Group container */
.priv-group{display:flex;flex-direction:column;gap:8px}
.priv-group-label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  padding-bottom:6px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:6px;
}
.priv-group-chips{display:flex;flex-wrap:wrap;gap:6px}

/* Read-only badges (preview on create form) */
.admin-priv-badge.on{background:rgba(47,133,90,.09);border-color:rgba(47,133,90,.28);color:#276749}
.admin-priv-badge.off{background:rgba(0,0,0,.03);border-color:var(--border);color:var(--muted);opacity:.5}
.admin-priv-note{
  margin-top:12px;
  padding:10px 12px;
  background:var(--surface);
  border-radius:var(--radius-sm);
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  border:1px solid var(--border);
}

/* Interactive toggles (edit + new form) */
.admin-priv-toggle{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  cursor:pointer;
  font-size:13px;font-weight:600;
  background:var(--bg);
  transition:border-color .15s,background .15s,box-shadow .15s;
  user-select:none;
}
.admin-priv-toggle.active{
  background:rgba(47,133,90,.07);
  border-color:rgba(47,133,90,.32);
}
.admin-priv-toggle:hover:not(.na):not(.locked){
  border-color:var(--brand-700);
  background:#fff;
  box-shadow:0 1px 4px rgba(16,34,58,.08);
}
.admin-priv-toggle.na{opacity:.35;cursor:default}
.admin-priv-toggle.locked{opacity:.7;cursor:default;background:var(--surface)}
.admin-priv-toggle input[type=checkbox]{
  width:15px;height:15px;
  cursor:pointer;flex-shrink:0;
  accent-color:var(--brand-800);
}
.admin-priv-toggle input[type=checkbox]:disabled{cursor:default}
.admin-priv-toggle-label.on{color:var(--text);font-weight:700}
.admin-priv-toggle-label.off{color:var(--muted);text-decoration:line-through;font-weight:600}
/* Two-line chip body */
.admin-priv-toggle-body{display:flex;flex-direction:column;gap:1px}
.admin-priv-toggle-desc{font-size:11px;font-weight:500;color:var(--muted);line-height:1.3;white-space:nowrap}
.admin-priv-toggle.active .admin-priv-toggle-desc{color:rgba(47,133,90,.75)}
.admin-priv-toggle.locked .admin-priv-toggle-desc{color:var(--muted)}
/* Two-line read-only badge */
.admin-priv-badge{display:inline-flex;flex-direction:column;gap:1px;padding:6px 12px;border-radius:10px;font-size:12px;font-weight:700;border:1px solid;vertical-align:top}
.admin-priv-badge-main{display:flex;align-items:center;gap:4px}
.admin-priv-badge-desc{font-size:11px;font-weight:500;opacity:.75;white-space:nowrap}
.admin-priv-na{
  font-size:10px;color:var(--muted);font-weight:800;
  text-transform:uppercase;letter-spacing:.05em;
  margin-left:2px;
  padding:1px 5px;
  background:var(--bg);
  border-radius:4px;
  border:1px solid var(--border);
}

/* Header row with Select All / Deselect All */
.admin-priv-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.admin-priv-header .lbl{margin-bottom:0;font-size:13px;font-weight:800}
.admin-priv-actions{display:flex;gap:6px;flex-shrink:0}

/* Responsive */
@media(max-width:900px){
  .priv-group-chips{gap:5px}
  .admin-priv-toggle{font-size:12px;padding:5px 9px}
  .admin-priv-toggle-desc{font-size:10px}
  .admin-priv-badge-desc{font-size:10px}
}
@media(max-width:640px){
  .admin-priv-toggle-desc,.admin-priv-badge-desc{display:none}
}

/* ── Admin edit: danger zone ─────────────────────────────────────────────── */
.admin-danger-zone{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.admin-danger-zone-title{font-size:13px;font-weight:700;color:#b83232}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.mt-14{margin-top:14px}
.hidden{display:none}


/* ── Schedule locked field display ──────────────────────────────────────────── */
.schedule-field-locked{display:inline-block;padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--muted);font-size:14px;font-weight:600;min-width:80px}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dash-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:20px 24px;background:linear-gradient(120deg,var(--brand-900) 0%,var(--brand-700) 100%);border-radius:var(--radius);margin-bottom:0;color:#fff}
.dash-hero-greeting{font-size:13px;font-weight:600;opacity:.7;margin-bottom:2px}
.dash-hero-name{font-size:22px;font-weight:900;letter-spacing:-.02em}
.dash-hero-date{font-size:12px;font-weight:700;opacity:.6;white-space:nowrap}

.dash-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:16px}

/* Base stat card */
.dash-stat-card{display:flex;flex-direction:column;gap:6px;padding:18px 16px;border-radius:var(--radius);border:1px solid transparent;text-decoration:none;color:inherit;transition:transform .18s,box-shadow .18s;position:relative;overflow:hidden}
.dash-stat-card::before{content:'';position:absolute;inset:0;opacity:.06;background:radial-gradient(circle at 110% 10%,#fff 0%,transparent 60%)}
a.dash-stat-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(16,34,58,.15);text-decoration:none}
.dash-stat-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.dash-stat-icon .icon{width:18px;height:18px}
.dash-stat-value{font-size:28px;font-weight:900;letter-spacing:-.03em;line-height:1}
.dash-stat-label{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.75}

/* Colour variants */
.dash-stat-blue  {background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border-color:rgba(59,130,246,.3)}
.dash-stat-teal  {background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;border-color:rgba(20,184,166,.3)}
.dash-stat-navy  {background:linear-gradient(135deg,#1f355d,#355b8f);color:#fff;border-color:rgba(53,91,143,.3)}
.dash-stat-amber {background:linear-gradient(135deg,#b45309,#f59e0b);color:#fff;border-color:rgba(245,158,11,.3)}
.dash-stat-orange{background:linear-gradient(135deg,#c2410c,#f97316);color:#fff;border-color:rgba(249,115,22,.3)}
.dash-stat-rose  {background:linear-gradient(135deg,#be123c,#f43f5e);color:#fff;border-color:rgba(244,63,94,.3)}
.dash-stat-purple{background:linear-gradient(135deg,#7e22ce,#a855f7);color:#fff;border-color:rgba(168,85,247,.3)}
.dash-stat-green {background:linear-gradient(135deg,#15803d,#22c55e);color:#fff;border-color:rgba(34,197,94,.3)}
.dash-stat-card .dash-stat-icon{background:rgba(255,255,255,.15)}
.dash-stat-card .icon{color:#fff}

/* Quick action cards */
.dash-quick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.dash-quick-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);text-decoration:none;color:var(--text);transition:border-color .15s,background .15s,transform .15s}
.dash-quick-card:hover{border-color:var(--brand-700);background:#fff;transform:translateY(-2px);text-decoration:none}
.dash-quick-icon{width:28px;height:28px;border-radius:7px;background:linear-gradient(135deg,var(--brand-900),var(--brand-700));display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.dash-quick-icon .icon{width:15px;height:15px;color:#fff}
.dash-quick-label{font-size:13px;font-weight:800;color:var(--text)}
.dash-quick-desc{font-size:11px;color:var(--muted);font-weight:600}

.dash-card-actions{display:flex;gap:6px}
@media(max-width:640px){
  .dash-stats-grid{grid-template-columns:repeat(2,1fr)}
  .dash-quick-grid{grid-template-columns:repeat(2,1fr)}
  .dash-hero{flex-direction:column;align-items:flex-start;gap:6px}
}
.dash-bottom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);align-items:start}
@media(max-width:960px){.dash-bottom-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.dash-bottom-grid{grid-template-columns:1fr}}
.dash-empty-note{padding:10px 0;color:var(--muted)}

/* ── Admin units: All Units toggle row ──────────────────────────────────── */
.admin-units-all-row{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.admin-unit-all-check{background:var(--surface);border-color:var(--brand-700);font-weight:800}
.admin-unit-all-check:hover{background:rgba(53,91,143,.07)}

/* ── Reports export grid ─────────────────────────────────────────────────── */
.reports-export-grid{display:flex;flex-direction:column;gap:10px}
.reports-export-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}
.reports-export-label{font-weight:800;font-size:14px}
.reports-export-btns{display:flex;gap:6px}
.reports-pdf-btn{background:var(--brand-900);color:#fff;border-color:var(--brand-900)}
.reports-pdf-btn:hover{background:var(--brand-700)}
.reports-activity-sub{font-weight:500;font-size:13px;color:var(--muted)}
.reports-bar-cell{min-width:140px}
.reports-bar-track{background:var(--border);border-radius:4px;height:7px;overflow:hidden;margin-top:4px}
.reports-bar-fill{background:var(--info,#2b6cb0);height:7px;border-radius:4px}
.reports-bar-label{font-size:11px;color:var(--muted);margin-top:3px}
.reports-export-all{background:linear-gradient(135deg,rgba(31,53,93,.04),rgba(53,91,143,.06));border-color:var(--brand-700)}
.reports-export-all .reports-export-label{color:var(--brand-900)}

/* ── Reports checkbox selection ─────────────────────────────────────────── */
.reports-sel-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reports-sel-actions{display:flex;gap:6px}
.reports-check-grid{display:flex;flex-wrap:wrap;gap:8px}
.reports-check-item{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:14px;font-weight:600;transition:border-color .15s,background .15s,color .15s;user-select:none}
.reports-check-item:hover{border-color:var(--brand-700);background:#fff}
.reports-check-item.selected{border-color:var(--brand-700);background:rgba(53,91,143,.08);color:var(--brand-900)}
.reports-check-item input[type=checkbox]{width:15px;height:15px;cursor:pointer;flex-shrink:0;accent-color:var(--brand-800)}
.reports-export-btns-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.reports-sel-summary{font-size:13px}

/* ── Sidebar user block ─────────────────────────────────────────────────── */
.side-user-block{
  padding:60px 12px 12px;
  margin-bottom:6px;
  display:none;
}
.side-user-name{
  font-size:15px;font-weight:800;color:#fff;
  word-break:break-word;
}
.side-user-role{
  font-size:11px;font-weight:600;color:rgba(255,255,255,.5);
  text-transform:uppercase;letter-spacing:.08em;margin-top:2px;
  word-break:break-word;
}

/* ── Topbar welcome pill (desktop/tablet only) ──────────────────────────── */
.topbar-welcome{
  display:flex;flex-direction:column;gap:1px;
  padding:6px 12px;line-height:1.2;
}
.topbar-welcome-role{
  font-size:10px;font-weight:600;opacity:.7;letter-spacing:.04em;text-transform:uppercase;
}

/* ── Sidebar logout ──────────────────────────────────────────────────────── */
.side-logout-group{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.1)}
.side-logout-link{opacity:.8}
.side-logout-link:hover{opacity:1;background:rgba(220,50,50,.18) !important}

/* ── Front layout hamburger nav ─────────────────────────────────────────── */
.front-hamburger{
  display:none;
  flex-direction:column;justify-content:center;align-items:center;
  gap:5px;width:40px;height:40px;padding:6px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  border-radius:8px;cursor:pointer;flex-shrink:0;
}
.front-hamburger span{
  display:block;width:20px;height:2px;background:#fff;border-radius:2px;
  transition:transform .22s,opacity .22s;
}
.front-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.front-hamburger.open span:nth-child(2){opacity:0}
.front-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.front-nav-mobile{
  display:none;
  background:linear-gradient(180deg,var(--brand-900),var(--brand-800));
  position:fixed;
  top:var(--topbar-h);
  left:0;right:0;
  z-index:100;
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
  box-shadow:0 8px 24px rgba(16,34,58,.25);
}
.front-nav-mobile.open{
  max-height:calc(100vh - var(--topbar-h));
  overflow-y:auto;
}

@media(max-width:640px){
  .front-nav-mobile{display:block;}
}
.front-nav-mobile a{
  color:#dfe8f8;font-weight:700;font-size:15px;
  padding:12px 20px;display:block;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.front-nav-mobile a:hover{background:rgba(255,255,255,.08)}

.front-nav-mobile-static{
  color:#dfe8f8;font-weight:700;font-size:15px;
  padding:12px 20px;display:block;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.exam-lock-badge-mobile{
  color:#ffd7d7 !important;
  font-weight:700;
}
.front-nav-mobile-static.exam-lock-badge-mobile{
  cursor:default;
  pointer-events:none;
}

@media(max-width:640px){
  .front-nav-desktop{display:none !important}
  .front-hamburger{display:flex}
}

/* ── Front Units dropdown ───────────────────────────────────────────────── */
.front-units-dd{position:relative;display:inline-flex;}
.front-units-btn{display:flex;align-items:center;gap:5px;white-space:nowrap;}
.front-units-dd-menu{
  display:none;position:absolute;top:calc(100% + 8px);left:0;
  min-width:180px;background:var(--brand-900);
  border:1px solid rgba(255,255,255,.15);border-radius:var(--radius-sm);
  box-shadow:0 8px 24px rgba(16,34,58,.3);z-index:200;overflow:hidden;
}
.front-units-dd-menu.open{display:block;}
.front-units-dd-menu a{
  display:block;padding:11px 16px;color:#dfe8f8;font-weight:700;font-size:14px;
  border-bottom:1px solid rgba(255,255,255,.07);white-space:nowrap;
}
.front-units-dd-menu a:last-child{border-bottom:0;}
.front-units-dd-menu a:hover{background:rgba(255,255,255,.1);}

/* Mobile units section inside hamburger */
.front-units-mob-label{
  color:rgba(255,255,255,.5);font-size:11px;font-weight:800;
  letter-spacing:.1em;text-transform:uppercase;
  padding:10px 20px 4px;
}
.front-units-mob-link{padding-left:32px !important;font-size:14px !important;}

/* ── Schedules pagination ────────────────────────────────────────────────── */
.sched-pagination{display:flex;align-items:center;gap:10px;justify-content:center;padding:6px 0}
.sched-page-info{font-size:13px;font-weight:700;color:var(--text)}
.sched-page-disabled{opacity:.35;cursor:default;pointer-events:none}
.row-gap-sm{display:flex;align-items:center;gap:6px;}

/* ── Competencies page ───────────────────────────────────────────────────── */
.comp-th-cat{width:20%;}
.comp-th-title-en{width:22%;}
.comp-th-title-ar{width:22%;}
.comp-th-rating{text-align:center;width:80px;} .comp-table th.comp-th-rating,.comp-table td.comp-td-rating{text-align:center;}
.comp-th-active{width:60px;}
.comp-th-del{width:44px;}
.comp-table td,.comp-table th{vertical-align:middle;}
.comp-table .input-sm{width:100%;box-sizing:border-box;}

.comp-td-rating{text-align:center;vertical-align:middle;}
.comp-td-active{vertical-align:middle;}
.comp-td-del{vertical-align:middle;text-align:center;}
.comp-td-cat{font-size:13px;color:var(--text-muted);}
.comp-rating-cb{width:16px;height:16px;cursor:default;accent-color:var(--brand);}
.comp-cat-row td{background:var(--surface);}
.comp-cat-row-sel{background:var(--surface);}
.comp-cat-cell{
  background:var(--surface);
  font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand);padding:8px 12px;
}
.comp-unit-bar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;}
.comp-assign-bar{display:flex;flex-direction:column;max-width:320px;}
.comp-remarks-textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:90px;}
.comp-unit-bar-left{display:flex;flex-direction:column;flex:1;min-width:0;}
.comp-unit-select{max-width:300px;width:100%;box-sizing:border-box;}
.input-sm{padding:10px 12px;font-size:15px;}
.hidden{display:none!important;}

/* ── Competencies responsive table ───────────────────────────────────────── */
.comp-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
#comp-container{overflow:visible;}
.comp-table{table-layout:fixed;width:100%;}
.comp-mobile-selall{display:none;align-items:center;}
.comp-mobile-selall-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;cursor:pointer;}
.comp-mobile-selall-label input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--brand);}
/* Laptop only: hide Title AR to fit in ~764px content width */
@media(min-width:901px) and (max-width:1200px){
  .comp-th-title-ar,.comp-td-title-ar{display:none;}
  .comp-th-title-en{width:34%;}
  .comp-th-cat{width:30%;}
  .comp-table th{font-size:14px;}
}
@media(max-width:900px){
  .comp-table{min-width:0;width:100%;table-layout:auto;}
  .comp-mobile-selall{display:flex;}
  .comp-table thead{display:none;}
  .comp-table tbody tr.comp-row{display:block;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;padding:10px 14px;}
  .comp-table tbody tr.comp-cat-row{display:block;border:none;margin-bottom:0;padding:0;}
  .comp-table tr.comp-row td{display:flex;align-items:center;justify-content:space-between;gap:8px;border:none;border-bottom:1px solid var(--border-light);padding:8px 0;font-size:13px;}
  .comp-table tr.comp-row td:last-child{border-bottom:none;}
  .comp-table tr.comp-row td[data-label]::before{content:attr(data-label);font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;min-width:90px;flex-shrink:0;}
  .comp-table tr.comp-row td.comp-td-del,
  .comp-table tr.comp-row td.comp-th-sel{justify-content:flex-end;}
  .comp-table .input-sm{width:100%;max-width:200px;}
  .comp-unit-bar{flex-direction:column;align-items:stretch;gap:10px;}
  .comp-unit-bar-left,.comp-unit-bar-right{width:100%;}
  .comp-unit-select,.comp-assign-bar{max-width:100%;width:100%;}
  .comp-assign-bar select,.comp-assign-bar .input{max-width:100%;width:100%;}
  .comp-remarks-textarea{min-height:70px;}
}
.comp-card-cat-label{
  font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brand);padding:12px 4px 6px;
}
.comp-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:14px;margin-bottom:10px;
  width:100%;box-sizing:border-box;overflow:hidden;
}
.comp-card-header{margin-bottom:10px;}
.comp-card-cat-input{width:100%;box-sizing:border-box;}
.comp-card-cat-badge{
  display:inline-block;font-size:11px;font-weight:700;
  background:var(--surface);border:1px solid var(--border);
  border-radius:6px;padding:3px 8px;color:var(--brand);
}
.comp-card-body{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;}
.comp-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;}
.comp-card-ratings{display:flex;gap:14px;}
.comp-card-rating-label{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;}
.comp-card-actions{display:flex;align-items:center;gap:8px;}


/* ── Competency result meta ──────────────────────────────────────────────── */
.comp-result-wrap{display:flex;flex-direction:column;align-items:center;gap:2px;position:relative;}
.comp-result-meta{
  position:absolute;
  bottom:calc(100% + 5px);
  left:50%;
  transform:translateX(-50%);
  background:var(--brand);
  color:#fff;
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
  padding:3px 7px;
  border-radius:5px;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s;
  z-index:10;
}
.comp-result-meta::after{
  content:'';
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:4px solid transparent;
  border-top-color:var(--brand);
}
.comp-result-wrap:hover .comp-result-meta{opacity:1;}

.comp-card-unit-actions{display:flex;align-items:center;gap:8px;}
.comp-th-sel{width:80px;text-align:center;vertical-align:middle;background:var(--surface);padding:6px 4px;}
.comp-th-sel .comp-select-all-label{justify-content:center;margin:0;}
td.comp-th-sel{background:transparent;text-align:center;vertical-align:middle;}
td.comp-th-sel .comp-row-cb{width:15px;height:15px;cursor:pointer;accent-color:var(--brand);vertical-align:middle;}
.comp-th-del{width:110px;text-align:center;}
.comp-sel-all-label{display:block;font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:5px;white-space:nowrap;}
.comp-sel-all-cb{width:15px;height:15px;cursor:pointer;accent-color:var(--brand);display:block;margin:0 auto;}
.comp-select-all-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;cursor:pointer;}
/* comp hidden-until-activated columns */
.comp-edit-col{display:none;}
#comp-container.edit-mode-on  .comp-edit-col{display:table-cell;}
#comp-container.edit-mode-on  .comp-edit-col.comp-unit-bar-right{display:flex;}
#comp-container.edit-mode-on  .comp-card-unit-actions.comp-edit-col{display:flex;}
/* restore bar in default template view */
.comp-restore-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;}
/* ── Inline category row actions ── */
.comp-cat-name-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);}
.comp-cat-actions-cell{text-align:end;background:var(--surface);}
.comp-cat-inline-actions{display:inline-flex;gap:6px;align-items:center;}
.comp-cat-save-actions{display:inline-flex;gap:6px;align-items:center;}
/* Category select in row */
.comp-cat-edit-form{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.comp-cat-rename-inner{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.comp-cat-rename-input{min-width:160px;max-width:280px;}
/* ── New category bar ── */
.comp-new-cat-bar{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:10px 14px;}
.comp-new-cat-inner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.comp-new-cat-input{flex:1;min-width:160px;}
@media(max-width:600px){.comp-cat-inline-actions{flex-wrap:wrap;}.comp-cat-rename-input{min-width:120px;}}
/* unit-bar right section */
.comp-unit-bar-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;}

/* ── Student Portal ─────────────────────────────────────────────────────── */
/* .student-portal-wrap removed v1.62.0 — replaced by .unified-login-wrap */
.w-100{width:100%}

/* Dashboard */
.student-dashboard-wrap{max-width:1100px;margin:32px auto;padding:0 16px}
.student-dash-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.student-dash-greeting{}
.student-dash-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:20px}
@media(max-width:700px){.student-dash-grid{grid-template-columns:1fr}}
.student-dash-card{display:flex;flex-direction:column;gap:10px}
.student-dash-card-title{font-weight:800;font-size:15px;color:var(--text);margin-bottom:4px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.student-info-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}
.student-info-row:last-child{border-bottom:none}
.student-details-grid{display:flex;flex-direction:column;gap:0}
.student-detail-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}
.student-detail-row:last-child{border-bottom:none}
.student-detail-lbl{font-size:13px;color:var(--muted);min-width:130px;flex-shrink:0}
.student-detail-val{font-size:14px;font-weight:600;color:var(--text)}
@media(max-width:480px){.student-detail-lbl{min-width:100px}}
.student-excuse-row{display:flex;align-items:center;gap:8px;padding:4px 0}
.mb-16{margin-bottom:16px}

/* ── Unified Login Page (v1.62.0) ───────────────────────────────────────── */
.unified-login-wrap{
  max-width:480px;
  margin:48px auto;
  padding:0 16px;
}
.unified-login-tabs{
  display:flex;
  border-radius:var(--radius) var(--radius) 0 0;
  overflow:hidden;
  border:1px solid var(--border);
  border-bottom:none;
  background:var(--surface);
}
.unified-tab-btn{
  flex:1;
  padding:13px 10px;
  font-size:14px;
  font-weight:700;
  background:var(--surface);
  color:var(--muted);
  border:none;
  cursor:pointer;
  transition:background .15s,color .15s;
  border-radius:0;
  letter-spacing:.3px;
}
.unified-tab-btn:hover{
  background:var(--bg);
  color:var(--text);
}
.unified-tab-btn.active{
  background:var(--brand-800);
  color:#fff;
}
.unified-login-panel{
  display:none;
}
.unified-login-panel.active{
  display:block;
}
.unified-login-card{
  border-radius:0 0 var(--radius) var(--radius);
  border-top:none;
}
.unified-login-title{
  font-size:20px;
  font-weight:800;
  color:var(--text);
  margin-bottom:20px;
}
.unified-login-form .form-group{
  margin-bottom:14px;
}
.unified-login-form .form-group:last-child{
  margin-bottom:0;
}
.unified-login-btn{
  width:100%;
  padding:13px;
  font-size:15px;
}
.unified-login-alert{
  margin-bottom:14px;
}
.unified-login-footer{
  margin-top:16px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
.unified-login-footer a{
  color:var(--brand-800);
  font-weight:700;
  margin-left:4px;
}
[dir=rtl] .unified-login-footer a{
  margin-left:0;
  margin-right:4px;
}
@media(max-width:480px){
  .unified-login-wrap{margin:24px auto;}
}

/* ── Students Registration Page (v1.62.0) ──────────────────────────────── */
.sreg-wrap{
  max-width:480px;
  margin:48px auto;
  padding:0 16px;
}
.sreg-card{
  border-radius:var(--radius);
}
.sreg-title{
  font-size:20px;
  font-weight:800;
  color:var(--text);
  margin-bottom:20px;
}
.sreg-form .form-group{
  margin-bottom:14px;
}
.sreg-form .form-group:last-child{
  margin-bottom:0;
}
.sreg-btn{
  width:100%;
  padding:13px;
  font-size:15px;
}
.sreg-alert{
  margin-bottom:14px;
}
.sreg-footer{
  margin-top:16px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
.sreg-footer a{
  color:var(--brand-800);
  font-weight:700;
  margin-left:4px;
}
[dir=rtl] .sreg-footer a{
  margin-left:0;
  margin-right:4px;
}
@media(max-width:480px){
  .sreg-wrap{margin:24px auto;}
}

@media(max-width:480px){
  .sreg-wrap{margin:24px auto;}
}

/* ── Training Period Row (v1.92.1) ─────────────────────────────────────── */
.training-period-row{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.training-period-field{
  flex:1;
  min-width:140px;
}
.form-label-sm{
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--text-muted);
  margin-bottom:4px;
}
@media(max-width:480px){
  .training-period-row{flex-direction:column;gap:8px;}
  .training-period-field{min-width:0;width:100%;}
}
.mt-10{margin-top:10px;}

/* ── Privilege Table (v1.62.0) ──────────────────────────────────────────── */
.priv-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.priv-table thead tr{
  background:var(--brand-900);
  color:#fff;
}
.priv-th-page{
  text-align:left;
  padding:9px 12px;
  font-weight:700;
  min-width:130px;
}
.priv-th-col{
  text-align:center;
  padding:9px 8px;
  font-weight:700;
  width:70px;
}
.priv-th-extra{
  text-align:center;
  padding:9px 12px;
  font-weight:700;
  min-width:120px;
}
/* Group header row */
.priv-group-header td{
  background:var(--surface);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:7px 12px;
  border-top:2px solid var(--border);
}
/* Data rows */
.priv-row td{
  padding:8px 8px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}
.priv-row-on .priv-td-page{
  color:var(--text);
  font-weight:700;
}
.priv-row:not(.priv-row-on) .priv-td-page{
  color:var(--muted);
}
.priv-td-page{
  padding-left:14px;
  font-size:13px;
}
.priv-td-col{
  text-align:center;
}
.priv-td-extra{
  text-align:center;
}
/* Checkboxes */
.priv-table input[type=checkbox]{
  width:16px;
  height:16px;
  cursor:pointer;
  accent-color:var(--brand-800);
  vertical-align:middle;
}
.priv-table input[type=checkbox]:disabled{
  cursor:not-allowed;
  opacity:.3;
}
/* Status indicators (read-only) */
.priv-state.on{color:var(--ok);font-weight:700;font-size:13px}
.priv-state.off{color:var(--muted);font-size:13px}
.priv-dash{color:var(--border);font-size:15px}
.priv-na{
  font-size:10px;font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.05em;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:4px;
  padding:1px 5px;
}
/* Extra column labels */
.priv-extra-label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
  padding:2px 4px;
}
.priv-extra-label input{cursor:pointer}
/* Row hover */
.priv-row:hover td{background:rgba(53,91,143,.04)}
/* Table wrapper */
.admin-priv-grid{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
/* ── Responsive: mobile card layout ≤640px ──────────────────────────────── */
@media(max-width:640px){
  .priv-table thead{display:none}
  .priv-group-header td{padding:6px 10px;font-size:10px}
  .priv-row{display:block;border-bottom:2px solid var(--border);padding:8px 0}
  .priv-row td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:5px 10px;
    border-bottom:none;
    font-size:13px;
  }
  .priv-td-page{
    font-weight:800;
    font-size:13px;
    padding-left:10px;
    background:var(--surface);
    border-radius:6px 6px 0 0;
  }
  .priv-td-col::before,
  .priv-td-extra::before{
    content:attr(data-label);
    font-size:11px;
    font-weight:700;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .priv-table .priv-table{width:100%}
}

/* ── Excuse Pages (v1.62.0) ─────────────────────────────────────────────── */

/* Student excuse page */
.excuse-page-wrap{max-width:1000px;margin:24px auto;padding:0 16px}
.excuse-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.excuse-alert{margin-bottom:16px}
.excuse-layout{display:grid;grid-template-columns:380px 1fr;gap:22px;align-items:flex-start}
@media(max-width:820px){.excuse-layout{grid-template-columns:1fr}}

.excuse-form-card{}
.excuse-form-title{font-size:16px;font-weight:800;margin-bottom:16px;color:var(--text)}
.excuse-form .form-group{margin-bottom:14px}
.excuse-form .form-group:last-child{margin-bottom:0}
.excuse-submit-btn{width:100%;padding:12px}
.text-danger{color:#b83232}

.excuse-history-title{font-size:15px;font-weight:800;margin-bottom:12px;color:var(--text)}
.excuse-item{margin-bottom:14px}
.excuse-item-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.excuse-item-meta{display:flex;align-items:center;gap:6px}
.excuse-item-type{font-weight:700;font-size:14px}
.excuse-item-dates{margin-bottom:6px;font-size:13px}
.excuse-item-reason{font-size:13px;color:var(--text);margin-bottom:10px;line-height:1.5}

/* Status timeline */
.excuse-timeline{display:flex;flex-direction:column;gap:8px;padding:10px 0 4px;border-top:1px solid var(--border)}
.excuse-tl-step{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.excuse-tl-step.done{color:var(--ok)}
.excuse-tl-step.rejected{color:#b83232}
.excuse-tl-dot{width:10px;height:10px;border-radius:50%;background:var(--border);flex-shrink:0}
.excuse-tl-step.done .excuse-tl-dot{background:var(--ok)}
.excuse-tl-step.rejected .excuse-tl-dot{background:#b83232}
.excuse-tl-label{font-weight:700;min-width:100px}
.excuse-tl-date{opacity:.75}
.excuse-tl-who{opacity:.75;font-style:italic}
.excuse-rejection-note{margin-top:8px;padding:8px 12px;background:rgba(197,48,48,.07);border-radius:8px;font-size:13px;border:1px solid rgba(197,48,48,.15)}

/* Admin excuses page */
.excuses-admin-wrap{max-width:1100px;margin:0 auto}
.excuses-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
@media(max-width:640px){.excuses-stats-row{grid-template-columns:repeat(2,1fr)}}
.excuses-stat{padding:16px;border-radius:var(--radius);border:1px solid var(--border);text-align:center}
.excuses-stat.warn{background:rgba(183,121,31,.07);border-color:rgba(183,121,31,.22)}
.excuses-stat.info{background:rgba(43,108,176,.07);border-color:rgba(43,108,176,.22)}
.excuses-stat.ok{background:rgba(47,133,90,.07);border-color:rgba(47,133,90,.22)}
.excuses-stat.danger{background:rgba(197,48,48,.07);border-color:rgba(197,48,48,.22)}
.excuses-stat-num{font-size:28px;font-weight:800;line-height:1}
.excuses-stat-lbl{font-size:12px;font-weight:700;margin-top:4px;opacity:.8;text-transform:uppercase;letter-spacing:.04em}
.excuses-filter-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.excuse-admin-card{margin-bottom:14px}
.excuse-admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.excuse-admin-student{}
.excuse-admin-name{font-weight:800;font-size:15px}
.excuse-admin-details{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;margin-bottom:14px;padding:12px;background:var(--surface);border-radius:var(--radius-sm)}
@media(max-width:640px){.excuse-admin-details{grid-template-columns:1fr}}
.excuse-admin-detail-row{display:flex;gap:8px;font-size:13px}
.excuse-admin-reason{grid-column:1 / -1}

.excuse-approval-chain{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--bg);border-radius:var(--radius-sm);margin-bottom:12px;flex-wrap:wrap}
.excuse-chain-step{display:flex;align-items:flex-start;gap:8px;font-size:13px}
.excuse-chain-icon{font-size:16px;font-weight:800;width:22px;text-align:center;flex-shrink:0;color:var(--muted)}
.excuse-chain-step.done .excuse-chain-icon{color:var(--ok)}
.excuse-chain-step.rejected .excuse-chain-icon{color:#b83232}
.excuse-chain-label{font-weight:700}
.excuse-chain-meta{font-size:11px;color:var(--muted)}
.excuse-chain-arrow{color:var(--muted);font-size:16px;padding:0 4px}
.excuse-rejection-block{padding:8px 12px;background:rgba(197,48,48,.07);border-radius:8px;font-size:13px;border:1px solid rgba(197,48,48,.15);margin-bottom:12px}

.excuse-admin-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--border)}
.excuse-action-form{display:inline-block}
.excuse-reject-form{margin-top:10px;padding:12px;background:var(--surface);border-radius:var(--radius-sm);border:1px solid var(--border)}
.excuse-reject-reason{width:100%;margin-bottom:8px}
.excuse-reject-btns{display:flex;gap:8px}

/* ── Unit Areas inline view (v1.62.0) ───────────────────────────────────── */
.td-unit-areas{white-space:nowrap}
.unit-areas-toggle{font-size:12px;font-weight:700;padding:4px 10px;white-space:nowrap}
.unit-areas-expandrow td,
.unit-areas-expandcell{
  padding:12px 20px 16px !important;
  background:var(--surface);
  border-bottom:2px solid var(--border);
}
.unit-areas-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:6px 16px;
  max-width:900px;
}
.unit-area-row{
  display:flex;align-items:center;gap:10px;
  padding:6px 10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:13px;
  transition:background .15s;
}
.unit-area-row:hover{background:var(--bg)}
.unit-area-row-inactive{opacity:.55;background:var(--surface)}
.unit-area-num{
  min-width:24px;height:24px;
  display:flex;align-items:center;justify-content:center;
  background:var(--brand-900);color:#fff;
  border-radius:50%;
  font-size:11px;font-weight:800;flex-shrink:0;
}
.unit-area-row-inactive .unit-area-num{background:var(--muted)}
.unit-area-name{font-weight:600;color:var(--text);flex:1;line-height:1.3}
.unit-area-badge-off{
  font-size:10px;font-weight:700;
  color:var(--muted);background:var(--border);
  border-radius:4px;padding:1px 6px;
  text-transform:uppercase;letter-spacing:.04em;flex-shrink:0;
}
/* Mobile */
.unit-mobile-areas{margin:8px 0 4px}
.unit-mobile-areas .unit-areas-expandrow{margin-top:6px}
.unit-mobile-areas .unit-areas-list{grid-template-columns:1fr}
@media(max-width:640px){.unit-areas-list{grid-template-columns:1fr}}

/* ── Student Profile / Change Password (v1.62.0) ───────────────────────── */
.student-profile-wrap{max-width:480px;margin:24px auto;padding:0 16px}
.student-profile-card{margin-top:0}
.student-profile-form .form-group{margin-bottom:18px}
.student-profile-form .form-group:last-child{margin-bottom:0}
.student-profile-submit{width:100%;padding:12px}
.profile-divider{border:none;border-top:1px solid var(--border);margin:18px 0 0 0}
.w-100{width:100%}
.form-hint{font-size:12px;color:var(--muted);margin-top:5px}

/* ── Units table: center Actions header only (v1.62.0) ──────────────────── */
.units-desktop-table thead th:last-child{text-align:center}

/* ── Excuse monthly rule reminder (v1.62.0) ─────────────────────────────── */
.excuse-rule-reminder{
  display:flex;align-items:flex-start;gap:7px;
  background:rgba(43,108,176,.07);
  border:1px solid rgba(43,108,176,.2);
  border-radius:8px;
  padding:8px 10px;
  font-size:12px;font-weight:600;
  color:var(--info);
  margin-bottom:10px;
  line-height:1.4;
}
.excuse-rule-icon{font-size:14px;flex-shrink:0;margin-top:1px}
.excuse-monthly-usage{
  display:flex;align-items:center;gap:8px;
  margin-bottom:10px;
}
.excuse-usage-bar-wrap{display:flex;gap:5px;align-items:center}
.excuse-usage-dot{
  width:12px;height:12px;border-radius:50%;
  background:var(--border);
  border:2px solid var(--border);
  transition:background .2s;
}
.excuse-usage-dot.used{
  background:var(--info);
  border-color:var(--info);
}
.excuse-usage-label{font-size:12px;font-weight:700;color:var(--text)}


/* ── Excuse Templates (v1.62.0) ─────────────────────────────────────────── */
.etpl-wrap{max-width:1100px;margin:0 auto}
.etpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}
.etpl-card{display:flex;flex-direction:column;gap:0}
.etpl-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.etpl-unit-name{font-size:16px;font-weight:800}
.etpl-form{border-top:1px solid var(--border);padding-top:12px}
.etpl-form:first-of-type{border-top:none;padding-top:0}
.etpl-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.etpl-sig-preview{margin:8px 0}
.etpl-sig-preview img{max-width:160px;max-height:60px;object-fit:contain;border:1px solid var(--border);border-radius:4px;padding:4px}
.etpl-pdf-link{margin:6px 0}
.etpl-approved-note{margin-top:10px;font-size:13px;font-weight:700;color:var(--ok)}
@media(max-width:640px){.etpl-grid{grid-template-columns:1fr}}

/* ── Template Assignment Panel (v1.62.0) ────────────────────────────────── */
.tpl-assign-form{}
.tpl-select-all-row{padding-bottom:8px;border-bottom:1px solid var(--border)}
.tpl-units-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-top:12px}
.tpl-unit-row{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px}
.tpl-check-label{display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
.tpl-unit-label{font-weight:600;font-size:13px}
.tpl-name-input{flex:1;min-width:0}
.tpl-status-table td{vertical-align:middle}
@media(max-width:640px){
  .tpl-status-table thead{display:none;}
  .tpl-status-table tbody tr{
    display:block;
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    margin-bottom:12px;
    padding:10px 14px;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
  }
  .tpl-status-table tbody td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 0;
    border-bottom:1px solid var(--border);
    font-size:13px;
    white-space:normal;
  }
  .tpl-status-table tbody td:last-child{border-bottom:none;}
  .tpl-status-table tbody td::before{
    content:attr(data-label);
    font-size:11px;
    font-weight:700;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
    flex-shrink:0;
    min-width:80px;
  }
  .tpl-status-table .btn{width:100%;justify-content:center;text-align:center;}
}
.tpl-sig-thumb{max-width:80px;max-height:36px;object-fit:contain;border:1px solid var(--border);border-radius:4px;display:block;margin-bottom:4px}
.tpl-inline-form{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tpl-file-input{font-size:11px;max-width:130px}
.mb-4{margin-bottom:4px}
@media(max-width:640px){.tpl-units-grid{grid-template-columns:1fr}.tpl-file-input{max-width:100%}}

/* ── Student Schedule Card (v1.62.0) ────────────────────────────────────── */
.student-shift-today-box{background:linear-gradient(135deg,var(--primary) 0%,#2563eb 100%);border-radius:var(--radius);padding:14px 16px;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.student-shift-today-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;opacity:.85}
.student-shift-today-name{font-size:17px;font-weight:800;margin-top:2px}
.student-shift-today-meta{font-size:12px;opacity:.82;margin-top:3px}
.student-shift-today-time{background:rgba(255,255,255,.18);border-radius:8px;padding:6px 14px;font-size:13px;font-weight:700;white-space:nowrap}
.student-shift-no-today{background:var(--surface);border:1.5px dashed var(--border);border-radius:var(--radius);padding:12px 16px;color:var(--muted);font-size:13px;text-align:center}
.student-shift-upcoming-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-top:12px;margin-bottom:6px}
.student-shift-table{width:100%;border-collapse:collapse;font-size:13px}
.student-shift-table th{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:5px 8px;text-align:start;border-bottom:1.5px solid var(--border)}
.student-shift-table td{padding:8px 8px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text)}
.student-shift-table tbody tr:last-child td{border-bottom:none}
.student-shift-table tbody tr:hover td{background:var(--surface)}
.student-shift-badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}
.student-shift-badge.morning{background:#fef9c3;color:#854d0e}
.student-shift-badge.evening{background:#dbeafe;color:#1e40af}
.student-shift-badge.night{background:#ede9fe;color:#5b21b6}
.student-shift-badge.oncall{background:#dcfce7;color:#166534}
.student-shift-badge.none{background:var(--surface);color:var(--muted);border:1px solid var(--border)}
.student-shift-no-upcoming{color:var(--muted);font-size:13px;text-align:center;padding:14px 0}
@media(max-width:480px){
  .student-shift-today-box{flex-direction:column;align-items:flex-start}
  .student-shift-table th:nth-child(3),.student-shift-table td:nth-child(3){display:none}
}

/* ── Student Schedule Card (v1.62.0) ─────────────────────────────────── */
.student-schedule-card{min-width:0}

.student-upcoming-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:6px;margin-top:4px}
.student-upcoming-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px;border:1px solid var(--border)}
.student-upcoming-table{width:100%;border-collapse:collapse;font-size:13px;min-width:280px}
.student-upcoming-table th{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;padding:8px 10px;text-align:start;border-bottom:1.5px solid var(--border);background:var(--surface);white-space:nowrap}
.student-upcoming-table td{padding:9px 10px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text)}
.student-upcoming-table tbody tr:last-child td{border-bottom:none}
.student-upcoming-table tbody tr:hover td{background:var(--surface)}
.sched-date-cell{white-space:nowrap;color:var(--muted);font-size:12px}
.sched-area-cell{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sched-time-cell{white-space:nowrap;font-size:12px;color:var(--muted)}
/* Shift type badges */
.student-shift-type-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}
.student-shift-type-badge.shift-morning{background:#fef9c3;color:#854d0e}
.student-shift-type-badge.shift-evening{background:#dbeafe;color:#1e40af}
.student-shift-type-badge.shift-night{background:#ede9fe;color:#5b21b6}
.student-shift-type-badge.shift-oncall{background:#dcfce7;color:#166534}
.student-shift-type-badge.shift-none{background:var(--surface);color:var(--muted);border:1px solid var(--border)}

/* Responsive: hide area & time columns on very small screens */
@media(max-width:420px){
  .student-upcoming-table th:nth-child(3),
  .student-upcoming-table td:nth-child(3),
  .student-upcoming-table th:nth-child(4),
  .student-upcoming-table td:nth-child(4){display:none}
}

/* ── Student Schedule: shift-label badge & default notice (v1.62.0 patch) ── */
.shift-label-badge{background:#eef3ff;color:#2563eb;border:1px solid #c7d9ff}
.student-default-shift-notice{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.student-default-shift-notice-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.student-default-shift-notice-lbl{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.student-default-shift-time{font-size:13px;font-weight:700;color:var(--text)}
.student-default-shift-hint{font-size:12px;color:var(--muted);line-height:1.5;padding-top:4px;border-top:1px solid var(--border)}

/* ── Unit & Area wide card (v1.62.3) ────────────────────────────────────── */
.student-dash-card-wide{grid-column:1 / -1}

/* ── Excuse day read-only display (v1.62.8) ─────────────────────────────── */
.excuse-day-readonly{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;font-size:14px;font-weight:600;color:var(--text);cursor:default}

/* ── Cancelled excuse card & cancel button (v1.63.0) ────────────────────── */
.excuse-item-cancelled{opacity:.7}
.excuse-item-cancelled .excuse-item-reason{color:var(--muted)}
.excuse-item-actions{margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
.excuse-cancel-btn{font-size:12px}

/* ── Dashboard Pending Notifications (v1.63.3) ──────────────────────────── */
.dash-notify-panel{background:#fffbeb;border:1.5px solid #f59e0b;border-radius:var(--radius);padding:16px 20px;margin-bottom:20px}
.dash-notify-header{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.dash-notify-icon{font-size:18px;line-height:1}
.dash-notify-title{font-size:14px;font-weight:800;color:#92400e;text-transform:uppercase;letter-spacing:.4px}
.dash-notify-items{display:flex;flex-direction:column;gap:10px}
.dash-notify-item{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #fde68a;border-radius:8px;padding:10px 14px;flex-wrap:wrap}
.dash-notify-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.dot-amber{background:#f59e0b}
.dot-blue{background:#3b82f6}
.dot-green{background:#10b981}
.dash-notify-text{flex:1;font-size:13px;font-weight:600;color:#1a1a2e;min-width:0}
.dash-notify-link{font-size:12px;font-weight:700;color:#92400e;white-space:nowrap;text-decoration:none;padding:4px 10px;background:#fef3c7;border-radius:6px;border:1px solid #fde68a;transition:background .15s}
.dash-notify-link:hover{background:#fde68a}
@media(max-width:600px){
  .dash-notify-item{flex-direction:column;align-items:flex-start}
  .dash-notify-link{align-self:flex-end}
}
/* RTL */
[dir="rtl"] .dash-notify-link{direction:rtl}

/* ── Admin Profile page (v1.63.6) ───────────────────────────────────────── */
.profile-sig-preview{max-height:80px;max-width:200px;object-fit:contain;border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px;background:#fff;display:block;margin-bottom:8px}
.profile-sig-section{margin-top:8px}
.profile-sig-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
@media(max-width:720px){.profile-form-grid{grid-template-columns:1fr !important}}

/* ── Excuse inline edit panel (v1.65.7) ─────────────────────────────────── */
.excuse-edit-panel{margin-top:12px;padding:14px;background:var(--bg);border:1.5px solid var(--brand-200);border-radius:var(--radius);animation:fadeIn .15s ease}
.excuse-edit-notice{border-radius:var(--radius-sm)}

/* ── Student dashboard period row responsive (v1.66.3) ──────────────────── */
.student-period-badge{font-size:11px;margin-inline-start:6px;vertical-align:middle}
@media(max-width:480px){
  .student-info-row--period{flex-direction:column;align-items:flex-start;gap:4px}
  .student-period-value{display:flex;flex-wrap:wrap;align-items:center;gap:4px;white-space:normal;word-break:break-word}
  .student-period-badge{margin-inline-start:0}
}

/* ── Excuse signed PDF section (v1.66.4) ────────────────────────────────── */
.excuse-signed-pdf-section{margin-top:10px;padding-top:8px;border-top:1px dashed var(--border)}
.excuse-signed-pdf-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.excuse-signed-pdf-form{margin-top:4px}
.excuse-signed-pdf-upload-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
@media(max-width:480px){
  .excuse-signed-pdf-upload-row{flex-direction:column;align-items:flex-start}
  .excuse-signed-pdf-upload-row .btn{width:100%}
}

/* ── Excuse page signature section (v1.66.7) ────────────────────────────── */
.excuse-sig-card{border-left:3px solid var(--brand)}
.excuse-sig-header{margin-bottom:10px}
.excuse-sig-title{font-weight:700;font-size:14px;color:var(--text)}
.excuse-sig-preview-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.excuse-sig-upload-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
@media(max-width:480px){
  .excuse-sig-upload-row{flex-direction:column;align-items:flex-start}
  .excuse-sig-upload-row .btn{width:100%}
}

/* ── Template inline edit panel (v1.67.2) ───────────────────────────────── */
.tpl-edit-row td{padding:8px 12px;background:var(--bg-alt,#f8f9fa)}
.tpl-edit-panel{display:flex;flex-direction:column;gap:6px}
.tpl-edit-row-fields{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tpl-edit-row-fields .input{flex:1;min-width:180px}
@media(max-width:600px){.tpl-edit-row-fields{flex-direction:column;align-items:flex-start}}

/* ── Admin excuse remark section (v1.67.3) ──────────────────────────────── */
.excuse-admin-remark-wrap{padding:10px 0 6px;border-top:1px solid var(--border);margin-top:10px}
.excuse-remark-form{display:flex;flex-direction:column;gap:4px}
.excuse-admin-remark-input{font-size:13px;resize:vertical;min-height:52px}

/* ── Excuse remark view/edit toggle (v1.67.8) ───────────────────────────── */
.excuse-remark-view{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 0}
.excuse-remark-text{font-size:13px;color:var(--text);white-space:pre-wrap}
.excuse-remark-edit.is-hidden{display:none}
.excuse-remark-view.is-hidden{display:none !important}

/* ── Evaluations ──────────────────────────────────────────────────────────── */
.eval-tabs{display:flex;gap:0;border-bottom:2px solid var(--border);margin-bottom:24px;}
.eval-tab{padding:10px 22px;font-size:13px;font-weight:600;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;text-decoration:none;border-radius:6px 6px 0 0;transition:color .15s,border-color .15s;}
.eval-tab:hover{color:var(--brand);}
.eval-tab.active{color:var(--brand);border-bottom-color:var(--brand);background:var(--bg);}
.eval-score-btn{padding:5px 14px;border-radius:6px;font-size:12px;font-weight:600;border:1.5px solid var(--border);background:var(--bg);cursor:pointer;transition:background .15s,border-color .15s,color .15s;}
.eval-score-btn.sc-1{background:#dcfce7;border-color:#22c55e;color:#15803d;}
.eval-score-btn.sc-2{background:#dbeafe;border-color:#3b82f6;color:#1d4ed8;}
.eval-score-btn.sc-3{background:#fef9c3;border-color:#eab308;color:#854d0e;}
.eval-score-btn.sc-4{background:#fee2e2;border-color:#ef4444;color:#b91c1c;}
.eval-status-badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:11px;font-weight:700;}
.eval-status-draft{background:#f3f4f6;color:#6b7280;}
.eval-status-submitted{background:#fef9c3;color:#854d0e;}
.eval-status-unit_approved{background:#dbeafe;color:#1e40af;}
.eval-status-approved{background:#dcfce7;color:#166534;}
.eval-status-rejected{background:#fee2e2;color:#991b1b;}
.eval-restore-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--alert-ok-bg,#f0fdf4);border:1px solid var(--alert-ok-border,#bbf7d0);border-radius:8px;margin-bottom:16px;}
.eval-student-card{background:var(--bg);border:1.5px solid var(--border);border-radius:12px;padding:20px 24px;margin-bottom:16px;}
.eval-progress-bar{height:8px;background:var(--border);border-radius:4px;overflow:hidden;margin-bottom:6px;}
.eval-progress-fill{height:100%;background:var(--brand);border-radius:4px;}
@media(max-width:640px){.eval-tab{padding:8px 12px;font-size:12px;}.eval-score-btn{padding:4px 10px;font-size:11px;}}
/* ── Evaluations — moved from inline style block ─────────────────────────── */
.eval-tabs{display:flex;gap:0;border-bottom:2px solid var(--border);margin-bottom:24px;}
.eval-tab{padding:10px 22px;font-size:13px;font-weight:600;color:var(--text-muted);border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;text-decoration:none;border-radius:6px 6px 0 0;transition:color .15s,border-color .15s;}
.eval-tab:hover{color:var(--brand);}
.eval-tab.active{color:var(--brand);border-bottom-color:var(--brand);background:var(--bg);}
.eval-tpl-table{width:100%;border-collapse:collapse;}
.eval-tpl-table th{background:var(--surface);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);padding:8px 10px;border-bottom:2px solid var(--border);}
.eval-tpl-table td{padding:7px 10px;border-bottom:1px solid var(--border);vertical-align:middle;}
.eval-tpl-th-cat{width:28%}
.eval-tpl-th-del,.eval-tpl-td-del{width:54px;text-align:center;}
@media(max-width:1200px){
  .eval-tpl-table thead{display:none;}
  .eval-tpl-table tbody tr{
    display:block;
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    margin-bottom:12px;
    padding:10px 14px;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
  }
  .eval-tpl-table tbody td{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:7px 0;
    border-bottom:1px solid var(--border);
    font-size:13px;
    width:100%;
    box-sizing:border-box;
  }
  .eval-tpl-table tbody td:last-child{border-bottom:none;}
  .eval-tpl-table tbody td::before{
    content:attr(data-label);
    font-size:11px;
    font-weight:700;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
  }
  .eval-tpl-table .input-sm{width:100%;box-sizing:border-box;min-width:0;}
  .eval-tpl-td-del{
    flex-direction:row;
    justify-content:flex-end;
    align-items:center;
  }
  .eval-tpl-td-del::before{display:none;}
}
.eval-cat-row td{background:var(--surface);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);padding:8px 10px;}
.eval-score-row td{padding:8px 12px;}
.eval-score-label{display:flex;align-items:center;gap:8px;font-size:13px;}
.eval-score-btns{display:flex;gap:6px;flex-wrap:wrap;}
.eval-score-btn{padding:5px 14px;border-radius:6px;font-size:12px;font-weight:600;border:1.5px solid var(--border);background:var(--bg);cursor:pointer;transition:background .15s,border-color .15s,color .15s;}
.eval-score-btn.sc-1{background:#dcfce7;border-color:#22c55e;color:#15803d;}
.eval-score-btn.sc-2{background:#dbeafe;border-color:#3b82f6;color:#1d4ed8;}
.eval-score-btn.sc-3{background:#fef9c3;border-color:#eab308;color:#854d0e;}
.eval-score-btn.sc-4{background:#fee2e2;border-color:#ef4444;color:#b91c1c;}
.eval-list-table{width:100%;border-collapse:collapse;}
.eval-list-table th{background:var(--surface);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;text-align:start;color:var(--text-muted);padding:9px 12px;border-bottom:2px solid var(--border);}
.eval-list-table td{padding:9px 12px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle;}
.eval-status-badge{display:inline-block;padding:2px 10px;border-radius:20px;font-size:11px;font-weight:700;}
.eval-status-draft{background:#f3f4f6;color:#6b7280;}
.eval-status-submitted{background:#fef9c3;color:#854d0e;}
.eval-status-unit_approved{background:#dbeafe;color:#1e40af;}
.eval-status-approved{background:#dcfce7;color:#166534;}
.eval-status-rejected{background:#fee2e2;color:#991b1b;}
.eval-grade{font-weight:700;font-size:13px;}
.eval-restore-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--alert-ok-bg,#f0fdf4);border:1px solid var(--alert-ok-border,#bbf7d0);border-radius:8px;margin-bottom:16px;}
/* Reject modal */
.eval-reject-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:900;display:flex;align-items:center;justify-content:center;}
.eval-reject-card{min-width:340px;max-width:480px;width:90%;}
/* Evaluate form */
.eval-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:14px;}
.eval-student-readonly{background:var(--surface);}
.eval-fallback-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}

/* ── Evaluate Student — redesigned ───────────────────────────────────────── */
/* Header bar inside the card */
.eval-form-header{background:linear-gradient(120deg,var(--brand-900) 0%,var(--brand-700) 100%);border-radius:10px;padding:18px 22px;margin-bottom:20px;color:#fff;}
.eval-form-header h2{margin:0;font-size:17px;font-weight:800;letter-spacing:.01em;color:#fff;}
.eval-form-header p{margin:4px 0 0;font-size:12px;opacity:.78;}

/* Top fields section */
.eval-fields-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px 18px;margin-bottom:22px;}

/* Category header row */
.eval-cat-label-row{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,var(--brand-900),var(--brand-800));color:#fff;padding:9px 16px;border-radius:8px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;margin-top:10px;}
.eval-cat-label-row::before{content:'';display:inline-block;width:4px;height:16px;background:#fff;border-radius:2px;opacity:.7;flex-shrink:0;}

/* Score item row */
.eval-score-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border:1px solid var(--border);border-radius:8px;gap:14px;flex-wrap:wrap;transition:border-color .15s,box-shadow .15s;}
.eval-score-item:hover{border-color:var(--brand-700);box-shadow:0 2px 8px rgba(42,71,118,.08);}
.eval-score-item-label{font-size:13px;flex:1;min-width:180px;color:var(--text);line-height:1.45;}

/* Score buttons */
.eval-score-btns{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0;}
.eval-score-btn{padding:7px 16px;border-radius:20px;font-size:12px;font-weight:700;border:1.5px solid var(--border);background:var(--bg);cursor:pointer;transition:all .15s;white-space:nowrap;}
.eval-score-btn:hover{border-color:var(--brand-700);background:var(--surface);}
.eval-score-btn.sc-1{background:#dcfce7;border-color:#22c55e;color:#15803d;box-shadow:0 0 0 3px rgba(34,197,94,.15);}
.eval-score-btn.sc-2{background:#dbeafe;border-color:#3b82f6;color:#1d4ed8;box-shadow:0 0 0 3px rgba(59,130,246,.15);}
.eval-score-btn.sc-3{background:#fef9c3;border-color:#eab308;color:#854d0e;box-shadow:0 0 0 3px rgba(234,179,8,.15);}
.eval-score-btn.sc-4{background:#fee2e2;border-color:#ef4444;color:#b91c1c;box-shadow:0 0 0 3px rgba(239,68,68,.15);}

/* Submit row */
.eval-submit-row{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding:14px 18px;background:var(--surface);border-top:1px solid var(--border);border-radius:0 0 10px 10px;margin:-1px -1px -1px -1px;}

@media(max-width:900px){.eval-form-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:640px){
  .eval-form-grid{grid-template-columns:1fr;}
  .eval-tab{padding:8px 12px;font-size:12px;}
  .eval-score-btn{padding:6px 11px;font-size:11px;}
  .eval-cat-label-row{font-size:10px;padding:8px 12px;}
  .eval-score-item{padding:10px 12px;flex-direction:column;align-items:flex-start;gap:8px;}
  .eval-score-item-label{min-width:0;width:100%;}
  .eval-score-btns{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px;}
  .eval-score-btn{width:100%;text-align:center;justify-content:center;padding:8px 6px;font-size:11px;}
  .eval-form-header{padding:14px 16px;}
  .eval-submit-row{flex-direction:column;align-items:stretch;}
  .eval-submit-row .btn{width:100%;justify-content:center;}
}

/* ── Evaluations list — responsive cards ─────────────────────────────────── */
.ev-admin-list{display:flex;flex-direction:column;gap:12px;}
.ev-admin-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:16px 18px;transition:box-shadow .15s;}
.ev-admin-card:hover{box-shadow:var(--shadow-sm);}
.ev-admin-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap;}
.ev-admin-name{font-size:14px;font-weight:700;color:var(--text);line-height:1.3;}
.ev-admin-badge{font-size:11px;color:var(--muted);margin-top:2px;}
.ev-admin-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.ev-admin-meta-chip{display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:6px 12px;min-width:100px;}
.ev-admin-meta-lbl{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);}
.ev-admin-meta-val{font-size:12px;font-weight:600;color:var(--text);}
.ev-admin-grade{color:var(--brand-700);font-weight:800;}
.ev-admin-card-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:12px;border-top:1px solid var(--border);}
@media(max-width:480px){
  .ev-admin-card{padding:14px;}
  .ev-admin-meta-chip{min-width:calc(50% - 4px);}
  .ev-admin-card-actions .btn{flex:1;justify-content:center;}
}

/* ── Unit Supervisor Assignment cards ────────────────────────────────────── */
.usa-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap;}
.usa-badge-count{display:inline-flex;align-items:center;padding:4px 14px;background:var(--brand-800);color:#fff;border-radius:20px;font-size:12px;font-weight:700;white-space:nowrap;}
.usa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;}
.usa-unit-card{background:var(--surface);border:1.5px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;transition:box-shadow .15s,border-color .15s;}
.usa-unit-card:hover{box-shadow:var(--shadow-sm);border-color:var(--brand-700);}
.usa-unit-top{display:flex;align-items:center;gap:10px;}
.usa-unit-icon{font-size:22px;flex-shrink:0;}
.usa-unit-initial{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand-800),var(--brand-700));color:#fff;font-size:15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:-.02em;}
.usa-unit-info{flex:1;min-width:0;}
.usa-unit-name{font-size:14px;font-weight:700;color:var(--text);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.usa-unit-sub{font-size:11px;color:var(--muted);margin-top:1px;}
.usa-assigned-dot{width:22px;height:22px;border-radius:50%;background:#dcfce7;color:#16a34a;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.usa-unassigned-dot{width:22px;height:22px;border-radius:50%;background:#fef9c3;color:#854d0e;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.usa-supervisor-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.usa-supervisor-lbl{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);white-space:nowrap;}
.usa-supervisor-chip{display:inline-flex;align-items:center;padding:3px 10px;background:#fff;border:1px solid var(--border);border-radius:20px;font-size:12px;font-weight:600;color:var(--text);}
.usa-supervisor-empty{font-size:12px;color:var(--muted);font-style:italic;}
.usa-assign-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.usa-select{flex:1;min-width:0;}
.usa-assign-btn{white-space:nowrap;flex-shrink:0;}
@media(max-width:480px){.usa-grid{grid-template-columns:1fr;}.usa-assign-form{flex-direction:column;align-items:stretch;}}


.student-restricted-wrap{max-width:780px;margin:28px auto;padding:0 12px}.student-restricted-card{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;border-radius:22px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 18px 38px rgba(15,23,42,.08);border:1px solid rgba(21,94,239,.08)}.student-restricted-ar{font-size:clamp(26px,4vw,34px);font-weight:800;color:var(--brand-900);line-height:1.5}.student-restricted-en{font-size:clamp(18px,2.8vw,22px);font-weight:700;color:var(--text);line-height:1.5}@media (max-width:640px){.student-restricted-wrap{margin:16px auto;padding:0 8px}.student-restricted-card{min-height:180px;padding:28px 18px;border-radius:18px}.student-restricted-ar{font-size:24px}.student-restricted-en{font-size:17px}}

/* ── Guide page (v1.95.0) ────────────────────────────────────────────────── */
.guide-wrap{max-width:760px;margin:24px auto;padding:0 16px}
.guide-accordion{display:flex;flex-direction:column;gap:10px}
.guide-item{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card-bg)}
.guide-item.open{border-color:var(--brand);box-shadow:0 2px 12px rgba(21,94,239,.08)}
.guide-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:none;border:none;cursor:pointer;text-align:start;color:var(--text)}
.guide-header:hover{background:var(--surface)}
.guide-item.open .guide-header{background:var(--brand);color:#fff}
.guide-title{font-size:15px;font-weight:700;flex:1}
.guide-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.guide-role-badge{font-size:11px;padding:2px 8px;border-radius:20px;background:rgba(255,255,255,.25);color:inherit;font-weight:600}
.guide-item:not(.open) .guide-role-badge{background:var(--surface);color:var(--muted)}
.guide-chevron{font-size:14px;transition:transform .2s}
.guide-item.open .guide-chevron{transform:rotate(180deg)}
.guide-body{padding:20px 24px;border-top:1px solid var(--border)}
.guide-content{font-size:14px;color:var(--text);line-height:1.7}
.guide-step{display:flex;gap:10px;margin:4px 0;align-items:baseline}
.guide-step-num{font-weight:700;color:var(--brand);min-width:22px;flex-shrink:0}
.guide-bullet{padding-inline-start:14px;margin:3px 0;color:var(--text)}
.guide-section-label{font-weight:700;margin-top:12px;margin-bottom:4px;color:var(--text)}
.guide-line{margin:2px 0}
@media(max-width:480px){.guide-wrap{padding:0 8px}.guide-header{padding:14px 16px}.guide-body{padding:16px}}

/* ── Dashboard Guide Card (v1.95.1) ─────────────────────────────────────── */
.dash-guide-card{padding:0;overflow:hidden}
.dash-guide-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:linear-gradient(135deg,var(--brand-900) 0%,var(--brand-700) 100%);flex-wrap:wrap}
.dash-guide-header-left{display:flex;align-items:center;gap:14px}
.dash-guide-icon{font-size:28px;line-height:1;flex-shrink:0}
.dash-guide-title{font-size:18px;font-weight:800;color:#fff;line-height:1.2}
.dash-guide-sub{font-size:12px;color:rgba(255,255,255,.75);margin-top:2px}
.dash-guide-accordion{padding:16px 20px;display:flex;flex-direction:column;gap:8px}
.dash-guide-item{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card-bg);transition:border-color .15s,box-shadow .15s}
.dash-guide-item.open{border-color:var(--brand);box-shadow:0 2px 14px rgba(21,94,239,.09)}
.dash-guide-item-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:none;border:none;cursor:pointer;text-align:start;color:var(--text);transition:background .15s}
.dash-guide-item-header:hover{background:var(--surface)}
.dash-guide-item.open .dash-guide-item-header{background:var(--brand);color:#fff}
.dash-guide-item-title{font-size:14px;font-weight:700;flex:1}
.dash-guide-item-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}
.dash-guide-role-tag{font-size:11px;padding:2px 8px;border-radius:20px;font-weight:600;background:rgba(255,255,255,.22);color:inherit}
.dash-guide-item:not(.open) .dash-guide-role-tag{background:var(--surface);color:var(--muted)}
.dash-guide-chevron{font-size:13px;transition:transform .2s;color:inherit}
.dash-guide-item.open .dash-guide-chevron{transform:rotate(180deg)}
.dash-guide-item-body{padding:18px 20px;border-top:1px solid var(--border);font-size:13.5px;color:var(--text);line-height:1.75}
.dg-step{display:flex;gap:10px;margin:4px 0;align-items:baseline}
.dg-step-num{font-weight:800;color:var(--brand);min-width:22px;flex-shrink:0}
.dg-bullet{padding-inline-start:14px;margin:3px 0}
.dg-section-lbl{font-weight:700;margin-top:12px;margin-bottom:3px;color:var(--brand-900)}
.dg-line{margin:2px 0}
@media(max-width:640px){.dash-guide-header{padding:16px}.dash-guide-accordion{padding:12px 14px}.dash-guide-item-header{padding:12px 14px}.dash-guide-item-body{padding:14px 16px}}

/* ── Demo Banner (v1.96.0) ───────────────────────────────────────────────── */
.demo-banner{display:flex;align-items:center;justify-content:center;gap:10px;background:#92400e;color:#fef3c7;font-size:13px;font-weight:600;padding:9px 20px;text-align:center;flex-wrap:wrap;letter-spacing:.01em;border-bottom:2px solid #78350f;position:sticky;top:0;z-index:999;}
.demo-banner-icon{font-size:16px;flex-shrink:0;}
.demo-banner-text{flex:1;min-width:0;}
@media(max-width:480px){.demo-banner{font-size:12px;padding:8px 12px;gap:6px;}}

/* ── Maintenance Banner & Wall (v1.96.2) ─────────────────────────────────── */
.maintenance-banner{display:flex;align-items:center;justify-content:center;gap:10px;background:#7f1d1d;color:#fee2e2;font-size:13px;font-weight:600;padding:9px 20px;text-align:center;flex-wrap:wrap;letter-spacing:.01em;border-bottom:2px solid #991b1b;position:sticky;top:0;z-index:999;}
.maintenance-banner-icon{font-size:16px;flex-shrink:0;}
.maintenance-banner-text{flex:1;min-width:0;}
.maintenance-banner-btn{background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);color:#fee2e2;padding:4px 14px;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s;}
.maintenance-banner-btn:hover{background:rgba(255,255,255,.25);color:#fff;}
@media(max-width:480px){.maintenance-banner{font-size:12px;padding:8px 12px;gap:6px;}}
.maintenance-wall{min-height:calc(100vh - var(--topbar-h,74px));display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);padding:24px 16px;}
.maintenance-wall-card{background:#fff;border-radius:18px;box-shadow:0 24px 64px rgba(0,0,0,.35);padding:52px 48px;max-width:480px;width:100%;text-align:center;}
.maintenance-wall-icon{font-size:56px;line-height:1;margin-bottom:20px;}
.maintenance-wall-title{font-size:26px;font-weight:800;color:#0f172a;margin-bottom:12px;}
.maintenance-wall-msg{font-size:15px;color:#475569;line-height:1.7;margin-bottom:0;}
.maintenance-wall-lang{display:flex;gap:12px;justify-content:center;margin-top:28px;}
.maintenance-wall-lang a{font-size:13px;color:#64748b;text-decoration:none;padding:6px 16px;border:1px solid #e2e8f0;border-radius:20px;transition:all .15s;}
.maintenance-wall-lang a:hover{background:#f1f5f9;color:#0f172a;}
@media(max-width:480px){.maintenance-wall-card{padding:36px 24px;}.maintenance-wall-title{font-size:22px;}.maintenance-wall-icon{font-size:44px;}}
