:root{--p:#208c87;--t:#243d3b;--bg:#f5f8f7;--muted:#788784;--line:#e2eae7;--danger:#b44848}
*{box-sizing:border-box}.afaq-system-body{margin:0;background:var(--bg);font-family:Cairo,Tahoma,Arial,sans-serif;color:var(--t)}.afaq-layout{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.afaq-sidebar{background:#fff;padding:24px 16px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:10px}.afaq-logo{font-weight:900;font-size:20px;color:var(--t);text-decoration:none}.afaq-sidebar small{color:var(--muted)}.afaq-sidebar nav{display:grid;gap:6px;margin-top:16px}.afaq-sidebar nav a{padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--t)}.afaq-sidebar nav a.active,.afaq-sidebar nav a:hover{background:#eaf7f5;color:var(--p)}.afaq-logout{margin-top:auto;color:#8a3e3e;text-decoration:none}
.afaq-content{padding:24px;min-width:0}.afaq-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.afaq-top h1{margin:0;font-size:25px}.afaq-top p{margin:4px 0;color:var(--muted)}.afaq-top a{text-decoration:none;color:var(--p)}.afaq-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.afaq-stats article,.afaq-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.afaq-stats b{font-size:28px;display:block}.afaq-stats span{color:var(--muted)}
.afaq-card{margin-bottom:16px}.afaq-card h2{margin-top:0}.afaq-table-wrap{overflow:auto}.afaq-table{width:100%;border-collapse:collapse}.afaq-table th,.afaq-table td{text-align:right;padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}.afaq-btn{border:0;background:var(--p);color:#fff;padding:10px 14px;border-radius:9px;font-family:inherit;font-weight:700;text-decoration:none;cursor:pointer}.afaq-btn.small{padding:7px 10px;font-size:13px}.afaq-btn.secondary{background:#607a76}.afaq-btn.danger{background:var(--danger)}
.afaq-list{display:grid;gap:10px}.afaq-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}.afaq-title-row{display:flex;justify-content:space-between;align-items:center}.afaq-hidden{display:none!important}.afaq-form,.afaq-inline-form{display:grid;gap:12px;margin:16px 0}.afaq-inline-form{grid-template-columns:repeat(4,1fr);align-items:end}.afaq-form label,.afaq-auth-card label{display:grid;gap:6px;font-weight:700}.afaq-form input,.afaq-form select,.afaq-form textarea,.afaq-inline-form input,.afaq-auth-card input{width:100%;padding:11px;border:1px solid #ccd9d5;border-radius:9px;font:inherit}.afaq-bank{padding:14px;border-radius:12px;background:#eef8f7}.afaq-auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#eaf8f5,#fff7e8)}.afaq-auth-card{width:min(450px,100%);background:#fff;padding:28px;border-radius:18px;border:1px solid var(--line);box-shadow:0 16px 40px rgba(36,61,59,.08)}.afaq-auth-card form{display:grid;gap:14px}.afaq-back{text-decoration:none;color:var(--p)}.afaq-alert{padding:10px;border-radius:8px}.afaq-alert.error{background:#fff0f0;color:#983939}
@media(max-width:850px){.afaq-layout{grid-template-columns:1fr}.afaq-sidebar{position:relative;border-left:0;border-bottom:1px solid var(--line)}.afaq-sidebar nav{display:flex;overflow:auto}.afaq-sidebar nav a{white-space:nowrap}.afaq-stats{grid-template-columns:1fr}.afaq-content{padding:14px}.afaq-inline-form{grid-template-columns:1fr}.afaq-top{align-items:flex-start;gap:8px}.afaq-row{align-items:flex-start;flex-wrap:wrap}}

.afaq-alert.success{background:#edf9ef;color:#34713d}


/* Separate client and operational portals */
.afaq-parent-layout{--portal-accent:#208c87}
.afaq-parent-sidebar{background:#fffdf8;border-left-color:#eee2cf}
.afaq-parent-sidebar .afaq-logo{color:#208c87}
.afaq-parent-sidebar nav a.active{background:#fff0d7;color:#8a631c}
.afaq-staff-layout{--portal-accent:#243d3b}
.afaq-staff-sidebar{background:#f8fbfa}

.afaq-permissions{display:flex;gap:14px;flex-wrap:wrap;padding:12px;background:#f5f8f7;border-radius:10px}.afaq-permissions label{display:flex;align-items:center;gap:6px}

.afaq-token{word-break:break-all;padding:14px;border:1px dashed #8aa9a4;background:#f7fbfa;border-radius:10px;font-family:monospace;font-size:14px}

/* Billing documents */
.afaq-document{max-width:960px;margin-inline:auto}
.afaq-doc-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;border-bottom:1px solid #dfe8e7;padding-bottom:18px;margin-bottom:20px}
.afaq-doc-head p{margin:.35rem 0}
.afaq-doc-actions{display:flex;justify-content:flex-end;margin-bottom:14px}
.afaq-doc-totals{max-width:430px;margin:20px 0 20px auto}
.afaq-doc-totals p{display:flex;justify-content:space-between;gap:20px;padding:8px 0;margin:0;border-bottom:1px solid #edf1f1}
.afaq-doc-balance{font-size:1.08rem}
.afaq-doc-footer{margin-top:28px;padding-top:16px;border-top:1px solid #dfe8e7}
.afaq-receipt{max-width:720px}.afaq-receipt-amount{font-size:2rem;font-weight:700;margin:24px 0}
.afaq-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0}
.afaq-kpis>div{padding:16px;border:1px solid #e1e9e8;border-radius:14px;background:#fff}.afaq-kpis span{display:block;font-size:.86rem;margin-bottom:6px}
@media print{
 .afaq-sidebar,.afaq-top,.no-print,.afaq-logout{display:none!important}.afaq-layout{display:block!important}.afaq-content{padding:0!important;margin:0!important}
 .afaq-card{box-shadow:none!important;border:0!important;padding:0!important}.afaq-system-body{background:#fff!important}.afaq-document{max-width:none!important}
 .afaq-table{font-size:11pt}a{text-decoration:none;color:#000}
}

.afaq-number-box{border:1px solid #dfe8e7;border-radius:14px;padding:14px;margin:12px 0}
.afaq-number-box legend{font-weight:700;padding:0 8px}
.afaq-note{background:#f7fbfa;border:1px solid #dfe8e7;border-radius:12px;padding:10px 12px;margin:10px 0 18px}

/* Login dashboard */
.afaq-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px}
.afaq-login-screen .afaq-auth-card{width:min(100%,520px)}
.afaq-login-brand{text-align:center;margin:10px 0 22px}
.afaq-login-brand h1{margin-bottom:8px}
.afaq-login-brand p{margin:0;opacity:.75}
.afaq-login-form{display:grid;gap:14px}
.afaq-login-form label{display:grid;gap:7px}
.afaq-login-form input,.afaq-login-form select{width:100%}
.afaq-password-wrap{display:flex;align-items:stretch;gap:8px}
.afaq-password-wrap input{flex:1}
.afaq-password-toggle{border:1px solid #d8e4e2;background:#fff;border-radius:10px;padding:0 14px;cursor:pointer}
.afaq-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important}
.afaq-check input{width:auto!important}
.afaq-login-submit{width:100%;justify-content:center}
.afaq-login-links{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px}
.afaq-alert.success{background:#eef8f0;border-color:#b8dfbf;color:#275e31}

.afaq-testimonial-admin{border:1px solid #dfe8e7;border-radius:14px;padding:14px;margin:12px 0}
.afaq-testimonial-admin textarea{min-height:90px}

.afaq-pickup-child{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e7efee}
.afaq-pickup-child small{display:block;opacity:.7;margin-top:4px}
.afaq-pickup-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.afaq-pickup-card{border:1px solid #dfe8e7;border-radius:16px;padding:16px;background:#fff}
.afaq-pickup-card h3{margin-top:0}
.afaq-status{display:inline-block;padding:5px 10px;border-radius:999px;background:#eef7f6;color:#176c68;font-weight:700}
.afaq-scanner-card{max-width:900px;margin-inline:auto}
.afaq-scanner-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:14px}
#afaq-qr-video{width:100%;max-height:520px;background:#111;border-radius:18px;object-fit:cover;display:block}
@media(max-width:620px){.afaq-pickup-child{align-items:flex-start;flex-direction:column}.afaq-scanner-controls>*{width:100%}}

.afaq-auth input[autocomplete="one-time-code"]{font-size:1.6rem;text-align:center;letter-spacing:.55rem;font-weight:700}

.afaq-like-form{display:inline-flex;margin-inline-start:8px}
.afaq-like-btn{border:1px solid #d8e4e2;background:#fff;border-radius:999px;padding:7px 12px;cursor:pointer;color:#7a8b89;font:inherit}
.afaq-like-btn.liked{background:#fff0ef;border-color:#efb9b6;color:#d9514c}
.afaq-like-btn:hover{transform:translateY(-1px)}


/* Mobile hamburger drawer for /system dashboards */
.afaq-mobile-menu-toggle{display:none;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;font:inherit;font-weight:700;color:var(--t);cursor:pointer}
.afaq-mobile-menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.afaq-mobile-menu-overlay{position:fixed;inset:0;background:rgba(20,35,34,.45);z-index:998}
body.afaq-mobile-menu-open{overflow:hidden}
@media(max-width:850px){
  .afaq-layout{display:block;min-height:100vh}
  .afaq-mobile-menu-toggle{display:inline-flex;position:sticky;top:10px;z-index:997;margin:10px 14px}
  .afaq-sidebar{position:fixed;top:0;right:0;bottom:0;width:min(86vw,320px);max-width:320px;z-index:999;border-left:1px solid var(--line);border-bottom:0;transform:translateX(105%);transition:transform .22s ease;overflow-y:auto;overscroll-behavior:contain;box-shadow:-18px 0 42px rgba(36,61,59,.18)}
  body.afaq-mobile-menu-open .afaq-sidebar{transform:translateX(0)}
  body.afaq-mobile-menu-open .afaq-mobile-menu-overlay{display:block!important}
  .afaq-sidebar nav{display:grid;overflow:visible}
  .afaq-sidebar nav a{white-space:normal;min-height:44px;display:flex;align-items:center}
  .afaq-logout{min-height:44px;display:flex;align-items:center}
  .afaq-content{width:100%;min-width:0;padding:14px}
}
@media(min-width:851px){.afaq-mobile-menu-overlay{display:none!important}}

/* Strict mobile drawer: sidebar exists only inside hamburger menu */
.afaq-mobile-menu-close{display:none;align-items:center;gap:8px;min-height:44px;border:0;background:transparent;color:var(--t);font:inherit;font-weight:700;cursor:pointer;padding:8px 4px;margin-bottom:4px}
.afaq-mobile-menu-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:850px){
  .afaq-layout{grid-template-columns:1fr!important}
  .afaq-sidebar{
    display:flex!important;
    visibility:hidden;
    pointer-events:none;
    opacity:0;
    transform:translateX(105%)!important;
  }
  body.afaq-mobile-menu-open .afaq-sidebar{
    visibility:visible;
    pointer-events:auto;
    opacity:1;
    transform:translateX(0)!important;
  }
  .afaq-mobile-menu-close{display:inline-flex}
  .afaq-mobile-menu-overlay[hidden]{display:none!important}
  body:not(.afaq-mobile-menu-open) .afaq-mobile-menu-overlay{display:none!important}
  .afaq-content{grid-column:1!important}
}
@media(min-width:851px){
  .afaq-sidebar{visibility:visible!important;pointer-events:auto!important;opacity:1!important;transform:none!important}
  .afaq-mobile-menu-close{display:none!important}
}

/* Afaq Design System 3 dashboard */
:root{
  --p:#208C87;
  --p-strong:#176f6b;
  --p-soft:#EAF7F6;
  --aqua:#86CDCF;
  --coral:#EA7D7B;
  --gold:#EBC66E;
  --green:#8EC58C;
  --cream:#FFFBF3;
  --t:#243D3B;
  --muted:#6D7D7A;
  --bg:#F6F9F8;
  --surface:#FFFFFF;
  --line:#DDE8E5;
  --line-strong:#C7D8D4;
  --danger:#B94D4D;
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:20px;
  --shadow-sm:0 4px 16px rgba(36,61,59,.05);
  --shadow:0 12px 32px rgba(36,61,59,.08);
  --focus:0 0 0 3px rgba(32,140,135,.18);
}
.afaq-system-body{
  background:
    radial-gradient(circle at 100% 0,rgba(134,205,207,.12),transparent 28rem),
    var(--bg);
  color:var(--t);
  line-height:1.65;
}
.afaq-layout{grid-template-columns:268px minmax(0,1fr)}
.afaq-sidebar{
  padding:22px 16px;
  gap:8px;
  background:rgba(255,255,255,.96);
  border-left:1px solid var(--line);
}
.afaq-staff-sidebar,.afaq-parent-sidebar{background:rgba(255,255,255,.96)}
.afaq-logo{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  font-size:1.12rem;
  color:var(--t)!important;
}
.afaq-sidebar>small{padding-inline:10px;color:var(--muted)}
.afaq-sidebar nav{
  display:grid;
  gap:4px;
  margin-top:12px;
}
.afaq-sidebar nav a,.afaq-logout{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:12px;
  color:#405451;
  text-decoration:none;
  font-weight:600;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.afaq-sidebar nav a:hover{
  background:var(--p-soft);
  border-color:#D3EBE8;
  color:var(--p-strong);
}
.afaq-sidebar nav a.active,
.afaq-parent-sidebar nav a.active{
  background:linear-gradient(135deg,#DDF2EF,#F3FAF9);
  border-color:#CDE7E3;
  color:var(--p-strong);
  box-shadow:inset -3px 0 0 var(--p);
}
.afaq-nav-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.afaq-logout{
  margin-top:auto;
  color:#9A4B4B;
}
.afaq-logout:hover{background:#FFF3F2;border-color:#F2D7D5;color:#A33F3F}

.afaq-content{padding:28px clamp(16px,3vw,36px)}
.afaq-top{
  min-height:72px;
  padding:0 2px 18px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(221,232,229,.85);
}
.afaq-top h1{font-size:clamp(1.35rem,2vw,1.75rem);letter-spacing:-.02em}
.afaq-top p{color:var(--muted)}
.afaq-top>div:last-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.afaq-top>div:last-child>a:not(.afaq-btn){
  display:inline-flex;align-items:center;min-height:42px;padding:8px 12px;border-radius:10px;
  border:1px solid var(--line);background:#fff;color:var(--p-strong);
}

.afaq-stats{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.afaq-stats article,.afaq-card{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.98);
  box-shadow:var(--shadow-sm);
}
.afaq-stats article{padding:20px}
.afaq-stats b{font-size:clamp(1.5rem,2.5vw,2rem);color:var(--t)}
.afaq-stats span{color:var(--muted)}
.afaq-card{padding:clamp(16px,2vw,24px);margin-bottom:18px}
.afaq-card h2{margin:0 0 14px;font-size:1.18rem}
.afaq-card h3{margin-top:22px;color:#36504D}

.afaq-title-row{gap:14px;flex-wrap:wrap}
.afaq-list{gap:10px}
.afaq-row{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:13px 14px;
}

/* Unified controls */
.afaq-system-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.afaq-system-body select,
.afaq-system-body textarea{
  width:100%;
  min-height:46px;
  padding:10px 13px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  outline:none;
  background:#fff;
  color:var(--t);
  font:inherit;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.afaq-system-body textarea{min-height:112px;resize:vertical}
.afaq-system-body select{
  appearance:none;
  -webkit-appearance:none;
  padding-left:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236D7D7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 12px center;
  background-size:18px;
}
.afaq-system-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):hover,
.afaq-system-body select:hover,
.afaq-system-body textarea:hover{border-color:#AFC8C3}
.afaq-system-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.afaq-system-body select:focus,
.afaq-system-body textarea:focus{
  border-color:var(--p);
  box-shadow:var(--focus);
}
.afaq-system-body input::placeholder,.afaq-system-body textarea::placeholder{color:#91A09D}
.afaq-system-body input[type="checkbox"],.afaq-system-body input[type="radio"]{
  width:18px;height:18px;accent-color:var(--p);
}
.afaq-system-body input[type="file"]{padding:7px;background:var(--cream)}
.afaq-system-body label{color:#344B48}
.afaq-form label,.afaq-auth-card label{gap:7px}
.afaq-form,.afaq-inline-form{gap:14px}
.afaq-inline-form{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}

/* Buttons */
.afaq-btn,
.afaq-system-body button:not(.afaq-mobile-menu-toggle):not(.afaq-mobile-menu-close):not(.afaq-password-toggle):not(.afaq-like-btn):not(.afaq-help-info){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  border:1px solid transparent;
  border-radius:12px;
  padding:10px 16px;
  background:var(--p);
  color:#fff;
  font:inherit;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(32,140,135,.16);
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.afaq-btn:hover,
.afaq-system-body button:not(.afaq-mobile-menu-toggle):not(.afaq-mobile-menu-close):not(.afaq-password-toggle):not(.afaq-like-btn):not(.afaq-help-info):hover{
  background:var(--p-strong);
  transform:translateY(-1px);
}
.afaq-btn:focus-visible,.afaq-system-body button:focus-visible,.afaq-sidebar a:focus-visible,.afaq-top a:focus-visible{
  outline:none;box-shadow:var(--focus);
}
.afaq-btn.small{min-height:38px;padding:7px 11px;font-size:.83rem;border-radius:10px}
.afaq-btn.secondary{background:#fff;color:var(--p-strong);border-color:#BFD5D1;box-shadow:none}
.afaq-btn.secondary:hover{background:var(--p-soft);border-color:#9FC4BE}
.afaq-btn.danger{background:#fff;color:var(--danger);border-color:#E8C2C2;box-shadow:none}
.afaq-btn.danger:hover{background:#FFF1F1;border-color:#DFA7A7}
.afaq-password-toggle{min-height:46px;border:1px solid var(--line-strong);background:#fff;color:var(--p-strong)}

/* Tables */
.afaq-table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.afaq-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:.92rem;
}
.afaq-table th{
  position:sticky;
  top:0;
  z-index:1;
  padding:12px 14px;
  background:#F1F7F6;
  color:#36504D;
  font-weight:700;
  border-bottom:1px solid var(--line);
}
.afaq-table td{
  padding:13px 14px;
  border-bottom:1px solid #EDF2F1;
  color:#435653;
  background:#fff;
}
.afaq-table tbody tr:last-child td{border-bottom:0}
.afaq-table tbody tr:hover td{background:#FBFDFD}
.afaq-table th:first-child{border-top-right-radius:13px}
.afaq-table th:last-child{border-top-left-radius:13px}

/* Notices/status */
.afaq-alert,.afaq-note,.afaq-bank{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
}
.afaq-alert.success{background:#F0F8F1;border-color:#CBE3CE;color:#31693A}
.afaq-alert.error{background:#FFF3F2;border-color:#F0D0CE;color:#963E3E}
.afaq-note{background:#F5FAF9}
.afaq-status{border:1px solid #CBE5E2;background:var(--p-soft);color:var(--p-strong)}

/* Auth follows public theme */
.afaq-auth{
  background:
    radial-gradient(circle at 90% 10%,rgba(134,205,207,.28),transparent 24rem),
    linear-gradient(145deg,var(--cream),#F1F8F6);
}
.afaq-auth-card{
  border-radius:24px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* Responsive consistency */
@media(max-width:850px){
  .afaq-content{padding:12px 14px 24px}
  .afaq-top{padding-top:4px;flex-direction:column;align-items:stretch}
  .afaq-top>div:last-child{width:100%}
  .afaq-top>div:last-child>*{flex:1 1 auto;text-align:center;justify-content:center}
  .afaq-mobile-menu-toggle{
    border-color:var(--line-strong);
    box-shadow:var(--shadow-sm);
  }
  .afaq-sidebar{
    width:min(88vw,330px);
    padding:16px 14px;
  }
  .afaq-table{min-width:640px}
  .afaq-row{align-items:flex-start}
}
@media(max-width:520px){
  .afaq-card{border-radius:16px;padding:15px}
  .afaq-stats{grid-template-columns:1fr 1fr}
  .afaq-stats article{padding:15px}
  .afaq-title-row{align-items:stretch}
  .afaq-title-row .afaq-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .afaq-system-body *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* Parent pickup QR card */
.afaq-pickup-qr-box{
  display:grid;
  grid-template-columns:minmax(180px,220px) 1fr;
  gap:18px;
  align-items:center;
  padding:16px;
  border:1px solid var(--line,#DDE8E5);
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#f7fbfb);
}
.afaq-pickup-qr-canvas{
  min-height:180px;
  min-width:180px;
  border:1px dashed #BFD5D1;
  border-radius:14px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.afaq-pickup-qr-fallback{display:grid;gap:8px}
.afaq-pickup-qr-fallback code{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  background:#0F172A;
  color:#F8FAFC;
  overflow-wrap:anywhere;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.92rem;
}
@media (max-width: 700px){
  .afaq-pickup-qr-box{grid-template-columns:1fr}
  .afaq-pickup-qr-canvas{margin-inline:auto}
}


/* Official kindergarten branding inside operational dashboards */
.afaq-system-brand{
  display:grid;
  justify-items:center;
  gap:10px;
  padding:10px 8px 18px;
  margin-bottom:8px;
  text-align:center;
  border-bottom:1px solid var(--line,#DDE8E5);
}
.afaq-system-brand img{
  width:118px;
  height:118px;
  object-fit:contain;
  border-radius:18px;
  background:#FFFBF3;
}
.afaq-system-brand strong{
  display:block;
  color:#243D3B;
  font-size:.95rem;
  line-height:1.5;
}
.afaq-system-brand small{
  display:block;
  margin-top:2px;
  color:#6D7D7A;
  font-size:.68rem;
  direction:ltr;
}
@media(max-width:850px){
  .afaq-system-brand img{width:92px;height:92px}
  .afaq-system-brand{padding-top:4px}
}

.afaq-system-brand{
  text-decoration:none;
  color:inherit;
}
.afaq-system-brand span{display:block}
.afaq-system-brand:hover strong{color:var(--p,#208C87)}
.afaq-brand-user{
  display:block;
  text-align:center;
  margin-top:-2px;
  margin-bottom:8px;
  color:var(--muted,#6D7D7A);
}


/* Afaq 2.4 dashboard visual system — mirrors the approved owner/teacher/parent mockups */
.afaq-system-body{
  --navy:#173954;
  --teal:#25A9A4;
  --mint:#DFF5F1;
  --mint-2:#EFFAF8;
  --coral:#F47676;
  --coral-soft:#FDE8E7;
  --gold:#F5BE4F;
  --gold-soft:#FFF3D4;
  --blue:#4AAEE8;
  --blue-soft:#E5F4FD;
  --green:#37BC82;
  --green-soft:#E3F8EF;
  --cream:#FFF9EF;
  --surface:#FFFFFF;
  --line:#E5EEEC;
  --muted:#72838E;
  --shadow:0 10px 30px rgba(23,57,84,.07);
  background:#FAFCFB;
}
.afaq-layout{grid-template-columns:272px minmax(0,1fr);min-height:100vh}
.afaq-sidebar{
  border-left:1px solid #EDF1F0;
  background:linear-gradient(180deg,#fff 0%,#FFFCF7 72%,#ECFAF7 100%);
  padding:20px 14px;
}
.afaq-system-brand{border-bottom:0;margin-bottom:14px}
.afaq-system-brand img{width:128px;height:128px;border-radius:0;background:transparent}
.afaq-system-brand strong{font-size:.96rem;color:var(--navy)}
.afaq-system-brand small{font-size:.68rem;color:#4D6B7D}
.afaq-sidebar nav a,.afaq-logout{
  color:#365970;
  border-radius:13px;
  font-size:.93rem;
  min-height:48px;
}
.afaq-sidebar nav a .afaq-nav-icon{width:22px;height:22px}
.afaq-sidebar nav a.active{
  background:linear-gradient(90deg,#D9F5EE,#EAF9F6);
  color:#0D7774;
  box-shadow:none;
  border-color:#D6EEE9;
}
.afaq-sidebar nav a.active .afaq-nav-icon{stroke:#148A87}
.afaq-sidebar:after{
  content:"";
  display:block;
  min-height:150px;
  margin-top:auto;
  background:
    radial-gradient(circle at 72% 35%,#FFD46C 0 21px,transparent 22px),
    radial-gradient(circle at 82% 38%,rgba(255,212,108,.25) 0 50px,transparent 51px),
    linear-gradient(155deg,transparent 53%,#DDF6F1 54% 64%,#8DD8C1 65% 78%,#50B999 79%);
  border-radius:24px;
}
.afaq-content{padding:0 24px 28px;min-width:0}
.afaq-dashboard-topbar{
  min-height:72px;
  margin:0 -24px 18px;
  padding:11px 28px;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid #EEF2F1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(14px);
}
.afaq-topbar-account{display:flex;align-items:center;gap:12px;order:2}
.afaq-account-chip{
  min-width:180px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  background:transparent!important;
  color:var(--navy)!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  text-decoration:none!important;
  cursor:pointer;
}
.afaq-account-chip:hover{transform:none!important;background:transparent!important}
.afaq-account-chip img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:3px solid #F1F5F4}
.afaq-account-chip span{display:grid;text-align:right;line-height:1.3}
.afaq-account-chip strong{font-size:.91rem}
.afaq-account-chip small{font-size:.72rem;color:#718795;font-weight:500}
.afaq-account-chip svg{width:17px;height:17px;fill:none;stroke:#5C7485;stroke-width:2}
.afaq-topbar-notifications{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#F4F7F7;color:#48687D}
.afaq-topbar-notifications .afaq-nav-icon{width:22px;height:22px}
.afaq-topbar-notifications>span{position:absolute;top:-4px;left:-4px;background:#F35D62;color:#fff;min-width:21px;height:21px;border-radius:50%;display:grid;place-items:center;font-size:.68rem;border:2px solid #fff}
.afaq-dashboard-search{
  order:1;
  width:min(470px,46vw);
  min-height:44px;
  border-radius:14px;
  background:#F2F5F5;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
}
.afaq-dashboard-search .afaq-nav-icon{width:20px;height:20px;color:#617B8B}
.afaq-dashboard-search input{
  min-height:40px!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.afaq-dashboard-hero{
  min-height:170px;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  align-items:stretch;
  margin-bottom:18px;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(105deg,#FFF9ED,#FFFDF8);
  box-shadow:var(--shadow);
  border:1px solid #F3EEE3;
}
.afaq-dashboard-hero-copy{padding:30px 34px;display:flex;flex-direction:column;justify-content:center;order:1}
.afaq-dashboard-hero-copy .afaq-eyebrow{font-size:1.02rem;font-weight:700;color:#4E7288}
.afaq-dashboard-hero-copy h2{font-size:clamp(1.8rem,3vw,2.8rem);margin:3px 0 8px;color:var(--navy);letter-spacing:-.04em}
.afaq-dashboard-hero-copy p{margin:0;color:#55798C;font-size:1rem}
.afaq-dashboard-hero-art{order:2;min-height:170px;overflow:hidden}
.afaq-dashboard-hero-art img{width:100%;height:100%;object-fit:cover;object-position:left center;display:block}
.afaq-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.afaq-kpi{
  min-height:126px;
  display:grid;
  grid-template-columns:64px 1fr;
  gap:14px;
  align-items:center;
  padding:18px;
  background:#fff;
  border:1px solid #EAF0EF;
  border-radius:18px;
  box-shadow:var(--shadow);
}
.afaq-kpi-icon{width:58px;height:58px;border-radius:14px;display:grid;place-items:center}
.afaq-kpi-icon .afaq-nav-icon{width:27px;height:27px;stroke-width:1.9}
.afaq-kpi>div{display:grid;gap:1px}
.afaq-kpi-label{font-weight:700;color:#486679;font-size:.93rem}
.afaq-kpi strong{font-size:1.65rem;color:var(--navy);line-height:1.25}
.afaq-kpi small{font-size:.72rem;color:var(--muted)}
.afaq-kpi-coral .afaq-kpi-icon{background:var(--coral-soft);color:var(--coral)}
.afaq-kpi-green .afaq-kpi-icon{background:var(--green-soft);color:#27A773}
.afaq-kpi-gold .afaq-kpi-icon{background:var(--gold-soft);color:#E6A526}
.afaq-kpi-blue .afaq-kpi-icon{background:var(--blue-soft);color:#349CD7}
.afaq-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);gap:16px}
.afaq-dashboard-panel{margin:0!important;padding:16px 18px!important;border-radius:18px!important;box-shadow:var(--shadow)!important}
.afaq-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.afaq-panel-head h2{font-size:1.08rem;margin:0!important;color:var(--navy)}
.afaq-panel-head a{font-size:.78rem;color:#169C99;text-decoration:none;padding:6px 10px;border:1px solid #AEE1DC;border-radius:9px;background:#F2FBF9}
.afaq-mini-list{display:grid;gap:7px}
.afaq-mini-row{display:flex;align-items:center;gap:10px;min-height:58px;padding:8px 4px;border-bottom:1px solid #EEF2F1}
.afaq-mini-row:last-child{border-bottom:0}
.afaq-mini-row>div{display:grid;gap:2px;flex:1}
.afaq-mini-row strong{font-size:.88rem;color:#304F63}
.afaq-mini-row small{font-size:.7rem;color:#82939E}
.afaq-mini-icon{width:38px;height:38px;border-radius:11px;background:#E9F7F5;color:#1D9D99;display:grid;place-items:center}
.afaq-mini-icon .afaq-nav-icon{width:18px;height:18px}
.afaq-soft-status{font-size:.7rem;padding:5px 9px;border-radius:999px;background:#F3F5F5;color:#70828D}
.afaq-soft-status.is-good{background:#DCF7EB;color:#189C68}
.afaq-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.afaq-quick-grid a{min-height:98px;border:1px solid #E8EFED;border-radius:15px;background:#FBFDFC;color:#355B70;text-decoration:none;display:grid;place-items:center;align-content:center;gap:7px;font-weight:700}
.afaq-quick-grid a:hover{background:#F0FAF8;border-color:#CDE9E4}
.afaq-quick-grid .afaq-nav-icon{width:26px;height:26px;color:#1B9B97}
.afaq-card,.afaq-stats article{border-radius:18px!important;box-shadow:var(--shadow)!important}
.afaq-table-wrap{border-color:#EAF0EE!important;border-radius:13px!important}
.afaq-table th{background:#F4F7F7!important;color:#5E7280!important;font-size:.76rem}
.afaq-table td{font-size:.78rem}
.afaq-btn{border-radius:10px!important}
.afaq-form input,.afaq-form select,.afaq-form textarea,.afaq-inline-form input,.afaq-inline-form select{
  border-radius:11px!important;
}
@media(max-width:1100px){
  .afaq-kpi-grid{grid-template-columns:1fr 1fr}
  .afaq-dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:850px){
  .afaq-content{padding:0 12px 20px}
  .afaq-dashboard-topbar{margin:0 -12px 14px;padding:10px 12px;gap:10px}
  .afaq-dashboard-search{width:auto;flex:1}
  .afaq-account-chip{min-width:0!important}
  .afaq-account-chip span{display:none}
  .afaq-dashboard-hero{grid-template-columns:1fr;min-height:0}
  .afaq-dashboard-hero-copy{padding:22px 20px}
  .afaq-dashboard-hero-art{height:150px;order:2}
  .afaq-dashboard-hero-copy{order:1}
}
@media(max-width:560px){
  .afaq-kpi-grid{grid-template-columns:1fr}
  .afaq-kpi{min-height:104px}
  .afaq-dashboard-search input{font-size:.8rem}
  .afaq-topbar-notifications{width:40px;height:40px}
}


/* Afaq grouped sidebar and section tabs */
.afaq-sidebar-groups{display:grid;gap:6px;margin-top:8px}
.afaq-sidebar-direct,
.afaq-nav-group summary{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-radius:13px;
  color:#365970;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  list-style:none;
  border:1px solid transparent;
}
.afaq-nav-group summary::-webkit-details-marker{display:none}
.afaq-nav-group summary .afaq-nav-icon,.afaq-sidebar-direct .afaq-nav-icon{width:21px;height:21px;flex:0 0 21px}
.afaq-group-chevron{margin-inline-start:auto;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s ease}
.afaq-nav-group[open] summary{background:#F1F9F7;color:#167D79}
.afaq-nav-group[open] .afaq-group-chevron{transform:rotate(180deg)}
.afaq-sidebar-direct.active{background:linear-gradient(90deg,#D9F5EE,#EAF9F6);color:#0D7774;border-color:#D6EEE9}
.afaq-nav-children{display:grid;gap:2px;padding:4px 10px 7px 0}
.afaq-nav-children a{
  min-height:40px!important;
  padding:8px 14px!important;
  margin-inline-start:18px;
  border-radius:10px!important;
  font-size:.84rem!important;
  font-weight:600!important;
  color:#597180!important;
  border:0!important;
  box-shadow:none!important;
}
.afaq-nav-children a:before{content:"";width:5px;height:5px;border-radius:50%;background:#B8C9C6;flex:0 0 5px}
.afaq-nav-children a.active{background:#E5F6F2!important;color:#0C7E79!important;box-shadow:none!important}
.afaq-nav-children a.active:before{background:#20A39D}
.afaq-section-tabs{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 16px;
  padding:10px 12px;
  border:1px solid #E5EEEC;
  background:#fff;
  border-radius:14px;
  box-shadow:0 5px 18px rgba(23,57,84,.04);
  overflow-x:auto;
}
.afaq-section-tabs>strong{white-space:nowrap;color:#294D62;font-size:.86rem}
.afaq-section-tabs>div{display:flex;gap:6px;white-space:nowrap}
.afaq-section-tabs a{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:9px;
  text-decoration:none;
  color:#647A87;
  font-size:.8rem;
  font-weight:700;
}
.afaq-section-tabs a:hover{background:#F0F8F6;color:#178985}
.afaq-section-tabs a.active{background:#DDF4EF;color:#0E7F7A}
.afaq-record-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:0 0 14px;
  margin-bottom:14px;
  border-bottom:1px solid #E7EFED;
}
.afaq-record-tabs a{
  white-space:nowrap;
  padding:8px 11px;
  border-radius:9px;
  text-decoration:none;
  color:#607985;
  background:#F6F9F8;
  font-size:.8rem;
  font-weight:700;
}
.afaq-record-tabs a.active{background:#DDF4EF;color:#0E7F7A}
.afaq-narrow-card{max-width:820px;margin-inline:auto!important}
.afaq-form-actions{display:flex;gap:9px;flex-wrap:wrap}
@media(max-width:850px){
  .afaq-section-tabs{margin-top:4px;padding:8px 9px;align-items:flex-start}
  .afaq-section-tabs>strong{position:sticky;right:0;background:#fff;padding-block:7px;z-index:1}
  .afaq-nav-group summary,.afaq-sidebar-direct{min-height:46px}
}


/* Real pickup QR + portal switcher */
.afaq-dashboard-qr-feature,.afaq-qr-page{
  margin:0 0 18px;
}
.afaq-dashboard-qr-feature{
  padding:18px;
  border:1px solid #DCEDE9;
  border-radius:22px;
  background:linear-gradient(120deg,#F7FCFB,#FFF9EF);
  box-shadow:0 12px 34px rgba(23,57,84,.06);
}
.afaq-qr-page{max-width:1080px}
.afaq-qr-feature-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.afaq-qr-feature-title span{color:#17938E;font-size:.75rem;font-weight:800}
.afaq-qr-feature-title h2{margin:2px 0 4px;color:#173954;font-size:1.3rem}
.afaq-qr-feature-title p{margin:0;color:#6B808C;font-size:.84rem}
.afaq-qr-child-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}
.afaq-qr-child-card{
  border:1px solid #E1ECE9;
  border-radius:18px;
  background:#fff;
  padding:14px;
}
.afaq-qr-child-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.afaq-qr-child-head>.afaq-nav-icon{width:28px;height:28px;color:#169A95}
.afaq-qr-child-head>div{display:grid}
.afaq-qr-child-head strong{color:#24495E}
.afaq-qr-child-head small{font-size:.72rem;color:#80909A}
.afaq-qr-empty{
  min-height:250px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:20px;
  border:1px dashed #BEDBD6;
  border-radius:16px;
  background:#FAFDFC;
}
.afaq-qr-empty>.afaq-nav-icon{width:46px;height:46px;color:#2AA8A2}
.afaq-qr-empty strong{color:#214A60;font-size:1.05rem}
.afaq-qr-empty p{max-width:420px;margin:0 0 6px;color:#758A96;font-size:.82rem}
.afaq-pickup-qr-card{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important}
.afaq-qr-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.afaq-qr-kicker{display:block;color:#169A95;font-size:.72rem;font-weight:800}
.afaq-qr-card-head h2{font-size:1.05rem!important;margin:2px 0!important;color:#173954}
.afaq-qr-ready{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;background:#DCF8EA;color:#168B5C;border-radius:999px;font-size:.72rem;font-weight:800}
.afaq-qr-ready i{width:8px;height:8px;border-radius:50%;background:#25B873}
.afaq-qr-intro{font-size:.8rem;color:#6A808D;margin:0 0 10px}
.afaq-pickup-qr-box{display:grid;grid-template-columns:minmax(220px,280px) 1fr;gap:18px;align-items:center;padding:16px;border:1px solid #E4ECEA;border-radius:17px;background:#fff}
.afaq-real-qr{
  width:min(100%,280px);
  aspect-ratio:1;
  margin-inline:auto;
  padding:10px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 22px rgba(23,57,84,.08);
  border:1px solid #EDF1F0;
}
.afaq-real-qr svg{display:block;width:100%;height:100%}
.afaq-qr-error{display:grid;place-items:center;height:100%;font-size:.8rem;color:#A94C4C;background:#FFF4F3;border-radius:10px}
.afaq-pickup-qr-meta{display:grid;gap:9px}
.afaq-qr-rule{padding:11px 12px;border-radius:12px;background:#F6FAF9;border:1px solid #E7EFED;display:grid;gap:2px}
.afaq-qr-rule strong{font-size:.8rem;color:#31586D}
.afaq-qr-rule small{font-size:.7rem;color:#80909A}
.afaq-pickup-qr-fallback{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding-top:12px;border-top:1px solid #EDF1F0}
.afaq-pickup-qr-fallback strong{font-size:.76rem;color:#617785}
.afaq-pickup-qr-fallback code{padding:9px 11px!important;border-radius:10px!important;background:#F2F6F6!important;color:#1E4257!important;font-size:.72rem!important;overflow-wrap:anywhere}
.afaq-portal-switcher{position:relative}
.afaq-portal-switcher summary{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid #E1E9E7;
  border-radius:12px;
  background:#fff;
  color:#365B70;
  cursor:pointer;
  list-style:none;
  font-size:.79rem;
  font-weight:800;
}
.afaq-portal-switcher summary::-webkit-details-marker{display:none}
.afaq-portal-switcher summary>.afaq-nav-icon{width:18px;height:18px}
.afaq-switch-chevron{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .16s ease}
.afaq-portal-switcher[open] .afaq-switch-chevron{transform:rotate(180deg)}
.afaq-portal-switch-menu{
  position:absolute;
  top:calc(100% + 8px);
  inset-inline-start:0;
  width:250px;
  padding:7px;
  border:1px solid #E2EAE8;
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 50px rgba(23,57,84,.15);
  z-index:80;
}
.afaq-portal-switch-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:9px 10px;
  border-radius:10px;
  color:#31556A;
  text-decoration:none;
}
.afaq-portal-switch-menu a:hover{background:#EEF8F6}
.afaq-portal-switch-menu a>.afaq-nav-icon{width:22px;height:22px;color:#199A96}
.afaq-portal-switch-menu a>span{display:grid}
.afaq-portal-switch-menu strong{font-size:.82rem}
.afaq-portal-switch-menu small{font-size:.68rem;color:#82929B}
@media(max-width:760px){
  .afaq-qr-feature-title{align-items:flex-start;flex-direction:column}
  .afaq-qr-child-grid{grid-template-columns:1fr}
  .afaq-pickup-qr-box{grid-template-columns:1fr}
  .afaq-pickup-qr-fallback{grid-template-columns:1fr}
  .afaq-pickup-qr-fallback .afaq-btn{width:100%}
  .afaq-portal-switcher summary span{display:none}
  .afaq-portal-switch-menu{inset-inline-start:auto;inset-inline-end:0;width:min(250px,calc(100vw - 24px))}
}


/* Chrome camera compatibility feedback */
.afaq-camera-help{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid #D9E9E5;
  border-radius:11px;
  background:#F6FBFA;
  color:#496A79;
  font-size:.78rem;
}
#afaq-scan-status.is-error{background:#FFF1F0;border-color:#F0C8C5;color:#9B3E3E}
#afaq-scan-status.is-success{background:#EAF9F1;border-color:#C9E9D8;color:#1C8059}
#afaq-scan-status.is-info{background:#F4F8F8;border-color:#DCE7E5;color:#55717F}
#afaq-camera-start:disabled{opacity:.55;cursor:wait}


/* Final camera scanner hardening */
.afaq-scanner-card{overflow:hidden}
#afaq-qr-video{
  min-height:280px;
  max-height:68vh;
  background:#101817;
  border:2px solid #CDE5E1;
}
.afaq-scanner-card:has(#afaq-qr-video)::after{
  content:"";
  pointer-events:none;
  display:block;
}
.afaq-scanner-controls #afaq-camera-switch,
.afaq-scanner-controls #afaq-camera-retry{box-shadow:none}
@media(max-width:640px){
  #afaq-qr-video{min-height:240px;max-height:62vh}
  .afaq-scanner-controls button{width:100%}
}

.afaq-identity-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:16px}.afaq-identity-summary p{margin:0;padding:12px 14px;border:1px solid #E1ECE9;border-radius:12px;background:#F8FCFB;color:#456273}

.afaq-demo-data-card{border-color:#CFE7E2!important;background:linear-gradient(135deg,#fff,#F5FBFA)!important}
.afaq-demo-preview,.afaq-demo-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;margin:14px 0}
.afaq-demo-preview span,.afaq-demo-stats span{padding:11px 12px;border:1px solid #DCEBE8;border-radius:11px;background:#fff;color:#506D7A;font-size:.8rem}
.afaq-demo-stats b{display:block;color:#168C87;font-size:1.25rem}


/* Afaq 3.0 education social hub */
.afaq-edu-social{margin-bottom:18px}
.afaq-edu-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:12px;border:1px solid #DCECE8;border-radius:20px;background:linear-gradient(115deg,#FFF9EE,#F4FCFA);box-shadow:var(--shadow)}
.afaq-edu-head span{font-size:.74rem;font-weight:800;color:#169894}
.afaq-edu-head h2{margin:3px 0;color:#173954;font-size:1.35rem}
.afaq-edu-head p{margin:0;color:#718590;font-size:.82rem}
.afaq-edu-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.afaq-edu-stories{display:flex;gap:13px;overflow-x:auto;padding:6px 2px 12px;scrollbar-width:thin}
.afaq-edu-story{flex:0 0 84px;border:0!important;background:transparent!important;box-shadow:none!important;color:#385C70!important;display:grid!important;gap:5px;justify-items:center;padding:0!important}
.afaq-edu-story>span{width:66px;height:66px;padding:3px;border-radius:50%;background:linear-gradient(135deg,#F36F79,#F5BE4F,#25A9A4)}
.afaq-edu-story img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:3px solid #fff}
.afaq-edu-story small{font-size:.69rem;white-space:nowrap}
.afaq-edu-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.65fr);gap:14px}
.afaq-edu-feed{display:grid;gap:14px}
.afaq-edu-post,.afaq-edu-side>section{background:#fff;border:1px solid #E6EEEC;border-radius:18px;box-shadow:var(--shadow)}
.afaq-edu-post{padding:15px}
.afaq-edu-post header{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.afaq-edu-avatar{width:42px;height:42px;border-radius:50%;background:#E5F6F2;color:#158D88;display:grid;place-items:center}
.afaq-edu-avatar .afaq-nav-icon{width:21px;height:21px}
.afaq-edu-post header>div:nth-child(2){display:grid;flex:1}
.afaq-edu-post header strong{font-size:.88rem;color:#294D62}
.afaq-edu-post header small{font-size:.69rem;color:#89969D}
.afaq-edu-more{border:0!important;background:transparent!important;color:#778B96!important;box-shadow:none!important}
.afaq-edu-post>p{margin:0 0 10px;color:#547180;font-size:.82rem;line-height:1.8}
.afaq-edu-photo-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:5px;border-radius:14px;overflow:hidden;background:#EEF3F2}
.afaq-edu-photo-grid.two{grid-template-columns:1fr 1fr}
.afaq-edu-photo-grid img{width:100%;height:270px;object-fit:cover}
.afaq-edu-photo-grid img:not(:first-child){height:270px}
.afaq-edu-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding-top:10px}
.afaq-edu-actions>button{display:inline-flex!important;align-items:center!important;gap:5px!important;background:transparent!important;color:#557180!important;border:0!important;box-shadow:none!important;padding:7px 8px!important;font-size:.75rem!important}
.afaq-edu-actions>button.is-active{color:#EA6870!important;background:#FFF1F2!important}
.afaq-edu-actions .afaq-nav-icon{width:18px;height:18px}
.afaq-edu-comment-box{width:100%;display:flex;gap:7px;padding-top:8px}
.afaq-edu-comment-box[hidden]{display:none}
.afaq-edu-comment-box input{flex:1}
.afaq-edu-side{display:grid;gap:14px;align-content:start}
.afaq-edu-side>section{padding:14px}
.afaq-edu-side h3{margin:0 0 10px;color:#244B61;font-size:.96rem}
.afaq-edu-reels{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.afaq-edu-reel{position:relative;padding:0!important;overflow:hidden;border:0!important;border-radius:12px!important;background:#EEF3F2!important;box-shadow:none!important;min-height:170px}
.afaq-edu-reel img{width:100%;height:170px;object-fit:cover;display:block}
.afaq-edu-reel small{position:absolute;bottom:8px;right:8px;left:8px;color:#fff;font-size:.69rem;text-shadow:0 2px 7px rgba(0,0,0,.7);text-align:right}
.afaq-play{position:absolute;inset:0;margin:auto;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.88);color:#159A95;display:grid;place-items:center}
.afaq-play .afaq-nav-icon{width:20px;height:20px}
.afaq-edu-poll{display:grid;gap:7px}
.afaq-edu-poll p{margin:0 0 4px;color:#516F80;font-size:.8rem}
.afaq-edu-poll button{min-height:38px!important;display:flex!important;justify-content:space-between!important;background:#F4F8F8!important;color:#4B6879!important;border:1px solid #E3EBE9!important;box-shadow:none!important;border-radius:10px!important;padding:8px 10px!important;font-size:.75rem!important}
.afaq-edu-poll button.is-selected{background:#DEF4F0!important;color:#0C7F7A!important;border-color:#BFE4DE!important}
.afaq-poll-status{font-size:.68rem;color:#81929B}
.afaq-edu-chat{display:grid;gap:8px}
.afaq-edu-chat>div{max-width:88%;padding:9px 10px;background:#F1F8F6;border-radius:12px 12px 3px 12px}
.afaq-edu-chat>div.parent{margin-inline-start:auto;background:#FFF5E6;border-radius:12px 12px 12px 3px}
.afaq-edu-chat strong{font-size:.72rem;color:#2B566A}
.afaq-edu-chat p{margin:3px 0;font-size:.73rem;color:#617985}
.afaq-edu-chat small{font-size:.62rem;color:#98A4AA}
.afaq-voice-note{display:flex!important;align-items:center!important;gap:7px!important;background:#E8F7F4!important;color:#248B85!important;border:0!important;border-radius:999px!important;box-shadow:none!important;padding:8px 11px!important}
.afaq-voice-note i{font-style:normal;margin-inline-start:auto;font-size:.65rem}
.afaq-health-card{display:flex;gap:12px;padding:14px;margin:12px 0;border-radius:14px;border:1px solid #DCE9E7;background:#F7FBFA}
.afaq-health-card.has-alert{background:#FFF5F2;border-color:#F2D1C8}
.afaq-health-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#E5F5F2;color:#138D88}
.afaq-health-card.has-alert .afaq-health-icon{background:#FDE4DE;color:#CC5D49}
.afaq-health-card>div:last-child{display:grid;gap:3px}
.afaq-health-card small{color:#73858E}
.afaq-health-card p{margin:2px 0;font-size:.78rem;color:#526B78}
.afaq-child-health-grid,.afaq-user-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px;margin-top:14px}
.afaq-child-health-link,.afaq-user-edit-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #E2EBE9;border-radius:12px;background:#FAFCFB;color:#365C70;text-decoration:none}
.afaq-child-health-link.has-alert{background:#FFF4F1;border-color:#F0D0C8}
.afaq-child-health-link .afaq-nav-icon{width:22px;height:22px}
.afaq-child-health-link span,.afaq-user-edit-card span{display:grid;flex:1}
.afaq-child-health-link small,.afaq-user-edit-card small{font-size:.68rem;color:#82919A}
.afaq-user-edit-card img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.afaq-user-edit-card>.afaq-nav-icon{width:18px;height:18px;color:#2B9994}
@media(max-width:960px){.afaq-edu-layout{grid-template-columns:1fr}.afaq-edu-photo-grid img,.afaq-edu-photo-grid img:not(:first-child){height:220px}}
@media(max-width:600px){.afaq-edu-head{align-items:flex-start;flex-direction:column}.afaq-edu-photo-grid,.afaq-edu-photo-grid.two{grid-template-columns:1fr 1fr}.afaq-edu-photo-grid img,.afaq-edu-photo-grid img:not(:first-child){height:160px}.afaq-edu-photo-grid img:first-child{grid-column:1/-1}.afaq-edu-reels{grid-template-columns:1fr 1fr}}

/* Afaq 3.1 unified child file and icon-rich navigation */
.afaq-nav-children a .afaq-nav-icon{width:17px;height:17px;flex:0 0 17px;color:#6C858F}
.afaq-nav-children a.active .afaq-nav-icon{color:#168B86}
.afaq-section-tabs a{gap:6px}.afaq-section-tabs a .afaq-nav-icon{width:16px;height:16px}
.afaq-child-profile{display:grid;gap:14px}.afaq-child-profile-head{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid #DDEBE8;border-radius:20px;background:linear-gradient(115deg,#FFF9EE,#F1FBF8);box-shadow:var(--shadow)}
.afaq-child-avatar{width:62px;height:62px;border-radius:18px;background:#DDF4EF;color:#168C87;display:grid;place-items:center}.afaq-child-avatar .afaq-nav-icon{width:30px;height:30px}.afaq-child-profile-head>div:nth-child(2){flex:1}.afaq-child-profile-head span{font-size:.7rem;color:#198E89;font-weight:800}.afaq-child-profile-head h2{margin:2px 0;color:#173954}.afaq-child-profile-head p{margin:0;color:#70848F;font-size:.8rem}
.afaq-child-profile-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px;border:1px solid #E3ECEA;border-radius:14px;background:#fff;position:sticky;top:78px;z-index:20}.afaq-child-profile-tabs a{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:8px 11px;border-radius:10px;color:#58717E;text-decoration:none;font-size:.76rem;font-weight:700}.afaq-child-profile-tabs a:hover{background:#EAF7F4;color:#137E79}.afaq-child-profile-tabs .afaq-nav-icon{width:17px;height:17px}
.afaq-child-section{scroll-margin-top:142px}.afaq-child-section h3{display:flex;align-items:center;gap:8px;color:#244D61}.afaq-child-section h3 .afaq-nav-icon{width:21px;height:21px;color:#179691}.afaq-profile-data{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.afaq-profile-data p{margin:0;padding:11px 12px;border:1px solid #E5ECEB;border-radius:11px;background:#FAFCFB;display:grid;gap:3px}.afaq-profile-data b{font-size:.69rem;color:#78909A}.afaq-profile-data span{font-size:.84rem;color:#31566A;font-weight:700}
.afaq-health-question{border:1px solid #DBE9E6;border-radius:14px;padding:12px 14px;margin:10px 0;background:#FBFDFC}.afaq-health-question legend{font-weight:800;color:#31566A;padding:0 6px}.afaq-health-question>label{display:inline-flex;align-items:center;gap:6px;margin-inline-end:18px;min-height:38px}.afaq-health-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:10px 0}.afaq-health-options label{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 10px;border:1px solid #E2EBE9;border-radius:11px;background:#fff}.afaq-health-dependent{padding:10px 12px;margin-bottom:10px;border-right:3px solid #25A9A4;background:#F7FBFA;border-radius:10px}.afaq-health-dependent.is-hidden{display:none}.afaq-health-warning{display:flex;align-items:center;gap:10px;padding:11px 13px;margin-bottom:12px;border-radius:12px;background:#FFF1EC;border:1px solid #F2CFC4;color:#A8503E}.afaq-health-warning span{font-size:.75rem}.afaq-child-name-cell{display:flex;align-items:center;gap:7px}.afaq-child-name-cell>a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#31566A}.afaq-child-name-cell .afaq-nav-icon,.afaq-child-photo-link .afaq-nav-icon,.afaq-table .afaq-btn .afaq-nav-icon{width:17px;height:17px}
@media(max-width:700px){.afaq-child-profile-head{align-items:flex-start;flex-wrap:wrap}.afaq-child-profile-head .afaq-btn{width:100%}.afaq-child-profile-tabs{top:68px}.afaq-health-options{grid-template-columns:1fr}}


/* Afaq 3.2 professional child registration */
.afaq-child-create-shell{max-width:1040px;margin-inline:auto}
.afaq-child-create-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;padding:20px 22px;border-radius:20px;background:linear-gradient(115deg,#FFF8EA,#F0FBF8);border:1px solid #E2EEE9;box-shadow:var(--shadow)}
.afaq-child-create-head span,.afaq-kicker{display:block;color:#17958F;font-size:.74rem;font-weight:800}
.afaq-child-create-head h2{margin:3px 0 5px;color:#173954;font-size:1.55rem}
.afaq-child-create-head p{margin:0;color:#718590;font-size:.83rem}
.afaq-wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px;padding:9px;border:1px solid #E4ECEA;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(23,57,84,.04)}
.afaq-wizard-progress button{min-height:58px!important;display:flex!important;align-items:center!important;gap:8px!important;background:#F7FAF9!important;color:#73868F!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:12px!important;padding:8px 10px!important;text-align:right!important}
.afaq-wizard-progress button .afaq-nav-icon{width:22px;height:22px;flex:none}
.afaq-wizard-progress button span{display:grid;font-size:.74rem;font-weight:700}
.afaq-wizard-progress button b{font-size:.62rem;color:#9BA8AE}
.afaq-wizard-progress button.active,.afaq-wizard-progress button.is-done{background:#E4F6F2!important;color:#087D78!important;border-color:#C9E7E1!important}
.afaq-wizard-progress button.is-done{background:#F0F9F7!important}
.afaq-child-wizard{padding:0!important;background:transparent!important}
.afaq-wizard-step{display:none;padding:20px;border:1px solid #E2ECE9;border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.afaq-wizard-step.is-active{display:block}
.afaq-step-title{display:flex;gap:11px;align-items:center;margin-bottom:18px;padding-bottom:13px;border-bottom:1px solid #EDF2F1}
.afaq-step-title>.afaq-nav-icon{width:34px;height:34px;padding:7px;border-radius:10px;background:#E6F6F3;color:#138D88}
.afaq-step-title h3{margin:0;color:#234D63}
.afaq-step-title p{margin:3px 0 0;color:#809099;font-size:.76rem}
.afaq-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.afaq-span-2{grid-column:1/-1}
.afaq-child-photo-preview{grid-column:1/-1;min-height:120px;border:1px dashed #C9DEDA;border-radius:14px;background:#F8FCFB;display:flex;align-items:center;justify-content:center;gap:8px;color:#78909A;overflow:hidden}
.afaq-child-photo-preview img{width:100%;height:180px;object-fit:cover}
.afaq-child-photo-preview .afaq-nav-icon{width:28px;height:28px}
.afaq-health-choice-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;margin:12px 0;border:1px solid #DCE9E6;border-radius:14px;background:#FAFDFC}
.afaq-health-choice-card>div:first-child{display:grid}
.afaq-health-choice-card strong{color:#31566B}
.afaq-health-choice-card small{font-size:.7rem;color:#85949C}
.afaq-segmented{display:flex;gap:4px;padding:4px;background:#EEF4F3;border-radius:10px}
.afaq-segmented label{margin:0!important}
.afaq-segmented input{position:absolute;opacity:0;pointer-events:none}
.afaq-segmented span{display:block;min-width:56px;text-align:center;padding:8px 10px;border-radius:8px;color:#627985;font-size:.76rem;font-weight:800;cursor:pointer}
.afaq-segmented input:checked+span{background:#fff;color:#128A84;box-shadow:0 3px 10px rgba(23,57,84,.08)}
.afaq-wizard-actions{display:flex;justify-content:space-between;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid #EDF2F1}
.afaq-child-review{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.afaq-review-item{padding:11px 12px;border:1px solid #E3ECEA;border-radius:11px;background:#F9FCFB}
.afaq-review-item small{display:block;color:#89979E;font-size:.66rem}
.afaq-review-item strong{display:block;margin-top:2px;color:#31556A;font-size:.82rem}
.afaq-review-note{display:flex;gap:10px;margin-top:13px;padding:12px 14px;border-radius:12px;background:#FFF7E7;color:#6B5A34}
.afaq-review-note .afaq-nav-icon{width:22px;height:22px;flex:none}
.afaq-review-note p{margin:2px 0 0;font-size:.72rem}

/* Persistent kindergarten day feed */
.afaq-day-composer{border-color:#CFE7E2!important;background:linear-gradient(135deg,#fff,#F5FBFA)!important}
.afaq-day-composer>.afaq-title-row>.afaq-nav-icon{width:42px;height:42px;padding:9px;border-radius:13px;background:#DEF4EF;color:#138D88}
.afaq-composer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.afaq-day-feed{display:grid;gap:13px;margin:0 0 16px}
.afaq-day-feed>.afaq-panel-head{padding:0 2px}
.afaq-day-feed>.afaq-panel-head h2{margin:0;color:#173954}
.afaq-day-feed>.afaq-panel-head p{margin:2px 0 0;color:#81919A;font-size:.74rem}
.afaq-day-post{padding:15px;border:1px solid #E4ECEA;border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.afaq-day-post header{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.afaq-day-post header>div:nth-child(2){display:grid;flex:1}
.afaq-day-post header strong{color:#294F64;font-size:.9rem}
.afaq-day-post header small{color:#89979D;font-size:.68rem}
.afaq-day-post>p{margin:8px 0 11px;color:#536F7E;font-size:.82rem;line-height:1.85}
.afaq-day-post-media{display:block;width:100%;max-height:560px;object-fit:cover;border-radius:15px;background:#EFF3F2}
.afaq-day-post-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding-top:10px}
.afaq-day-post-actions>button,.afaq-day-post-actions form button{min-height:38px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;border:0!important;background:transparent!important;color:#58727F!important;box-shadow:none!important;padding:7px 9px!important;font-size:.75rem!important}
.afaq-day-post-actions .afaq-nav-icon{width:18px;height:18px}
.afaq-day-like.is-active{color:#E6616C!important;background:#FFF0F1!important}
.afaq-day-comments{display:grid;gap:7px;margin-top:8px;padding-top:10px;border-top:1px solid #EDF2F1}
.afaq-day-comments>div{padding:8px 10px;border-radius:10px;background:#F6FAF9}
.afaq-day-comments strong{font-size:.72rem;color:#31586C}
.afaq-day-comments p{margin:2px 0;font-size:.75rem;color:#58727F}
.afaq-day-comments small{font-size:.62rem;color:#99A5AA}
.afaq-day-comment-form{display:flex;gap:7px}
.afaq-day-comment-form input{flex:1}
.afaq-edu-inspiration-feed:before{content:"أفكار وعينات من أنشطة الروضة";display:block;color:#83939A;font-size:.72rem;font-weight:800;margin-bottom:-4px}
@media(max-width:720px){
  .afaq-child-create-head{flex-direction:column}
  .afaq-wizard-progress{grid-template-columns:1fr 1fr}
  .afaq-form-grid,.afaq-child-review{grid-template-columns:1fr}
  .afaq-span-2{grid-column:auto}
  .afaq-health-choice-card{align-items:flex-start;flex-direction:column}
  .afaq-day-comment-form{flex-direction:column}
  .afaq-composer-actions{flex-direction:column}
  .afaq-composer-actions .afaq-btn{width:100%}
}


/* Afaq 3.3 teacher workspace + daily interactive dashboard */
.afaq-teacher-workspace,.afaq-teacher-day{display:grid;gap:16px}
.afaq-teacher-hero,.afaq-teacher-day-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border:1px solid #D8EBE7;border-radius:20px;background:linear-gradient(120deg,#FFF8EB,#EFFBF8);box-shadow:var(--shadow)}
.afaq-teacher-hero span,.afaq-teacher-day-head span{font-size:.74rem;font-weight:800;color:#15958F}
.afaq-teacher-hero h2,.afaq-teacher-day-head h2{margin:3px 0 5px;color:#173954}
.afaq-teacher-hero p,.afaq-teacher-day-head p{margin:0;color:#70858F;font-size:.82rem}
.afaq-day-filter{display:flex;align-items:center;gap:7px}
.afaq-teacher-day-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.afaq-attendance-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.afaq-attendance-split h3{margin:0 0 8px;color:#456474;font-size:.86rem}
.afaq-child-chip-list{display:flex;flex-wrap:wrap;gap:7px}
.afaq-child-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;text-decoration:none;font-size:.73rem;border:1px solid #DFEAE7}
.afaq-child-chip .afaq-nav-icon{width:16px;height:16px}
.afaq-child-chip.is-present{background:#E8F8F0;color:#188660;border-color:#CDEBDD}
.afaq-child-chip.is-absent{background:#FFF1EF;color:#B95050;border-color:#F0D1CD}
.afaq-day-timeline{display:grid;gap:10px}
.afaq-day-timeline>div{display:grid;grid-template-columns:14px 1fr;gap:8px}
.afaq-timeline-dot{width:9px;height:9px;border-radius:50%;background:#1CA09A;margin-top:5px;box-shadow:0 0 0 4px #E4F5F2}
.afaq-day-timeline strong{color:#31576A;font-size:.82rem}
.afaq-day-timeline small{display:block;color:#8A999F;font-size:.66rem}
.afaq-day-timeline p{margin:3px 0;color:#617A86;font-size:.74rem}
.afaq-engagement-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.afaq-engagement-numbers>div{padding:12px;border-radius:12px;background:#F6FAF9;text-align:center;border:1px solid #E4ECEA}
.afaq-engagement-numbers strong{display:block;font-size:1.35rem;color:#158F89}
.afaq-engagement-numbers span{font-size:.7rem;color:#728690}
.afaq-poll-summary{padding:12px;margin:10px 0;border:1px solid #E3EBE9;border-radius:12px;background:#FAFCFB}
.afaq-poll-summary>strong{display:block;color:#32566A}
.afaq-poll-summary>small{font-size:.68rem;color:#84949C}
.afaq-poll-summary>div{display:grid;gap:7px;margin-top:9px}
.afaq-poll-summary span{display:grid;grid-template-columns:minmax(100px,1fr) 2fr auto;align-items:center;gap:8px}
.afaq-poll-summary i{display:block;height:7px;border-radius:99px;background:linear-gradient(90deg,#25A9A4 var(--pct),#E8EFED var(--pct));}
.afaq-parent-poll{padding:12px;margin:9px 0;border:1px solid #E3ECEA;border-radius:12px;background:#FAFCFB}
.afaq-parent-poll form{display:grid;gap:7px;margin-top:9px}
.afaq-parent-poll label{display:flex!important;align-items:center;gap:7px!important;padding:8px 10px;border-radius:9px;background:#fff;border:1px solid #E6EEEC}
@media(max-width:900px){.afaq-teacher-day-grid{grid-template-columns:1fr}.afaq-attendance-split{grid-template-columns:1fr}}
@media(max-width:650px){.afaq-teacher-hero,.afaq-teacher-day-head{align-items:flex-start;flex-direction:column}.afaq-day-filter{width:100%;flex-wrap:wrap}.afaq-engagement-numbers{grid-template-columns:1fr 1fr 1fr}}


/* Child profile photo — circular avatar */
.afaq-child-profile-head{
  align-items:center;
}
.afaq-child-avatar{
  width:88px;
  height:88px;
  min-width:88px;
  min-height:88px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#E5F6F2,#FFF4E4);
  border:4px solid #fff;
  box-shadow:0 7px 20px rgba(23,57,84,.11);
  color:#178F89;
}
.afaq-child-avatar .afaq-nav-icon{
  width:34px;
  height:34px;
}
.afaq-child-avatar.has-photo{
  background:#fff;
}
.afaq-child-avatar.has-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  border-radius:50%;
}
.afaq-child-photo-link{
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  border-radius:50%;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#EEF7F5;
  border:2px solid #fff;
  box-shadow:0 3px 10px rgba(23,57,84,.08);
}
.afaq-child-photo-link img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:50%;
  display:block;
}
@media(max-width:640px){
  .afaq-child-profile-head{
    align-items:flex-start;
  }
  .afaq-child-avatar{
    width:72px;
    height:72px;
    min-width:72px;
    min-height:72px;
  }
}


/* 3.3.2 — creation buttons instead of inline forms */
.afaq-create-launcher{background:linear-gradient(135deg,#fff,#F6FBFA)!important}
.afaq-create-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:12px}
.afaq-create-btn{display:flex;align-items:center;gap:10px;min-height:70px;padding:12px 14px;border:1px solid #DDEBE7;border-radius:14px;background:#fff;color:#31566A;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.afaq-create-btn:hover{transform:translateY(-1px);border-color:#BFDCD6;box-shadow:0 8px 20px rgba(23,57,84,.07)}
.afaq-create-btn>.afaq-nav-icon{width:28px;height:28px;padding:5px;border-radius:9px;background:#E6F6F3;color:#138D88;flex:none}
.afaq-create-btn>span{display:grid;gap:2px}
.afaq-create-btn strong{font-size:.84rem}
.afaq-create-btn small{font-size:.68rem;color:#83949C}
.afaq-header-actions{display:flex;gap:7px;flex-wrap:wrap}
.afaq-program-summary{padding:13px;border:1px solid #E3ECE9;border-radius:13px;background:#FAFCFB}
.afaq-program-summary h3{margin:0 0 5px;color:#31576A}
.afaq-program-summary>p{color:#617985}
.afaq-program-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.afaq-program-summary-grid>div{padding:10px;border-radius:10px;background:#fff;border:1px solid #E7EFED}
.afaq-program-summary-grid small{display:block;color:#88969D;font-size:.66rem;font-weight:800}
.afaq-program-summary-grid p{margin:3px 0 0;font-size:.75rem;color:#526F7D}
@media(max-width:650px){.afaq-program-summary-grid{grid-template-columns:1fr}.afaq-header-actions{width:100%}.afaq-header-actions .afaq-btn{flex:1}}


/* 3.4.0 — list pages + separate creation pages */
.afaq-narrow-card{max-width:860px;margin-inline:auto}
.afaq-card .afaq-title-row>.afaq-btn{white-space:nowrap}
.afaq-finance-page-note{padding:10px 12px;border-radius:11px;background:#F6FAF9;color:#617A86;font-size:.75rem}
@media(max-width:650px){
  .afaq-card .afaq-title-row{align-items:flex-start;flex-direction:column}
  .afaq-card .afaq-title-row>.afaq-btn{width:100%;justify-content:center}
}


/* Afaq 3.5 — consistent section pattern: create button + data table/list */
.afaq-section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.afaq-testimonial-admin-table small{color:#81919A}
.afaq-table .afaq-btn.small{white-space:nowrap}
.afaq-card .afaq-title-row p{margin:3px 0 0;color:#7A8D96;font-size:.76rem}
@media(max-width:700px){
  .afaq-table-wrap{overflow-x:auto}
  .afaq-table{min-width:680px}
}

/* Afaq 3.6 HTML email notifications */
.afaq-email-preview-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin:8px 0 14px;border:1px solid #D7E9E5;border-radius:12px;background:#F5FBF9;color:#476A68}
.afaq-email-preview-note>.afaq-nav-icon{width:24px;height:24px;color:#168D87;flex:none}
.afaq-email-preview-note strong{display:block;color:#285552}
.afaq-email-preview-note p{margin:3px 0 0;font-size:.73rem;color:#6A8582}
.afaq-notification-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.afaq-notification-stats>div{padding:12px;border-radius:12px;background:#F7FAF9;border:1px solid #E2EBE8;text-align:center}
.afaq-notification-stats b{display:block;color:#198E88;font-size:1.15rem}
.afaq-notification-stats span{font-size:.68rem;color:#7B8F8D}
@media(max-width:650px){.afaq-notification-stats{grid-template-columns:1fr 1fr}}

/* Afaq 3.6.3 — interactive daily schedule */
.afaq-schedule-heading{margin:20px 0 10px;color:#284e4b}
.afaq-day-schedule{border:1px solid #e4eeeb;border-radius:16px;overflow:hidden;background:#fff}
.afaq-day-schedule-head,.afaq-day-schedule-row{display:grid;grid-template-columns:130px minmax(190px,.9fr) minmax(220px,1.4fr);align-items:center;gap:12px}
.afaq-day-schedule-head{padding:9px 14px;background:#f2faf8;color:#62817e;font-size:.72rem;font-weight:700}
.afaq-day-schedule-row{padding:12px 14px;border-top:1px solid #edf2f0}
.afaq-day-schedule-row time{font-weight:700;color:#208c87;direction:ltr;text-align:right}
.afaq-day-schedule-title{display:flex;align-items:center;gap:9px;color:#243d3b}
.afaq-day-schedule-title i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef9f7;color:#208c87;font-style:normal;flex:none}
.afaq-day-schedule-title svg{width:18px;height:18px}
.afaq-day-schedule-row p{margin:0;color:#6a7f7d;font-size:.78rem;line-height:1.7}
.afaq-parent-day-program{padding:16px;border:1px solid #e3ece9;border-radius:16px;background:#fff;margin-bottom:14px}
.afaq-parent-day-program-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.afaq-parent-day-program-head h3{margin:4px 0;color:#243d3b}
.afaq-parent-day-program-head small{color:#738987}
.afaq-schedule-editor{grid-column:1/-1;border:1px solid #dfeae7;border-radius:16px;padding:14px;background:#fbfdfc}
.afaq-schedule-editor-rows{display:grid;gap:10px}
.afaq-schedule-editor-row{position:relative;display:grid;grid-template-columns:110px 110px minmax(170px,1fr) 130px;gap:8px;padding:12px 42px 12px 12px;border:1px solid #e3ece9;border-radius:13px;background:#fff}
.afaq-schedule-editor-row label{margin:0}
.afaq-schedule-editor-row label.full{grid-column:1/-1}
.afaq-schedule-editor-row input,.afaq-schedule-editor-row select{width:100%}
.afaq-schedule-remove{position:absolute;right:10px;top:13px;width:28px;height:28px;border:0;border-radius:8px;background:#fff0ef;color:#c95d59;font-size:20px;cursor:pointer}
.afaq-day-schedule-panel{grid-column:1/-1}
@media(max-width:760px){
  .afaq-day-schedule-head{display:none}
  .afaq-day-schedule-row{grid-template-columns:1fr;gap:6px;padding:13px}
  .afaq-day-schedule-row time{text-align:right}
  .afaq-schedule-editor-row{grid-template-columns:1fr 1fr;padding-right:42px}
  .afaq-schedule-editor-row label.wide,.afaq-schedule-editor-row label.full{grid-column:1/-1}
}


/* Afaq 4.0.1 — dedicated settings pages */
.afaq-settings-hero,.afaq-settings-page-head{display:flex;align-items:center;gap:18px;margin:0 0 20px;padding:24px 26px;border:1px solid #E7EFED;border-radius:22px;background:linear-gradient(135deg,#FFFCF6,#F3FBFA);box-shadow:0 10px 30px rgba(36,61,59,.06)}
.afaq-settings-hero>div:first-child{flex:1}.afaq-settings-hero>.afaq-nav-icon{width:58px;height:58px;color:#208C87;background:#E8F7F5;padding:14px;border-radius:18px}
.afaq-settings-eyebrow,.afaq-settings-page-head>div>span{display:block;color:#208C87;font-size:12px;font-weight:800;margin-bottom:4px}
.afaq-settings-hero h1,.afaq-settings-page-head h1{margin:0 0 6px;color:#243D3B;font-size:25px}.afaq-settings-hero p,.afaq-settings-page-head p{margin:0;color:#617674;line-height:1.8}
.afaq-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.afaq-settings-grid-small{max-width:980px}
.afaq-settings-card{position:relative;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:14px;min-height:124px;padding:20px;border:1px solid #E5EEEC;border-radius:20px;background:#fff;text-decoration:none;color:#243D3B;box-shadow:0 8px 24px rgba(36,61,59,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.afaq-settings-card:hover{transform:translateY(-2px);border-color:#BFE2DE;box-shadow:0 12px 30px rgba(36,61,59,.09)}
.afaq-settings-card-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;background:#EDF9F7;color:#208C87}.afaq-settings-card-icon .afaq-nav-icon{width:26px;height:26px}
.afaq-settings-card-copy{display:flex;flex-direction:column;gap:5px}.afaq-settings-card-copy strong{font-size:16px}.afaq-settings-card-copy small{color:#6A7F7D;line-height:1.65}
.afaq-settings-card-status{white-space:nowrap;background:#F7F3E8;color:#78663C;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}.afaq-settings-card-arrow{font-size:21px;color:#86A7A3}
.afaq-settings-page-head{position:relative}.afaq-settings-head-icon{display:grid;place-items:center;width:54px;height:54px;min-width:54px;border-radius:17px;background:#E8F7F5;color:#208C87}.afaq-settings-head-icon .afaq-nav-icon{width:28px;height:28px}
.afaq-settings-back{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:12px;background:#fff;border:1px solid #DFE9E7;color:#208C87;text-decoration:none;font-size:20px}
.afaq-settings-form-card{max-width:980px}.afaq-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}
.afaq-switch-row{display:flex!important;align-items:flex-start!important;gap:12px;padding:14px 16px;border:1px solid #E5EEEC;border-radius:15px;background:#FBFDFC}.afaq-switch-row>input{width:auto!important;margin-top:4px}.afaq-switch-row>span{display:flex;flex-direction:column;gap:3px}.afaq-switch-row small{color:#6A7F7D}
.afaq-success-note{margin:0 0 16px;padding:13px 16px;border:1px solid #CDE9DD;border-radius:14px;background:#F0FBF5;color:#2C6B50;font-weight:700}
.afaq-payment-status{display:flex;flex-direction:column;gap:3px;margin-bottom:16px;padding:14px 16px;border-radius:15px;border:1px solid #E8E1C8;background:#FFF9E9}.afaq-payment-status.is-ready{border-color:#CDE9DD;background:#F0FBF5;color:#2C6B50}.afaq-payment-status.is-warning{color:#7A6131}
@media(max-width:850px){.afaq-settings-grid{grid-template-columns:1fr}.afaq-settings-hero,.afaq-settings-page-head{padding:18px;align-items:flex-start}.afaq-settings-hero>.afaq-nav-icon{display:none}.afaq-settings-card{grid-template-columns:auto 1fr auto;min-height:110px}.afaq-settings-card-status{grid-column:2}.afaq-settings-card-arrow{grid-column:3;grid-row:1/3}.afaq-settings-page-head{gap:12px}.afaq-settings-head-icon{width:46px;height:46px;min-width:46px}}

/* Afaq 4.1.0 — application and content management */
.afaq-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.afaq-feature-toggle{display:flex!important;gap:10px;align-items:flex-start!important;padding:13px;border:1px solid #E5EEEC;border-radius:14px;background:#FBFDFC}
.afaq-feature-toggle>input{width:auto!important;margin-top:4px}.afaq-feature-toggle>span{display:flex;flex-direction:column;gap:2px}.afaq-feature-toggle small{color:#6A7F7D}
.afaq-content-manager{max-width:1180px}.afaq-content-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.afaq-content-toolbar h3,.afaq-content-toolbar p{margin:0}.afaq-content-toolbar p{color:#6A7F7D;margin-top:4px}
.afaq-content-list{display:flex;flex-direction:column;gap:12px}.afaq-content-item{position:relative;border:1px solid #DFE9E7;border-radius:18px;background:#fff;padding:16px 16px 16px 48px;box-shadow:0 5px 18px rgba(36,61,59,.04)}
.afaq-content-item.is-dragging{opacity:.45}.afaq-content-drag{position:absolute;left:14px;top:17px;cursor:grab;color:#86A7A3;font-size:22px;line-height:1}.afaq-content-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.afaq-content-item-head>div:first-child{display:flex;flex-direction:column;gap:3px}.afaq-content-item-head small{color:#728684}
.afaq-content-actions{display:flex;gap:6px}.afaq-content-actions button{width:34px;height:34px;border:1px solid #DDE8E6;border-radius:10px;background:#F7FBFA;color:#208C87;cursor:pointer}
.afaq-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.afaq-content-wide{grid-column:1/-1}.afaq-content-switches{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px dashed #DFE9E7}.afaq-content-switches label{display:flex!important;align-items:center!important;gap:6px}.afaq-content-switches input{width:auto!important}.afaq-danger-check{color:#A33}
.afaq-content-new{margin-top:18px;padding:18px;border-radius:18px;background:#F7FBFA;border:1px dashed #BFD8D4}
@media(max-width:850px){.afaq-feature-grid,.afaq-content-grid{grid-template-columns:1fr}.afaq-content-wide{grid-column:auto}.afaq-content-toolbar{align-items:flex-start;flex-direction:column}.afaq-content-item{padding-left:42px}}


/* Afaq 4.2.0 — profile photos + gentle identity motion */
:root{
  --afaq-teal:#208C87;
  --afaq-mint:#86CDCF;
  --afaq-coral:#EA7D7B;
  --afaq-gold:#EBC66E;
  --afaq-green:#8EC58C;
  --afaq-cream:#FFFBF3;
  --afaq-spring:cubic-bezier(.34,1.56,.64,1);
  --afaq-ease:cubic-bezier(.22,.61,.36,1);
}
.afaq-card,.afaq-kpi,.afaq-row,.afaq-btn,.afaq-account-chip,.afaq-user-edit-card,
.afaq-quick-grid a,.afaq-sidebar a,.afaq-section-tabs a,.afaq-settings-card{
  transition:transform .28s var(--afaq-spring),box-shadow .28s var(--afaq-ease),
             border-color .2s ease,background-color .2s ease,color .16s ease,opacity .28s ease;
}
.afaq-btn:hover,.afaq-quick-grid a:hover,.afaq-settings-card:hover{transform:translateY(-2px)}
.afaq-btn:active,.afaq-account-chip:active,.afaq-user-edit-card:active{transform:scale(.975)}
.afaq-card.afaq-reveal-ready,.afaq-kpi.afaq-reveal-ready{
  opacity:0;transform:translateY(12px) scale(.992)
}
.afaq-card.afaq-reveal-ready.is-visible,.afaq-kpi.afaq-reveal-ready.is-visible{
  opacity:1;transform:none
}

.afaq-profile-photo-card{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:22px;
  align-items:center;overflow:hidden;position:relative;
  background:linear-gradient(135deg,#fff 0%,#FFFBF3 52%,#EAF7F5 100%)
}
.afaq-profile-photo-card:after{
  content:"";position:absolute;width:190px;height:190px;border-radius:50%;
  background:rgba(235,198,110,.14);left:-70px;bottom:-90px;pointer-events:none
}
.afaq-profile-photo-copy{position:relative;z-index:1}
.afaq-profile-photo-copy h2{margin:4px 0 8px;color:#173954}
.afaq-profile-photo-copy p{margin:0;color:#607975;line-height:1.9}
.afaq-profile-photo-editor{position:relative;z-index:1;display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center}
.afaq-profile-photo-preview{
  width:112px;height:112px;border-radius:50%;padding:4px;background:#fff;
  box-shadow:0 10px 30px rgba(36,61,59,.13);border:1px solid rgba(32,140,135,.16);
  overflow:hidden;transition:transform .35s var(--afaq-spring)
}
.afaq-profile-photo-preview:hover{transform:scale(1.035)}
.afaq-profile-photo-preview img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.afaq-profile-photo-form{display:grid;gap:8px}
.afaq-avatar-file{
  display:flex!important;align-items:center!important;justify-content:center;min-height:44px;
  padding:10px 13px!important;border:1px dashed rgba(32,140,135,.48);border-radius:12px;
  background:#F4FBFA;color:#167B76;cursor:pointer;text-align:center
}
.afaq-avatar-file:hover{background:#EAF7F5;border-color:var(--afaq-teal)}
.afaq-avatar-file input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none}
.afaq-profile-photo-form small{color:#78909A;line-height:1.6}
.afaq-topbar-account .afaq-account-chip img,.afaq-user-edit-card img{
  object-fit:cover;transition:transform .32s var(--afaq-spring),box-shadow .25s ease
}
.afaq-topbar-account .afaq-account-chip:hover img,.afaq-user-edit-card:hover img{transform:scale(1.07)}
.afaq-profile-account-card{background:linear-gradient(135deg,#fff,#F5FBFA)}

.afaq-rating-field{display:grid;gap:8px}
.afaq-rating-field>span{font-weight:800;color:#31566A}
.afaq-star-rating{display:flex;direction:ltr;justify-content:flex-end;gap:6px;width:max-content;max-width:100%}
.afaq-star{
  appearance:none;border:0;background:transparent;padding:2px;cursor:pointer;
  color:#B9C8C5;font-size:2rem;line-height:1;
  transition:transform .25s var(--afaq-spring),color .15s ease,filter .2s ease
}
.afaq-star.on{color:var(--afaq-gold);filter:drop-shadow(0 4px 8px rgba(235,198,110,.24))}
.afaq-star.pop{transform:scale(1.3)}
.afaq-star:focus-visible{outline:3px solid rgba(32,140,135,.22);outline-offset:3px;border-radius:8px}

.afaq-pin-input{display:flex;direction:ltr;gap:10px;justify-content:center;margin:4px 0 8px}
.afaq-pin-box{
  width:48px!important;height:54px!important;padding:0!important;text-align:center!important;
  font-size:1.35rem!important;font-weight:800!important;letter-spacing:0!important;
  border:1.5px solid #CCD9D5!important;border-radius:13px!important;background:#fff!important;
  transition:transform .35s var(--afaq-spring),border-color .2s ease,box-shadow .2s ease!important
}
.afaq-pin-box.filled{border-color:var(--afaq-gold)!important;background:#FFFCF3!important}
.afaq-pin-box.pop{transform:scale(1.14)}
.afaq-pin-box:focus{border-color:var(--afaq-teal)!important;outline:none!important;box-shadow:0 0 0 4px rgba(32,140,135,.12)!important}

@media(max-width:720px){
  .afaq-profile-photo-card{grid-template-columns:1fr}
  .afaq-profile-photo-editor{grid-template-columns:90px 1fr}
  .afaq-profile-photo-preview{width:86px;height:86px}
  .afaq-pin-input{gap:7px}
  .afaq-pin-box{width:44px!important;height:52px!important}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .afaq-card.afaq-reveal-ready,.afaq-kpi.afaq-reveal-ready{opacity:1!important;transform:none!important}
}
.afaq-auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:#71827f}.afaq-auth-divider:before,.afaq-auth-divider:after{content:"";height:1px;background:#dce9e6;flex:1}.afaq-arttree-credit{margin:30px 0 8px;padding:14px 18px;border-top:1px solid #e1ece9;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:#6a7b78}.afaq-arttree-credit a{display:inline-flex;align-items:center;gap:7px;color:#243D3B;text-decoration:none}.afaq-arttree-credit img{width:24px;height:24px;object-fit:contain;background:#fff;border-radius:6px;padding:2px}
.afaq-pin-input[data-length="4"]{grid-template-columns:repeat(4,minmax(38px,52px));justify-content:center}

/* Afaq 4.7 operational UX */
.afaq-invoice-sheet{background:#fff;border:1px solid #e5ece9;border-radius:20px;padding:28px;box-shadow:0 12px 35px rgba(36,61,59,.08)}
.afaq-invoice-sheet table{width:100%;border-collapse:collapse}.afaq-invoice-sheet th{background:#f1faf8;color:#243d3b}.afaq-invoice-sheet th,.afaq-invoice-sheet td{padding:11px;border-bottom:1px solid #edf2f0}
.afaq-entity-link{font-weight:700;color:#208c87;text-decoration:none}.afaq-entity-link:hover{text-decoration:underline}
.afaq-leave-alert{display:flex;gap:10px;align-items:center;background:#fff7e6;border:1px solid #ebc66e;border-radius:14px;padding:12px 14px;margin:10px 0}
.afaq-ops-card{border:1px solid #e3eeeb;border-radius:16px;padding:14px;background:#fff}.afaq-ops-meta{display:flex;flex-wrap:wrap;gap:8px}.afaq-ops-meta span{background:#f4faf8;border-radius:999px;padding:5px 9px;font-size:12px}
@media print{.afaq-invoice-sheet{box-shadow:none;border:0;padding:0}.afaq-sidebar,.afaq-topbar,.afaq-btn{display:none!important}}

/* 4.8 operational polish */
.afaq-sidebar .afaq-logo img,.afaq-parent-sidebar .afaq-logo img{display:block;width:100%;max-width:176px;max-height:112px;object-fit:contain;margin:auto}
.afaq-pickup-card{position:relative;overflow:hidden}.afaq-pickup-card:before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:var(--p)}
.afaq-row>a,.afaq-pickup-card h3 a{color:inherit;text-decoration:none}.afaq-row>a:hover,.afaq-pickup-card h3 a:hover{color:var(--p);text-decoration:underline}
.afaq-invoice-sheet{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 40px rgba(21,66,67,.08);overflow:hidden}.afaq-invoice-sheet__head{padding:28px;background:linear-gradient(135deg,#fff9ed,#effaf8);display:flex;justify-content:space-between;gap:20px;align-items:center}.afaq-invoice-sheet__logo{max-width:180px;max-height:100px;object-fit:contain}.afaq-invoice-sheet__totals{margin-inline-start:auto;max-width:360px;background:#f7fbfa;border-radius:16px;padding:16px}.afaq-invoice-sheet__totals>div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}.afaq-invoice-sheet__totals>div:last-child{border:0;font-weight:900;font-size:1.08rem}

/* 5.5 unified attendance & pickup journey */
.afaq-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.afaq-journey>div{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--afaq-border,#e5e7eb);border-radius:16px;background:var(--afaq-surface,#fff)}.afaq-journey b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--afaq-primary,#315f52);color:#fff}.afaq-pickup-or{display:flex;align-items:center;gap:10px;color:var(--afaq-muted,#6b7280);font-size:.9rem}.afaq-pickup-or:before,.afaq-pickup-or:after{content:"";height:1px;background:currentColor;opacity:.22;flex:1}@media(max-width:680px){.afaq-journey{grid-template-columns:1fr}.afaq-journey>div{padding:11px}}


/* Pickup supervisor display — 6.4.0 */
.afaq-pickup-pin{display:flex;flex-direction:column;align-items:center;gap:6px;margin:18px auto;padding:16px 22px;border:1px solid var(--afaq-line,#e5e7eb);border-radius:18px;background:#fff;max-width:300px}
.afaq-pickup-pin span,.afaq-pickup-pin small{color:var(--afaq-muted,#64748b)}
.afaq-pickup-pin strong{font-size:2.35rem;letter-spacing:.28em;padding-inline-start:.28em;font-variant-numeric:tabular-nums;color:var(--afaq-ink,#0f172a)}
.afaq-pickup-display-shell{direction:rtl;min-height:70vh;padding:20px;border-radius:28px;background:linear-gradient(180deg,#f8fbfb 0%,#fff 100%)}
.afaq-pickup-display-head{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:22px}
.afaq-pickup-display-head>div:first-child span{font-size:.85rem;font-weight:800;color:#0f766e}
.afaq-pickup-display-head h1{margin:5px 0 7px;font-size:clamp(1.7rem,3vw,2.6rem)}
.afaq-pickup-display-head p{margin:0;color:#64748b}
.afaq-display-stats{display:flex;gap:10px;flex-wrap:wrap}
.afaq-display-stats b{display:flex;align-items:center;gap:7px;padding:10px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;box-shadow:0 8px 24px rgba(15,23,42,.05);white-space:nowrap}
.afaq-display-stats strong{font-size:1.2rem;color:#0f766e}
.afaq-pickup-display-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.afaq-display-child{overflow:hidden;background:#fff;border:2px solid #e5e7eb;border-radius:24px;box-shadow:0 14px 36px rgba(15,23,42,.08);transition:.2s ease}
.afaq-display-child.is-ready{border-color:#22c55e;box-shadow:0 16px 38px rgba(34,197,94,.13)}
.afaq-display-child.is-preparing{border-color:#f59e0b}
.afaq-display-photo{position:relative;aspect-ratio:4/3;background:#eaf4f3;display:flex;align-items:center;justify-content:center;overflow:hidden}
.afaq-display-photo img{width:100%;height:100%;object-fit:cover}
.afaq-display-photo>span .afaq-nav-icon{width:64px;height:64px;color:#0f766e}
.afaq-display-photo em{position:absolute;right:12px;bottom:12px;background:rgba(15,23,42,.82);color:#fff;padding:7px 11px;border-radius:999px;font-style:normal;font-weight:800;font-size:.8rem}
.afaq-display-child.is-ready .afaq-display-photo em{background:#15803d}
.afaq-display-child.is-preparing .afaq-display-photo em{background:#b45309}
.afaq-display-child-body{padding:17px}
.afaq-display-child-body h2{margin:0 0 6px;font-size:1.55rem}
.afaq-display-child-body>p{margin:0 0 12px;color:#64748b;font-weight:700}
.afaq-display-meta{display:flex;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #eef2f7;color:#64748b}
.afaq-display-meta strong{color:#0f172a}
.afaq-display-child-body small{display:block;margin-top:12px;padding:9px 11px;border-radius:12px;background:#f8fafc;color:#475569}
.afaq-display-empty{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b}
.afaq-display-empty .afaq-nav-icon{width:72px;height:72px;color:#0f766e}
.afaq-display-empty h2{color:#0f172a;margin-bottom:6px}
.afaq-display-footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid #e5e7eb;color:#64748b;font-size:.85rem}
@media (max-width:760px){
  .afaq-pickup-display-head{align-items:stretch;flex-direction:column}
  .afaq-display-stats{display:grid;grid-template-columns:repeat(3,1fr)}
  .afaq-display-stats b{justify-content:center;padding:9px 7px;font-size:.75rem}
  .afaq-pickup-display-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .afaq-display-child-body{padding:12px}
  .afaq-display-child-body h2{font-size:1.05rem}
  .afaq-display-photo em{font-size:.7rem}
}

/* 6.6.0 Staff & permissions center */
.afaq-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.afaq-stat{padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:#fff}.afaq-stat span{display:block;color:#64748b;font-size:.85rem}.afaq-stat strong{display:block;margin-top:4px;font-size:1.8rem;color:#0f766e}.afaq-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.afaq-inline-actions form{margin:0}.afaq-permission-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.afaq-permission-row{display:grid!important;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:#fbfdfd}.afaq-permission-row span{font-weight:700}.afaq-notice{padding:14px 16px;border:1px solid #f2c56b;border-radius:14px;background:#fff8e8;color:#704d00}.afaq-card fieldset{border:1px solid var(--line,#e5e7eb);border-radius:16px;padding:14px;margin:6px 0 16px}.afaq-card fieldset legend{padding:0 8px;font-weight:800;color:#243d3b}@media(max-width:760px){.afaq-stat-grid,.afaq-permission-matrix{grid-template-columns:1fr}.afaq-permission-row{grid-template-columns:1fr}.afaq-inline-actions{justify-content:flex-start}}

/* Afaq 6.7.0 — SaaS staff & permissions center */
.afaq-saas-hero{background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,249,255,.98));overflow:hidden}
.afaq-eyebrow{display:inline-block;font-size:12px;font-weight:800;opacity:.62;margin-bottom:6px}
.afaq-filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) 190px 150px auto;gap:10px;align-items:end;margin-bottom:18px}
.afaq-filter-bar input,.afaq-filter-bar select{width:100%;min-height:44px}
.afaq-table-wrap{overflow:auto;border:1px solid rgba(31,45,61,.08);border-radius:16px;background:#fff}
.afaq-saas-table{width:100%;border-collapse:collapse;min-width:900px}
.afaq-saas-table th,.afaq-saas-table td{padding:14px 16px;text-align:right;border-bottom:1px solid rgba(31,45,61,.07);vertical-align:middle}
.afaq-saas-table th{font-size:12px;opacity:.62;background:rgba(248,250,252,.9);font-weight:800}
.afaq-saas-table tr:last-child td{border-bottom:0}
.afaq-employee-cell{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.afaq-employee-cell img{width:42px;height:42px;border-radius:14px;object-fit:cover;background:#eef2f7}
.afaq-employee-cell span{display:grid;gap:2px}.afaq-employee-cell small{opacity:.58;font-size:11px}
.afaq-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;background:#eef2f7}
.afaq-badge.success{background:#e8f8ef;color:#18794e}.afaq-badge.danger{background:#fff0f0;color:#b42318}
.afaq-employee-header .afaq-title-row{align-items:center}.afaq-employee-id{display:flex;align-items:center;gap:16px}.afaq-employee-avatar{width:90px;height:90px;border-radius:24px;object-fit:cover;background:#eef2f7}.afaq-employee-id h2{margin:4px 0}.afaq-employee-id p{margin:0 0 8px;opacity:.65}.afaq-badges{display:flex;gap:6px;flex-wrap:wrap}.afaq-back-link{font-size:12px;text-decoration:none;opacity:.65}
.afaq-profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.afaq-profile-summary>div{padding:14px;border-radius:14px;background:rgba(248,250,252,.9);display:grid;gap:5px}.afaq-profile-summary span{font-size:11px;opacity:.6}.afaq-profile-summary strong{font-size:14px}
.afaq-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.afaq-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.afaq-role-card{border:1px solid rgba(31,45,61,.08);border-radius:16px;padding:16px;background:#fff}.afaq-role-card h3{margin-top:0}.afaq-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.afaq-timeline{display:grid;gap:0}.afaq-timeline-item{position:relative;padding:0 22px 18px 0;margin-right:6px;border-right:2px solid rgba(31,45,61,.09)}.afaq-timeline-item:before{content:"";position:absolute;right:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:currentColor}.afaq-timeline-item p{margin:5px 0;opacity:.75}.afaq-timeline-item small{opacity:.55}.afaq-empty,.afaq-muted{padding:18px;text-align:center;opacity:.6}
@media(max-width:900px){.afaq-filter-bar,.afaq-form-grid,.afaq-role-grid,.afaq-two-col,.afaq-profile-summary{grid-template-columns:1fr}.afaq-employee-header .afaq-title-row{align-items:flex-start}.afaq-employee-id{align-items:flex-start}.afaq-employee-avatar{width:72px;height:72px;border-radius:20px}}

/* 6.8.0 Classes SaaS */
.afaq-class-placeholder{display:flex;align-items:center;justify-content:center;background:#eef8f6}.afaq-class-placeholder svg{width:34px;height:34px}.afaq-mini-class-icon{width:42px;height:42px;border-radius:12px;background:#eef8f6;display:flex;align-items:center;justify-content:center;flex:0 0 42px}.afaq-mini-class-icon svg{width:22px;height:22px}.afaq-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}@media(max-width:720px){.afaq-form-grid{grid-template-columns:1fr}}


/* 6.9.0 — full-screen pickup, smart attendance, expanded settings & ZATCA invoice */
.afaq-pickup-fullscreen{min-height:100vh;padding:18px 22px;background:#f6faf9}
.afaq-pickup-school-brand{display:flex;align-items:center;gap:14px;max-width:1600px;margin:0 auto 14px;padding:12px 16px}
.afaq-pickup-school-brand img{width:74px;height:74px;object-fit:contain}
.afaq-pickup-school-brand div{display:grid;gap:3px}.afaq-pickup-school-brand strong{font-size:1.15rem}.afaq-pickup-school-brand span{color:#64748b}
.afaq-pickup-fullscreen .afaq-pickup-display-shell{max-width:1600px;margin:0 auto;min-height:calc(100vh - 130px);border-radius:26px;padding:22px}
.afaq-pickup-fullscreen .afaq-display-photo{aspect-ratio:auto;background:transparent;padding:18px 18px 0}
.afaq-pickup-fullscreen .afaq-display-photo img{width:132px;height:132px;border-radius:50%;object-fit:cover;border:6px solid #eef7f5;box-shadow:0 8px 24px rgba(15,23,42,.12)}
.afaq-pickup-fullscreen .afaq-display-photo>span{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:#eef7f5}
.afaq-pickup-fullscreen .afaq-display-photo em{right:18px;bottom:4px}
.afaq-pickup-fullscreen .afaq-pickup-display-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.afaq-pickup-fullscreen .afaq-display-child{text-align:center}
.afaq-pickup-fullscreen .afaq-display-meta{justify-content:center;gap:22px}
.afaq-pickup-fullscreen .afaq-display-stats{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr))}
.afaq-pickup-fullscreen .afaq-display-stats b{border-radius:16px;justify-content:center}
.afaq-attendance-methods{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.afaq-attendance-methods .afaq-form{padding:16px;border:1px solid var(--line,#e5e7eb);border-radius:16px;background:#fbfdfd}
.afaq-class-enroll{margin:12px 0 16px;padding:12px;background:#f8fbfb;border-radius:14px}
.afaq-settings-page-head,.afaq-settings-form-card{width:100%;max-width:none!important}
.afaq-settings-form-card .afaq-form{max-width:none!important}
.afaq-zatca-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;margin-bottom:18px;border-radius:14px;background:#f3faf8;border:1px solid #dfeeea}
.afaq-zatca-title strong{font-size:1.3rem}.afaq-zatca-title span{font-weight:700;color:#64748b}
.afaq-zatca-qr{width:190px;margin:22px auto;text-align:center}.afaq-zatca-qr .afaq-real-qr svg{width:180px;height:180px;display:block;margin:auto}.afaq-zatca-qr small{display:block;margin-top:8px;color:#64748b}
.afaq-zatca-note{padding:12px 14px;border-radius:12px;background:#fff8e8;border:1px solid #f2d49b;color:#6b541d;font-size:.85rem;line-height:1.7}
@media(max-width:760px){
 .afaq-pickup-fullscreen{padding:8px}.afaq-pickup-school-brand img{width:54px;height:54px}
 .afaq-pickup-fullscreen .afaq-display-stats{grid-template-columns:repeat(2,1fr)}
 .afaq-pickup-fullscreen .afaq-display-photo img,.afaq-pickup-fullscreen .afaq-display-photo>span{width:98px;height:98px}
 .afaq-attendance-methods{grid-template-columns:1fr}
}
@media print{.afaq-zatca-note,.afaq-doc-actions{display:none!important}}

.afaq-child-card-print{display:flex;align-items:center;justify-content:center;gap:24px;padding:22px;border:2px solid #dfeae7;border-radius:20px;background:#fff;max-width:620px;margin:16px auto}
.afaq-child-card-print .afaq-real-qr svg{width:180px;height:180px;display:block}
.afaq-child-card-print>div:last-child{display:grid;gap:6px}.afaq-child-card-print strong{font-size:1.4rem}.afaq-child-card-print span{font-weight:800;color:#0f766e}.afaq-child-card-print small{color:#64748b}
@media print{.afaq-child-attendance-card{box-shadow:none!important;border:0!important}.afaq-child-attendance-card>*:not(.afaq-child-card-print){display:none!important}.afaq-child-card-print{border:1px solid #bbb;break-inside:avoid}}


/* Finance SaaS center — 7.0.0 */
.afaq-finance-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0}
.afaq-finance-module-card{background:var(--afaq-card,#fff);border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:14px;min-height:220px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.afaq-finance-module-icon{width:48px;height:48px;border-radius:14px;background:rgba(25,118,210,.08);display:grid;place-items:center}
.afaq-finance-module-icon .afaq-nav-icon{width:24px;height:24px}
.afaq-finance-module-body{flex:1}
.afaq-finance-module-body h3{margin:0 0 8px;font-size:1.05rem}
.afaq-finance-module-body p{margin:0;color:var(--afaq-muted,#64748b);line-height:1.8}
.afaq-finance-module-meta{display:inline-flex;margin-top:12px;padding:6px 10px;border-radius:999px;background:rgba(15,23,42,.05);font-size:.82rem;font-weight:700}
.afaq-title-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.afaq-empty-state{padding:28px;text-align:center;color:var(--afaq-muted,#64748b)}
@media (max-width:1100px){.afaq-finance-modules{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.afaq-finance-modules{grid-template-columns:1fr}.afaq-title-actions{width:100%}.afaq-title-actions .afaq-btn{flex:1;text-align:center}}


/* 7.0.0 — full-width kid-friendly pickup display */
.afaq-pickup-fullscreen{width:100%;max-width:none!important;margin:0;padding:14px 18px 18px;background:linear-gradient(180deg,#f7fbfa 0%,#f8f7ff 55%,#fffaf4 100%)}
.afaq-pickup-school-brand{max-width:none!important;width:100%;margin:0 0 10px;padding:8px 10px 12px;justify-content:center;text-align:center}
.afaq-pickup-school-brand img{width:68px;height:68px}.afaq-pickup-school-brand strong{font-size:1.25rem;color:#203936}
.afaq-pickup-fullscreen .afaq-pickup-display-shell{max-width:none!important;width:100%;margin:0;min-height:calc(100vh - 105px);border-radius:24px;padding:18px;background:rgba(255,255,255,.78);box-shadow:0 16px 50px rgba(31,52,48,.06);backdrop-filter:blur(8px)}
.afaq-pickup-display-head{display:block;margin:0 0 18px}
.afaq-pickup-fullscreen .afaq-display-stats{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;width:100%}
.afaq-display-stat{display:flex;align-items:center;gap:13px;min-height:82px;padding:14px 16px;border:1px solid rgba(30,64,58,.07);border-radius:20px;background:#fff;box-shadow:0 9px 30px rgba(15,23,42,.05)}
.afaq-display-stat-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 48px;background:#eef8f6;color:#0f766e}.afaq-display-stat-icon .afaq-nav-icon{width:25px;height:25px}
.afaq-display-stat div{display:grid;gap:2px}.afaq-display-stat small{font-size:.82rem;color:#64748b;font-weight:800}.afaq-display-stat strong{font-size:1.65rem;line-height:1;color:#173f3a}
.afaq-display-stat.stat-ready .afaq-display-stat-icon{background:#eafaf0;color:#16824f}.afaq-display-stat.stat-preparing .afaq-display-stat-icon{background:#fff7e6;color:#bb7410}.afaq-display-stat.stat-new .afaq-display-stat-icon{background:#eef4ff;color:#3b63be}.afaq-display-stat.stat-delivered .afaq-display-stat-icon{background:#f2efff;color:#7354c7}
.afaq-pickup-fullscreen .afaq-pickup-display-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:stretch}
.afaq-pickup-fullscreen .afaq-display-child{position:relative;display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;text-align:right;overflow:hidden;min-height:158px;padding:16px;border:1px solid rgba(30,64,58,.08);border-radius:24px;background:linear-gradient(135deg,#fff 0%,#fbfffe 100%);box-shadow:0 12px 32px rgba(15,23,42,.07);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.afaq-pickup-fullscreen .afaq-display-child:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(15,23,42,.10)}
.afaq-pickup-fullscreen .afaq-display-child:before{content:"";position:absolute;right:0;top:0;bottom:0;width:7px;background:#cbd5e1}.afaq-pickup-fullscreen .afaq-display-child.is-ready:before{background:#38b26f}.afaq-pickup-fullscreen .afaq-display-child.is-preparing:before{background:#f0a93b}.afaq-pickup-fullscreen .afaq-display-child.is-requested:before{background:#6a8de0}
.afaq-pickup-fullscreen .afaq-display-photo{padding:0;display:grid;place-items:center;position:relative}
.afaq-pickup-fullscreen .afaq-display-photo img,.afaq-pickup-fullscreen .afaq-display-photo>span{width:96px;height:96px;border-radius:50%;object-fit:cover;border:5px solid #fff;box-shadow:0 0 0 4px #e9f5f2,0 10px 26px rgba(15,23,42,.14);background:#edf7f5}
.afaq-pickup-fullscreen .afaq-display-photo>span .afaq-nav-icon{width:38px;height:38px;color:#4b8a81}
.afaq-pickup-fullscreen .afaq-display-photo em{position:absolute;right:50%;bottom:-11px;transform:translateX(50%);white-space:nowrap;padding:5px 10px;border-radius:999px;background:#fff;border:1px solid #dce9e6;box-shadow:0 5px 12px rgba(15,23,42,.08);font-size:.72rem;font-style:normal;font-weight:900;color:#355a54}
.afaq-pickup-fullscreen .afaq-display-child.is-ready .afaq-display-photo img,.afaq-pickup-fullscreen .afaq-display-child.is-ready .afaq-display-photo>span{box-shadow:0 0 0 4px #d9f4e4,0 10px 26px rgba(15,23,42,.14)}
.afaq-pickup-fullscreen .afaq-display-child-body{padding:0 8px 0 0}.afaq-pickup-fullscreen .afaq-display-child-body h2{font-size:1.28rem;line-height:1.3;margin:0 0 5px;color:#173b37}.afaq-pickup-fullscreen .afaq-display-child-body>p{display:inline-flex;margin:0 0 10px;padding:5px 10px;border-radius:999px;background:#f2f7f6;color:#4e6864;font-size:.82rem;font-weight:800}
.afaq-pickup-fullscreen .afaq-display-meta{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap}.afaq-pickup-fullscreen .afaq-display-meta span{padding:7px 9px;border-radius:11px;background:#f8fafc;color:#64748b;font-size:.78rem}.afaq-pickup-fullscreen .afaq-display-meta strong{color:#1f4d46}
.afaq-pickup-fullscreen .afaq-display-child-body>small{display:block;margin-top:9px;padding:7px 9px;border-radius:10px;background:#fff8e8;color:#7b5a17}
.afaq-display-footer{justify-content:flex-end;border:0;margin-top:14px;padding:0 4px;color:#84918f}
@media(max-width:1150px){.afaq-pickup-fullscreen .afaq-display-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.afaq-pickup-fullscreen{padding:8px}.afaq-pickup-school-brand{justify-content:flex-start;text-align:right}.afaq-pickup-school-brand img{width:52px;height:52px}.afaq-pickup-fullscreen .afaq-display-stats{grid-template-columns:repeat(2,1fr);gap:8px}.afaq-display-stat{min-height:70px;padding:10px}.afaq-display-stat-icon{width:40px;height:40px;flex-basis:40px}.afaq-pickup-fullscreen .afaq-pickup-display-grid{grid-template-columns:1fr}.afaq-pickup-fullscreen .afaq-display-child{grid-template-columns:92px minmax(0,1fr);min-height:135px;padding:12px}.afaq-pickup-fullscreen .afaq-display-photo img,.afaq-pickup-fullscreen .afaq-display-photo>span{width:78px;height:78px}.afaq-pickup-fullscreen .afaq-display-child-body h2{font-size:1.08rem}}
@media(prefers-reduced-motion:reduce){.afaq-pickup-fullscreen .afaq-display-child{transition:none}.afaq-pickup-fullscreen .afaq-display-child:hover{transform:none}}


/* Admissions SaaS center — 7.3.0 */
.afaq-admissions-head{overflow:hidden}.afaq-adm-kpis{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:12px;margin-top:18px}.afaq-adm-kpis>a{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:2px 10px;padding:16px;border:1px solid var(--afaq-border,#e7e8eb);border-radius:18px;background:var(--afaq-surface,#fff);text-decoration:none;color:inherit}.afaq-adm-kpis svg{grid-row:1/3;width:26px;height:26px}.afaq-adm-kpis strong{font-size:24px}.afaq-adm-kpis span{font-size:13px;color:var(--afaq-muted,#667085)}
.afaq-adm-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#f2f4f7;font-size:12px;font-weight:700;white-space:nowrap}.afaq-adm-badge.enrolled,.afaq-adm-badge.cleared,.afaq-adm-badge.approved,.afaq-adm-badge.complete{background:#ecfdf3;color:#067647}.afaq-adm-badge.needs_info,.afaq-adm-badge.pending,.afaq-adm-badge.financial_clearance{background:#fffaeb;color:#b54708}.afaq-adm-badge.rejected{background:#fef3f2;color:#b42318}.afaq-adm-badge.waitlist,.afaq-adm-badge.interview{background:#eff8ff;color:#175cd3}
.afaq-adm-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.afaq-adm-main,.afaq-adm-side{display:grid;gap:18px}.afaq-adm-progress{display:flex;gap:8px;overflow:auto;padding:6px 2px 10px}.afaq-adm-progress>div{min-width:95px;text-align:center;position:relative;color:#98a2b3}.afaq-adm-progress span{display:grid;place-items:center;width:34px;height:34px;margin:0 auto 7px;border-radius:50%;border:2px solid #d0d5dd;background:#fff;font-weight:800}.afaq-adm-progress .done span,.afaq-adm-progress .active span{border-color:#12b76a;background:#ecfdf3;color:#067647}.afaq-adm-progress .active small{color:#101828;font-weight:800}.afaq-checklist{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:9px}.afaq-checklist li{padding:10px 12px;border-radius:12px;background:#f2f4f7}.afaq-checklist li:before{content:'○';margin-left:8px}.afaq-checklist li.ok{background:#ecfdf3;color:#067647}.afaq-checklist li.ok:before{content:'✓'}.afaq-timeline{display:grid;gap:14px}.afaq-timeline>div{display:grid;grid-template-columns:14px 1fr;gap:10px}.afaq-timeline>div>span{width:10px;height:10px;border-radius:50%;background:#98a2b3;margin-top:7px}.afaq-timeline p{margin:0}.afaq-timeline small{color:#667085}.afaq-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.afaq-table td small{display:block;color:#667085;margin-top:4px}.afaq-back-link{display:inline-block;margin-bottom:8px;text-decoration:none}
@media(max-width:980px){.afaq-adm-kpis{grid-template-columns:repeat(2,1fr)}.afaq-adm-layout{grid-template-columns:1fr}.afaq-adm-side{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.afaq-adm-kpis,.afaq-adm-side,.afaq-form-grid{grid-template-columns:1fr}}


/* Afaq Platform 7.8.1 — shared dashboard usability tokens (design stage 1).
   Scoped to platform screens; billing print rules and account flows stay intact. */
.afaq-system-body{
  --afaq-ui-focus:#146c67;
  --afaq-ui-focus-halo:rgba(32,140,135,.18);
  --afaq-ui-ease:cubic-bezier(.22,.61,.36,1);
}
.afaq-system-body :where(.afaq-content,.afaq-card,.afaq-row,.afaq-settings-card,.afaq-kpi){
  min-width:0
}
.afaq-system-body :where(.afaq-card,.afaq-row,.afaq-kpi,.afaq-settings-card){
  overflow-wrap:break-word
}
.afaq-system-body :where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{
  outline:3px solid var(--afaq-ui-focus)!important;outline-offset:3px!important
}
.afaq-system-body :where(.afaq-card,.afaq-settings-card,.afaq-kpi):focus-within{
  box-shadow:0 0 0 3px var(--afaq-ui-focus-halo),0 10px 28px rgba(36,61,59,.06)
}
.afaq-system-body :where(.afaq-form input,.afaq-form textarea,.afaq-form select,.afaq-auth-card input):focus-visible{
  border-color:var(--afaq-ui-focus)!important
}
.afaq-system-body :where(.afaq-mobile-menu-toggle,.afaq-mobile-menu-close,.afaq-logout,.afaq-login-submit){
  min-height:44px
}
.afaq-system-body :where(.afaq-settings-card,.afaq-content-item,.afaq-role-card,.afaq-feature-toggle){
  transition:border-color .2s var(--afaq-ui-ease),box-shadow .2s var(--afaq-ui-ease),background-color .2s ease
}
@media(hover:hover) and (pointer:fine){
  .afaq-system-body :where(.afaq-settings-card,.afaq-content-item,.afaq-role-card):hover{
    border-color:#b7dbd6;box-shadow:0 12px 30px rgba(36,61,59,.075)
  }
}
@media(max-width:700px){
  .afaq-system-body :where(.afaq-content,.afaq-card,.afaq-table-wrap){min-width:0}
  .afaq-system-body .afaq-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .afaq-system-body :where(.afaq-title-row,.afaq-doc-head){min-width:0;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  .afaq-system-body :where(.afaq-card,.afaq-row,.afaq-kpi,.afaq-settings-card,.afaq-content-item,.afaq-role-card,.afaq-feature-toggle){
    transition:none!important
  }
  .afaq-system-body :where(.afaq-settings-card,.afaq-content-item,.afaq-role-card):hover{transform:none!important}
}


/* Stage 3: separated account sections and child emergency contact */
.afaq-profile-section-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:10px;border:1px solid var(--afaq-border,#e5e7eb);border-radius:16px;background:var(--afaq-surface,#fff)}
.afaq-profile-section-nav a{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border:1px solid var(--afaq-border,#e5e7eb);border-radius:999px;color:var(--afaq-text,#24332f);text-decoration:none;font-weight:700;font-size:.9rem;background:transparent}
.afaq-profile-section-nav a.is-active,.afaq-profile-section-nav a:hover{background:var(--afaq-primary,#315f52);border-color:var(--afaq-primary,#315f52);color:#fff}
.afaq-form-section{display:block;min-width:0;margin:12px 0;padding:16px;border:1px solid var(--afaq-border,#e5e7eb);border-radius:16px;background:var(--afaq-surface,#fff)}
.afaq-form-section>h3,.afaq-form-section>h4,.afaq-form-section>legend{font-weight:800;margin:0 0 10px;color:var(--afaq-text,#24332f)}
.afaq-form-section>p{margin:0 0 12px;color:var(--afaq-muted,#64748b);font-size:.92rem}
.afaq-emergency-contact-fields{border-inline-start:4px solid var(--afaq-primary,#315f52)}
.afaq-emergency-profile .afaq-profile-data{margin-bottom:14px}
@media(max-width:640px){.afaq-profile-section-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.afaq-profile-section-nav a{font-size:.82rem;padding:9px 8px}.afaq-form-section{padding:12px}}

/* Stage 5: separated settings, clean channel cards, and compact admin tables. */
.afaq-channel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0 20px}
.afaq-channel-toggle{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px solid var(--afaq-border,#e2e8f0);border-radius:14px;background:var(--afaq-surface,#fff);min-height:76px}
.afaq-channel-toggle>span:not(.afaq-channel-icon){display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.afaq-channel-toggle strong{font-size:14px}.afaq-channel-toggle small{font-size:12px;color:var(--afaq-muted,#64748b);line-height:1.5}
.afaq-channel-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#f1f5f9;color:#334155}
.afaq-channel-toggle input[type=checkbox]{width:18px;height:18px;flex:0 0 auto}
.afaq-bank-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.afaq-bank-actions form{margin:0}
.afaq-bank-accounts-public{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.afaq-bank-public-card{padding:16px;border:1px solid var(--afaq-border,#e2e8f0);border-radius:14px;background:var(--afaq-surface,#fff)}
.afaq-bank-public-card p{margin:8px 0}.afaq-leave-review-form{display:grid;gap:6px;min-width:150px}.afaq-leave-review-form input{min-width:130px}
.afaq-audience-value{margin:10px 0}.afaq-audience-value[hidden]{display:none!important}
.afaq-settings-grid-small{align-items:stretch}
@media(max-width:700px){.afaq-bank-actions{align-items:stretch;flex-direction:column}.afaq-bank-actions .afaq-btn{width:100%}.afaq-channel-grid{grid-template-columns:1fr}}


/* 7.8.6 — notification preferences and settings layout refinements */
.afaq-preferences-card{max-width:1050px}
.afaq-preferences-heading h2{margin-bottom:5px}
.afaq-preferences-heading p{margin:0;color:#6A7F7D;font-size:.86rem}
.afaq-preferences-form{gap:14px}
.afaq-preferences-section-title{margin:12px 0 0;font-size:.97rem;color:#31566B}
.afaq-preferences-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch}
.afaq-preferences-form .afaq-preference-option{display:flex!important;align-items:center!important;flex-direction:row!important;gap:12px;min-width:0;padding:12px 14px;border:1px solid #DFEAE7;border-radius:14px;background:#FAFDFC;cursor:pointer;font-weight:700}
.afaq-preferences-form .afaq-preference-option:hover{border-color:#B5DCD5;background:#F3FAF8}
.afaq-preference-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#E8F7F4;color:#168C85}
.afaq-preference-icon .afaq-nav-icon{width:20px;height:20px}
.afaq-preference-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.86rem;line-height:1.5}
.afaq-preferences-form .afaq-preference-option input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;flex:0 0 auto!important;width:18px!important;height:18px!important;min-width:18px;margin:0!important;padding:0!important;accent-color:#168C85;cursor:pointer}
.afaq-preferences-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:520px}
.afaq-preferences-time-grid label{min-width:0}
.afaq-preferences-time-grid input[type=time]{min-width:0}
.afaq-preferences-actions{display:flex;justify-content:flex-start;margin-top:5px}
.afaq-preferences-actions .afaq-btn{width:auto!important;max-width:100%}
.afaq-settings-top-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0 0 16px;flex-wrap:wrap}
.afaq-btn.afaq-btn-compact{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto!important;max-width:100%;min-height:36px;padding:8px 13px!important;font-size:.82rem;white-space:normal}
.afaq-btn-compact .afaq-nav-icon{width:17px;height:17px;flex:0 0 17px}
.afaq-otp-operation-stats{margin-bottom:18px}
.afaq-settings-subnav{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:0 0 18px}
.afaq-settings-subnav-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:1px solid #DFE9E7;border-radius:11px;background:#fff;color:#37665F;text-decoration:none;font-size:.83rem;font-weight:750}
.afaq-settings-subnav-link:hover,.afaq-settings-subnav-link.is-active{border-color:#9ACFC6;background:#E9F8F4;color:#176F68}
.afaq-bank-enable-card{max-width:590px!important}
.afaq-bank-enable-form{gap:10px!important}
.afaq-bank-enable-form .afaq-switch-row{margin:0}
.afaq-bank-enable-form .afaq-switch-row>input[type=checkbox]{flex:0 0 auto;width:19px!important;height:19px;margin-top:2px!important;padding:0!important;accent-color:#168C85}
.afaq-bank-save-actions{display:flex;justify-content:flex-start}
@media(max-width:680px){
  .afaq-preferences-grid{grid-template-columns:1fr}
  .afaq-preferences-form .afaq-preference-option{padding:11px 12px}
  .afaq-preferences-time-grid{grid-template-columns:1fr}
  .afaq-settings-subnav-link{flex:1 1 auto}
  .afaq-bank-enable-card{max-width:100%}
}


/* 7.8.7 — unified SaaS settings center and icon-led forms. */
.afaq-settings-view .afaq-content{max-width:1440px;margin-inline:auto}
.afaq-settings-view .afaq-settings-hero{background:linear-gradient(125deg,#f1faf8 0%,#fffdf7 75%);border:1px solid #dbe9e5;border-radius:22px;padding:26px 30px;box-shadow:0 8px 24px rgba(23,74,69,.045)}
.afaq-settings-view .afaq-settings-hero h1{font-size:clamp(1.35rem,2vw,1.9rem)}
.afaq-settings-view .afaq-settings-hero p{max-width:800px}
.afaq-settings-group-head{display:flex;align-items:center;gap:13px;margin:28px 0 14px}
.afaq-settings-group-icon,.afaq-saas-panel-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #d7e9e5;border-radius:13px;background:#e9f7f3;color:#16827b}
.afaq-settings-group-icon .afaq-nav-icon,.afaq-saas-panel-icon .afaq-nav-icon{width:22px;height:22px}
.afaq-settings-group-head h2,.afaq-saas-panel-heading h2{font-size:1.08rem;font-weight:850;margin:0 0 3px;color:#24433f}
.afaq-settings-group-head p,.afaq-saas-panel-heading p{margin:0;color:#6b817c;font-size:.84rem;line-height:1.65}
.afaq-settings-view .afaq-settings-grid{gap:14px;margin-bottom:8px}
.afaq-settings-view .afaq-settings-card{min-height:112px;padding:19px;border-radius:17px;box-shadow:0 5px 18px rgba(35,62,59,.035)}
.afaq-settings-view .afaq-settings-card:hover{border-color:#8fcfc3;background:#fcfffe}
.afaq-settings-view .afaq-settings-card-copy strong{font-size:.96rem}
.afaq-settings-view .afaq-settings-card-copy small{font-size:.8rem}
.afaq-settings-view .afaq-settings-card-status{font-size:.72rem}
.afaq-settings-view .afaq-settings-page-head{padding:22px 25px;border-radius:20px;background:linear-gradient(120deg,#f0faf7,#fffefa)}
.afaq-settings-view .afaq-card{border:1px solid #e0ebe7;border-radius:18px;box-shadow:0 5px 22px rgba(24,56,51,.035)}
.afaq-settings-view .afaq-settings-subnav{gap:9px;margin:0 0 18px}
.afaq-settings-view .afaq-settings-subnav-link{gap:8px;min-height:42px;border-radius:12px}
.afaq-settings-subnav-link .afaq-nav-icon{width:17px;height:17px}
.afaq-settings-view .afaq-settings-form-card{max-width:none!important}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:start;margin:0}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > :is(h2,h3,h4,p,fieldset,.afaq-note,.afaq-form-actions,.afaq-feature-grid,.afaq-channel-grid,.afaq-permissions,.afaq-bank-save-actions,.afaq-content-list,.afaq-content-toolbar,.afaq-content-new,.afaq-content-switches,.afaq-email-preview-note,.afaq-switch-row,hr,button){grid-column:1/-1}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > label{min-width:0}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > button{justify-self:start;width:auto}
.afaq-settings-view .afaq-settings-form-card h3{font-size:1rem;margin:14px 0 0;color:#2d514a}
.afaq-settings-view .afaq-settings-form-card h3:first-child{margin-top:0}
.afaq-settings-view .afaq-settings-form-card .afaq-form-actions{padding-top:16px;border-top:1px solid #e9efed;justify-content:flex-start}
.afaq-settings-view .afaq-settings-form-card .afaq-form-actions .afaq-btn{width:auto}
.afaq-settings-view .afaq-settings-form-card label.afaq-saas-field,
.afaq-settings-view .afaq-saas-app-form label.afaq-saas-field{display:grid;gap:8px;align-content:start;min-width:0;font-size:.87rem;font-weight:750;color:#365750}
.afaq-settings-view .afaq-saas-field :is(input,select,textarea),
.afaq-settings-view .afaq-saas-app-form label :is(input,select,textarea){width:100%;max-width:100%;min-width:0}
.afaq-settings-view .afaq-saas-field-caption{display:inline-flex;align-items:center;gap:8px;min-height:24px;line-height:1.5}
.afaq-settings-view .afaq-saas-field-caption .afaq-nav-icon{width:17px;height:17px;flex:0 0 17px;color:#16867f}
.afaq-settings-view .afaq-saas-heading{display:flex;align-items:center;gap:9px}
.afaq-settings-view .afaq-saas-heading .afaq-nav-icon{width:19px;height:19px;color:#16867f;flex:0 0 19px}
.afaq-settings-view .afaq-saas-button-icon{width:16px;height:16px;flex:0 0 16px}
.afaq-settings-view .afaq-feature-toggle{border-radius:14px;background:#fcfefd;min-width:0;align-items:center!important}
.afaq-settings-view .afaq-feature-toggle:has(input:checked){border-color:#b5dcd3;background:#f4fbf8}
.afaq-settings-view .afaq-feature-toggle>span{min-width:0}
.afaq-settings-view .afaq-feature-toggle small{font-size:.77rem}
.afaq-settings-view .afaq-channel-toggle{background:#fcfefd}
.afaq-settings-view .afaq-number-box{border:1px solid #dfeae7;border-radius:15px;padding:16px;margin:0 0 10px}
.afaq-settings-view .afaq-number-box legend{padding:0 9px;font-weight:800;color:#316b61}
.afaq-settings-view .afaq-number-box label{margin-bottom:12px}
.afaq-settings-view .afaq-table-wrap{border-radius:14px}
.afaq-settings-view .afaq-note{border-radius:13px}
.afaq-settings-view .afaq-switch-row{background:#f8fcfa;border-color:#dcebe5}
.afaq-settings-view .afaq-switch-row:has(input:checked){background:#f0faf5;border-color:#b9dfcf}
.afaq-settings-view .afaq-switch-row>input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;margin:3px 0 0!important;padding:0!important;accent-color:#168c85}
.afaq-settings-view .afaq-switch-row strong{font-size:.93rem}
.afaq-settings-view .afaq-switch-row small{font-size:.8rem;line-height:1.7}
.afaq-settings-view .afaq-settings-top-actions .afaq-btn{max-width:fit-content}
/* Dedicated app settings — one form, separate clear panels. */
.afaq-saas-app-form{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:20px}
.afaq-saas-app-form .afaq-saas-panel{margin:0;padding:23px}
.afaq-saas-panel-heading{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:20px}
.afaq-saas-panel-heading>div:nth-child(2){flex:1;min-width:170px}
.afaq-saas-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.afaq-saas-app-form label:not(.afaq-switch-row){display:grid;gap:8px;min-width:0}
.afaq-saas-app-form .afaq-switch-row{margin-bottom:16px}
.afaq-saas-sticky-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;padding:16px 20px;border:1px solid #e0ebe7;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(28,57,52,.045)}
.afaq-saas-sticky-actions .afaq-nav-icon,.afaq-saas-otp-settings .afaq-btn .afaq-nav-icon{width:17px;height:17px}
/* OTP main page = overview and operations. Activation and secret live only in key page. */
.afaq-saas-otp-summary .afaq-saas-panel-heading{margin-bottom:16px}
.afaq-otp-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.afaq-otp-info-grid>div{display:grid;gap:6px;padding:13px 16px;border:1px solid #e0ebe7;border-radius:13px;background:#f9fcfb}
.afaq-otp-info-grid small{color:#6a7c77;font-size:.78rem}
.afaq-otp-info-grid strong{font-size:.92rem;color:#264b44;overflow-wrap:anywhere}
.afaq-saas-otp-settings > form.afaq-form,.afaq-saas-otp-key > form.afaq-form{grid-template-columns:1fr!important}
.afaq-saas-otp-settings .afaq-note{display:flex;gap:10px;align-items:flex-start}
.afaq-saas-otp-settings .afaq-note>.afaq-nav-icon{width:20px;height:20px;flex:0 0 20px;color:#1a8a81}
.afaq-saas-otp-settings .afaq-note p{margin:4px 0 0;line-height:1.7}
.afaq-saas-otp-key input[type=password]{max-width:750px}
@media(max-width:800px){
  .afaq-settings-view .afaq-settings-form-card > form.afaq-form{grid-template-columns:1fr}
  .afaq-saas-field-grid{grid-template-columns:1fr}
  .afaq-settings-view .afaq-settings-hero{padding:20px}
  .afaq-otp-info-grid{grid-template-columns:1fr}
}
@media(max-width:500px){
  .afaq-settings-group-head{align-items:flex-start}
  .afaq-settings-view .afaq-settings-card{padding:15px;gap:10px}
  .afaq-settings-view .afaq-settings-card-icon{width:40px;height:40px}
  .afaq-settings-view .afaq-settings-card-status{grid-column:2}
  .afaq-settings-view .afaq-settings-card-arrow{grid-column:3;grid-row:1/3}
  .afaq-saas-app-form .afaq-saas-panel{padding:16px}
  .afaq-saas-sticky-actions .afaq-btn{flex:1 1 auto}
  .afaq-settings-view .afaq-settings-page-head{padding:16px}
}
@media(prefers-reduced-motion:reduce){.afaq-settings-view .afaq-settings-card{transition:none!important}}

.afaq-settings-view .afaq-feature-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#e9f6f2;color:#16827b}
.afaq-settings-view .afaq-feature-icon .afaq-nav-icon{width:18px;height:18px}
.afaq-settings-view .afaq-feature-toggle>span:last-child{flex:1}
.afaq-settings-view .afaq-content-manager{max-width:none}
.afaq-settings-view .afaq-content-item{border-radius:16px;box-shadow:none;background:#fcfefd}
.afaq-settings-view .afaq-content-grid{gap:15px}
.afaq-settings-view .afaq-settings-form-card .afaq-form > h3:not(:first-child){padding-top:14px;border-top:1px solid #e7efec}
.afaq-settings-view .afaq-settings-form-card .afaq-form > h3{font-weight:850}
@media(max-width:640px){.afaq-settings-view .afaq-feature-grid{grid-template-columns:1fr}}


/* 7.8.9 — Kinetics-inspired contextual motion, native CSS/JS, RTL and accessible. */
/* Pulse Badge: only a real unread count creates an expanding ring. */
.afaq-dashboard-topbar .afaq-topbar-notifications.has-unread{isolation:isolate}
.afaq-dashboard-topbar .afaq-topbar-notifications .afaq-pulse-badge{isolation:isolate;z-index:1;min-width:23px;padding:0 3px;white-space:nowrap}
.afaq-dashboard-topbar .afaq-pulse-badge::before,
.afaq-dashboard-topbar .afaq-pulse-badge::after{
  content:"";position:absolute;inset:0;border:2px solid #F35D62;border-radius:999px;
  pointer-events:none;z-index:-1;animation:afaq-unread-ring 1.8s ease-out infinite
}
.afaq-dashboard-topbar .afaq-pulse-badge::after{animation-delay:.9s}
@keyframes afaq-unread-ring{0%{transform:scale(1);opacity:.65}100%{transform:scale(2.1);opacity:0}}
/* Step Progress: parent wizard's real 4-step registration. */
.afaq-wizard-progress .afaq-wizard-track{
  grid-column:1/-1;position:relative;display:block;width:100%;height:5px;
  background:#E7EFED;border-radius:999px;overflow:hidden;margin:2px 0 5px
}
.afaq-wizard-progress .afaq-wizard-track>span{
  display:block;height:100%;width:100%;background:#208C87;border-radius:inherit;
  transform:scaleX(var(--afaq-step-ratio,0));transform-origin:right center;
  transition:transform .48s cubic-bezier(.34,1.56,.64,1)
}
.afaq-wizard-progress button{transition:background-color .25s ease,border-color .25s ease,transform .35s cubic-bezier(.34,1.56,.64,1)!important}
.afaq-wizard-progress button.active{transform:translateY(-2px)}
.afaq-wizard-progress button:focus-visible{outline:3px solid #208C87!important;outline-offset:2px}
.afaq-wizard-progress button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
/* Admission Step Progress: connectors reflect stored status, never an invented client state. */
.afaq-adm-progress>div{flex:1 0 98px;min-width:98px}
.afaq-adm-progress>div:not(:last-child)::after{
  content:"";position:absolute;top:16px;inset-inline-start:calc(50% + 19px);
  width:calc(100% - 38px);height:3px;background:#E2EAE8;border-radius:99px
}
.afaq-adm-progress>div.done:not(:last-child)::after{background:#20A17C}
.afaq-adm-progress>div.active span{
  background:#DDF6EE;border-color:#14926B;color:#087852;
  animation:afaq-step-arrive .45s cubic-bezier(.34,1.56,.64,1) both
}
.afaq-adm-progress>div.done span{background:#14926B;border-color:#14926B;color:#fff}
.afaq-adm-flow-note{padding:10px 12px;background:#FFF8EA;border:1px solid #F0D9A5;border-radius:12px;color:#775922}
.afaq-readiness-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.77rem;margin:10px 0 8px}
.afaq-readiness-summary span{color:#667085}
.afaq-readiness-progress{height:8px;border-radius:99px;background:#E9F0ED;overflow:hidden;margin:0 0 14px}
.afaq-readiness-progress>span{display:block;height:100%;border-radius:inherit;background:#208C87;transition:width .48s cubic-bezier(.34,1.56,.64,1)}
@keyframes afaq-step-arrive{from{transform:scale(.85)}to{transform:scale(1.07)}}
/* PIN Input: the existing 4-box form keeps native one-time-code autocomplete and WebOTP. */
.afaq-pin-input .afaq-pin-box[aria-invalid="true"]{border-color:#CB4343!important;box-shadow:0 0 0 3px rgba(203,67,67,.12)!important}
.afaq-pin-input .afaq-pin-box:focus-visible{outline:2px solid #208C87!important;outline-offset:2px!important}
/* Low-intensity supporting effects, limited to actual interactive states. */
.afaq-layout .afaq-section-tabs a.active{position:relative}
.afaq-layout .afaq-section-tabs a.active::after{
  content:"";position:absolute;bottom:2px;inset-inline:18%;height:2px;border-radius:2px;background:#168C85;
  animation:afaq-tab-enter .32s cubic-bezier(.34,1.56,.64,1) both
}
@keyframes afaq-tab-enter{from{transform:scaleX(.2);opacity:.3}to{transform:scaleX(1);opacity:1}}
.afaq-layout .afaq-btn:active:not(:disabled){transform:scale(.98)!important}
.afaq-portal-switcher[open] .afaq-portal-switch-menu{transform-origin:top center;animation:afaq-menu-arrive .25s cubic-bezier(.34,1.56,.64,1) both}
@keyframes afaq-menu-arrive{from{opacity:0;transform:translateY(-5px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.afaq-layout .afaq-alert.success{animation:afaq-success-arrive .42s cubic-bezier(.34,1.56,.64,1) both}
@keyframes afaq-success-arrive{from{opacity:.5;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .afaq-dashboard-topbar .afaq-pulse-badge::before,.afaq-dashboard-topbar .afaq-pulse-badge::after{animation:none!important;display:none}
  .afaq-wizard-progress .afaq-wizard-track>span,.afaq-readiness-progress>span{transition:none!important}
  .afaq-wizard-progress button,.afaq-adm-progress>div.active span,.afaq-layout .afaq-section-tabs a.active::after,
  .afaq-portal-switcher[open] .afaq-portal-switch-menu,.afaq-layout .afaq-alert.success{animation:none!important;transition:none!important;transform:none!important}
}


/* 7.9.0 AffectUI-inspired operational components; local, RTL-first and accessible. */
.afaq-affect-eyebrow{display:inline-flex;align-items:center;color:#167B75;font-size:.78rem;font-weight:750;letter-spacing:.02em;margin-bottom:5px}
.afaq-affect-inbox .afaq-title-row{align-items:flex-start;gap:14px}
.afaq-affect-segments{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:15px 0 18px;max-width:100%}
.afaq-affect-segment{appearance:none;border:1px solid #DCE9E6;background:#F7FAF9;color:#375550;border-radius:12px;padding:9px 13px;display:inline-flex;align-items:center;gap:9px;min-height:42px;cursor:pointer;font:inherit;font-weight:650;transition:background-color .2s,border-color .2s,transform .22s cubic-bezier(.34,1.56,.64,1)}
.afaq-affect-segment b{min-width:25px;padding:2px 6px;border-radius:7px;background:#E7EFED;font-variant-numeric:tabular-nums;text-align:center;font-size:.83rem}
.afaq-affect-segment.is-active{background:#E0F3EF;color:#075D56;border-color:#50A79A;box-shadow:0 2px 9px rgba(17,106,95,.08)}
.afaq-affect-segment.is-active b{background:#C8E8E0}
.afaq-affect-segment:hover{border-color:#7CB9AD}
.afaq-affect-segment:active{transform:scale(.97)}
.afaq-affect-segment:focus-visible{outline:3px solid #168C85;outline-offset:3px}
.afaq-affect-inbox [data-afaq-inbox-status][hidden],.afaq-affect-inbox [data-afaq-inbox-empty][hidden]{display:none!important}
.afaq-affect-inbox-empty{padding:22px 16px;text-align:center;background:#F7FAF9;border:1px dashed #C5D9D3;border-radius:12px;color:#536B65}
.afaq-affect-decision-list{display:grid;gap:12px}
.afaq-affect-decision{border:1px solid #E1EBE8;border-radius:14px;padding:15px;background:#fff;display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.afaq-affect-decision form{display:flex;gap:8px;flex-wrap:wrap}
.afaq-affect-step-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 15px;padding:10px 14px;background:#F3F9F7;border:1px solid #D8EAE5;border-radius:12px;color:#255F56;font-size:.88rem}
.afaq-affect-step-summary strong{font-variant-numeric:tabular-nums;color:#096E61;font-size:1.03rem}
.afaq-affect-pin-hint{text-align:center;font-size:.82rem;color:#60766F;margin:2px 0 13px}
.afaq-pin-input.is-complete .afaq-pin-box{border-color:#3B9B85!important}
@media(max-width:680px){.afaq-affect-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.afaq-affect-segment{justify-content:space-between;padding:9px;min-width:0}.afaq-affect-decision{align-items:stretch}.afaq-affect-decision form{width:100%}}
@media(prefers-reduced-motion:reduce){.afaq-affect-segment{transition:none!important;transform:none!important}}


/* v7.9.1 — affectUI phase 2: concise dashboard signals and filters. */
.afaq-change-summary{display:flex;align-items:center;gap:14px;padding:14px 18px;margin:-2px 0 18px;background:linear-gradient(110deg,#f5fbfa,#fff);border:1px solid #dcece9;border-radius:16px;color:#24485a;box-shadow:0 5px 18px rgba(21,78,80,.04)}
.afaq-change-icon{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:#e3f4f1;color:#158b80}
.afaq-change-icon svg{width:22px;height:22px}
.afaq-change-summary>div:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.afaq-change-summary strong{font-size:.94rem}
.afaq-change-summary small{font-size:.75rem;color:#64808c}
.afaq-change-values{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;font-size:.79rem}
.afaq-change-values b{color:#224f5b}
.afaq-change-values span{color:#667f8a}
.afaq-change-values em{font-style:normal;border-radius:99px;background:#e8f5f2;padding:5px 10px;font-weight:700;color:#27685f}
.afaq-change-values em.is-down{background:#fff4e7;color:#956424}
.afaq-change-values em.is-stable{background:#edf2f4;color:#586d77}
.afaq-filter-menu{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.afaq-filter-menu button{font:inherit;font-size:.76rem;font-weight:700;color:#547481;border:1px solid #dbe9e7;border-radius:10px;background:#f7faf9;padding:7px 11px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:background .16s,border-color .16s}
.afaq-filter-menu button span{background:#e7f0ef;border-radius:7px;padding:1px 6px;font-variant-numeric:tabular-nums}
.afaq-filter-menu button.is-active{background:#e4f5f1;color:#086b62;border-color:#a5d9cf}
.afaq-filter-menu button:focus-visible{outline:3px solid #3aa79b;outline-offset:2px}
.afaq-dashboard-filtered tr[hidden]{display:none!important}
.afaq-filter-empty{font-size:.85rem;color:#67818d;text-align:center;padding:15px 8px}
.afaq-notification-stack{position:fixed;inset-inline-end:18px;bottom:22px;z-index:100000;display:grid;gap:8px;width:min(360px,calc(100vw - 32px));pointer-events:none}
.afaq-notification-toast{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border-radius:13px;background:#f0faf6;border:1px solid #b9e0cf;box-shadow:0 12px 35px rgba(13,57,53,.15);color:#205d47;font-size:.85rem;font-weight:700;animation:afaq-toast-appear .25s ease-out}
.afaq-notification-toast.is-error{background:#fff3f2;border-color:#efcecc;color:#903b39}
.afaq-notification-toast button{font:inherit;font-size:1.4rem;line-height:1;border:0;background:transparent;color:inherit;cursor:pointer;padding:4px 7px}
.afaq-notification-toast button:focus-visible{outline:2px solid currentColor;border-radius:5px}
@keyframes afaq-toast-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:780px){.afaq-change-summary{align-items:flex-start;flex-wrap:wrap}.afaq-change-values{justify-content:flex-start;width:100%;padding-inline-start:56px}.afaq-filter-menu button{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){.afaq-notification-toast{animation:none}.afaq-filter-menu button{transition:none}}


/* v7.9.3 — Shared dashboard header: prevent partial/cropped topbar on wide forms,
   narrow desktop windows, tablets and phones. The menu control belongs to the
   sticky header so it never overlays the search/account controls while scrolling. */
.afaq-system-body .afaq-layout{min-width:0}
.afaq-system-body .afaq-content{min-width:0;max-width:100%}
.afaq-system-body .afaq-dashboard-topbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(170px,470px);
  align-items:center;
  column-gap:clamp(8px,1.5vw,22px);
  row-gap:10px;
  min-width:0;
  max-width:calc(100% + 48px);
  overflow:visible;
  isolation:isolate;
}
.afaq-system-body .afaq-dashboard-topbar>.afaq-mobile-menu-toggle{display:none}
.afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{
  grid-column:1;grid-row:1;
  order:unset;
  display:flex;align-items:center;gap:clamp(6px,1vw,12px);
  min-width:0;max-width:100%;
}
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip{
  flex:0 1 auto;
  min-width:0!important;
  max-width:100%;
}
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip>span{
  min-width:0;max-width:180px;
}
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip strong,
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip small{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip img,
.afaq-system-body .afaq-dashboard-topbar .afaq-account-chip>svg,
.afaq-system-body .afaq-dashboard-topbar .afaq-topbar-notifications,
.afaq-system-body .afaq-dashboard-topbar .afaq-portal-switcher{flex-shrink:0}
.afaq-system-body .afaq-dashboard-topbar .afaq-dashboard-search{
  grid-column:2;grid-row:1;
  order:unset;
  width:100%;min-width:0;max-width:100%;
}
.afaq-system-body .afaq-dashboard-topbar .afaq-dashboard-search input{
  flex:1 1 auto;min-width:0;width:100%;
}
@media(min-width:851px) and (max-width:1120px){
  .afaq-system-body .afaq-dashboard-topbar{grid-template-columns:minmax(0,1fr) minmax(145px,.8fr)}
  .afaq-system-body .afaq-dashboard-topbar .afaq-account-chip>span{max-width:120px}
}
@media(max-width:850px){
  .afaq-system-body .afaq-dashboard-topbar{
    grid-template-columns:auto minmax(0,1fr);
    max-width:calc(100% + 24px);
    padding:10px 12px 12px;
    margin:0 -12px 14px;
    top:0;
  }
  .afaq-system-body .afaq-dashboard-topbar>.afaq-mobile-menu-toggle{
    display:inline-flex;
    grid-column:1;grid-row:1;
    position:static;
    z-index:auto;
    margin:0;
    white-space:nowrap;
    align-self:center;
  }
  .afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{
    grid-column:2;grid-row:1;
    justify-content:flex-end;
    gap:8px;
  }
  .afaq-system-body .afaq-dashboard-topbar .afaq-dashboard-search{
    grid-column:1/-1;grid-row:2;
    min-height:42px;
  }
  .afaq-system-body .afaq-dashboard-topbar .afaq-account-chip{min-width:0!important}
  .afaq-system-body .afaq-dashboard-topbar .afaq-account-chip>span{display:none}
  .afaq-system-body .afaq-dashboard-topbar .afaq-account-chip img{width:40px;height:40px}
}
@media(max-width:380px){
  .afaq-system-body .afaq-dashboard-topbar>.afaq-mobile-menu-toggle{padding:8px 10px;gap:5px}
  .afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{gap:5px}
  .afaq-system-body .afaq-dashboard-topbar .afaq-topbar-notifications{width:38px;height:38px}
  .afaq-system-body .afaq-dashboard-topbar .afaq-portal-switcher summary{padding:7px}
}
@media print{
  .afaq-system-body .afaq-dashboard-topbar{display:none!important}
}
@media(max-width:850px){
  .afaq-system-body .afaq-dashboard-topbar .afaq-portal-switcher summary span{display:none}
  .afaq-system-body .afaq-dashboard-topbar .afaq-portal-switch-menu{
    inset-inline-start:auto;
    inset-inline-end:0;
    width:min(250px,calc(100vw - 24px));
  }
}
/* Intermediate desktop widths need a second row rather than truncating account actions. */
@media(min-width:851px) and (max-width:1120px){
  .afaq-system-body .afaq-dashboard-topbar{
    grid-template-columns:minmax(0,1fr);
    padding-block:10px 12px;
  }
  .afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{
    grid-column:1;grid-row:1;
    justify-content:flex-start;
  }
  .afaq-system-body .afaq-dashboard-topbar .afaq-account-chip>span{max-width:220px}
  .afaq-system-body .afaq-dashboard-topbar .afaq-dashboard-search{
    grid-column:1;grid-row:2;
  }
}
/* Page-specific titles must wrap rather than force the shared header offscreen. */
.afaq-system-body .afaq-top{min-width:0;gap:12px;flex-wrap:wrap}
.afaq-system-body .afaq-top>div{min-width:0}
.afaq-system-body .afaq-top h1{overflow-wrap:anywhere}
@media(min-width:851px) and (max-width:1120px){
  .afaq-system-body .afaq-dashboard-topbar .afaq-portal-switch-menu{
    inset-inline-start:auto;
    inset-inline-end:0;
    width:min(250px,calc(100vw - 24px));
  }
}

/* v7.9.4 — settings header and OTP: never clip long headings on mobile/tablet. */
.afaq-system-body .afaq-settings-page-head{display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-settings-page-head>.afaq-settings-back,
.afaq-system-body .afaq-settings-page-head>.afaq-settings-head-icon{flex:0 0 auto}
.afaq-system-body .afaq-settings-page-head>div:last-child{flex:1 1 0;min-width:0;max-width:100%;overflow-wrap:anywhere}
.afaq-system-body .afaq-settings-page-head :is(h1,p){max-width:100%;overflow-wrap:anywhere;word-break:normal}
.afaq-system-body .afaq-settings-page-head h1{font-size:clamp(1.16rem,2.2vw,1.6rem);line-height:1.4}
.afaq-system-body .afaq-settings-top-actions{max-width:100%;min-width:0}
.afaq-system-body .afaq-otp-top-actions .afaq-btn{width:max-content!important;max-width:100%!important;white-space:normal;text-align:center}
.afaq-system-body .afaq-otp-operations{min-width:0;max-width:100%;overflow:hidden}
.afaq-system-body .afaq-otp-operations .afaq-title-row>div{min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-otp-operations .afaq-table-wrap{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.afaq-system-body .afaq-otp-operations .afaq-table{min-width:640px}
.afaq-system-body .afaq-otp-operation-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.afaq-system-body .afaq-otp-operation-stats>div{min-width:0}
@media(max-width:700px){
  .afaq-system-body .afaq-settings-page-head{gap:9px;padding:13px 12px!important;align-items:flex-start}
  .afaq-system-body .afaq-settings-page-head>.afaq-settings-back{width:34px;height:34px;min-width:34px}
  .afaq-system-body .afaq-settings-page-head>.afaq-settings-head-icon{width:36px;height:36px;min-width:36px;border-radius:11px}
  .afaq-system-body .afaq-settings-page-head>.afaq-settings-head-icon .afaq-nav-icon{width:20px;height:20px}
  .afaq-system-body .afaq-settings-page-head h1{font-size:1.08rem}
  .afaq-system-body .afaq-settings-page-head p{font-size:.77rem;line-height:1.55}
  .afaq-system-body .afaq-otp-operation-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:370px){.afaq-system-body .afaq-settings-page-head{gap:7px}.afaq-system-body .afaq-settings-page-head>.afaq-settings-head-icon{display:none}}
/* Invoice filter: plain inline counts, no pill/box around each number. */
.afaq-system-body .afaq-filter-menu button span{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 2px 0 0;font-weight:800;font-variant-numeric:tabular-nums}
/* Class listing: restrained SaaS metrics with consistent icon labels. */
.afaq-system-body .afaq-saas-hero .afaq-stat-grid{gap:9px;margin-top:14px}
.afaq-system-body .afaq-saas-hero .afaq-stat{min-width:0;padding:11px 13px;border-radius:12px;box-shadow:none}
.afaq-system-body .afaq-saas-hero .afaq-stat>span{display:flex;align-items:center;gap:7px;font-size:.77rem;line-height:1.5;font-weight:700}
.afaq-system-body .afaq-saas-hero .afaq-stat>span .afaq-nav-icon{width:17px;height:17px;flex:0 0 17px;color:#168c85}
.afaq-system-body .afaq-saas-hero .afaq-stat>strong{font-size:1.4rem;line-height:1.35;margin-top:4px}
.afaq-system-body .afaq-table-heading{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.afaq-system-body .afaq-table-heading .afaq-nav-icon{width:16px;height:16px;flex:0 0 16px;color:#168c85}
@media(min-width:540px) and (max-width:760px){.afaq-system-body .afaq-saas-hero .afaq-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:539px){.afaq-system-body .afaq-saas-hero .afaq-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.afaq-system-body .afaq-saas-hero .afaq-stat{padding:10px}}

/* Stage 2C — delivery log and explicit urgent acknowledgement */
.afaq-delivery-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0 20px}
.afaq-delivery-filters label{flex:1 1 190px;min-width:0}
.afaq-delivery-filters select{width:100%}
.afaq-delivery-filters .afaq-btn{flex:0 0 auto}
.afaq-notification-ack-form{margin-top:12px}
.afaq-notification-entry .afaq-badge{display:inline-flex;align-items:center}
@media(max-width:600px){.afaq-delivery-filters{display:grid;grid-template-columns:1fr}.afaq-delivery-filters .afaq-btn{width:fit-content}}

/* Stage 4B: notification center responsive filters and independent actions. */
.afaq-notification-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}
.afaq-notification-filters a{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce9e7;border-radius:12px;padding:9px 12px;text-decoration:none;color:#345e63;background:#f7faf9;font-size:.85rem}
.afaq-notification-filters a.is-active{background:#e4f5f1;border-color:#73bdb1;color:#176a63;font-weight:700}
.afaq-notification-filters a span{font-variant-numeric:tabular-nums}
.afaq-notification-entry.is-unread{border-inline-start:3px solid #e69d4b}
.afaq-notification-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:12px}
.afaq-notification-actions form,.afaq-notification-actions .afaq-notification-ack-form{margin:0}
@media(max-width:440px){.afaq-notification-filters a{flex:1 1 43%;justify-content:center;font-size:.78rem;padding:9px 6px}.afaq-notification-actions form{flex:1 1 auto}.afaq-notification-actions button{width:100%}}


/* Stage 40: motion adapted to existing PHP/SwiftUI UI, no React dependency. */
.afaq-layout [data-afaq-publish-later][hidden]{display:none!important}
.afaq-layout .afaq-campaign-submitting .afaq-orbit-working{position:relative;pointer-events:none;padding-inline-start:2.7em}
.afaq-layout .afaq-orbit-working::before{content:"";position:absolute;inset-inline-start:.8em;top:calc(50% - .56em);width:1.12em;height:1.12em;border:2px solid currentColor;border-inline-start-color:transparent;border-radius:50%;animation:afaq-orbit-spin .75s linear infinite}
@keyframes afaq-orbit-spin{to{transform:rotate(360deg)}}
.afaq-layout .afaq-quantity-stepper{display:inline-flex;direction:ltr;align-items:center;gap:8px;max-width:100%;padding:4px;border:1px solid #d8e6e2;border-radius:14px;background:var(--afaq-card,#fff)}
.afaq-layout .afaq-quantity-stepper input[type=number]{width:76px!important;min-width:60px!important;max-width:80px!important;text-align:center!important;margin:0!important;direction:ltr}
.afaq-layout .afaq-quantity-stepper button{width:34px;min-width:34px;height:34px;border-radius:10px;border:1px solid #cfe6df;background:#e9f6f2;color:#176e6a;cursor:pointer;font-weight:800;transition:transform .22s cubic-bezier(.34,1.56,.64,1)}
.afaq-layout .afaq-quantity-stepper button:active{transform:scale(.9)}
.afaq-layout .afaq-quantity-stepper button:focus-visible{outline:3px solid #178f87;outline-offset:2px}
.afaq-layout .afaq-stepper-bump{animation:afaq-quantity-pop .34s cubic-bezier(.34,1.56,.64,1)}
@keyframes afaq-quantity-pop{50%{transform:scale(1.11)}}
@media(prefers-reduced-motion:reduce){.afaq-layout .afaq-orbit-working::before{animation:none;border-inline-start-color:currentColor}.afaq-layout .afaq-stepper-bump{animation:none}.afaq-layout .afaq-quantity-stepper button{transition:none}}

/* Stage 41 — ReUI-inspired native design layer. Scoped to owner dashboard and admissions.
   No React runtime or external stylesheet is loaded. */
.afaq-reui-owner,.afaq-reui-admissions,.afaq-reui-registration,.afaq-reui-filter-card,.afaq-reui-table-card{direction:rtl}
.afaq-reui-owner{margin:0 0 18px;padding:22px;border:1px solid #dce8e6;border-radius:20px;background:linear-gradient(130deg,#fff,#f4faf8);box-shadow:0 10px 30px rgba(24,70,66,.045)}
.afaq-reui-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.afaq-reui-section-heading h2{font-size:clamp(1.2rem,2vw,1.55rem);margin:3px 0 6px;color:#183d3a}
.afaq-reui-section-heading p{margin:0;color:#627b77;font-size:.91rem}
.afaq-reui-eyebrow{display:inline-block;font-size:.75rem;font-weight:800;color:#138a7b}
.afaq-reui-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.afaq-reui-shortcut{min-width:0;display:flex;align-items:center;gap:10px;padding:16px 12px;border:1px solid #e0ebe8;border-radius:15px;background:#fff;text-decoration:none;color:#24423f;transition:border-color .16s,box-shadow .16s,transform .16s}
.afaq-reui-shortcut:hover{border-color:#89c9bc;box-shadow:0 8px 20px rgba(22,106,96,.08);transform:translateY(-2px)}
.afaq-reui-shortcut-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;background:#eaf7f4;border-radius:12px;color:#117e72}
.afaq-reui-shortcut-icon svg{width:20px;height:20px}
.afaq-reui-shortcut>span:nth-child(2){display:grid;gap:4px;min-width:0;flex:1}
.afaq-reui-shortcut strong{font-size:.88rem;line-height:1.45}
.afaq-reui-shortcut small{color:#68817b;font-size:.72rem;line-height:1.5}
.afaq-reui-chevron{font-size:1.5rem;color:#789b94}
.afaq-reui-admissions{border-radius:20px;background:linear-gradient(140deg,#fff,#f2faf8)}
.afaq-reui-admissions .afaq-adm-kpis>a{transition:transform .16s,border-color .16s,box-shadow .16s;border-color:#e0ebe8;min-width:0}
.afaq-reui-admissions .afaq-adm-kpis>a:hover{border-color:#80c7b9;box-shadow:0 8px 20px rgba(26,95,83,.08);transform:translateY(-2px)}
.afaq-reui-filter-card{border-radius:18px}
.afaq-reui-filter-title{margin-bottom:12px}
.afaq-reui-filter-title h2,.afaq-reui-table-heading h2{font-size:1.1rem;margin:0 0 4px}
.afaq-reui-filter-title p{margin:0;color:#687e79;font-size:.85rem}
.afaq-reui-filter-card .afaq-filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.afaq-reui-filter-card .afaq-filter-bar input{min-width:190px;flex:2 1 220px}
.afaq-reui-filter-card .afaq-filter-bar select{min-width:160px;flex:1 1 180px}
.afaq-reui-table-card{padding:0;overflow:hidden;border-radius:18px}
.afaq-reui-table-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px;border-bottom:1px solid #e4eeeb}
.afaq-reui-table-heading span{font-size:.78rem;background:#eef7f4;color:#287366;padding:5px 11px;border-radius:999px;font-weight:700}
.afaq-reui-table-card .afaq-table th{background:#f7faf9;color:#536e68;font-size:.79rem;font-weight:800}
.afaq-reui-table-card .afaq-table tbody tr:hover{background:#f7fbfa}
.afaq-reui-table-card .afaq-table td,.afaq-reui-table-card .afaq-table th{padding:14px 16px}
.afaq-reui-registration .afaq-title-row{flex-wrap:wrap;gap:12px}
.afaq-reui-stepper{display:flex;align-items:center;gap:12px;padding:18px 8px;margin:14px 0 18px;border-bottom:1px solid #e6eeeb}
.afaq-reui-step{display:inline-flex;align-items:center;gap:10px;color:#788b85;font-size:.9rem;font-weight:800;white-space:nowrap}
.afaq-reui-step b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid #cadbd5;background:#fff;font-variant-numeric:tabular-nums}
.afaq-reui-step.is-current{color:#11786b}.afaq-reui-step.is-current b{color:#fff;background:#118577;border-color:#118577}
.afaq-reui-step.is-complete{color:#11786b}.afaq-reui-step.is-complete b{background:#e6f6ef;border-color:#90cfb8}
.afaq-reui-step-line{height:2px;background:#e1ebe7;flex:0 1 80px}
.afaq-reui-registration .afaq-form-section{border-radius:16px;border-color:#e2ebe8;background:#fcfefd}
.afaq-reui-registration .afaq-form-section h3{color:#234944}
.afaq-reui-registration .afaq-form input:focus-visible,.afaq-reui-registration .afaq-form select:focus-visible{outline:2px solid #188d7d;outline-offset:2px;border-color:#188d7d}
.afaq-reui-wizard-controls{display:none;justify-content:space-between;gap:10px;margin-top:20px}
.afaq-reui-wizard-enhanced .afaq-reui-wizard-controls{display:flex}
.afaq-reui-wizard-panel[hidden]{display:none!important}
.afaq-reui-wizard-enhanced:not(.afaq-reui-on-last-step) .afaq-reui-wizard-submit,.afaq-reui-wizard-enhanced:not(.afaq-reui-on-last-step) .afaq-reui-form-note{display:none!important}
.afaq-reui-form-note{padding:11px 13px;background:#f1f8f6;color:#356e63;border-radius:10px;margin:0}
.afaq-reui-owner a:focus-visible,.afaq-reui-admissions a:focus-visible,.afaq-reui-registration button:focus-visible,.afaq-reui-filter-card a:focus-visible{outline:3px solid #188d7d;outline-offset:3px}
@media(max-width:1200px){.afaq-reui-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.afaq-reui-owner{padding:16px}.afaq-reui-section-heading{align-items:stretch;flex-direction:column}.afaq-reui-shortcuts{grid-template-columns:1fr}.afaq-reui-filter-card .afaq-filter-bar>*{width:100%;flex-basis:100%}.afaq-reui-stepper{gap:7px}.afaq-reui-step{font-size:.8rem;gap:6px}.afaq-reui-step-line{flex-basis:24px}.afaq-reui-table-heading{padding:14px}}
@media(prefers-reduced-motion:reduce){.afaq-reui-shortcut,.afaq-reui-admissions .afaq-adm-kpis>a{transition:none;transform:none!important}}

/* Stage 50: content editor must never be hidden by reveal animation.
   This only affects presentation; it does not alter saved content. */
.afaq-system-body .afaq-content-manager,
.afaq-system-body .afaq-content-manager.afaq-reveal-ready,
.afaq-system-body .afaq-settings-view .afaq-card.afaq-reveal-ready {
  opacity:1!important; visibility:visible!important; transform:none!important;
  transition-delay:0s!important;
}
.afaq-system-body .afaq-content-manager .afaq-content-item {
  opacity:1!important; visibility:visible!important;
}

/* Stage 51: managed image previews */
.afaq-content-image-editor{display:grid;gap:10px;padding:14px;border:1px solid #d7e8e5;border-radius:14px;background:#f8fcfb}
.afaq-content-image-preview{display:flex;align-items:center;justify-content:center;min-height:135px;border:1px dashed #bcd7d2;border-radius:12px;background:#fff;overflow:hidden}
.afaq-content-image-img{display:block;max-width:100%;max-height:250px;object-fit:contain}.afaq-content-image-img[hidden]{display:none}
.afaq-content-image-empty[hidden]{display:none}.afaq-content-image-empty{color:#667c78}
.afaq-content-image-buttons{display:flex;flex-wrap:wrap;gap:10px}.afaq-content-image-buttons .afaq-btn{cursor:pointer}
.afaq-content-image-editor small{color:#657f7b}

/* Academic calendar SaaS-style nested settings */
.afaq-calendar-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:linear-gradient(135deg,#f2faf8,#f7f9ff)}
.afaq-calendar-hero h2{margin:8px 0}.afaq-calendar-list{display:grid;gap:12px;margin-top:16px}
.afaq-calendar-list-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dce9e5;border-radius:16px;padding:18px;text-decoration:none;color:inherit;background:#fff}
.afaq-calendar-list-card:hover{border-color:#16816d;box-shadow:0 5px 18px rgba(0,0,0,.06)}
.afaq-calendar-list-card>div{display:grid;gap:5px}.afaq-calendar-list-card small{color:#607b78}
.afaq-calendar-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:14px 0}
.afaq-shift-settings,.afaq-calendar-range{border:1px solid #dce9e5;border-radius:14px;padding:16px;min-width:0}
.afaq-shift-settings label{display:block;margin:10px 0}.afaq-shift-settings legend,.afaq-calendar-range legend{font-weight:700;padding:0 8px}
@media(max-width:640px){.afaq-calendar-hero{align-items:flex-start}.afaq-calendar-list-card{align-items:flex-start;flex-wrap:wrap}}

/* 76A: one typographic family in every /system role and native form control. */
.afaq-system-body{--afaq-font-family:'Cairo',Tahoma,Arial,sans-serif;font-family:var(--afaq-font-family)}
.afaq-system-body :is(button,input,textarea,select,option){font-family:inherit}
@media(max-width:480px){.afaq-system-body{overflow-wrap:anywhere}.afaq-main,.afaq-content,.afaq-card{min-width:0}.afaq-table-wrap{max-width:100%;overscroll-behavior-x:contain}}


/* 76B — mobile-first operations: progressive table cards; no table rewriting */
.afaq-system-body{overflow-x:clip}
.afaq-layout,.afaq-content,.afaq-card,.afaq-card>form,.afaq-form-grid>*,.afaq-inline-form>*{min-width:0}
.afaq-table-wrap{max-width:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.afaq-table-wrap:focus-visible{outline:3px solid var(--p);outline-offset:3px}
.afaq-system-body :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid #146b95;outline-offset:3px}
.afaq-system-body :is(input,select,textarea){max-width:100%;min-width:0}
.afaq-system-body :is(.afaq-btn,.afaq-mobile-menu-close,.afaq-password-toggle){min-height:44px}
.afaq-system-body :is(.afaq-title-row,.afaq-top,.afaq-doc-head){min-width:0;gap:12px}
.afaq-system-body :is(.afaq-title-row,.afaq-top) :is(h1,h2,h3,p){overflow-wrap:anywhere}
.afaq-system-body .afaq-token,.afaq-system-body td{overflow-wrap:anywhere}
@media(max-width:1024px){
 .afaq-content{padding-inline:clamp(12px,2.5vw,24px)}
 .afaq-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .afaq-inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
 .afaq-content{padding-inline:12px}
 .afaq-stats,.afaq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .afaq-top,.afaq-title-row,.afaq-doc-head{align-items:flex-start;flex-wrap:wrap}
 .afaq-title-row > .afaq-btn,.afaq-doc-actions .afaq-btn{max-width:100%}
 .afaq-card{padding:14px;border-radius:14px}
 .afaq-inline-form,.afaq-form-grid{grid-template-columns:minmax(0,1fr)!important}
 .afaq-form-actions,.afaq-inline-actions,.afaq-scanner-controls{gap:9px}
 .afaq-form-actions > :is(button,a),.afaq-form-actions > form{max-width:100%}
 .afaq-form input:not([type=checkbox]):not([type=radio]),.afaq-form select,.afaq-form textarea{font-size:16px}
 .afaq-table-wrap > .afaq-responsive-cards{display:block;width:100%;min-width:0!important;border-collapse:separate}
 .afaq-responsive-cards thead{position:absolute!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
 .afaq-responsive-cards tbody{display:grid;gap:11px}
 .afaq-responsive-cards tbody tr{display:grid;min-width:0;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:5px 11px;box-shadow:0 3px 12px rgba(30,72,71,.035)}
 .afaq-responsive-cards tbody td{display:grid;grid-template-columns:minmax(78px,35%) minmax(0,1fr);align-items:start;gap:8px;padding:9px 1px!important;white-space:normal!important;border-bottom:1px solid #eef1f1;min-width:0;max-width:100%;text-align:start!important;overflow-wrap:anywhere}
 .afaq-responsive-cards tbody td:last-child{border-bottom:0}
 .afaq-responsive-cards tbody td::before{content:attr(data-afaq-label);font-weight:750;color:#536e72;font-size:.78rem;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
 .afaq-responsive-cards tbody td :is(a,button){max-width:100%;white-space:normal;text-align:center}
 .afaq-responsive-cards tbody td :is(img,svg){max-width:100%}
 .afaq-saas-table.afaq-responsive-cards{min-width:0!important}
}
@media(max-width:380px){
 .afaq-stats,.afaq-kpis{grid-template-columns:1fr}
 .afaq-responsive-cards tbody td{grid-template-columns:minmax(69px,32%) minmax(0,1fr)}
 .afaq-form-actions > :is(.afaq-btn,button){width:100%;justify-content:center}
}
@media print{
 .afaq-responsive-cards,.afaq-responsive-cards tbody,.afaq-responsive-cards tbody tr,.afaq-responsive-cards tbody td{display:revert!important}
 .afaq-responsive-cards thead{position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important}
 .afaq-responsive-cards tbody td::before{content:none!important}
 .afaq-responsive-cards tbody tr{box-shadow:none!important}
}

/* Recovery flow uses the same auth card and platform tokens as other Afaq screens. */
.afaq-system-body .afaq-recovery-card{width:min(100%,520px);}
.afaq-recovery-brand{color:var(--p,#177c76);font-size:1.25rem;font-weight:800;text-align:center;margin:4px 0 14px;}
.afaq-recovery-card h1{text-align:center;}
.afaq-recovery-card .afaq-form .afaq-btn{width:100%;}
.afaq-recovery-card .afaq-email-digit{font-variant-numeric:tabular-nums;}
/* Afaq 7.16.42 — consistent, accessible SaaS table action icons. */
.afaq-row-action-icon{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:5px;border:1px solid var(--afaq-border,#dde5ee);border-radius:10px;text-decoration:none!important;font-size:20px;font-weight:600;line-height:1.2;color:var(--afaq-primary,#245bc0);background:var(--afaq-surface,#fff);transition:background .15s,border-color .15s}
.afaq-row-action-icon:hover,.afaq-row-action-icon:focus-visible{background:#eef5ff;border-color:#8aaee6;outline-offset:2px}
.afaq-table td:last-child,.afaq-saas-table td:last-child{white-space:nowrap}

/* 7.16.47: ReUI-inspired progressive, local-only table search. */
.afaq-table-wrap>.afaq-table-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;background:#fff;border-bottom:1px solid #e6eeed;direction:rtl}
.afaq-table-tools .afaq-table-search{width:min(100%,320px);max-width:100%;min-height:40px;border:1px solid #ccdcd9;border-radius:10px;padding:8px 12px;font:inherit;color:#24443f;background:#fff}
.afaq-table-tools .afaq-table-search:focus-visible{outline:2px solid #167d72;outline-offset:2px}
.afaq-table-tools .afaq-table-count{font-size:.82rem;color:#57716d}
.afaq-table tbody tr[hidden],.afaq-saas-table tbody tr[hidden]{display:none!important}
@media(max-width:600px){.afaq-table-wrap>.afaq-table-tools{align-items:stretch;flex-direction:column}.afaq-table-tools .afaq-table-search{width:100%}}
@media print{.afaq-table-tools{display:none!important}.afaq-table tbody tr[hidden],.afaq-saas-table tbody tr[hidden]{display:table-row!important}}

/* Afaq 7.16.48 — ReUI-inspired action styling, scoped to customer portals.
   Native CSS/SVG only; no extra React bundle or third-party icon dependency. */
.afaq-system-body{--afaq-action-border:#d9e4e2;--afaq-action-ink:#284b47;--afaq-action-hover:#f2f8f7}
.afaq-system-body .afaq-btn{border:1px solid transparent;border-radius:10px;box-shadow:none;font-weight:700;letter-spacing:0;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}
.afaq-system-body .afaq-btn:hover{box-shadow:0 3px 9px rgba(30,70,65,.08)}
.afaq-system-body .afaq-btn.secondary{background:#fff;color:var(--afaq-action-ink);border-color:var(--afaq-action-border)}
.afaq-system-body .afaq-btn.secondary:hover{background:var(--afaq-action-hover);border-color:#b5cdc8}
.afaq-system-body .afaq-btn.danger{background:#fff;color:#b42332;border-color:#efc9ce}
.afaq-system-body .afaq-btn.danger:hover{background:#fff1f2;border-color:#e6a8b2}
.afaq-system-body .afaq-btn:disabled,.afaq-system-body .afaq-btn[aria-disabled="true"]{cursor:not-allowed;opacity:.55;transform:none;box-shadow:none}
.afaq-system-body .afaq-btn .afaq-nav-icon{width:17px;height:17px;flex:0 0 17px;stroke-width:1.8}
.afaq-system-body .afaq-row-action-icon{width:38px;height:38px;min-width:38px;min-height:38px;padding:8px;background:#fff;border:1px solid var(--afaq-action-border);border-radius:10px;color:var(--afaq-action-ink);box-shadow:none;vertical-align:middle;transition:background-color .16s,border-color .16s,color .16s,transform .16s}
.afaq-system-body .afaq-row-action-icon:hover{background:var(--afaq-action-hover);border-color:#b5cdc8;color:#176e67;transform:translateY(-1px)}
.afaq-system-body .afaq-row-action-icon:focus-visible{outline:3px solid #80c7ba;outline-offset:2px}
.afaq-system-body .afaq-row-action-icon .afaq-nav-icon,.afaq-system-body .afaq-row-action-icon svg{width:18px;height:18px;stroke-width:1.8}
.afaq-system-body .afaq-table td:last-child :is(.afaq-row-action-icon,.afaq-btn.small){margin-inline:2px}
.afaq-system-body .afaq-table-tools .afaq-table-search{border-radius:10px;border-color:var(--afaq-action-border);box-shadow:0 1px 2px rgba(25,60,55,.03)}
.afaq-system-body .afaq-table-tools .afaq-table-search:focus{border-color:#258d81;box-shadow:0 0 0 3px rgba(37,141,129,.13);outline:none}
@media(hover:none){.afaq-system-body .afaq-row-action-icon{min-width:44px;min-height:44px;width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.afaq-system-body .afaq-row-action-icon,.afaq-system-body .afaq-btn{transition:none!important;transform:none!important}}
@media print{.afaq-system-body .afaq-row-action-icon{display:none!important}}

/* Afaq field-level verification: never infer identity/name verification from account activation. */
/* Crisp, compact verified seal, visually aligned with modern social verification badges. */
.afaq-verified-tick{display:inline-flex;align-items:center;justify-content:center;vertical-align:-2px;margin-inline-start:4px;width:17px;height:17px;flex:0 0 17px;color:#1d9bf0;white-space:nowrap}
.afaq-verified-tick svg{display:block;width:100%;height:100%;overflow:visible}
.afaq-verified-tick .afaq-verified-seal{fill:currentColor;stroke:none}
.afaq-verified-tick .afaq-verified-check{fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
@media (forced-colors:active){.afaq-verified-tick .afaq-verified-seal{fill:Highlight}.afaq-verified-tick .afaq-verified-check{stroke:HighlightText}}

/* Afaq 7.16.54 — consistent vector-only table action controls */
.afaq-system-body :is(.afaq-row-action-icon,.afaq-record-icon){display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:38px;min-height:38px;padding:8px;border:1px solid #d9e4e2;border-radius:10px;background:#fff;color:#284b47;text-decoration:none;line-height:1;box-sizing:border-box;transition:background-color .15s,border-color .15s,color .15s}
.afaq-system-body :is(.afaq-row-action-icon,.afaq-record-icon):is(:hover,:focus-visible){background:#f2f8f7;border-color:#9abdb6;color:#176e67}
.afaq-system-body :is(.afaq-row-action-icon,.afaq-record-icon):focus-visible{outline:2px solid #258d81;outline-offset:2px}
.afaq-system-body .afaq-action-svg{display:block;width:18px;height:18px;flex:0 0 18px}
.afaq-system-body :is(.afaq-record-actions,.afaq-inline-actions){align-items:center}
.afaq-system-body .afaq-record-action-form{display:inline-flex;align-items:center;margin:0}
.afaq-system-body .afaq-record-icon.is-disabled{opacity:.45;cursor:not-allowed;background:#f8faf9}
@media(hover:none){.afaq-system-body :is(.afaq-row-action-icon,.afaq-record-icon){min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.afaq-system-body :is(.afaq-row-action-icon,.afaq-record-icon){transition:none}}

/* Afaq 7.16.69 - delegated user list and separate invite form */
.afaq-system-body .afaq-delegate-overview{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 18px}
.afaq-system-body .afaq-delegate-overview>span{display:inline-flex;gap:10px;align-items:center;background:#f1f8f6;border:1px solid #dcece7;border-radius:12px;padding:10px 14px;font-size:13px;color:#3b5a56}
.afaq-system-body .afaq-delegate-overview strong{color:#137d72;font-size:18px}
.afaq-system-body .afaq-delegates-table td{vertical-align:middle;white-space:normal;min-width:90px}
.afaq-system-body .afaq-delegates-table .afaq-delegate-contact{display:block;margin-top:4px;font-size:12px;color:#788a89;text-align:right;direction:ltr;unicode-bidi:plaintext}
.afaq-system-body .afaq-delegate-pending-label{font-size:12px;color:#687d79}
.afaq-system-body .afaq-delegate-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.afaq-system-body .afaq-delegate-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #dce8e5;border-radius:12px;padding:18px;margin:0}
.afaq-system-body .afaq-delegate-permissions legend{font-weight:750;padding:0 9px}
.afaq-system-body .afaq-delegate-permissions label{display:flex;align-items:center;gap:8px;font-size:13px}
.afaq-system-body .afaq-delegate-permissions input{width:auto;min-height:unset;margin:0}
.afaq-system-body .afaq-delegate-hint{font-size:12px;color:#667c78;margin:0}
.afaq-system-body .afaq-delegate-form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media(max-width:650px){.afaq-system-body .afaq-delegate-form-grid,.afaq-system-body .afaq-delegate-permissions{grid-template-columns:1fr}.afaq-system-body .afaq-delegates-table{min-width:700px}}

/* v7.16.71 delegated user profile */
.afaq-system-body .afaq-delegate-profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.afaq-system-body .afaq-delegate-profile-summary>div{border:1px solid #e4eeeb;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.afaq-system-body .afaq-delegate-profile-summary small{color:#697c78}
.afaq-system-body .afaq-delegate-profile-summary strong{overflow-wrap:anywhere}
.afaq-system-body .afaq-delegate-edit{max-width:760px}
.afaq-system-body .afaq-delegate-audit{margin-top:28px;border-top:1px solid #e4eeeb;padding-top:20px}
.afaq-system-body .afaq-delegate-audit td small{display:block;line-height:1.8}
.afaq-system-body .afaq-delegate-name-link{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.afaq-system-body .afaq-delegate-profile-summary{grid-template-columns:1fr}}


/* v7.16.73 — Child profiles: compact ReUI summary, accessible tabs, related records. */
.afaq-child-profile-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.afaq-child-profile-summary>div{padding:14px 16px;border:1px solid #dfeae8;background:#fff;border-radius:15px;display:grid;gap:3px}
.afaq-child-profile-summary span{font-size:.77rem;color:#667b86;font-weight:600}
.afaq-child-profile-summary strong{font-size:1.3rem;color:#195e61;font-weight:800;font-variant-numeric:tabular-nums}
.afaq-child-profile-summary small{color:#80909a;font-size:.7rem}
.afaq-child-profile-tabs{scrollbar-width:thin;scroll-padding-inline:18px}
.afaq-child-profile-tabs [role="tab"]:focus-visible{outline:2px solid #168c87;outline-offset:2px}
.afaq-child-profile-tabs [role="tab"][aria-selected="true"]{background:#e6f5f2;color:#126d69}
.afaq-child-panel-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.afaq-child-panel-heading h3{display:flex;align-items:center;gap:7px;margin:0}
.afaq-child-related-link{display:inline-flex;margin:14px 0 0;text-decoration:none}
.afaq-child-delegates-table td{vertical-align:middle}
.afaq-child-delegates-table td strong{display:block}
.afaq-child-section{scroll-margin-top:150px;min-width:0}
@media(max-width:650px){.afaq-child-profile-summary{gap:7px}.afaq-child-profile-summary>div{padding:10px}.afaq-child-profile-summary strong{font-size:1.12rem}.afaq-child-profile-summary span,.afaq-child-profile-summary small{font-size:.65rem}.afaq-child-profile-tabs{top:64px}}
@media(max-width:370px){.afaq-child-profile-summary{grid-template-columns:1fr}.afaq-child-profile-summary>div{grid-template-columns:1fr auto;gap:3px}.afaq-child-profile-summary>div small{grid-column:1/-1}}


/* v7.16.74 — ReUI-style employee and classroom detail pages. */
.afaq-system-body .afaq-entity-tab-nav{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;max-width:100%;padding:6px;margin:14px 0 18px;border:1px solid #e2e9ee;border-radius:15px;background:#f8fbfa;direction:rtl;-webkit-overflow-scrolling:touch}
.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;min-height:39px;padding:9px 13px;border-radius:10px;text-decoration:none;color:#536d77;font-size:.85rem;font-weight:650;transition:background-color .15s,color .15s}
.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab:hover{background:#eaf2ef;color:#19594f}
.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab.is-active{background:#e2f3ed;color:#116453;font-weight:800}
.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab:focus-visible{outline:2px solid #278e7b;outline-offset:2px}
.afaq-system-body .afaq-entity-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.afaq-system-body .afaq-entity-detail-grid .afaq-record-detail{min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-entity-detail-grid .afaq-record-detail p{margin:6px 0 0;line-height:1.75}
@media(max-width:900px){.afaq-system-body .afaq-entity-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.afaq-system-body .afaq-entity-tab-nav{margin:10px 0 14px}.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab{font-size:.81rem}.afaq-system-body .afaq-entity-detail-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.afaq-system-body .afaq-entity-tab-nav .afaq-entity-tab{transition:none}}

/* v7.16.76.1 - invoice actions, accessible without JavaScript */
.afaq-finance-actions{position:relative;display:inline-block;min-width:115px}
.afaq-finance-actions>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d7dfe8;border-radius:9px;padding:8px 12px;background:var(--afaq-surface,#fff);font-weight:600;white-space:nowrap}
.afaq-finance-actions>summary::-webkit-details-marker{display:none}
.afaq-finance-actions>summary:focus-visible{outline:3px solid #78a6e5;outline-offset:2px}
.afaq-finance-actions[open]>summary{border-color:#6d92c2}
.afaq-finance-actions-menu{position:absolute;z-index:20;inset-inline-end:0;top:calc(100% + 5px);width:max-content;min-width:190px;max-width:min(85vw,320px);background:#fff;color:#202b3b;border:1px solid #d7dfe8;border-radius:10px;padding:5px;box-shadow:0 12px 30px #17253a24}
.afaq-finance-actions-menu a{display:block;padding:10px 12px;border-radius:7px;text-decoration:none;color:inherit;white-space:normal}
.afaq-finance-actions-menu a:hover,.afaq-finance-actions-menu a:focus-visible{background:#eff5fc}
.afaq-finance-balance-due{color:#a54724}.afaq-finance-balance-clear{color:#247553}.afaq-finance-status{white-space:nowrap}.afaq-finance-empty{text-align:center;padding:22px!important;color:#6c7583}
@media(max-width:700px){.afaq-finance-actions-menu{inset-inline-end:auto;inset-inline-start:0}.afaq-finance-table{min-width:850px}}

/* v7.16.76.2 — invoice readability and print layout */
.afaq-zatca-invoice{direction:rtl;line-height:1.75}
.afaq-zatca-invoice .afaq-doc-head>div{min-width:0;flex:1}
.afaq-zatca-invoice .afaq-doc-head p{overflow-wrap:anywhere}
.afaq-zatca-invoice .afaq-doc-totals{margin-inline-start:auto;margin-inline-end:0;max-width:460px}
.afaq-zatca-invoice .afaq-doc-totals p:last-child{font-weight:700;border-top:2px solid #dfe8e7}
.afaq-invoice-status{display:inline-block;padding:2px 10px;border-radius:99px;background:#f1f5f9;color:#334155;font-weight:700}
.afaq-invoice-status-paid{background:#e6f6ed;color:#166534}
.afaq-invoice-status-unpaid,.afaq-invoice-status-partially_paid{background:#fff4df;color:#92400e}
.afaq-invoice-status-cancelled,.afaq-invoice-status-refunded{background:#fef2f2;color:#991b1b}
@media(max-width:640px){.afaq-zatca-invoice .afaq-doc-head{flex-direction:column;gap:10px}.afaq-zatca-invoice .afaq-doc-totals{max-width:none}}
@media print{
 @page{size:A4;margin:12mm}
 .afaq-zatca-invoice{font-size:10pt;color:#111;background:#fff!important}
 .afaq-zatca-invoice .afaq-doc-head{display:flex;flex-direction:row;gap:15px;break-inside:avoid}
 .afaq-zatca-invoice .afaq-doc-table{width:100%;border-collapse:collapse}
 .afaq-zatca-invoice .afaq-doc-table th,.afaq-zatca-invoice .afaq-doc-table td{border:1px solid #d9dfe3;padding:6px;text-align:right}
 .afaq-zatca-invoice .afaq-doc-table tr,.afaq-zatca-invoice .afaq-doc-totals,.afaq-zatca-invoice .afaq-zatca-qr{break-inside:avoid}
 .afaq-zatca-invoice .afaq-invoice-status{background:none!important;color:#111!important;border:1px solid #aaa}
 .afaq-zatca-invoice .afaq-table-wrap{overflow:visible!important}
}

/* Dashboard credit: runtime plugin/theme versions, responsive and discreet. */
.afaq-arttree-credit{flex-wrap:wrap;column-gap:18px;row-gap:9px;text-align:center}
.afaq-arttree-credit__company,.afaq-arttree-credit__versions{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.afaq-arttree-credit__versions{border-inline-start:1px solid #dce9e6;padding-inline-start:16px;color:#72817f;font-size:11px}
.afaq-arttree-credit__versions>span{white-space:nowrap}
.afaq-arttree-credit__versions b{font-weight:600;color:#435c58;unicode-bidi:isolate}
@media(max-width:640px){.afaq-arttree-credit{flex-direction:column;gap:9px}.afaq-arttree-credit__versions{border-inline-start:0;padding-inline-start:0}}

/* Invoice heading without a surrounding panel. */
.afaq-zatca-title{background:transparent;border:0;border-radius:0;padding:0 0 12px;margin-bottom:18px}


/* Child leave list, detail and in-place SaaS feedback (7.16.82.38). */
.afaq-leave-clickable-table tr[data-afaq-leave-row]{cursor:pointer;transition:background .18s ease}
.afaq-leave-clickable-table tr[data-afaq-leave-row]:hover{background:var(--card-soft,#f4faf8)}
.afaq-leave-clickable-table tr[data-afaq-leave-row]:focus-within{outline:2px solid var(--p,#20867f);outline-offset:-2px}
.afaq-leave-row-link{font-weight:800;text-decoration:underline;text-underline-offset:4px}
.afaq-leave-clickable-table td form{display:inline-flex;vertical-align:middle;margin:0 0 0 5px}
.afaq-leave-eyebrow{font-size:.78rem;opacity:.68;font-weight:800;margin:0 0 5px}
.afaq-leave-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:20px 0}
.afaq-leave-summary>div{border:1px solid var(--line,#dbe9e6);border-radius:14px;background:var(--card-soft,#f8fbfa);padding:16px;display:grid;gap:8px}
.afaq-leave-summary small{color:var(--muted,#627c76);font-size:.77rem}
.afaq-leave-summary strong{font-size:1.03rem}
.afaq-leave-information{border-top:1px solid var(--line,#dbe9e6);padding-top:14px;line-height:1.9}
.afaq-leave-timeline{list-style:none;margin:18px 0;padding:0 10px 0 0;border-right:2px solid var(--line,#dce9e6);display:grid;gap:16px}
.afaq-leave-timeline li{position:relative;margin-right:15px;padding:0 6px 0 0;display:flex;gap:10px}
.afaq-leave-timeline-dot{position:absolute;right:-22px;top:6px;width:11px;height:11px;border-radius:50%;background:var(--p,#14887d);border:2px solid #fff;box-shadow:0 0 0 2px var(--p,#14887d)}
.afaq-leave-timeline li div{display:grid;gap:5px}
.afaq-leave-timeline li small,.afaq-leave-history-note{color:var(--muted,#647c78);font-size:.82rem}
.afaq-leave-result{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid #b9dfcb;background:#eff9f3;color:#226447;border-radius:12px;padding:12px 15px;font-weight:700;margin:12px 0}
@media(max-width:650px){.afaq-leave-detail .afaq-title-row{flex-direction:column;align-items:stretch;gap:12px}}

/* Child basics inside the leave detail views — matches existing SaaS panels. */
.afaq-leave-child-card{border:1px solid var(--line,#dbe9e6);border-radius:16px;background:var(--card-soft,#f8fbfa);padding:18px;margin:18px 0}
.afaq-leave-child-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.afaq-leave-child-heading small{color:var(--muted,#627c76);font-size:.78rem}
.afaq-leave-child-heading h3{margin:2px 0 0;font-size:1.15rem;line-height:1.4;overflow-wrap:anywhere}
.afaq-leave-child-avatar{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:var(--p,#14887d);color:#fff;font-size:1.3rem;font-weight:800}
.afaq-leave-child-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.afaq-leave-child-fields>div{display:grid;gap:5px;padding:12px;border-radius:11px;background:var(--card,#fff);border:1px solid var(--line,#dbe9e6);min-width:0}
.afaq-leave-child-fields small{color:var(--muted,#627c76);font-size:.77rem}
.afaq-leave-child-fields strong{font-size:.94rem;overflow-wrap:anywhere}
@media(max-width:650px){.afaq-leave-child-card{padding:14px}.afaq-leave-child-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.afaq-leave-child-fields{grid-template-columns:1fr}}

/* Child-leave administration: compact filter and predictable action controls. */
.afaq-leave-filter-form .afaq-leave-filter-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end;justify-content:flex-start}
.afaq-leave-filter-form .afaq-leave-filter-fields>label{flex:0 1 210px;min-width:160px;max-width:240px;width:auto}
.afaq-leave-filter-form .afaq-leave-filter-fields select,.afaq-leave-filter-form .afaq-leave-filter-fields input[type=date]{width:100%;max-width:240px;min-width:0;box-sizing:border-box}
.afaq-leave-filter-form .afaq-leave-filter-submit{flex:0 0 auto;width:auto;min-width:112px;min-height:40px;align-self:end}
.afaq-leave-row-actions{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.afaq-leave-row-actions .afaq-leave-icon-btn{width:36px;height:36px;min-width:36px;min-height:36px;padding:6px!important;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;box-sizing:border-box}
.afaq-leave-row-actions .afaq-leave-icon-btn svg{width:18px;height:18px}
.afaq-leave-row-actions .afaq-leave-row-review{display:inline-flex;align-items:center;gap:6px;margin:0;flex-wrap:nowrap}
.afaq-leave-row-actions .afaq-leave-row-review input[name=review_note]{width:150px;min-width:120px;max-width:180px;margin:0}
@media(max-width:650px){.afaq-leave-filter-form .afaq-leave-filter-fields>label{flex:1 1 100%;max-width:none}.afaq-leave-filter-form .afaq-leave-filter-fields select,.afaq-leave-filter-form .afaq-leave-filter-fields input[type=date]{max-width:none}.afaq-leave-row-actions .afaq-leave-row-review input[name=review_note]{width:120px}}

/* Logout belongs directly below the My Account navigation group. */
.afaq-sidebar .afaq-sidebar-groups .afaq-sidebar-logout-inline{margin:4px 0 0;display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;border:1px solid #f2d7d5;border-radius:10px;color:#9a4b4b;text-decoration:none;font-weight:700}
.afaq-sidebar .afaq-sidebar-groups .afaq-sidebar-logout-inline:hover,.afaq-sidebar .afaq-sidebar-groups .afaq-sidebar-logout-inline:focus-visible{background:#fff3f2;color:#a33f3f}

/* v7.16.82.126: accessible SVG icons and responsive ReUI finishing touches */
.afaq-status-icon{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:22px;height:22px;margin-inline-end:7px}
.afaq-status-icon svg{width:20px;height:20px}.afaq-status-icon--pass{color:#15803d}.afaq-status-icon--warn{color:#a16207}.afaq-status-icon--fail{color:#b91c1c}
.afaq-like-btn .afaq-icon-heart{width:19px;height:19px;vertical-align:middle}.afaq-like-btn.liked .afaq-icon-heart{fill:currentColor}
.afaq-star svg{width:24px;height:24px;display:block}.afaq-star.on svg{fill:currentColor}
#afaq-att-detail button[aria-label="إغلاق"] svg{width:20px;height:20px;display:block}
@media(max-width:767px){.afaq-card,.afaq-dialog,.afaq-modal{max-width:100%;min-width:0}.afaq-form-actions{flex-wrap:wrap;gap:10px}.afaq-form-actions>*{max-width:100%}.afaq-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.afaq-star-rating{flex-wrap:wrap}}

/* v7.16.82.128 — Shadcn-inspired stepper, preserves original validation/navigation */
.afaq-shadcn-stepper{--afaq-step-accent:#118577}
.afaq-wizard-progress.afaq-shadcn-stepper button{position:relative;cursor:pointer}
.afaq-wizard-progress.afaq-shadcn-stepper button.active{border-color:var(--afaq-step-accent)!important;box-shadow:0 0 0 1px var(--afaq-step-accent)!important}
.afaq-wizard-progress.afaq-shadcn-stepper button.is-done .afaq-nav-icon{color:var(--afaq-step-accent)}
.afaq-wizard-progress.afaq-shadcn-stepper button[aria-disabled="true"]{cursor:not-allowed}
.afaq-shadcn-stepper :focus-visible{outline:2px solid var(--afaq-step-accent,#118577)!important;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.afaq-shadcn-stepper *{animation:none!important;transition:none!important}}

/* v7.16.82.131 — secure logout control and authentication focus states. */
.afaq-logout-form{margin:4px 0 0;width:100%}
.afaq-sidebar .afaq-sidebar-groups .afaq-logout-form .afaq-sidebar-logout-inline{width:100%;font:inherit;text-align:start;background:#fff;cursor:pointer}
.afaq-sidebar .afaq-sidebar-groups .afaq-logout-form .afaq-sidebar-logout-inline:hover{background:#fff3f2}
.afaq-sidebar .afaq-sidebar-groups .afaq-logout-form .afaq-sidebar-logout-inline:focus-visible{outline:3px solid #0f766e;outline-offset:2px}
.afaq-auth-card :is(input,select,button,a):focus-visible{outline:3px solid #0f766e;outline-offset:2px}
.afaq-auth-card input[aria-invalid="true"]{border-color:#b91c1c}
@media(max-width:650px){.afaq-auth-card .afaq-login-links{flex-wrap:wrap;gap:12px}}

/* v7.16.82.132 — sidebar navigation search, RTL and active-state consistency. */
.afaq-sidebar-find{padding:10px 12px 12px;display:grid;gap:5px}
.afaq-sidebar-find label{font-size:.78rem;font-weight:700;color:inherit}
.afaq-sidebar-find input{box-sizing:border-box;min-width:0;width:100%;border:1px solid #b7c9d0;border-radius:10px;padding:10px 12px;background:#fff;color:#153c49;font:inherit;direction:rtl}
.afaq-sidebar-find input:focus-visible{outline:3px solid #0f766e;outline-offset:2px}
.afaq-sidebar-find [role=status]{font-size:.8rem;margin:4px 0;color:#64748b}
.afaq-sidebar-groups [hidden],.afaq-sidebar-find [hidden]{display:none!important}
.afaq-sidebar-groups a[aria-current=page]{font-weight:750;background:#e7f6f2;color:#0f766e}
.afaq-sidebar-groups :is(a,summary,button):focus-visible{outline:3px solid #0f766e;outline-offset:2px}
@media(max-width:850px){.afaq-sidebar-find{padding-inline:14px}}

/* v7.16.82.133 — form feedback and local table paging */
.afaq-field-error{display:block;color:#b42318;font-size:.8rem;line-height:1.5;margin-block:5px 0}
.afaq-field-error[hidden],.afaq-reui-table-empty[hidden]{display:none!important}
#afaq-child-wizard [aria-invalid=true],[data-afaq-admission-wizard] [aria-invalid=true]{border-color:#b42318!important;box-shadow:0 0 0 1px rgba(180,35,24,.2)}
.afaq-reui-page-size-label{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;color:#425e57}
.afaq-reui-page-size{min-height:36px;border:1px solid #c6d9d4;border-radius:8px;background:#fff;color:#1e4740;padding:5px 9px;font:inherit}
.afaq-reui-page-size:focus-visible,.afaq-reui-sort:focus-visible,.afaq-reui-pager button:focus-visible{outline:3px solid #0f766e;outline-offset:2px}
.afaq-reui-table-empty{padding:18px;text-align:center;color:#536b65;background:#f8fbfa;border-top:1px solid #e2ece8}
@media(max-width:600px){.afaq-reui-table-controls{flex-wrap:wrap;gap:8px}.afaq-reui-page-size-label{max-width:100%}}
@media print{.afaq-reui-table-empty,.afaq-reui-page-size-label{display:none!important}}

/* v7.16.82.134 — consistent accessible media and dialog presentation */
.afaq-reui-file-meta{display:block;overflow-wrap:anywhere;line-height:1.6;margin-block:5px;color:#4c625c}
.afaq-gallery-error{color:#b42318!important}
dialog.afaq-reui-dialog{max-width:min(94vw,720px);max-height:90dvh;overflow:auto}
dialog.afaq-reui-dialog::backdrop{background:rgba(11,31,28,.55)}
.afaq-gallery-tile:focus-within{outline:2px solid #0f766e;outline-offset:2px}
@media(max-width:600px){dialog.afaq-reui-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}

/* v7.16.82.135: final ReUI accessibility and RTL hardening (presentation only). */
@media (prefers-reduced-motion: reduce) {
  .afaq-sidebar-groups *, .afaq-wizard-progress *, .afaq-reui-stepper *,
  .afaq-reui-dialog *, .afaq-gallery-tile * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.afaq-sidebar-groups a:focus-visible,
.afaq-wizard-progress button:focus-visible,
.afaq-reui-stepper button:focus-visible,
.afaq-reui-dialog button:focus-visible,
.afaq-gallery-tile button:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}
.afaq-reui-dialog, .afaq-table-wrap, .afaq-card {min-width: 0;}
.afaq-table-wrap {max-width: 100%;}
@media (max-width: 767px) {
  .afaq-reui-dialog input, .afaq-reui-dialog select, .afaq-reui-dialog textarea {max-width: 100%;}
  .afaq-wizard-progress {max-width: 100%;}
}

/* v7.16.82.137 — keyboard navigation and accessible content skip link. */
.afaq-skip-content{position:fixed;inset-inline-start:12px;top:-90px;z-index:100000;padding:10px 16px;background:#fff;color:#153c49;border:2px solid #0f766e;border-radius:9px;text-decoration:none;font-weight:700}
.afaq-skip-content:focus{top:12px;outline:3px solid #0f766e;outline-offset:2px}
#afaq-main-content:focus{outline:none}
#afaq-main-content:focus-visible{outline:3px solid #0f766e;outline-offset:-3px}

/* v7.16.82.138: permission-derived navigation context in staff and parent shells. */
.afaq-shell-page-context{margin:12px 0 18px;min-width:0}
.afaq-shell-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--afaq-muted,#64748b);line-height:1.6}
.afaq-shell-breadcrumb a{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none}
.afaq-shell-breadcrumb a:hover{text-decoration:underline}
.afaq-shell-breadcrumb .afaq-nav-icon{width:15px;height:15px}
.afaq-shell-breadcrumb [aria-current="page"]{color:var(--afaq-text,#1e293b);font-weight:600}
.afaq-shell-breadcrumb-sep{opacity:.55}
.afaq-shell-page-title{font-size:clamp(19px,2.1vw,25px);font-weight:750;line-height:1.4;margin:7px 0 0;overflow-wrap:anywhere}
@media(max-width:640px){.afaq-shell-page-context{margin:10px 0 14px}.afaq-shell-breadcrumb{gap:5px;font-size:11px}}

/* v7.16.82.139: current authorized section in the topbar. */
.afaq-dashboard-topbar .afaq-topbar-section{display:inline-flex;align-items:center;min-width:0;max-width:210px;padding:6px 11px;border-radius:9px;background:var(--afaq-surface,#f1f5f9);color:var(--afaq-muted,#475569);font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.afaq-dashboard-topbar .afaq-topbar-section{max-width:120px;padding:5px 7px;font-size:11px}}
@media(max-width:420px){.afaq-dashboard-topbar .afaq-topbar-section{display:none}}

/* v7.16.82.140: compact page context and responsive navigation safeguards. */
.afaq-shell-page-title[hidden]{display:none!important}
.afaq-shell-context-breadcrumb-only{margin-block-end:12px}
.afaq-dashboard-topbar{min-width:0}
.afaq-dashboard-topbar .afaq-topbar-account{min-width:0}
.afaq-dashboard-topbar .afaq-dashboard-search{min-width:0}
@media(max-width:640px){
 .afaq-shell-breadcrumb{overflow-wrap:anywhere;max-width:100%}
 .afaq-shell-breadcrumb a,.afaq-shell-breadcrumb span{min-width:0}
 .afaq-dashboard-topbar .afaq-topbar-section{display:none}
 .afaq-dashboard-topbar .afaq-account-chip{min-width:0}
}
@media(max-width:380px){.afaq-shell-page-title{font-size:19px}.afaq-shell-breadcrumb{font-size:10px;gap:4px}}

/* v7.16.82.142: keyboard and touch navigation refinement (no authorization changes) */
.afaq-sidebar-groups a:focus-visible,
.afaq-nav-group summary:focus-visible,
.afaq-section-tabs a:focus-visible {
  outline:3px solid #147d79; outline-offset:2px; position:relative; z-index:1;
}
@media (max-width:767px) {
  .afaq-sidebar-direct,.afaq-nav-group summary {min-height:44px;}
  .afaq-nav-children a {min-height:44px!important;}
  .afaq-section-tabs {max-width:100%;min-width:0;}
  .afaq-section-tabs > div {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;}
  .afaq-section-tabs a {min-height:44px;}
}
@media (prefers-reduced-motion:reduce) {
  .afaq-group-chevron {transition:none;}
}

/* v7.16.82.144 — local table filters and reset */
.afaq-reui-table-reset{min-height:36px;border:1px solid #c6d9d4;border-radius:8px;padding:6px 12px;background:#fff;color:#1e4740;cursor:pointer;font:inherit}
.afaq-reui-table-reset:disabled{opacity:.45;cursor:default}
.afaq-reui-table-reset:focus-visible{outline:3px solid #0f766e;outline-offset:2px}
.afaq-reui-table-summary{font-size:.8rem;color:#536b65;margin:0;align-self:center}
@media(max-width:600px){.afaq-reui-table-summary{width:100%}}
@media print{.afaq-reui-table-reset,.afaq-reui-table-summary{display:none!important}}

/* v7.16.82.146 — financial document responsive and print refinements; presentation only. */
.afaq-system-body .afaq-zatca-invoice,.afaq-system-body .afaq-invoice-sheet{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-zatca-invoice .afaq-doc-head,.afaq-system-body .afaq-invoice-sheet__head{flex-wrap:wrap;align-items:flex-start}
.afaq-system-body .afaq-zatca-invoice .afaq-doc-totals,.afaq-system-body .afaq-invoice-sheet__totals{width:100%;box-sizing:border-box}
.afaq-system-body .afaq-zatca-invoice .afaq-doc-table{width:100%;border-collapse:collapse}
.afaq-system-body .afaq-zatca-invoice .afaq-doc-table th,.afaq-system-body .afaq-zatca-invoice .afaq-doc-table td{overflow-wrap:anywhere;vertical-align:top}
.afaq-system-body .afaq-finance-actions-menu{max-height:min(65vh,440px);overflow-y:auto;overscroll-behavior:contain}
.afaq-system-body .afaq-finance-actions-menu a:focus-visible{outline:2px solid #315b91;outline-offset:-2px}
@media(max-width:640px){
 .afaq-system-body .afaq-invoice-sheet{padding:14px;border-radius:12px}
 .afaq-system-body .afaq-invoice-sheet__head{padding:14px;gap:12px}
 .afaq-system-body .afaq-invoice-sheet__totals{max-width:none;padding:12px}
 .afaq-system-body .afaq-zatca-invoice .afaq-doc-totals{max-width:none}
 .afaq-system-body .afaq-zatca-invoice .afaq-doc-table{font-size:.85rem}
}
@media print{
 .afaq-system-body .afaq-invoice-sheet{padding:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:visible!important}
 .afaq-system-body .afaq-invoice-sheet__head{padding:0 0 12px!important;background:#fff!important}
 .afaq-system-body .afaq-invoice-sheet__totals{background:#fff!important;break-inside:avoid}
 .afaq-system-body .afaq-invoice-sheet table,.afaq-system-body .afaq-zatca-invoice .afaq-doc-table{width:100%!important;table-layout:auto}
 .afaq-system-body .afaq-invoice-sheet tr,.afaq-system-body .afaq-zatca-invoice .afaq-doc-table tr{break-inside:avoid;page-break-inside:avoid}
 .afaq-system-body .afaq-invoice-sheet thead,.afaq-system-body .afaq-zatca-invoice .afaq-doc-table thead{display:table-header-group}
 .afaq-system-body .afaq-finance-actions,.afaq-system-body .afaq-finance-actions-menu{display:none!important}
}

/* v7.16.82.147 — attendance, pickup and leave: responsive presentation only. */
.afaq-system-body .afaq-leave-detail,.afaq-system-body .afaq-leave-summary,.afaq-system-body .afaq-leave-information{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-leave-timeline{overflow-wrap:anywhere}
.afaq-system-body .afaq-leave-timeline li{min-width:0;break-inside:avoid}
.afaq-system-body .afaq-leave-row-actions{max-width:100%;white-space:normal;flex-wrap:wrap}
.afaq-system-body .afaq-leave-row-actions .afaq-leave-row-review{max-width:100%;flex-wrap:wrap}
.afaq-system-body .afaq-leave-row-actions .afaq-leave-row-review input[name=review_note]{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-leave-icon-btn:focus-visible,.afaq-system-body .afaq-leave-row-link:focus-visible{outline:2px solid var(--p,#14887d);outline-offset:3px}
.afaq-system-body .afaq-pickup-card,.afaq-system-body .afaq-pickup-qr-card,.afaq-system-body .afaq-qr-child-card{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.afaq-system-body .afaq-pickup-qr-canvas,.afaq-system-body .afaq-real-qr{max-width:100%;height:auto}
.afaq-system-body .afaq-qr-video{max-width:100%;height:auto}
@media(max-width:650px){
 .afaq-system-body .afaq-attendance-methods{grid-template-columns:minmax(0,1fr)}
 .afaq-system-body .afaq-attendance-methods .afaq-form{min-width:0;padding:12px}
 .afaq-system-body .afaq-leave-row-actions{gap:8px}
 .afaq-system-body .afaq-leave-row-actions .afaq-leave-row-review input[name=review_note]{width:min(100%,220px)}
 .afaq-system-body .afaq-pickup-display-grid,.afaq-system-body .afaq-qr-child-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{
 .afaq-system-body .afaq-leave-detail,.afaq-system-body .afaq-leave-child-card{box-shadow:none!important}
 .afaq-system-body .afaq-leave-timeline li,.afaq-system-body .afaq-qr-child-card{break-inside:avoid;page-break-inside:avoid}
 .afaq-system-body .afaq-leave-row-actions{display:none!important}
}

/* v7.16.82.148 — notification center and media responsive polish. */
.afaq-system-body .afaq-notifications-center,.afaq-system-body .afaq-notification-entry{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-notification-entry>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.afaq-system-body .afaq-notification-entry p{white-space:normal;overflow-wrap:anywhere}
.afaq-system-body .afaq-notification-actions{min-width:0;max-width:100%;gap:8px}
.afaq-system-body .afaq-notification-actions form{min-width:0;max-width:100%}
.afaq-system-body .afaq-notification-actions button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.afaq-system-body .afaq-notification-filters a:focus-visible,.afaq-system-body .afaq-notification-actions button:focus-visible{outline:2px solid #0f766e;outline-offset:3px}
.afaq-system-body .afaq-gallery-preview,.afaq-system-body .afaq-gallery-uploader{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-gallery-tile img,.afaq-system-body .afaq-gallery-tile video{max-width:100%}
.afaq-system-body .afaq-gallery-filename{direction:auto;unicode-bidi:plaintext}
@media(max-width:600px){
 .afaq-system-body .afaq-notification-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .afaq-system-body .afaq-notification-filters a{min-width:0;justify-content:center;overflow-wrap:anywhere}
 .afaq-system-body .afaq-notification-actions form{flex:1 1 140px}
 .afaq-system-body .afaq-notification-actions button{width:100%;min-height:40px}
 .afaq-system-body .afaq-gallery-toolbar{flex-wrap:wrap}
}
@media(max-width:350px){.afaq-system-body .afaq-notification-filters{grid-template-columns:minmax(0,1fr)}}
@media print{.afaq-system-body .afaq-notification-actions,.afaq-system-body .afaq-gallery-remove,.afaq-system-body .afaq-gallery-order{display:none!important}}

/* v7.16.82.149 — responsive portal shell, touch targets and RTL overflow containment. */
.afaq-system-body .afaq-layout,.afaq-system-body .afaq-content,.afaq-system-body .afaq-card{min-width:0}
.afaq-system-body .afaq-content :is(img,video,canvas,iframe){max-width:100%}
.afaq-system-body .afaq-content :is(.afaq-form-grid,.afaq-inline-form,.afaq-stats){min-width:0}
.afaq-system-body .afaq-content :is(.afaq-form-grid,.afaq-inline-form)>*{min-width:0}
.afaq-system-body .afaq-content :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-section-tabs{max-width:100%;min-width:0}
.afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{min-width:0}
@media(max-width:850px){
 .afaq-system-body .afaq-content{min-width:0;max-width:100%;padding-inline:clamp(10px,3vw,18px)}
 .afaq-system-body .afaq-dashboard-topbar{max-width:calc(100% + 2 * clamp(10px,3vw,18px))}
 .afaq-system-body .afaq-dashboard-topbar .afaq-topbar-account{flex-wrap:nowrap}
 .afaq-system-body .afaq-section-tabs a{min-height:44px;display:inline-flex;align-items:center}
 .afaq-system-body .afaq-content :is(.afaq-btn,button[type=submit],input[type=submit]){min-height:44px}
 .afaq-system-body .afaq-content :is(.afaq-row,.afaq-top){min-width:0;max-width:100%}
}
@media(max-width:480px){
 .afaq-system-body .afaq-content :is(.afaq-form-grid,.afaq-inline-form){grid-template-columns:minmax(0,1fr)}
 .afaq-system-body .afaq-content :is(.afaq-card,.afaq-row){overflow-wrap:anywhere}
 .afaq-system-body .afaq-dashboard-topbar .afaq-dashboard-search{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 .afaq-system-body .afaq-section-tabs{scroll-behavior:auto}
}

/* v7.16.82.150 — settings and student reports: responsive layout and accessible controls. */
.afaq-system-body .afaq-report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;max-width:100%}
.afaq-system-body .afaq-report-filters label{display:grid;gap:6px;min-width:0;flex:1 1 190px}
.afaq-system-body .afaq-report-filters :is(select,input,button){max-width:100%;min-height:42px}
.afaq-system-body .afaq-report-tabs{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.afaq-system-body .afaq-report-tabs a{display:inline-flex;align-items:center;min-height:42px;max-width:100%;white-space:normal}
.afaq-system-body .afaq-report-entry,.afaq-system-body .afaq-report-entry-head{min-width:0;max-width:100%}
.afaq-system-body .afaq-report-entry-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.afaq-system-body .afaq-report-entry-head>div{min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-report-stats{min-width:0;max-width:100%}
.afaq-settings-view .afaq-settings-card-copy{min-width:0;overflow-wrap:anywhere}
.afaq-settings-view .afaq-settings-form-card :is(fieldset,legend){max-width:100%;min-width:0}
.afaq-settings-view .afaq-settings-form-card :is(input,select,textarea){max-width:100%;box-sizing:border-box}
@media(max-width:640px){
 .afaq-system-body .afaq-report-filters{align-items:stretch}
 .afaq-system-body .afaq-report-filters label{flex-basis:100%}
 .afaq-system-body .afaq-report-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr));gap:9px}
 .afaq-settings-view .afaq-settings-form-card>form.afaq-form{grid-template-columns:minmax(0,1fr)}
 .afaq-settings-view .afaq-settings-card{min-width:0;gap:10px;padding:14px}
 .afaq-settings-view .afaq-settings-card-status{white-space:normal}
}
@media print{
 .afaq-system-body .afaq-report-filters,.afaq-system-body .afaq-report-tabs{display:none!important}
 .afaq-system-body .afaq-report-entry{break-inside:avoid;page-break-inside:avoid}
}

/* v7.16.82.151 — authorized subpage heading and responsive section navigation. */
.afaq-system-body .afaq-shell-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;flex-wrap:wrap}
.afaq-system-body .afaq-shell-page-heading-copy{flex:1 1 260px;min-width:0}
.afaq-system-body .afaq-shell-page-description{margin:4px 0 0;color:var(--afaq-muted,#64748b);font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.afaq-system-body .afaq-shell-page-home{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 12px;border:1px solid var(--afaq-border,#e2e8f0);border-radius:9px;color:var(--afaq-text,#1e293b);text-decoration:none;font-size:13px;flex-shrink:0}
.afaq-system-body .afaq-shell-page-home .afaq-nav-icon{width:16px;height:16px}
.afaq-system-body .afaq-shell-page-home:hover{background:var(--afaq-surface,#f8fafc)}
.afaq-system-body .afaq-shell-page-home:focus-visible{outline:2px solid var(--afaq-primary,#0f766e);outline-offset:3px}
.afaq-system-body .afaq-section-tabs{max-width:100%;min-width:0}
.afaq-system-body .afaq-section-tabs>div{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.afaq-system-body .afaq-section-tabs a{min-height:40px;white-space:nowrap}
@media(max-width:640px){
 .afaq-system-body .afaq-shell-page-heading{align-items:flex-start;gap:10px}
 .afaq-system-body .afaq-shell-page-heading-copy{flex-basis:100%}
 .afaq-system-body .afaq-shell-page-home{min-height:40px}
 .afaq-system-body .afaq-shell-page-description{font-size:12px}
}
@media print{.afaq-system-body .afaq-shell-page-home{display:none!important}}

/* v7.16.82.152 — scoped registration wizard error feedback and touch controls. */
#afaq-child-wizard .afaq-wizard-error-summary{padding:12px 14px;margin:0 0 16px;border:1px solid #f3b7b4;border-inline-start:4px solid #b42318;border-radius:10px;background:#fff5f4;color:#912018;font-size:14px;line-height:1.6}
#afaq-child-wizard .afaq-wizard-error-summary[hidden]{display:none!important}
#afaq-child-wizard .afaq-wizard-progress button{min-height:44px}
#afaq-child-wizard .afaq-wizard-actions button{min-height:44px}
#afaq-child-wizard .afaq-wizard-step :is(input,select,textarea):focus-visible{outline:2px solid var(--afaq-primary,#0f766e);outline-offset:2px}
@media(max-width:640px){#afaq-child-wizard .afaq-wizard-actions{display:flex;flex-wrap:wrap;gap:8px}#afaq-child-wizard .afaq-wizard-actions button{flex:1 1 auto}}

/* v7.16.82.153 — scoped child, guardian, staff and classroom detail-page polish. */
.afaq-system-body .afaq-child-profile,.afaq-system-body .afaq-entity-detail{min-width:0;max-width:100%}
.afaq-system-body .afaq-child-profile-head{display:flex;align-items:center;flex-wrap:wrap;gap:14px;min-width:0}
.afaq-system-body .afaq-child-profile-head>div{min-width:0;flex:1 1 190px;overflow-wrap:anywhere}
.afaq-system-body .afaq-child-profile-tabs{display:flex;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;gap:6px;scroll-padding-inline:12px}
.afaq-system-body .afaq-child-profile-tabs a[role="tab"]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex-shrink:0;white-space:nowrap;padding:8px 12px}
.afaq-system-body .afaq-child-profile-tabs a[role="tab"]:focus-visible{outline:2px solid var(--afaq-primary,#0f766e);outline-offset:-2px}
.afaq-system-body .afaq-child-section{min-width:0;max-width:100%;overflow-wrap:anywhere}
.afaq-system-body .afaq-child-section .afaq-profile-data{min-width:0;max-width:100%}
.afaq-system-body .afaq-child-section .afaq-profile-data p{min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-child-section .afaq-profile-data span{overflow-wrap:anywhere;word-break:normal}
.afaq-system-body .afaq-child-section :is(img,video){max-width:100%;height:auto}
.afaq-system-body .afaq-entity-tab-nav a{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.afaq-system-body .afaq-record-actions{flex-wrap:wrap;max-width:100%}
.afaq-system-body .afaq-record-icon:focus-visible{outline:2px solid var(--afaq-primary,#0f766e);outline-offset:2px}
@media(max-width:640px){
 .afaq-system-body .afaq-child-profile-head{align-items:flex-start}
 .afaq-system-body .afaq-child-profile-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))}
 .afaq-system-body .afaq-child-section{padding:14px}
 .afaq-system-body .afaq-child-profile-tabs{scroll-margin-top:80px}
}
@media print{.afaq-system-body .afaq-child-profile-tabs,.afaq-system-body .afaq-entity-tab-nav{display:none!important}.afaq-system-body .afaq-child-profile.is-tabbed .afaq-child-section{display:block!important;break-inside:avoid}}

/* v7.16.82.158 — centered settings cards: 3 desktop, 2 tablet, 1 mobile. */
@media(min-width:1000px){.afaq-settings-view .afaq-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1050px;margin-inline:auto}}
@media(min-width:601px) and (max-width:999px){.afaq-settings-view .afaq-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px;margin-inline:auto}}
.afaq-settings-view .afaq-settings-card{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:9px;min-height:170px;padding:18px 12px}
.afaq-settings-view .afaq-settings-card-icon{width:52px;height:52px;flex:none;margin-inline:auto}
.afaq-settings-view .afaq-settings-card-copy{align-items:center;min-width:0;width:100%}
.afaq-settings-view .afaq-settings-card-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;font-size:12px}
.afaq-settings-view .afaq-settings-card-status{font-size:10px;padding:3px 9px}
.afaq-settings-view .afaq-settings-card-arrow{display:none}
@media(max-width:600px){.afaq-settings-view .afaq-settings-grid{grid-template-columns:minmax(0,1fr);max-width:380px;margin-inline:auto}.afaq-settings-view .afaq-settings-card{min-height:145px;padding:12px 14px}.afaq-settings-view .afaq-settings-card-copy strong{font-size:13px}}

.afaq-daily-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 20px}.afaq-daily-steps span{padding:10px 6px;border-radius:10px;text-align:center;background:#eef3f2;color:#56716e;font-size:12px;font-weight:700}.afaq-daily-steps span.is-current{background:#d6f2ed;color:#11635b}.afaq-daily-wizard [data-daily-step][hidden]{display:none!important}.afaq-daily-wizard-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}

/* v7.16.82.159 — practical owner readiness and system monitoring layout */
.afaq-ops-panel .afaq-title-row{align-items:flex-start;gap:16px;flex-wrap:wrap}
.afaq-ops-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.afaq-ops-metrics--four{grid-template-columns:repeat(4,minmax(0,1fr))}
.afaq-ops-metrics>div{border:1px solid var(--afaq-border,#e3e7ed);border-radius:12px;padding:16px;text-align:center;min-width:0}
.afaq-ops-metrics strong{display:block;font-size:clamp(16px,2vw,25px);line-height:1.5;overflow-wrap:anywhere}
.afaq-ops-metrics span{display:block;font-size:13px;opacity:.78}
.afaq-ops-pill{display:inline-flex;align-items:center;border-radius:99px;padding:5px 11px;font-size:12px;font-weight:600;background:#f1f5f9;color:#334155;white-space:normal}
.afaq-ops-pass,.afaq-ops-good{background:#dcfce7;color:#166534}
.afaq-ops-warn{background:#fef3c7;color:#92400e}
.afaq-ops-fail,.afaq-ops-bad{background:#fee2e2;color:#991b1b}
.afaq-ops-table{width:100%}.afaq-ops-table th,.afaq-ops-table td{text-align:right;vertical-align:top}
.afaq-ops-note{margin-top:16px;padding:14px;border:1px solid var(--afaq-border,#e3e7ed);border-radius:12px;line-height:1.9}
@media(max-width:800px){.afaq-ops-metrics--four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.afaq-ops-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.afaq-ops-metrics>div{padding:10px}.afaq-ops-table{min-width:580px}}

/* v7.16.82.160 — internal settings layout: responsive, content-aware columns.
   Only settings forms are affected; operational forms and tables retain their layouts. */
@media (min-width:1100px){
 .afaq-settings-view .afaq-settings-form-card > form.afaq-form:not(.afaq-bank-enable-form){grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;row-gap:17px}
 .afaq-settings-view .afaq-saas-field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:701px) and (max-width:1099px){
 .afaq-settings-view .afaq-settings-form-card > form.afaq-form:not(.afaq-bank-enable-form){grid-template-columns:repeat(2,minmax(0,1fr))}
 .afaq-settings-view .afaq-saas-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
 .afaq-settings-view .afaq-settings-form-card > form.afaq-form:not(.afaq-bank-enable-form),
 .afaq-settings-view .afaq-saas-field-grid{grid-template-columns:minmax(0,1fr)}
}
/* Full-width content must not be squeezed into a narrow field column. */
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > :is(label:has(textarea),label:has(input[type=file]),.afaq-payment-status,.afaq-table-wrap,.afaq-ops-note){grid-column:1/-1}
.afaq-settings-view .afaq-saas-field-grid > :is(label:has(textarea),label:has(input[type=file])){grid-column:1/-1}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > :is(label,div,fieldset){min-width:0}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > label :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.afaq-settings-view .afaq-settings-form-card > form.afaq-form > label:has(textarea) textarea{width:100%;resize:vertical}
/* Dedicated one-column sensitive/short workflows are preserved. */
.afaq-settings-view .afaq-saas-otp-settings > form.afaq-form,
.afaq-settings-view .afaq-saas-otp-key > form.afaq-form,
.afaq-settings-view .afaq-bank-enable-card > form.afaq-form{grid-template-columns:minmax(0,1fr)!important}

/* 7.16.82.161: Target the actual settings-home sections, without relying on a missing ancestor class. */
.afaq-system-body .afaq-settings-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:1050px;width:100%;margin-inline:auto;gap:16px}
.afaq-system-body .afaq-settings-home-grid > .afaq-settings-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:166px;padding:18px 14px;gap:9px}
.afaq-system-body .afaq-settings-home-grid .afaq-settings-card-icon{margin-inline:auto;flex:none}
.afaq-system-body .afaq-settings-home-grid .afaq-settings-card-copy{align-items:center;width:100%;min-width:0}
.afaq-system-body .afaq-settings-home-grid .afaq-settings-card-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5}
.afaq-system-body .afaq-settings-home-grid .afaq-settings-card-arrow{display:none}
@media(min-width:601px) and (max-width:999px){.afaq-system-body .afaq-settings-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}}
@media(max-width:600px){.afaq-system-body .afaq-settings-home-grid{grid-template-columns:minmax(0,1fr);max-width:380px}.afaq-system-body .afaq-settings-home-grid > .afaq-settings-card{min-height:145px}}

/* v7.16.82.162 — settings landing layout: explicitly override older 2-column and mobile rules. */
@media (min-width: 1000px) {
  body.afaq-system-body .afaq-settings-grid.afaq-settings-home-grid {
    display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100%;max-width:1050px;margin-inline:auto;align-items:stretch;
  }
}
@media (min-width: 601px) and (max-width: 999px) {
  body.afaq-system-body .afaq-settings-grid.afaq-settings-home-grid {
    display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:720px;margin-inline:auto;
  }
}
@media (max-width: 600px) {
  body.afaq-system-body .afaq-settings-grid.afaq-settings-home-grid {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    max-width:380px;margin-inline:auto;
  }
}
body.afaq-system-body .afaq-settings-home-grid > .afaq-settings-card {
  box-sizing:border-box;max-width:100%;min-width:0;height:100%;
}

/* 7.16.82.170: compact notification center and access hub */
@media(min-width:1100px){.afaq-settings-grid.afaq-settings-grid-small{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.afaq-notification-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:700px) and (max-width:1099px){.afaq-settings-grid.afaq-settings-grid-small{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){.afaq-settings-grid.afaq-settings-grid-small{grid-template-columns:minmax(0,1fr)}}
.afaq-access-hub .afaq-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.afaq-access-hub .afaq-inline-actions .afaq-btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.afaq-profile-account-card .afaq-profile-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:700px){.afaq-profile-account-card .afaq-profile-data{grid-template-columns:1fr}}
