/* Awaab admin panels — v1.6.34
   Order: tokens · base · forms · buttons · tables · pills · auth pages · feature blocks · admin shell ·
   dashboard · responsive refinements · v1.6.34 components. */
:root{--deep:#0a3937;--main:#186455;--gold:#c5a164;--text:#163a35;--muted:#5c7168;--line:#dde8e1;--bg:#f5f8f6;--white:#fff;--danger:#b04742;--focus:#d4b06a;--radius:10px}
*{box-sizing:border-box}
body{direction:rtl;font-family:Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);margin:0;line-height:1.7;font-size:14px}
a{color:var(--main);text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
h1,h2,h3,p{margin-top:0}
label{display:block;font-weight:600;color:#294c46}
input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #b9cdc5;background:#fff;border-radius:9px;padding:10px;color:#183f38;min-height:42px}
input[type=checkbox]{display:inline-block;min-height:0;margin:0;width:18px;height:18px;accent-color:#1b6457}
input:focus,select:focus,textarea:focus{outline:2px solid #6fa593;outline-offset:0}
button,.btn{background:var(--main);color:#fff;border:0;border-radius:9px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
button.outline,.btn.outline{background:#fff;color:var(--main);border:1px solid #a9c7bb}
.danger{background:var(--danger)}
button:disabled{cursor:not-allowed;opacity:.55}
.muted{color:var(--muted)}
.small-note{font-size:12px;color:var(--muted)}
/* Auth pages (login, password, activate, push) */
.auth{max-width:480px;margin:8vh auto;padding:32px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 60px #163a3515}
.auth h1{font-size:30px}
.auth .brandmark{font-size:36px;color:var(--gold)}
.auth form{display:grid;gap:12px}
.auth form button{margin-top:12px}
/* Messages */
.alert{background:#ffe9e5;border:1px solid #f0c5b9;padding:12px 16px;border-radius:8px;margin-bottom:12px}
.notice{background:#e8f7ed;border:1px solid #b1d9be;padding:12px 16px;border-radius:8px;margin:12px 0}
.flash{background:#e4f4e9;padding:15px;border-radius:10px;margin-bottom:18px}
.badge-intro{background:#eef7f2;padding:10px 14px;border-radius:9px;margin-bottom:14px;border-right:3px solid var(--main)}
/* Surfaces, tables, pills, grids */
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:17px;box-shadow:0 5px 16px #183f3808}
.card h2{font-size:18px}
.tablewrap{width:100%;overflow:auto}
table{width:100%;border-collapse:collapse;min-width:660px}
th,td{padding:11px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
th{font-size:12px;color:#4f6a61;background:#f3f8f5}
td form.inline{display:inline-flex}
td button{padding:6px 10px;font-size:12px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.stat{background:#fff;padding:19px;border:1px solid var(--line);border-radius:12px}
.stat strong{font-size:28px;display:block;color:var(--main)}
.status{display:inline-block;background:#edf3ee;color:#3f6254;border-radius:99px;padding:3px 9px;font-size:11px;font-weight:700}
.status.pending,.status.new{background:#fff3dc;color:#8a6424}
.status.published,.status.approved,.status.resolved{background:#ddf4e6;color:#216039}
.status.rejected,.status.cancelled{background:#ffebe7;color:#9a4337}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.grid .wide{grid-column:1/-1}
.actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.formfoot{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.checkgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:9px}
.checkitem{display:flex;gap:9px;align-items:center;padding:10px;border:1px solid #dae7e1;border-radius:9px;font-weight:400}
.checkitem input{flex:0 0 auto}
/* Legacy shell hooks that the admin shell below builds on */
.shell{min-height:100vh}
.sidebar{color:#fff}
.sidebar a{color:#e8f0ec;text-decoration:none}
.content{min-width:0}
.top h1{margin:0}
@media(max-width:850px){
 .grid{grid-template-columns:1fr}
 .top{flex-wrap:wrap}
 td,th{white-space:normal}
 table{min-width:600px}
 .auth{margin:20px auto}
}

/* Schema upgrade center */
.dbu-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dbu-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:18px 0}
.dbu-stats>div{border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fbf9;min-width:0}
.dbu-stats span{display:block;color:var(--muted);font-size:12px}
.dbu-stats strong{display:block;font-size:15px;overflow-wrap:anywhere;color:var(--main);margin-top:7px}
.dbu-form{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.dbu-form .checkitem{max-width:100%;align-items:flex-start;font-weight:600}
.dbu-form .checkitem input{margin-top:4px}
.dbu-header .status{white-space:nowrap}
/* Settings center v1.5.0 */
.settings-center{display:grid;grid-template-columns:minmax(190px,230px) minmax(0,1fr);gap:18px;align-items:start}.settings-sidebar{background:white;border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:6px;position:sticky;top:10px}.settings-sidebar h2{font-size:17px;margin:0}.settings-sidebar a{display:block;color:var(--main);padding:10px;border-radius:9px;font-size:12px}.settings-sidebar a.active,.settings-sidebar a:hover{background:#e5f3eb;font-weight:800}.settings-main{min-width:0}.settings-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.settings-fields label{min-width:0}.settings-fields input,.settings-fields select{max-width:100%}.settings-fields .switch{display:flex;align-items:center;gap:8px;margin-top:12px}.translation-row{border-bottom:1px solid #e4ede6;padding:12px 0;display:grid;gap:5px}.translation-row>div{font-size:12px;color:#5b7468}.translation-row textarea{min-height:60px}.settings-pagination,.settings-page-switch{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.media-upload{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:10px 0}.media-upload label{flex:1;min-width:175px}.media-upload a,.media-upload small{font-size:12px}.settings-center hr{border:0;border-top:1px solid var(--line);margin:24px 0}button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:780px){.settings-center{grid-template-columns:1fr}.settings-sidebar{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:5px}.settings-sidebar h2,.settings-sidebar p{width:100%}.settings-sidebar a{font-size:11px;padding:7px 10px;border:1px solid var(--line)}.settings-fields{grid-template-columns:1fr}}

/* v1.5.1 — compact navigation and settings cards (no DB/schema changes) */
.settings-home,.settings-detail{width:100%;min-width:0}
.settings-home-intro{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;margin-bottom:15px}
.settings-home-intro p{margin:0 0 14px;color:var(--muted);font-size:13px}
.settings-search-label{display:block;font-size:13px;margin-bottom:5px}
.settings-home-intro input[type=search]{width:100%;margin:0;background:#fafdfb;border-radius:11px}
.settings-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.settings-tile{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:174px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--text);box-shadow:0 4px 12px #183f3806;transition:border-color .18s,box-shadow .18s,transform .18s}
.settings-tile:hover,.settings-tile:focus-visible{border-color:#88b5a4;box-shadow:0 10px 24px #183f3814;transform:translateY(-2px);outline:none}
.settings-tile-icon{width:42px;height:42px;background:#edf6f1;border-radius:12px;display:grid;place-items:center;font-size:24px}
.settings-tile strong{font-size:15px;line-height:1.5}
.settings-tile-description{font-size:12px;line-height:1.7;color:var(--muted);flex:1}
.settings-tile-cta{font-size:12px;color:var(--main);font-weight:700}
.settings-tile[hidden],.settings-no-results[hidden]{display:none!important}
.settings-no-results{text-align:center;padding:26px;color:var(--muted)}
.settings-detail-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 15px}
.settings-current-section{font-weight:700;color:var(--deep);font-size:13px}
.settings-detail>.card{margin-bottom:0}
.settings-detail>.card>h2{margin-bottom:10px;font-size:20px}
.settings-detail .settings-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
.settings-detail .settings-fields label{font-size:13px}
.settings-detail .settings-fields label input,.settings-detail .settings-fields select{width:100%;min-width:0}
.settings-detail .input-ltr{direction:ltr;text-align:left;unicode-bidi:plaintext;font-family:Arial,Tahoma,sans-serif}
.settings-detail .formfoot{padding-top:5px}
.settings-detail .settings-revert{background:#fff;color:var(--main);border:1px solid #a9c7bb}
.settings-reset-defaults{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
.settings-reset-defaults button{background:white;color:#6e5540;border:1px solid #d2bca8}
.settings-reset-defaults .small-note{flex:1;min-width:210px}
.settings-detail .tablewrap{max-width:100%}
.settings-detail a:focus-visible, .mobile-nav summary:focus-visible{outline:3px solid #dbbd78;outline-offset:2px}
@media(max-width:1100px) and (min-width:851px){.settings-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
  .settings-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .settings-home-intro{padding:15px}
  .settings-detail .settings-fields{grid-template-columns:1fr}
}
@media(max-width:400px){
 .content{padding:12px}
 .settings-tile{padding:13px;min-height:157px}
 .settings-tile strong{font-size:13px}
 .settings-tile-description{font-size:11px}
 .settings-tile-icon{width:38px;height:38px;font-size:22px}
 .settings-detail>.card{padding:15px}
 .settings-detail-nav{gap:9px}
 .settings-reset-defaults{align-items:stretch;flex-direction:column}
 .settings-reset-defaults .small-note{min-width:0}
}

/* v1.6.0 Silat Masajid admin UX / all permission controls */
html,body{max-width:100%;overflow-x:clip}
.sidebar .logo{display:flex;align-items:center;gap:10px;line-height:1.1;font-size:22px;white-space:normal;min-width:0}
.sidebar .logo .admin-brand-icon{width:42px;height:42px;border-radius:11px;flex:0 0 auto}
.sidebar .logo span{min-width:0}.sidebar .logo small{margin-top:7px;line-height:1.5}
.sidebar nav.desktop-nav a{font-size:13px;line-height:1.5}
.content,.card,.top,.top>div,.settings-home,.settings-detail{min-width:0;max-width:100%}
.top-actions form{margin:0}.top-actions a,.top-actions button{min-height:42px}
.roles-help{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0}
.roles-help>div{background:#eff7f1;border:1px solid #d6e7dd;border-radius:12px;padding:14px;display:grid;gap:5px}
.roles-help strong{color:var(--deep);font-size:14px}.roles-help span{color:#51675d;font-size:12px}
.supervisor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 15px}
.supervisor-summary span{border:1px solid #d8e7dc;border-radius:12px;background:#fff;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px}
.supervisor-summary b{font-size:21px;color:var(--main);font-variant-numeric:tabular-nums}
.permission-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0 12px;padding:10px;border-radius:12px;background:#f1f7f3;border:1px solid #d7e7dc}
.permission-toolbar .permission-count{margin-inline-end:auto;font-size:13px;color:var(--deep);font-variant-numeric:tabular-nums}
.permission-toolbar button{min-height:38px;padding:8px 12px;font-size:12px}
.checkgrid .checkitem{min-width:0}.checkgrid .checkitem input{width:19px;height:19px}.tablewrap{-webkit-overflow-scrolling:touch}
@media(max-width:850px){.sidebar .logo{font-size:17px;line-height:1.2}.sidebar .logo .admin-brand-icon{width:35px;height:35px}.content{padding:clamp(10px,3vw,16px)}.top h1{font-size:clamp(17px,4.7vw,22px)}.card{padding:clamp(12px,4vw,20px)}.supervisor-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.supervisor-summary span{flex-direction:column;align-items:start;padding:9px;font-size:11px}.supervisor-summary b{font-size:18px}.roles-help{grid-template-columns:1fr}.permission-toolbar{gap:6px}.permission-toolbar .permission-count{width:100%;margin:0}.checkgrid{grid-template-columns:1fr}}
@media(max-width:380px){.top-actions>a,.top-actions>form button{font-size:11px}.sidebar .logo{font-size:15px}.permission-toolbar button{font-size:11px}.sidebar .mobile-nav summary{min-width:74px}}

.auth img.brandmark{display:block;width:72px;height:72px;margin:0 auto 12px;border-radius:18px}.auth{text-align:center}.auth form{text-align:right}

/* v1.6.3 – controlled approval of mosque-staff suggestions */
.suggestion-admin-approval{margin-top:12px;background:#f4faf7;border:1px solid #d7e5db;border-radius:10px;padding:11px}
.suggestion-admin-approval summary{cursor:pointer;color:#176153;font-weight:800}
.suggestion-admin-approval form{display:grid;gap:12px;padding-top:12px;min-width:min(500px,100%)}
.suggestion-admin-approval .checkgrid{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}
.suggestion-admin-approval label{max-width:100%}
.suggestion-admin-approval .btn{margin-top:7px}

/* v1.6.5 — Google Maps link instead of visible coordinate fields */
.map-url-label{display:block;margin:16px 0 12px;font-weight:700}
.map-url-label input{direction:ltr;text-align:left;unicode-bidi:plaintext;max-width:100%;font-size:clamp(12px,2.9vw,14px)}
.map-url-label small{display:block;color:var(--muted);font-size:12px;line-height:1.85;margin-top:6px;font-weight:400}
@media(max-width:480px){.map-url-label input{font-size:12px}}
/* v1.6.7: reliable, readable Google Maps confirmation on small screens */
.map-link-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 6px}
.map-link-tools button{min-height:42px}
.map-link-validation{margin:8px 0;color:#90432b;font-size:13px;line-height:1.8;background:#fff1eb;border:1px solid #f1d5c6;border-radius:9px;padding:9px 12px}
.map-link-validation:empty{display:none}
@media(max-width:400px){.map-link-tools button{width:100%}}

/* v1.6.9: supervisor identity and WhatsApp input */
.supervisor-creation-fields>label,.supervisor-creation-fields>.supervisor-phone-field{min-width:0}
.supervisor-phone-field>label{display:block}
.supervisor-phone-inputs{display:grid;grid-template-columns:minmax(142px,175px) minmax(0,1fr);gap:9px;align-items:center}
.supervisor-phone-inputs input,.supervisor-phone-inputs select{min-width:0;width:100%}
.supervisor-phone-inputs input{text-align:left}
.supervisor-phone-field>small{display:block;padding-top:5px}
.supervisor-whatsapp-link{display:inline-block;font-size:12px;margin-top:5px;text-decoration:underline;color:var(--main)}
#supervisorPositionField[hidden]{display:none!important}
@media(max-width:410px){.supervisor-phone-inputs{grid-template-columns:1fr}.supervisor-phone-inputs select{max-width:none}}

/* v1.6.10: separately-scoped administrative supervisors */
.scope-picker{align-items:end;margin-top:16px}
.scope-picker .formfoot{margin:0;align-self:end}
.scope-picker select{width:100%;min-width:0}
.scope-checkboxes{grid-template-columns:repeat(2,minmax(0,1fr))}
.scope-checkboxes .checkitem{min-width:0;align-items:flex-start;background:#fbfdfa;line-height:1.6}
.scope-checkboxes .checkitem span{min-width:0;overflow-wrap:anywhere}
.scope-muted{display:block;color:#9b653d;font-size:11px;margin-top:2px;font-weight:normal}
#scope-editor .permission-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
#scope-editor .permission-count{margin-inline-end:auto;white-space:normal}
#scope-editor .checkitem input{margin-top:4px}
@media(max-width:850px){
 .scope-checkboxes{grid-template-columns:1fr}
 .scope-picker{grid-template-columns:1fr}
 .scope-picker .formfoot,.scope-picker .formfoot button{width:100%}
 #scope-editor .permission-toolbar button{flex:1}
}

/* v1.6.11 — controlled, one-time WhatsApp supervisor invitations */
.supervisor-invite-card{border-color:#8bb9a5;background:#f7fcf8}
.supervisor-invite-card textarea{width:100%;min-height:180px;resize:vertical;white-space:pre-wrap;font-size:13px;line-height:1.85}
.supervisor-invite-card .formfoot{display:flex;gap:10px;flex-wrap:wrap}
.supervisor-invite-card .formfoot .btn,.supervisor-invite-card .formfoot button{min-height:44px}
@media(max-width:440px){.supervisor-invite-card .formfoot .btn,.supervisor-invite-card .formfoot button{width:100%}}



/* v1.6.23 • Administrative workspace — persistent side navigation and focused daily work */
.admin-body{background:#f5f8f6;font-family:'Segoe UI',Tahoma,Arial,sans-serif;overflow-x:hidden;color:#1a413a}
.admin-body .shell{display:grid;grid-template-columns:258px minmax(0,1fr);align-items:start;min-height:100dvh}
.admin-body .sidebar{position:sticky;top:0;width:258px;height:100dvh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:18px 13px 15px;overflow-y:auto;overflow-x:hidden;background:linear-gradient(165deg,#103f3b,#092c2b 93%);box-shadow:-7px 0 22px #153b3010;scrollbar-width:thin;scrollbar-color:#577d6d transparent;z-index:10}
.admin-body .sidebar-head{display:flex;gap:4px;align-items:center;margin-bottom:15px}
.admin-body .sidebar .logo{display:flex;gap:12px;align-items:center;font-size:19px;margin:0;padding:10px 5px;color:#f2d5a4;flex:1;font-weight:800;letter-spacing:-.2px;line-height:1.45;white-space:nowrap}
.admin-body .sidebar .logo .admin-brand-icon{width:43px;height:43px;border-radius:12px;box-shadow:0 3px 14px #06242350}
.admin-body .sidebar .logo small{font-size:11px;color:#b9d5cd;font-weight:500;margin-top:2px;letter-spacing:0}
.sidebar-close{display:none;border:none;color:#fff;background:#ffffff20;width:34px;height:34px;border-radius:9px;padding:0;font-size:23px}
.sidebar-role{display:flex;align-items:center;gap:10px;padding:12px 11px;background:#ffffff10;border:1px solid #ffffff1a;border-radius:12px;color:#f7f3e9;font-size:12px;font-weight:800;line-height:1.5;margin-bottom:19px}
.sidebar-role-dot{height:9px;width:9px;background:#c9b27e;border-radius:50%;box-shadow:0 0 0 4px #e8c88f23;flex:none}
.sidebar-role small{display:block;color:#a9cfc2;font-weight:500;font-size:10px;margin-top:3px}
.sidebar-nav{display:block;flex:1;width:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#476c61 transparent}
.nav-group{display:grid;gap:4px;margin-bottom:18px}
.nav-group-heading{color:#93b8aa;font-size:10px;font-weight:800;letter-spacing:.15px;padding:0 13px;margin:0 0 5px}
.admin-body .sidebar .nav-link{display:flex;gap:11px;align-items:center;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:10px;color:#dcece5;text-decoration:none;font-size:12px;font-weight:650;line-height:1.45;white-space:normal;min-height:42px;transition:background .17s,border-color .17s}
.admin-body .sidebar .nav-link:hover{background:#ffffff17;border-color:#ffffff18;color:#fff}
.admin-body .sidebar .nav-link.active{color:#fff;background:#ffffff20;border-color:#ffffff2c;box-shadow:inset -3px 0 0 #d7b778}
.nav-icon{flex:0 0 26px;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#ffffff10;font-size:17px;color:#f0d2a1;line-height:1}
.nav-arrow{margin-inline-start:auto;opacity:.45;font-size:21px;line-height:1}
.sidebar-bottom{display:grid;gap:10px;border-top:1px solid #ffffff24;margin-top:auto;padding:16px 5px 0}
.sidebar-bottom .sidebar-visit{border:1px solid #ffffff30;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:10px;color:#f1eee6;font-size:12px;font-weight:700}
.sidebar-visit:hover{background:#ffffff18}
.sidebar-version{color:#8fb6a6;font-size:10px;text-align:center;direction:ltr}
.admin-body .content{width:100%;max-width:none;padding:26px clamp(16px,2.4vw,38px) 50px;min-width:0}
.admin-body .top{display:flex;align-items:center;gap:14px;padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid #e0e9e3;min-width:0}
.top-heading{display:flex;align-items:center;min-width:0;gap:13px}
.admin-body .top .top-overline{color:#5f7b6e;font-size:11px;margin:0 0 3px;font-weight:750}
.top-overline span{padding-inline:5px;color:#a3b8a9}
.admin-body .top h1{font-size:clamp(21px,2vw,29px);font-weight:800;letter-spacing:-.5px;margin:0 0 4px;line-height:1.45}
.admin-body .top small{font-size:12px;color:#5f746b}
.admin-body .top-actions{display:flex;gap:8px;margin-inline-start:auto;align-items:center;width:auto}
.admin-body .top-actions .btn,.admin-body .top-actions button{min-height:39px;padding:9px 12px;border-radius:10px;font-size:11px;font-weight:800;white-space:nowrap}
.admin-body .top-actions .logout-button{background:#e8f1ed;color:#1a594e}
.admin-body .top-actions .logout-button:hover{background:#d5e9dd}
.sidebar-toggle{display:none;padding:0;width:42px;height:42px;font-size:23px;background:#e8f2eb;color:#16564c;border-radius:11px;flex:none}
.sidebar-backdrop[hidden]{display:none!important}
.admin-body .card{border-radius:16px;border:1px solid #dce8e1;box-shadow:0 6px 22px #204e3e07;padding:clamp(16px,2.4vw,25px)}
.admin-body .card h2{font-size:18px;font-weight:800;color:#153f37;margin:0 0 13px}
.admin-body .card h3{font-size:15px;color:#194d41}
.admin-body .card p{line-height:1.85}
.admin-body .card .tablewrap{border:1px solid #e5eee7;border-radius:10px;margin-top:12px}
.admin-body .card th{background:#f2f7f3;color:#49675d;font-size:11px;font-weight:800}
.admin-body .card th,.admin-body .card td{padding:12px 13px}
.admin-body :is(button,.btn,input,select,textarea){border-radius:10px}
.admin-body button,.admin-body .btn{font-weight:750}
.admin-body .checkitem{background:#fcfefd}
.admin-body .flash,.admin-body .alert,.admin-body .badge-intro{border-radius:12px;line-height:1.85}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;border-radius:18px;padding:24px 26px;background:linear-gradient(120deg,#144e45,#0e3735);color:#fff;overflow:hidden;position:relative;margin-bottom:16px}
.dashboard-welcome::after{position:absolute;content:'';inset:0;opacity:.10;background-image:radial-gradient(circle at center,transparent 0 57%,#e1c994 58% 60%,transparent 61%);background-size:46px 46px;pointer-events:none}
.dashboard-welcome>div{z-index:1}
.dashboard-welcome .dashboard-eyebrow{display:inline-block;font-size:11px;font-weight:800;color:#dbb978;margin-bottom:9px}
.dashboard-welcome h2{color:#fff;font-size:clamp(21px,2.7vw,29px);margin:0 0 7px;line-height:1.4}
.dashboard-welcome p{color:#d2e6dc;font-size:12px;margin:0;max-width:550px;line-height:1.8}
.dashboard-welcome-mark{font-size:80px;color:#cda96f;opacity:.27;line-height:1;flex:none}
.daily-queue{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;padding:15px 20px;border:1px solid #dce8e0;background:#fff;border-radius:15px}
.daily-queue-eyebrow{font-size:10px;font-weight:800;color:#7d6030}
.daily-queue h2{font-size:18px;margin:4px 0;font-weight:800}
.daily-queue p{color:#5f746b;font-size:11px;margin:0;line-height:1.6}
.daily-queue-count{border-right:1px solid #dce8e0;min-width:115px;display:flex;align-items:center;gap:9px;flex-direction:column;padding-inline-start:17px}
.daily-queue-count strong{font-size:26px;color:#1a6756;line-height:1.2;font-variant-numeric:tabular-nums}
.daily-queue-count span{font-size:10px;color:#5f786d;white-space:nowrap}
.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}
.dashboard-stats .stat{display:flex;flex-direction:column;min-width:0;gap:9px;min-height:165px;padding:15px 17px 14px;text-decoration:none;color:#184338;transition:transform .17s,border-color .17s,box-shadow .17s;box-shadow:0 3px 13px #1e4d3905;border:1px solid #dfe9e2;border-radius:15px}
.dashboard-stats a.stat:hover,.dashboard-stats a.stat:focus-visible{transform:translateY(-2px);border-color:#97bbae;box-shadow:0 12px 25px #1e4d3917;outline:none}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stat-icon{width:30px;height:30px;border-radius:9px;background:#edf5ef;color:#1c6955;display:grid;place-items:center;font-size:19px;line-height:1}
.stat-action{color:#8aa29a;font-size:17px}
.stat-title{color:#4d6d62;font-size:12px;font-weight:800;line-height:1.55}
.dashboard-stats .stat strong{font-size:30px;font-weight:800;color:#164d41;margin-top:-5px;line-height:1.25;font-variant-numeric:tabular-nums}
.stat-foot{font-size:10px;color:#62786d;margin-top:auto;font-weight:650}
.stat-foot.urgent{color:#9a682d}
.dashboard-stats .stat-priority{border-color:#e9d9bd;background:linear-gradient(180deg,#fffef9,#fff)}
.dashboard-stats .stat-priority .stat-icon{background:#fbefd9;color:#9d7540}
.dashboard-workflow .dashboard-section-head,.iqama-review .dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.dashboard-workflow .dashboard-section-head h2,.iqama-review .dashboard-section-head h2{margin-bottom:1px}
.dashboard-workflow .dashboard-section-head p,.iqama-review .dashboard-section-head p{margin:0}
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}
.dashboard-shortcuts a{display:flex;gap:8px;align-items:center;border:1px solid #e0eae2;border-radius:11px;background:#f8fbf8;color:#1b5d4d;padding:11px;min-width:0;min-height:51px;font-size:11px;text-decoration:none}
.dashboard-shortcuts a:hover,.dashboard-shortcuts a:focus-visible{background:#e9f5ee;border-color:#a4cdb4}
.dashboard-shortcuts a>span:first-child{font-size:20px;flex:none;color:#a0814c}
.dashboard-shortcuts a b{flex:1;min-width:0;line-height:1.4}
.dashboard-shortcuts .shortcut-arrow{font-size:15px;flex:none}
.admin-body .card.dashboard-guide{padding:0;overflow:hidden}
.dashboard-guide summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 21px;font-weight:800;font-size:13px;list-style:none}
.dashboard-guide summary::-webkit-details-marker{display:none}
.dashboard-guide summary>span{font-size:11px;font-weight:700;color:#4f7566}
.dashboard-guide[open] summary{border-bottom:1px solid #e6ede8}
.dashboard-guide ol{padding:14px 45px 4px 20px;margin:0;line-height:2;color:#44645a;font-size:12px}
.dashboard-guide .small-note{margin:0;padding:0 21px 15px}
.iqama-review .dashboard-section-head .btn{font-size:11px;min-height:35px}
.admin-body .settings-sidebar{top:15px}
.admin-body .sidebar-backdrop{position:fixed;inset:0;background:#071f1e9a;z-index:99;backdrop-filter:blur(2px)}
@media(max-width:1150px) and (min-width:1001px){.admin-body .shell{grid-template-columns:235px minmax(0,1fr)}.admin-body .sidebar{width:235px}.admin-body .content{padding:23px 17px}.admin-body .top-actions .btn,.admin-body .top-actions button{padding:8px}}
@media(max-width:1000px){
 .admin-body .shell{display:block}
 .admin-body .sidebar{position:fixed;right:0;top:0;bottom:0;z-index:101;height:100dvh;width:min(310px,86vw);padding:18px 14px;transform:translateX(105%);transition:transform .2s ease;box-shadow:none}
 .admin-body.sidebar-open .sidebar{transform:translateX(0);box-shadow:-13px 0 32px #031f1e52}
 .admin-body.sidebar-open{overflow:hidden}
 .admin-body .sidebar-nav{display:block}
 .admin-body .sidebar-close,.admin-body .sidebar-toggle{display:grid;place-items:center}
 .admin-body .content{width:100%;padding:18px clamp(12px,3vw,24px) 36px}
 .admin-body .top{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:17px;padding-bottom:17px}
 .admin-body .top-actions{width:auto;display:flex;gap:7px}
 .admin-body .top-actions>a,.admin-body .top-actions>form{width:auto;min-width:0}
 .admin-body .top-actions>a,.admin-body .top-actions>form button{width:auto;padding:8px 12px;font-size:11px;min-height:38px}
 .admin-body .sidebar .logo{font-size:18px}
 .admin-body .sidebar .logo .admin-brand-icon{width:42px;height:42px}
 .admin-body .sidebar .nav-link{white-space:normal}
 .admin-body .sidebar .sidebar-version{display:block}
 .admin-body .settings-center{grid-template-columns:1fr}
}
@media(max-width:650px){
 .admin-body .top{align-items:flex-start}
 .admin-body .top-heading{width:100%;align-items:center}
 .admin-body .top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .admin-body .top-actions>a,.admin-body .top-actions>form,.admin-body .top-actions>form button{width:100%}
 .admin-body .top-actions a,.admin-body .top-actions button{padding:8px 5px;font-size:11px}
 .admin-body .top h1{font-size:clamp(18px,4.9vw,23px)}
 .admin-body .top small{font-size:11px}
 .admin-body .top .top-overline{font-size:10px}
 .dashboard-welcome{padding:18px 17px;border-radius:15px}
 .dashboard-welcome h2{font-size:22px}
 .dashboard-welcome-mark{font-size:50px}
 .daily-queue{padding:12px 14px}
 .daily-queue h2{font-size:16px}
 .daily-queue-count{min-width:83px;padding-inline-start:12px}
 .daily-queue-count span{font-size:9px;white-space:normal;text-align:center}
 .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .dashboard-stats .stat{min-height:147px;padding:11px 12px;gap:7px}
 .dashboard-stats .stat-title{font-size:11px}
 .dashboard-stats .stat strong{font-size:27px}
 .dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .admin-body .card{padding:14px}
 .admin-body .card h2{font-size:17px}
 .admin-body .top-actions .logout-button{background:#edf3f0;color:#245e50}
}
@media(max-width:360px){.admin-body .content{padding:11px 9px 30px}.admin-body .top{gap:9px}.dashboard-shortcuts a{padding:8px;font-size:10px}.dashboard-welcome p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.admin-body .sidebar,.dashboard-stats .stat{transition:none}}

/* v1.6.23 mosque status filter: server-scoped, no AJAX. */
.mosque-review-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 15px}
.mosque-review-pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #d9e6dd;color:#3e7160;padding:9px 12px;border-radius:10px;font-size:12px;font-weight:750;min-height:41px}
.mosque-review-pill b{font-variant-numeric:tabular-nums;background:#edf5f0;color:#1b6353;border-radius:8px;padding:1px 8px}
.mosque-review-pill.active{background:#165c50;border-color:#165c50;color:#fff}
.mosque-review-pill.active b{color:#124a3f;background:#cce7d6}
.mosque-review-pill:hover{border-color:#76ac98}
@media(max-width:550px){.mosque-review-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.mosque-review-pill{justify-content:space-between;padding:8px 9px;font-size:11px}}

/* ===================== v1.6.34 — components added by the panel overhaul ===================== */
/* Accessibility helpers */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-64px;inset-inline-start:12px;z-index:200;background:#fff;color:var(--deep);padding:10px 16px;border-radius:0 0 10px 10px;font-weight:800;box-shadow:0 4px 18px #0003;transition:top .15s}
.skip-link:focus{top:0}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6fa593;outline-offset:0}
button.is-busy,.is-busy{cursor:progress;opacity:.6}

/* Icons (SVG, currentColor) */
.ico{flex:none;display:block}
.nav-icon .ico{width:17px;height:17px}
.stat-icon .ico{width:19px;height:19px}
.shortcut-icon{display:grid;place-items:center;flex:none;color:#a0814c}
.shortcut-icon .ico{width:20px;height:20px}
.ico-wrap{display:inline-grid;place-items:center}
.ico-wrap .ico{width:16px;height:16px}

/* Sidebar badges and text */
.nav-text{flex:1;min-width:0}
.nav-badge{margin-inline-start:auto;min-width:22px;height:22px;padding:0 7px;border-radius:99px;background:#e6c06a;color:#3b2906;font-size:11px;font-weight:800;display:inline-grid;place-items:center;font-variant-numeric:tabular-nums;flex:none}

/* Page heading and section heads */
.page-desc{color:var(--muted);font-size:12px;line-height:1.7;margin:2px 0 0;max-width:70ch}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;margin-bottom:12px}
.section-head h2{margin:0}
.count-chip{display:inline-flex;align-items:center;gap:5px;background:#edf5f0;color:#1b6353;border-radius:99px;padding:3px 11px;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.count-chip.ok{background:#ddf4e6;color:#216039}
.empty-note{color:#216039;background:#eef8f1;border-radius:10px;padding:10px 14px;margin:0}

/* Lists and tables */
.empty-row td{text-align:center;color:var(--muted);padding:26px 12px}
.table-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 6px}
.table-filter input{max-width:340px;margin:0}
.table-filter-count{font-size:12px;color:var(--muted)}
.create-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 18px}
.create-bar form{display:contents}
.reason-input{flex:1;min-width:190px;margin:0;font-size:12px}
td .reason-input{min-width:150px;padding:7px 9px;min-height:36px}
.actions .reason-input{flex:1 1 170px}

/* Mosque page */
.mosque-summary .summary-links{margin-top:14px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:0}
.facts>div{background:#f6faf7;border:1px solid #e1ece5;border-radius:11px;padding:11px 14px;min-width:0}
.facts dt{font-size:11px;font-weight:800;color:var(--muted);margin-bottom:3px}
.facts dd{margin:0;font-weight:700;color:#173f37;overflow-wrap:anywhere}
.review-box{border-color:#e2cf9f;background:linear-gradient(180deg,#fffdf5,#fff 140px)}
.diff-table{min-width:0}
.diff-table td:first-child{white-space:nowrap;font-weight:800;color:#355b50;width:1%}
.diff-table td:nth-child(2){background:#fcf5f3;color:#6b4a43}
.diff-table td:nth-child(3){background:#f1f9f4}
.review-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-top:16px}
.review-actions>div[hidden]{display:none}
.reject-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;flex:1;min-width:min(100%,280px)}
.inline-label{flex:1;min-width:190px;font-size:12px}
.confirm-iqama{margin-top:10px}
details.form-section{border:1px solid #dbe7e0;border-radius:14px;margin:0 0 12px;background:#fcfefd}
details.form-section>summary{cursor:pointer;display:flex;align-items:center;gap:11px;padding:13px 16px;font-weight:800;font-size:14px;color:#164a40;list-style:none;min-height:48px}
details.form-section>summary::-webkit-details-marker{display:none}
details.form-section>summary::after{content:'▾';margin-inline-start:auto;color:#6f9486;transition:transform .2s}
details.form-section:not([open])>summary::after{transform:rotate(90deg)}
details.form-section>summary small{font-weight:500;color:var(--muted);font-size:11px}
details.form-section[open]>summary{border-bottom:1px solid #e5eee8}
details.form-section>:not(summary){margin-inline:16px}
details.form-section>:last-child{margin-bottom:16px}
details.form-section>summary+*{margin-top:14px}
.step-no{width:26px;height:26px;border-radius:50%;background:#dff0e7;color:#17604f;display:inline-grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.sticky-save{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px -6px -6px;padding:12px 6px;background:#ffffffee;backdrop-filter:blur(6px);border-top:1px solid var(--line);border-radius:0 0 12px 12px}
.supervisor-create-card{scroll-margin-top:14px}

/* Phone: tables become labelled cards; comfortable touch targets */
@media(max-width:700px){
 table.stacked{min-width:0}
 table.stacked thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 table.stacked,table.stacked tbody,table.stacked tr,table.stacked td{display:block;width:100%}
 table.stacked tr{border:1px solid var(--line);border-radius:12px;padding:4px 13px;margin:0 0 10px;background:#fff}
 table.stacked td{border:0;border-bottom:1px dashed #e3ece6;padding:9px 0;display:grid;grid-template-columns:minmax(82px,34%) minmax(0,1fr);gap:10px;align-items:start;overflow-wrap:anywhere}
 table.stacked td:last-child{border-bottom:0}
 table.stacked td[data-label]::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:800;line-height:1.9;grid-column:1;grid-row:1}
 table.stacked td>*{grid-column:2;min-width:0}
 table.stacked td form.inline{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%}
 table.stacked td button,table.stacked td .btn{white-space:nowrap}
 table.stacked td .reason-input{flex:1 1 100%;min-width:0}
 table.stacked td[colspan]{display:block;text-align:center}
 .diff-table td:first-child{width:100%;white-space:normal}
 .admin-body .card .tablewrap{border:0;margin-top:8px}
 .admin-body .card th,.admin-body .card td{padding:9px 0}
 .review-actions{flex-direction:column;align-items:stretch}
 .review-actions>div>form button,.reject-form button{width:100%}
 .sticky-save button{flex:1}
 details.form-section>:not(summary){margin-inline:12px}
}
@media(max-width:850px){
 input,select,textarea{font-size:16px}
 button,.btn{min-height:44px}
 td button{min-height:40px}
 .facts{grid-template-columns:1fr}
 .table-filter input{max-width:none;flex:1}
}
@media(max-width:1000px){
 .admin-body .sidebar-close{width:44px;height:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* ===== v1.6.33.16 — optional real mosque photo field (camera / file + preview) ===== */
.pc-field{position:relative;grid-column:1/-1;display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--pc-line,#d6e7db);border-radius:14px;background:var(--pc-bg,#f8fbf8)}
.pc-title{font-weight:800;color:var(--pc-ink,#0f4a3f);font-size:14px}
.pc-hint{margin:0;color:var(--pc-muted,#6a8077);font-size:12.5px;line-height:1.6}
.pc-body{display:flex;flex-direction:column;gap:10px}
.pc-actions{display:flex;flex-wrap:wrap;gap:8px}
.pc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 14px;border-radius:12px;border:1.5px solid var(--pc-line-strong,#a9c9b9);background:#fff;color:var(--pc-ink,#0f4a3f);font:inherit;font-size:13px;font-weight:800;cursor:pointer;flex:1 1 130px}
.pc-btn:hover,.pc-btn:focus-visible{background:#edf8f1;border-color:#5b9d85}
.pc-btn-camera{background:var(--pc-ink,#0f4a3f);border-color:var(--pc-ink,#0f4a3f);color:#fff}
.pc-btn-camera:hover,.pc-btn-camera:focus-visible{background:#176454;border-color:#176454}
.pc-btn-ok{background:#1c7a4e;border-color:#1c7a4e;color:#fff}
.pc-btn-ok:hover,.pc-btn-ok:focus-visible{background:#15663f;border-color:#15663f}
.pc-btn-quiet{border-color:transparent;background:transparent;color:#5d786d;flex:0 1 auto}
.pc-btn-danger{border-color:#e0b4ae;color:#9a2f24}
.pc-btn-danger:hover,.pc-btn-danger:focus-visible{background:#fdf0ee;border-color:#c9786d}
.pc-preview,.pc-thumb{margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--pc-line,#d6e7db);background:#fff}
.pc-preview img{display:block;width:100%;max-height:340px;object-fit:contain;background:#eef3ef}
.pc-thumb{display:flex;align-items:center;gap:12px;padding:8px}
.pc-thumb img{flex:none;width:86px;height:64px;object-fit:cover;border-radius:9px;background:#eef3ef}
.pc-preview figcaption,.pc-thumb figcaption{padding:8px 10px;font-size:12.5px;line-height:1.6;color:#4d695e;font-weight:700}
.pc-thumb figcaption{padding:0}
.pc-thumb-new{border-color:#9bd0b3;background:#f1faf4}
.pc-thumb-pending{border-color:#e2c88f;background:#fff9ec}
.pc-thumb-removing{opacity:.6}
.pc-thumb-removing img{filter:grayscale(1)}
.pc-busy,.pc-note{margin:0;font-size:13px;color:#4d695e}
.pc-status{margin:0;padding:8px 11px;border-radius:10px;background:#fdf0ee;border:1px solid #efc3bc;color:#8f2b20;font-size:12.5px;line-height:1.6}
.pc-status[hidden]{display:none}
.mosque-photo-summary{margin:0 0 12px;display:flex;align-items:center;gap:12px}
.mosque-photo-summary img{width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#eef3ef}
.mosque-photo-summary figcaption{font-size:12.5px;color:var(--muted);font-weight:700}
.photo-review{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 14px}
.photo-review>div{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafcfb}
.photo-review img{display:block;width:100%;max-height:230px;object-fit:contain;border-radius:8px;background:#eef3ef}
@media(max-width:560px){.photo-review{grid-template-columns:1fr}}
.suggestion-photo{margin:8px 0 0;display:flex;flex-direction:column;gap:4px;max-width:220px}
.suggestion-photo img{display:block;width:100%;max-height:160px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#eef3ef}
.suggestion-photo figcaption{font-size:12px;color:var(--muted)}

/* v1.6.33.21 — site themes (owner): list, editor and live preview */
.th-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.th-item{display:flex;gap:13px;align-items:center;border:1px solid #dae7e1;border-radius:13px;padding:12px;background:#fff;flex-wrap:wrap}
.th-item.is-hidden{background:#f7f8f6;opacity:.85}.th-item.is-editing{border-color:#1b6457;box-shadow:0 0 0 2px #1b645726}
.th-chip{flex:none;width:54px;height:54px;border-radius:14px;background:linear-gradient(135deg,var(--p) 58%,var(--a) 58%);box-shadow:inset 0 0 0 1px #0002}
.th-info{flex:1 1 150px;min-width:0}.th-info strong{display:block;font-size:15px;margin-bottom:5px}
.th-meta{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.th-meta code{font-size:11px;background:#f1f5f3;border-radius:6px;padding:1px 6px}
.th-actions{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 100%}.th-actions form{margin:0}.th-actions .btn,.th-actions button{padding:6px 11px;font-size:12px;min-height:34px}
.th-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:12px}
.th-form{display:grid;gap:13px}.th-form label{display:grid;gap:6px}
.th-color{display:flex;gap:8px;align-items:center}.th-color input[type=color]{width:52px;min-width:52px;height:42px;padding:3px;border-radius:9px;cursor:pointer}.th-color input[type=text],.th-color input:not([type=color]){flex:1;min-width:0;font-family:ui-monospace,Menlo,monospace}
.th-checks{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:12.5px}
.th-checks li{display:flex;gap:7px;align-items:flex-start;border-radius:9px;padding:7px 10px;background:#eef7f1;color:#216039}.th-checks li.bad{background:#ffebe7;color:#9a4337}
.thp{display:grid;gap:10px;position:sticky;top:12px}
.thp-page{--thp-deep:#043d35;--thp-primary:#06483f;--thp-mid:#19534d;--thp-link:#2e7662;--thp-soft:#eef7f1;--thp-line:#d8e4dc;--thp-accent:#d7aa5b;--thp-accent-soft:#f3e9d6;--thp-accent-deep:#9a7b44;--thp-page:#fbf8f1;--thp-text:#183732;
 background:var(--thp-page);border:1px solid #dae7e1;border-radius:16px;padding:12px;display:grid;gap:10px;color:var(--thp-text)}
.thp-hero{position:relative;overflow:hidden;border-radius:15px;padding:14px 16px 12px;background:linear-gradient(145deg,var(--thp-primary),var(--thp-deep));color:#fff;min-height:132px;display:grid;gap:6px;align-content:space-between}
.thp-dome{position:absolute;inset-inline-start:6%;top:-8px;width:44%;aspect-ratio:1/0.82;background:var(--thp-dome) left top/contain no-repeat;opacity:.95}
.thp-top{position:relative;display:flex;flex-direction:column;align-items:flex-end;text-align:end}.thp-top small{font-size:11px;opacity:.85}.thp-top b{font-size:28px;line-height:1.1}
.thp-plaque{position:relative;justify-self:center;background:var(--thp-plaque) center/100% 100% no-repeat;padding:9px 26px;color:#fff8e9;font-size:12px;font-weight:700;min-width:60%;text-align:center}
.thp-time{position:relative;font-size:18px;font-weight:800;opacity:.95}
.thp-welcome{background:var(--thp-soft);border:1px solid var(--thp-line);border-radius:13px;padding:11px;display:grid;gap:9px;text-align:center}
.thp-title{font-weight:800;font-size:14px;color:var(--thp-mid)}.thp-title em{font-style:normal;color:var(--thp-accent-deep)}
.thp-btns{display:flex;gap:7px;justify-content:center}.thp-btn{border-radius:10px;padding:7px 12px;font-size:12px;font-weight:700;border:1px solid var(--thp-line)}
.thp-btn.gold{background:linear-gradient(180deg,var(--thp-accent),var(--thp-accent-deep));color:var(--thp-primary);border-color:transparent}.thp-btn.light{background:#fff;color:var(--thp-primary)}
.thp-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.thp-cards span{background:#fff;border:1px solid var(--thp-line);border-radius:11px;padding:9px 4px;text-align:center;font-size:12px;font-weight:700;color:var(--thp-mid)}
.thp-cards .on{border-color:var(--thp-accent);box-shadow:0 0 0 1px var(--thp-accent)}.thp-cards .tint{background:var(--thp-soft)}
.thp-line{display:flex;gap:10px;align-items:center;font-size:12.5px}.thp-line a{color:var(--thp-link);font-weight:700}.thp-chip{background:var(--thp-accent-soft);color:var(--thp-accent-deep);border-radius:99px;padding:2px 9px;font-size:11px;font-weight:700}
.thp-ribbon{margin-inline-start:auto;width:22px;height:32px;background:var(--thp-ribbon) center/contain no-repeat}
.thp-swatches{display:flex;gap:6px;flex-wrap:wrap}.thp-swatches span{flex:1 1 56px;min-width:56px;border-radius:9px;padding:20px 4px 4px;font-size:10px;text-align:center;font-family:ui-monospace,Menlo,monospace;box-shadow:inset 0 0 0 1px #0002}
@media(max-width:900px){.th-list{grid-template-columns:minmax(0,1fr)}.th-editor{grid-template-columns:minmax(0,1fr)}.thp{position:static}}

/* v1.6.33.22 — confirmation dialog in the panel's own design (replaces the browser's confirm box) */
.confirm-dialog{border:0;padding:0;border-radius:18px;width:min(92vw,420px);max-width:92vw;background:#fff;color:var(--text);box-shadow:0 24px 70px #0a39375c;overflow:hidden}
.confirm-dialog::backdrop{background:#0a393785;backdrop-filter:blur(2px)}
.confirm-dialog[open]{animation:confirm-in .16s ease-out}
@keyframes confirm-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.confirm-body{display:flex;gap:14px;align-items:flex-start;padding:22px 22px 8px}
.confirm-icon{flex:0 0 40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;background:#f4ecd9;color:#8a6a2f;border:2px solid var(--gold)}
.confirm-dialog.is-danger .confirm-icon{background:#fbe9e7;color:var(--danger);border-color:#e7b9b4}
.confirm-copy h2{margin:2px 0 6px;font-size:17px;color:var(--deep)}
.confirm-copy p{margin:0;font-size:15px;line-height:1.85;color:var(--text);overflow-wrap:anywhere}
.confirm-actions{display:flex;gap:10px;padding:16px 22px 20px;justify-content:flex-start}
.confirm-actions button{min-height:44px;min-width:104px;font-size:15px}
.confirm-actions [data-confirm-ok]:focus-visible,.confirm-actions button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:480px){.confirm-actions{flex-direction:column-reverse}.confirm-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.confirm-dialog[open]{animation:none}}

/* v1.6.33.28 — the logo already says «أوّاب»: sidebar keeps only the subtitle */
.admin-body .sidebar .logo small{font-size:13px;margin-top:0;color:#d7e7e1;font-weight:600}

/* ===== v1.6.33.32 — tidy admin controls ===== */
/* on/off settings: one row — label on the right, switch + state on the left */
.settings-fields label.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc;cursor:pointer;font-weight:800;line-height:1.6}
.settings-fields label.setting-toggle:hover{border-color:#bcd3c8}
.setting-toggle-text{flex:1 1 auto;min-width:0}
.settings-fields .setting-toggle .switch{display:inline-flex;align-items:center;gap:9px;margin:0;flex:none}
.settings-detail .settings-fields label.setting-toggle input[type=checkbox],.settings-fields .setting-toggle input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;width:46px!important;min-width:46px;height:26px;margin:0;border-radius:999px;background:#cfdcd5;border:0;cursor:pointer;transition:background .2s;flex:none}
.settings-fields .setting-toggle input[type=checkbox]::after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}
.settings-fields .setting-toggle input[type=checkbox]:checked{background:var(--main)}
.settings-fields .setting-toggle input[type=checkbox]:checked::after{transform:translateX(-20px)}
.settings-fields .setting-toggle input[type=checkbox]:focus-visible{outline:3px solid #c5a16488;outline-offset:2px}
.switch-state{font-size:12px;font-weight:800;min-width:38px}
.switch-on{color:var(--main)}.switch-off{color:var(--muted)}
.setting-toggle input:checked~.switch-off,.setting-toggle input:not(:checked)~.switch-on{display:none}
@media(prefers-reduced-motion:reduce){.settings-fields .setting-toggle input[type=checkbox],.settings-fields .setting-toggle input[type=checkbox]::after{transition:none}}

/* action cells in stacked (mobile) tables: label on top, buttons in an even two-column grid */
table.stacked td:has(>.actions){display:block}
table.stacked td:has(>.actions)::before{display:block;margin-bottom:8px}
table.stacked td>.actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
table.stacked td>.actions>*{flex:1 1 calc(50% - 4px);min-width:0;margin:0}
table.stacked td>.actions>form.inline{display:flex;gap:8px}
table.stacked td>.actions button,table.stacked td>.actions .btn{width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.35;padding:9px 10px}
table.stacked td>.actions>form:has(.reason-input){flex-basis:100%}
table.stacked td>.actions>form:has(.reason-input) button{width:auto;flex:0 0 auto;min-width:96px}
table.stacked td>.actions>form:has(.reason-input) .reason-input{flex:1 1 auto;min-height:44px}
table.stacked td>.actions>form:has(.danger){order:10}
table.stacked td:has(>.actions:empty),table.stacked td:empty[data-label]{display:none}
.settings-detail .settings-fields label.setting-toggle input[type=checkbox]:checked,.settings-fields label.setting-toggle input[type=checkbox]:checked{background:var(--main)}

/* v1.6.33.33 — grouped permission editor */
.perm-editor{display:flex;flex-direction:column;gap:14px}
.perm-group{border:1px solid var(--line);border-radius:14px;padding:12px 14px 14px;margin:0;background:#fbfdfc;min-width:0}
.perm-group legend{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0 4px;font-weight:800;color:var(--deep)}
.perm-group legend>span{font-size:15px}
.perm-all{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--main);cursor:pointer;white-space:nowrap}
.perm-group .checkgrid{margin-top:6px}
.perm-group .checkitem{display:flex;align-items:flex-start;gap:9px;line-height:1.6}
.perm-group .checkitem input{margin-top:4px;flex:none}
.perm-tag{display:inline-block;margin-inline-start:4px;padding:0 7px;border-radius:99px;background:#f3ead9;color:#7a5a22;font-size:11px;font-style:normal;font-weight:800;line-height:1.8;white-space:nowrap}

/* v1.6.33.35 — TV display link on the mosque page */
.tv-link-box{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) auto;gap:12px;align-items:center;margin-top:14px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc}
.tv-link-box strong{display:block;font-weight:800;color:var(--deep)}
.tv-link-box small{display:block;margin-top:3px;color:var(--muted);line-height:1.6}
.tv-link-url{width:100%;min-height:42px;font-size:13px}
.tv-link-actions{display:flex;gap:8px}
.tv-link-actions .btn,.tv-link-actions button{white-space:nowrap;min-height:42px}
@media(max-width:820px){.tv-link-box{grid-template-columns:1fr}.tv-link-actions>*{flex:1 1 0;justify-content:center;text-align:center}}

/* adhan audio uploads */
.adhan-upload{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.adhan-upload audio{width:100%;height:42px}
.adhan-upload form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.adhan-upload input[type=file]{flex:1 1 220px;min-width:0}
.adhan-upload form button{flex:0 0 auto}

/* v1.6.33.45 — mosque page: which button saves what */
.save-guide{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.save-guide-item{display:flex;flex-direction:column;gap:3px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:#fff;text-decoration:none;color:inherit;border-inline-start:4px solid #8aa}
.save-guide-item b{font-size:14px}
.save-guide-item span{font-size:12px;color:var(--muted);line-height:1.6}
.save-guide-item.live{border-inline-start-color:#1f8a5b}
.save-guide-item.review{border-inline-start-color:#c08a1e}
.save-zone{scroll-margin-top:14px}
.save-zone.zone-live{border-top:4px solid #1f8a5b}
.save-zone.zone-review{border-top:4px solid #c08a1e}
.zone-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800}
.zone-chip.live{background:#e1f4ea;color:#17673f}
.zone-chip.review{background:#fbf0d9;color:#8a5a00}
.zone-save{display:flex;margin-top:14px}
.zone-save button{flex:1;background:#1f8a5b}
.confirm-iqama{margin-top:8px;display:flex}
.confirm-iqama button{flex:1}
.zone-review .sticky-save button[type=submit]{background:#b07a12}
.sticky-save .save-scope{flex-basis:100%;font-size:11.5px}
.sticky-save .dirty-note{color:#a3530a;font-weight:800;font-size:12.5px}
.sticky-save.is-dirty{background:#fff7e6f2;border-top-color:#e2b356}
.sticky-save [hidden]{display:none!important}
.iqama-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px 14px}
.iqama-row{display:grid;grid-template-columns:62px minmax(0,1.3fr) minmax(0,1fr);gap:8px;align-items:center;padding:6px 10px;border:1px solid #e3ece6;border-radius:10px;background:#fcfefd}
.iqama-name{font-weight:800;font-size:13.5px;color:#164a40}
.iqama-row select,.iqama-row input{margin:0;min-width:0;width:100%}
@media(max-width:700px){
 .save-guide{grid-template-columns:1fr}
 .iqama-rows{grid-template-columns:1fr}
 .iqama-row{grid-template-columns:54px minmax(0,1.4fr) minmax(0,1fr);padding:6px 8px}
}
@media(max-width:700px){
 .mosque-form .basics-grid{grid-template-columns:1fr 1fr;gap:10px}
 .mosque-form .basics-grid label{font-size:12.5px}
 .mosque-form .basics-grid .wide{grid-column:1/-1}
}
.sticky-save #mosqueSubmitFeedback.is-error{color:#b42318;font-weight:800;flex-basis:100%}

/* v1.6.33.59 — mosque list: search + cascading filters, supervisor names */
.mosque-search{display:grid;gap:12px;padding:14px 16px}
.mosque-search .ms-q{display:flex;gap:8px;align-items:stretch}
.mosque-search .ms-q input{flex:1;min-width:0;margin:0}
.mosque-search .ms-q button{flex:none;padding-inline:20px}
.mosque-search .ms-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.mosque-search .ms-row label{font-size:12px;min-width:0}
.mosque-search .ms-row select{margin-top:5px}
.mosque-search .ms-row select:disabled{background:#f3f7f5;color:#7c978f}
.mosque-search .ms-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.mosque-search .ms-foot .btn{min-height:38px;padding:8px 14px;font-size:13px}
.sup-name{display:block;line-height:1.7}
.sup-name.off{color:var(--muted)}
@media(max-width:700px){.mosque-search .ms-row{grid-template-columns:repeat(2,minmax(0,1fr))}.mosque-search .ms-foot .btn{width:100%}}
.danger-zone{border:1px solid var(--danger)}
.danger-zone h2{color:var(--danger)}
.delete-requests .dreq{border:1px solid var(--line,#d6e3dd);border-radius:14px;padding:14px;margin-top:12px;background:#fff}
.dreq-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.dreq-meta{margin-top:6px;color:#5d756e;font-size:.9rem}
.dreq-reason{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fbf3f1;border-inline-start:4px solid var(--danger);line-height:1.8}
.dreq-label{display:block;font-weight:700;font-size:.85rem;color:var(--danger);margin-bottom:2px}
.danger-zone textarea{min-height:84px;resize:vertical}
.danger-zone form.inline{display:block;width:100%}
.danger-zone form.inline button{margin-top:10px}
.delete-requests .actions .reason-input{flex:1 1 200px}
@media(max-width:700px){.delete-requests .actions>form{flex:1 1 100%}.delete-requests .actions>form:has(.reason-input){display:flex;gap:8px}.delete-requests .actions button{min-height:44px}}
.delete-requests .actions>form:has(.reason-input) button{flex:0 0 auto;white-space:nowrap;min-width:96px}

/* v1.6.33.72 — TV notices */
.tvn-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.tvn-item{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;flex-wrap:wrap}
.tvn-item.is-editing{border-color:var(--gold,#d7aa5b);box-shadow:0 0 0 2px #d7aa5b55}
.tvn-dot{flex:none;width:14px;height:44px;border-radius:8px}
.tvn-info{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:4px}
.tvn-info small{color:var(--muted,#667)}
.tvn-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:18px;align-items:start}
.tv-sec{padding:0;margin-bottom:12px;overflow:hidden}
.tv-sec>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.tv-sec>summary::-webkit-details-marker{display:none}
.tv-sec>summary h2{margin:0;font-size:1.05rem;flex:1}
.tv-sec-ico{font-size:1.4rem;line-height:1}
.tv-sec-chev{width:10px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-inline-start:4px;transition:transform .2s;opacity:.6;flex:none}
.tv-sec[open]>summary .tv-sec-chev{transform:rotate(-135deg)}
.tv-sec[open]>summary{border-bottom:1px solid var(--line,#e6e0d2)}
.tv-sec-body{padding:14px 16px 16px}
.tv-btnrow{display:flex;gap:10px;align-items:stretch;margin-top:12px}
.tv-btnrow>*{flex:1 1 0;margin:0}
.tv-btnrow form{display:flex}
.tv-btnrow button{width:100%;min-height:44px;margin:0}
.tvn-group{border:1px solid var(--line,#e6e0d2);border-radius:14px;padding:12px 14px 6px;margin:0 0 12px;min-width:0}
.tvn-group legend{padding:0 8px;font-weight:800;font-size:.95rem}
.tvn-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.tvn-seg label{display:block;margin:0;cursor:pointer;position:relative}
.tvn-seg input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;min-height:0;margin:0;inset-inline-start:0;top:0}
.tvn-seg span{display:flex;flex-direction:column;gap:2px;text-align:center;padding:8px 6px;border:1.5px solid var(--line,#ddd);border-radius:12px;background:#fff;height:100%}
.tvn-seg span b{font-size:.92rem}.tvn-seg span small{font-size:.72rem;color:var(--muted,#667);line-height:1.3}
.tvn-seg input:checked+span{border-color:#d7aa5b;background:#fff7e0;box-shadow:0 0 0 2px #d7aa5b55}
.tvn-seg input:focus-visible+span{outline:2px solid #2a6fb0;outline-offset:2px}
.tvn-pane[hidden]{display:none}
.tvn-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px}
.tvn-two>label,.tvn-group label{min-width:0}
.tvn-group input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.tvn-group select{max-width:100%;min-width:0;box-sizing:border-box}
.tvn-group input[type=date],.tvn-group input[type=time],.tvn-group input[type=datetime-local]{width:100%;-webkit-appearance:none;appearance:none;min-height:44px}
@media(max-width:420px){.tvn-two{grid-template-columns:minmax(0,1fr)}}
.tvn-quick{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 8px}
.tvn-quick button{padding:4px 10px;min-height:0;font-size:.9rem;display:inline-flex;align-items:center;gap:6px}
.tvn-quick button i{width:14px;height:14px;border-radius:50%;display:inline-block}
.tv-jump{display:flex;gap:8px;margin:0 0 12px;position:sticky;top:0;z-index:5;padding:8px 2px;background:var(--bg,#f6f3ec);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.tv-jump::-webkit-scrollbar{display:none}
.tv-jump a{flex:1 1 0;min-width:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;border:1px solid var(--line,#ddd);border-radius:12px;background:#fff;color:inherit;text-decoration:none;font-weight:800;font-size:.8rem;line-height:1.2;text-align:center;white-space:nowrap;scroll-snap-align:start}
.tv-jump a i{font-style:normal;font-size:1.3rem;line-height:1}
.tv-jump a:hover,.tv-jump a:focus-visible{border-color:#d7aa5b;box-shadow:0 0 0 2px #d7aa5b44}
#tv-buttons,#adhan-audio,#tv-notices,#notice-form{scroll-margin-top:64px}
.tvn-stage{background:linear-gradient(135deg,#06594d,#043d35);border-radius:16px;padding:22px 12px;display:flex;flex-direction:column;align-items:center;gap:12px}
.tvn-p-tak{font:inherit;font-weight:800;font-size:.95rem;color:#f3d796;background:#043d35;border:2px solid #d7aa5b;border-radius:999px;padding:6px 20px;min-height:0;cursor:default}
.tvn-p-tak[hidden]{display:none}
.tvn-preview{align-self:center}
input[type=range]{width:100%}
.tvn-preview{width:calc(var(--wk,1) * 55%);max-width:100%;background:var(--nbg,#fbf8f1);color:var(--ntx,#043d35);border-radius:18px;padding:18px 22px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;box-shadow:inset 9px 0 0 var(--nc,#d7aa5b),inset -9px 0 0 var(--nc,#d7aa5b),0 6px 18px #0002;min-height:150px;justify-content:center}
.tvn-p-media{font-size:2.6rem;line-height:1}
.tvn-p-media img{display:block;width:96px;height:96px;max-width:none;max-height:none;border-radius:10px;object-fit:contain}
.tvn-preview b{font-size:1.25rem}
.tvn-preview span{opacity:.85}
.tvn-preview-wrap{position:sticky;top:76px}
@media(max-width:820px){.tvn-editor{grid-template-columns:1fr}.tvn-preview-wrap{order:-1;position:static}}
