/* SANAD V6.0 Accessible Calm Theme — 2026 */
:root{
  --sanad-primary:#24756b;
  --sanad-primary-dark:#185c54;
  --sanad-secondary:#3f6f8f;
  --sanad-bg:#f4f8f7;
  --sanad-surface:#ffffff;
  --sanad-surface-soft:#edf5f3;
  --sanad-text:#18302d;
  --sanad-muted:#5f716e;
  --sanad-border:#cfdedb;
  --sanad-focus:#f2b84b;
  --sanad-success:#2f7d57;
  --sanad-warning:#94631b;
  --sanad-danger:#a63f3f;
  --sanad-radius:14px;
  --sanad-shadow:0 10px 30px rgba(24,48,45,.08);
  --sanad-font-scale:1;
}
html{font-size:calc(16px * var(--sanad-font-scale));scroll-behavior:smooth}
body{
  background:var(--sanad-bg)!important;
  color:var(--sanad-text)!important;
  font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif!important;
  line-height:1.75;
}
a{color:var(--sanad-primary-dark)}
a:hover{text-decoration-thickness:2px}
button,input,select,textarea{font:inherit}
button,.btn,.button,[class*="btn"],input[type="submit"],input[type="button"]{
  min-height:48px;
  border-radius:12px!important;
}
input:not([type="checkbox"]):not([type="radio"]),select,textarea{
  min-height:48px;
  background:#fff!important;
  color:var(--sanad-text)!important;
  border:1.5px solid var(--sanad-border)!important;
  border-radius:12px!important;
}
textarea{min-height:120px}
:focus-visible{
  outline:4px solid var(--sanad-focus)!important;
  outline-offset:3px!important;
}
::selection{background:#cfe9e4;color:#102825}
.card,.panel,.box,.widget,.v3-panel,.kpi,.auth-card,[class*="card"],[class*="panel"]{
  border-color:var(--sanad-border)!important;
  box-shadow:var(--sanad-shadow)!important;
}
.v3-btn,.btn-primary,.primary-button,button[type="submit"],input[type="submit"]{
  background:var(--sanad-primary)!important;
  color:#fff!important;
  border:1px solid var(--sanad-primary-dark)!important;
}
.v3-btn:hover,.btn-primary:hover,.primary-button:hover,button[type="submit"]:hover,input[type="submit"]:hover{
  background:var(--sanad-primary-dark)!important;
}
.badge-success,.status-success,.alert-success,.v3-notice{background:#e5f3eb!important;color:#205c40!important}
.alert-danger,.error,.danger{color:var(--sanad-danger)!important}
.alert-warning,.warning{color:var(--sanad-warning)!important}
header,nav,.navbar,.topbar{border-color:var(--sanad-border)!important}
table{background:var(--sanad-surface);border-collapse:collapse}
th{background:var(--sanad-surface-soft)!important;color:var(--sanad-text)!important}
th,td{border-color:var(--sanad-border)!important;padding:.85rem}
.skip-link{
  position:fixed;top:10px;right:10px;z-index:100000;
  transform:translateY(-160%);background:#102825;color:#fff;
  padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:700;
}
.skip-link:focus{transform:translateY(0)}
.sanad-a11y-toolbar{
  position:fixed;left:16px;bottom:16px;z-index:99999;
  display:flex;flex-wrap:wrap;gap:8px;max-width:310px;
  padding:10px;background:rgba(255,255,255,.97);
  border:1px solid var(--sanad-border);border-radius:16px;
  box-shadow:var(--sanad-shadow)
}
.sanad-a11y-toolbar button{
  min-width:44px;min-height:44px;padding:8px 11px;
  background:#fff;color:var(--sanad-text);border:1px solid var(--sanad-border);
  border-radius:10px;cursor:pointer;font-weight:700
}
.sanad-a11y-toolbar button[aria-pressed="true"]{background:var(--sanad-primary);color:#fff}
body.sanad-high-contrast{
  --sanad-bg:#fff;--sanad-surface:#fff;--sanad-surface-soft:#f2f2f2;
  --sanad-text:#000;--sanad-muted:#222;--sanad-border:#000;--sanad-primary:#004f46;
}
body.sanad-high-contrast *{text-shadow:none!important}
body.sanad-reduce-motion *,body.sanad-reduce-motion *::before,body.sanad-reduce-motion *::after{
  animation-duration:.001ms!important;animation-iteration-count:1!important;
  transition-duration:.001ms!important;scroll-behavior:auto!important
}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){
  .sanad-a11y-toolbar{left:8px;right:8px;bottom:8px;max-width:none;justify-content:center}
  body{padding-bottom:82px!important}
  table{display:block;overflow-x:auto;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}
@media print{.sanad-a11y-toolbar,.skip-link{display:none!important}}
