/* ===== Lusail theme for the tracking and staff pages (matches lusailhajj.com) ===== */
:root{--gold:#d7af58;--gold2:#f0d48e;--cream:#f6f0e7;--maroon:#8a1538;--muted:#bdb3a3;--line:rgba(215,175,88,.26);--ink:#0d1015;--panel:#15181d;--panel2:#1b1e24}
body{font-family:'Alexandria',Tahoma,Arial,sans-serif;background:radial-gradient(circle at 12% 12%,rgba(215,175,88,.08),transparent 28%),radial-gradient(circle at 88% 80%,rgba(138,21,56,.08),transparent 30%),#0d1015;background-attachment:fixed;color:#fff;font-size:15px;line-height:1.8}
body:before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.22;mix-blend-mode:screen;filter:saturate(.9) brightness(1.4);background-size:300px 300px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23D7AF58' stroke-opacity='.18' stroke-width='1.15'%3E%3Cpath d='M110 18l19 27 33-6-6 33 27 19-27 19 6 33-33-6-19 27-19-27-33 6 6-33-27-19 27-19-6-33 33 6z'/%3E%3Cpath d='M110 46l12 17 21-4-4 21 17 12-17 12 4 21-21-4-12 17-12-17-21 4 4-21-17-12 17-12-4-21 21 4z'/%3E%3C/g%3E%3C/svg%3E")}
main{position:relative;z-index:2}
input,select,textarea,button{font-family:inherit}

/* brand bar (same as the registration page) */
.brandbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(1000px,calc(100% - 28px));margin:18px auto 0;padding:8px 14px;border-radius:999px;background:linear-gradient(180deg,rgba(22,22,24,.86),rgba(10,10,12,.72));border:1px solid rgba(215,175,88,.24);box-shadow:0 16px 44px rgba(0,0,0,.28)}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.brand-logo{width:48px;height:48px;object-fit:contain}
.brand-text b{display:block;font-size:14px;font-weight:800}
.brand-text small{display:block;color:#d8cdb8;font-size:10px}
.brand-back{padding:8px 14px;border-radius:999px;font-size:12px;font-weight:800;color:#fff8ed;text-decoration:none;background:linear-gradient(135deg,rgba(138,21,56,.78),rgba(48,9,23,.68));border:1px solid rgba(240,212,142,.46)}

/* headings */
.eyebrow,.topbar small{color:var(--gold2)!important;font-size:12px;font-weight:900;letter-spacing:0}
h1,.topbar h1{font-size:clamp(22px,2.8vw,32px)!important;font-weight:900;line-height:1.3;margin:4px 0 12px}
h1 em{font-style:normal;color:var(--gold)}
h2{font-size:clamp(18px,2vw,23px)!important;font-weight:900}
h3{color:var(--gold2)}
header,.topbar{border-bottom-color:rgba(215,175,88,.2)!important}
.notice{border-radius:14px!important;border:1px solid rgba(240,212,142,.3)!important;background:linear-gradient(135deg,rgba(215,175,88,.14),rgba(215,175,88,.04))!important;color:#f0d48e!important;font-size:13px;font-weight:700}

/* glass cards */
.glass-card,.card,.admin-card,.profile-card,#detail,.login-card{border:1px solid rgba(255,255,255,.13)!important;border-radius:26px!important;background:linear-gradient(180deg,rgba(24,26,30,.78),rgba(8,10,13,.62))!important;box-shadow:0 20px 60px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.08)!important;backdrop-filter:blur(24px) saturate(130%);-webkit-backdrop-filter:blur(24px) saturate(130%)}
.compact-form,.stat,.person,.team-member,.doc-section,#decision,#assignment,.documents-save,.action{border:1px solid rgba(255,255,255,.1)!important;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02))!important}
.profile-card{background:radial-gradient(circle at 85% 0,rgba(215,175,88,.14),transparent 40%),linear-gradient(145deg,rgba(88,13,42,.55),rgba(31,7,17,.5))!important}
.glass-card h2,.status,.stat strong,.action h3{color:var(--gold)!important}
.status-chip{border-color:rgba(240,212,142,.4)!important;background:rgba(215,175,88,.1)!important;color:var(--gold2)!important}

/* fields */
label{color:#e9dcc2}
input,select,textarea{border-radius:14px!important;border:1px solid rgba(240,212,142,.28)!important;background-color:rgba(8,10,13,.62)!important;color:#fff!important}
input:focus,select:focus,textarea:focus{outline:0!important;border-color:var(--gold2)!important;box-shadow:0 0 0 3px rgba(215,175,88,.18)!important}
.application-number span,.tracking-input span{border-color:rgba(240,212,142,.4)!important;background:rgba(215,175,88,.1)!important;color:var(--gold2)!important}
.application-number input,.tracking-input input{border-radius:0 14px 14px 0!important}

/* buttons */
button{border-radius:14px!important}
.primary{color:#fff8ed!important;background:linear-gradient(135deg,rgba(138,21,56,.9),rgba(48,9,23,.8))!important;border:1px solid rgba(240,212,142,.46)!important;box-shadow:0 12px 30px rgba(70,8,28,.28),inset 0 1px 0 rgba(255,255,255,.14)}
.primary:hover{background:linear-gradient(135deg,rgba(160,28,66,.95),rgba(60,12,29,.85))!important}
.ghost,.pagination button,#refresh{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important}
.danger{background:rgba(138,21,56,.3)!important;border-color:rgba(255,120,150,.5)!important}

/* tables */
.scroll{border-color:rgba(255,255,255,.1)!important;border-radius:18px}
th{background:rgba(215,175,88,.08)!important;color:var(--gold2)!important}
th,td{border-bottom-color:rgba(255,255,255,.08)!important}
tbody tr:hover{background:rgba(215,175,88,.06)!important}

#message{color:var(--gold2)!important}
.page-foot{margin-top:26px;text-align:center;color:var(--muted);font-size:13px}
.page-foot a{color:var(--gold2)}
@media(max-width:650px){.brandbar{border-radius:22px;margin-top:10px;padding:8px 10px}.brand-logo{width:40px;height:40px}.brand-back{font-size:11px;padding:7px 11px}}
body > main{padding-top:30px!important}
body:has(.topbar) .brandbar{width:min(1224px,calc(100% - 56px))}
.delete-application{margin:10px 8px 18px;padding:11px 18px!important;color:#ffd6de!important}
.stats-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
.stat-hint{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.member-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.member-actions button{padding:7px 10px!important;font-size:13px}
.member-actions [data-rename-staff]{color:#f0d48e!important;border-color:rgba(240,212,142,.4)!important;background:rgba(215,175,88,.08)!important}
@media(max-width:650px){
  input,select,textarea{font-size:16px!important}
  .brand-back{min-height:40px;display:inline-flex;align-items:center}
  .primary,button{min-height:46px}
  .glass-card,.card,.admin-card,.login-card,#detail{padding:18px 14px!important}
}

/* Logo: hover glow, press feedback */
.brand .brand-logo{transition:transform .6s cubic-bezier(.2,.8,.2,1),filter .6s ease}
.brand:hover .brand-logo,.brand:focus-visible .brand-logo{transform:scale(1.1) rotate(-6deg);filter:drop-shadow(0 0 10px rgba(240,212,142,.8)) drop-shadow(0 8px 16px rgba(0,0,0,.35))}
.brand b{transition:color .3s ease}.brand:hover b{color:#f0d48e}
.brand:active .brand-logo{transform:scale(.94)}
@media(prefers-reduced-motion:reduce){.brand .brand-logo{transition:none}}

/* Staff: search + export */
.req-actions{display:flex;gap:10px;flex-wrap:wrap}
.req-search{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 18px}
.req-search input{flex:1 1 280px;margin:0!important}
.search-note{margin:0 0 12px;color:var(--gold2)}

/* Tracking: status steps */
.track-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0 8px;padding:0;list-style:none;counter-reset:s}
.track-steps li{position:relative;text-align:center;font-size:12px;color:rgba(255,248,236,.55);padding-top:44px}
.track-steps li:before{content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.07);border:2px solid rgba(255,255,255,.18)}
.track-steps li:after{content:"";position:absolute;top:20px;right:calc(50% + 17px);width:calc(100% - 26px);height:2px;background:rgba(255,255,255,.12)}
.track-steps li:first-child:after{display:none}
.track-steps li.done{color:#f3e9d6}
.track-steps li.done:before{background:linear-gradient(135deg,#d7af58,#a9863d);border-color:#f0d48e;box-shadow:0 0 14px rgba(215,175,88,.45)}
.track-steps li.done:after{background:linear-gradient(90deg,#8a1538,#d7af58)}
.track-steps li.current{color:#fff;font-weight:800}
.track-steps li.current:before{background:#8a1538;border-color:#f0d48e;box-shadow:0 0 0 6px rgba(215,175,88,.18);animation:trackPulse 1.8s ease-in-out infinite}
.track-steps li.warn:before{background:#b8741a;border-color:#ffc56b}
.track-steps li.stop:before{background:#6b1a24;border-color:#ff8fa3}
@keyframes trackPulse{50%{box-shadow:0 0 0 10px rgba(215,175,88,.05)}}
@media(max-width:560px){.track-steps{grid-template-columns:repeat(4,1fr);gap:4px}.track-steps li{font-size:10.5px}}
@media(prefers-reduced-motion:reduce){.track-steps li.current:before{animation:none}}

/* Assign from the list */
.assign-select{min-width:190px;max-width:260px;margin:0!important;padding:9px 12px!important;font-size:14px!important}
.assign-select.assign-saved{border-color:#7dd3a0!important;box-shadow:0 0 0 3px rgba(125,211,160,.2)!important}

/* Status filter + contact links */
.status-filter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.status-filter .sf{padding:8px 13px!important;min-height:0!important;border-radius:999px!important;font-size:13px;background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e9dcc2}
.status-filter .sf b{display:inline-block;margin-inline-start:6px;padding:0 7px;border-radius:99px;background:rgba(215,175,88,.18);color:var(--gold2);font-size:12px}
.status-filter .sf.active{background:linear-gradient(135deg,rgba(138,21,56,.9),rgba(48,9,23,.85))!important;border-color:rgba(240,212,142,.6)!important;color:#fff}
.wa-link{display:inline-block;margin-inline-start:8px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;text-decoration:none;color:#f0d48e;background:rgba(215,175,88,.12);border:1px solid rgba(240,212,142,.4)}
.wa-link:hover{background:rgba(215,175,88,.22)}
@media(max-width:650px){.status-filter{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.status-filter .sf{white-space:nowrap}}

.add-staff-hint{padding:7px 12px!important;min-height:0!important;border-radius:999px!important;font-size:13px;background:rgba(215,175,88,.1)!important;border:1px dashed rgba(240,212,142,.5)!important;color:var(--gold2)!important}

/* Collapsible "add staff" + my account */
#staff-admin .admin-columns{align-items:start}
.add-staff-box{border:1px solid rgba(240,212,142,.25);border-radius:18px;background:rgba(255,255,255,.03);overflow:hidden}
.add-staff-box>summary{cursor:pointer;list-style:none;padding:14px 18px;font-weight:800;color:var(--gold2);display:flex;align-items:center;justify-content:space-between}
.add-staff-box>summary::-webkit-details-marker{display:none}
.add-staff-box>summary:after{content:"▾";transition:transform .25s ease;font-size:18px}
.add-staff-box[open]>summary:after{transform:rotate(180deg)}
.add-staff-box>form{border:0!important;border-top:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;background:none!important;margin:0}
.add-staff-box #add-staff{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.add-staff-box #add-staff #role-help,.add-staff-box #add-staff button{grid-column:1/-1}
@media(max-width:650px){.add-staff-box #add-staff{grid-template-columns:1fr}}
.account-tools{margin-top:14px;display:grid;gap:10px}
.account-tools #pw-toggle{justify-self:start}
.temp-note{margin:0;padding:10px 14px;border-radius:12px;background:rgba(184,116,26,.18);border:1px solid rgba(255,197,107,.45);color:#ffd99a;font-weight:700;font-size:14px}
.pw-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;padding:14px;border-radius:14px;background:rgba(0,0,0,.2);border:1px solid rgba(240,212,142,.2)}
.pw-form .pw-actions{grid-column:1/-1;display:flex;gap:10px}
@media(max-width:760px){.pw-form{grid-template-columns:1fr}}

/* Team section: fold from the header + alignment */
.team-toggle{display:flex!important;width:100%;align-items:center!important;justify-content:space-between;gap:16px;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important;color:inherit!important;text-align:right;cursor:pointer;font:inherit}
.team-toggle:hover{transform:none!important}
.team-title{display:block}
.team-title h2{margin:2px 0 0}
.team-title h2 small{font-size:15px;color:var(--gold2);font-weight:700;margin-inline-start:6px}
.team-chevron{flex:0 0 42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:20px;color:var(--gold2);background:rgba(215,175,88,.1);border:1px solid rgba(240,212,142,.35);transition:transform .25s ease}
#staff-admin:not(.collapsed) .team-chevron{transform:rotate(180deg)}
#staff-admin.collapsed #team-body{display:none}
#team-body{margin-top:22px}
#staff-admin .admin-columns{align-items:start!important}
#staff-admin .team-list{margin-top:0!important}
#staff-admin .team-list ul{margin:0}
#staff-admin .add-staff-box>summary{min-height:56px;box-sizing:border-box}
#staff-admin .team-member{min-height:56px}
#staff-admin .team-list{border:0!important;padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
#staff-admin .team-list ul{gap:10px!important}

.lost-code{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:var(--gold2)!important}
/* Last activity + internal notes */
.ago{white-space:nowrap;color:#e9dcc2}
.ago.stale{color:#ffb35c;font-weight:800}
.notes-card{margin:18px 0;padding:20px 22px;border-radius:18px;background:rgba(215,175,88,.06);border:1px dashed rgba(240,212,142,.4)}
.notes-head{display:flex;align-items:baseline;gap:10px}
.notes-head h3{margin:0}.notes-head small{color:var(--muted)}
.notes-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.notes-list li{padding:12px 14px;border-radius:12px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08)}
.notes-list li p{margin:0 0 4px;white-space:pre-wrap}
.notes-list li small{color:var(--muted);font-size:12px}
.notes-list li.muted{background:none;border:0;padding:0;color:var(--muted)}
.note-form{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.note-form textarea{flex:1 1 320px;margin:0!important;min-height:52px!important}

/* status path: each step connects to the one before it (no line hanging past the last step) */
.track-steps li:after{right:auto;left:calc(50% + 17px)}
/* the two lookup boxes line up */
.lookup-grid{align-items:start}
.lookup-grid .application-number,.lookup-grid .tracking-input{display:flex;align-items:stretch;min-height:62px;height:62px}
.lookup-grid .application-number>*,.lookup-grid .tracking-input>*{display:flex;align-items:center}
.lookup-grid .application-number input,.lookup-grid .tracking-input input{height:100%;min-height:0}

/* developer credit (small, quiet) */
.dev-credit{margin:10px 0 18px;text-align:center;font-size:12px;line-height:1.6;color:#8d8578}
.dev-credit a{color:inherit;font-weight:700;text-decoration:none;letter-spacing:.5px}
.dev-credit a:hover,.dev-credit a:focus-visible{color:#d7af58;text-decoration:underline}

/* staff: announcements for the pilgrims' app */
.ann-overlay{position:fixed;inset:0;z-index:1000;background:rgba(5,6,8,.6);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto}
.ann-overlay[hidden]{display:none}
.ann-box{width:min(720px,100%);background:#15171c;border:1px solid rgba(240,212,142,.35);border-radius:20px;padding:20px 22px;color:#efe6d6;box-shadow:0 30px 70px rgba(0,0,0,.5)}
.ann-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ann-head h2{margin:0;font-size:20px}
.ann-note{margin:8px 0 14px;color:#cfc5b4;font-size:14px;line-height:1.8}
.ann-form{display:grid;gap:12px;padding:14px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(240,212,142,.15)}
.ann-form label{display:grid;gap:6px;font-weight:700;font-size:14px}
.ann-form input,.ann-form textarea,.ann-form select{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border-radius:12px;border:1px solid rgba(240,212,142,.3);background:#0f1115;color:#efe6d6;font:inherit}
.ann-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ann-form .ann-check{display:flex;align-items:center;gap:10px;font-weight:600}.ann-form .ann-check input{width:20px;height:20px;min-height:0}
.ann-sub{margin:18px 0 8px;font-size:16px;color:#f0d48e}
.ann-list{display:grid;gap:8px}
.ann-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(240,212,142,.12)}
.ann-item p{margin:4px 0;color:#e3d9c8;line-height:1.7;white-space:pre-wrap}.ann-item small{color:#a99f90}
@media(max-width:600px){.ann-row{grid-template-columns:1fr}}

/* staff: manager dashboard */
.dash-box{width:min(980px,100%)}
.dash-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:6px 0 8px}
.dash-kpi{padding:14px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(240,212,142,.2);display:flex;flex-direction:column;gap:4px}
.dash-kpi b{font-size:30px;color:#f0d48e;line-height:1}.dash-kpi span{font-weight:700}.dash-kpi small{color:#a99f90}
.dash-stack{display:block;width:100%;height:18px;border-radius:99px;overflow:hidden;background:#2a2c33;margin:4px 0 10px}
.dash-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:14px}.dash-legend span{display:inline-flex;align-items:center;gap:6px}.dash-legend i{width:12px;height:12px;border-radius:4px;display:inline-block}.dash-legend b{color:#fff8ed}.dash-legend small{color:#a99f90}
.dash-list{display:grid;gap:8px}
.dash-row{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:right;padding:10px 14px;border-radius:14px;background:rgba(192,57,43,.08);border:1px solid rgba(192,57,43,.35);color:#efe6d6;font:inherit;cursor:pointer}
.dash-row small{display:block;color:#cfc5b4;margin-top:2px}.dash-row em{font-style:normal;font-size:12px;font-weight:800;color:#fff;padding:4px 10px;border-radius:99px;white-space:nowrap}
.dash-chart{padding:6px 0}.dash-chart svg{display:block;width:100%;height:auto;max-height:220px}
.dash-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:700px){.dash-kpis{grid-template-columns:repeat(2,1fr)}.dash-two{grid-template-columns:1fr}.dash-kpi b{font-size:26px}}
.dash-row em.st-New{background:#6b7a99}.dash-row em.st-Under-Review{background:#4b8bbe}.dash-row em.st-Missing-Document{background:#c0392b}.dash-row em.st-Reviewed{background:#8e6cc4}.dash-row em.st-Accepted{background:#2e9e6b}.dash-row em.st-Waitlist{background:#b8912f}.dash-row em.st-Rejected{background:#7a7a7a}

/* family reassurance page */
.family-page{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 0%,#2a0c16 0%,#0d1015 55%);color:#efe6d6;font-family:Alexandria,Tahoma,sans-serif}
.fam{max-width:480px;margin:0 auto;padding:40px 18px 24px;text-align:center}
.fam-logo{border-radius:18px}.fam-eyebrow{color:#d7af58;font-weight:800;margin:10px 0 16px}
.fam-card{padding:26px 20px;border-radius:24px;background:#15171c;border:1px solid rgba(240,212,142,.35)}
.fam-card h1{margin:4px 0 10px;font-size:34px;color:#fff8ed}
.fam-status{font-size:20px;font-weight:800;color:#f0d48e;margin:0 0 10px}
.fam-muted{color:#cfc5b4;margin:0}
.fam-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.fam-btn{display:grid;place-items:center;min-height:48px;border-radius:14px;background:linear-gradient(135deg,#f0d48e,#c89b45);color:#1f1506;font-weight:900;text-decoration:none}
.fam-btn.ghost{background:transparent;border:1px solid rgba(240,212,142,.5);color:#f0d48e}
.fam-note{margin:16px 6px;color:#a99f90;font-size:13px;line-height:1.8}
.totp-key{font-size:22px;font-weight:800;letter-spacing:2px;color:#f0d48e;background:#0f1115;border:1px dashed rgba(240,212,142,.5);border-radius:12px;padding:12px;text-align:center;word-break:break-all}
#totp-on{display:grid;gap:10px}

/* staff: tabs */
.admin-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid rgba(240,212,142,.18)}
.admin-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#cfc5b4;font:inherit;font-size:15px;font-weight:600;cursor:pointer;box-shadow:none}
.admin-tabs button[aria-current="page"]{color:#f0d48e;font-weight:800;border-bottom-color:#d7af58}
.admin-tabs button:hover{color:#f0d48e}
.admin-tabs button[hidden]{display:none}
.tab-off{display:none!important}
.tab-page{display:block}.tab-page[hidden]{display:none}
.tab-page .ann-box{width:100%;box-sizing:border-box;box-shadow:none;margin:0}
.req-actions{display:flex;gap:10px;align-items:flex-start}
.icon-btn{width:48px;min-width:48px;padding:0!important;font-size:20px}
.dl-menu{position:relative}
.dl-list{position:absolute;top:calc(100% + 8px);left:0;z-index:20;width:250px;padding:8px;border-radius:16px;background:#1a1c22;border:1px solid rgba(240,212,142,.35);box-shadow:0 20px 40px rgba(0,0,0,.5);display:grid;gap:4px}
.dl-list[hidden]{display:none}
.dl-list button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:12px;border-radius:10px;border:0;background:transparent;color:#fff8ed;text-align:right;font:inherit;cursor:pointer}
.dl-list button:hover,.dl-list button:focus-visible{background:rgba(215,175,88,.12)}
.dl-list small{color:#a99f90;font-size:12px}
@media(max-width:700px){
  .admin-tabs{position:fixed;left:0;right:0;bottom:0;z-index:1000;margin:0;padding:6px 4px calc(10px + env(safe-area-inset-bottom,0px));flex-wrap:nowrap;overflow-x:auto;background:#111317;border-top:1px solid rgba(240,212,142,.25);border-bottom:0}
  .admin-tabs button{flex:1 0 auto;min-height:52px;padding:0 10px;font-size:12px;border-bottom:0;border-top:3px solid transparent}
  .admin-tabs button[aria-current="page"]{border-top-color:#d7af58}
  body{padding-bottom:84px}
  .dl-list{left:auto;right:0}
}
@media(max-width:700px){
  .requests-card #list table,.requests-card #list tbody,.requests-card #list tr,.requests-card #list td{display:block;width:auto;min-width:0!important;max-width:100%}
  .requests-card #list thead{display:none}
  .requests-card #list tr{margin:0 0 10px;padding:12px 14px;border-radius:16px;background:#15171c;border:1px solid rgba(240,212,142,.14)}
  .requests-card #list td{padding:3px 0;border:0;text-align:right}
  .requests-card #list td:first-child{font-weight:800;font-size:16px;color:#fff8ed}
  .requests-card #list td[data-l]:not(:first-child)::before{content:attr(data-l) ": ";color:#a99f90;font-size:12px}
  .requests-card #list td:last-child button{width:100%;margin-top:8px}
  .requests-card .scroll{overflow:visible}
}
body:has(#workspace[hidden]) .admin-tabs{display:none}
@media(max-width:700px){
  .admin-tabs{overflow:hidden}
  .admin-tabs button{flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:2px;padding:0 2px;font-size:10.5px;line-height:1.2;white-space:normal;text-align:center}
}

/* staff: line icons in the campaign style (gold strokes, like the website) */
.ico{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-4px}
.ico-sm{width:16px;height:16px}
.admin-tabs .ico{width:21px;height:21px;color:#b89a5c}
.admin-tabs button[aria-current="page"] .ico,.admin-tabs button:hover .ico{color:#f0d48e}
#dl-toggle{display:inline-flex;align-items:center;gap:8px}
.icon-btn .ico{width:22px;height:22px;vertical-align:middle}
.dl-list b{display:inline-flex;align-items:center;gap:8px}.dl-list .ico{color:#d7af58}
.ann-head h2,.ann-sub{display:flex;align-items:center;gap:10px}
.ann-head h2 .ico{width:26px;height:26px;color:#d7af58}.ann-sub .ico{width:20px;height:20px;color:#d7af58}
@media(max-width:700px){.admin-tabs .ico{width:22px;height:22px}}

/* staff: notes marker + system health */
.note-mark{display:inline-flex;align-items:center;gap:2px;margin-inline-start:8px;padding:2px 7px;border-radius:99px;background:rgba(215,175,88,.16);border:1px solid rgba(240,212,142,.45);color:#f0d48e;vertical-align:middle;cursor:help}
.note-mark b{font-size:11px}
.hl-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.hl-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(240,212,142,.14)}
.hl-item b{display:block;color:#fff8ed;margin-bottom:2px}.hl-item span{color:#e3d9c8}.hl-item small{display:block;color:#a99f90;margin-top:4px}
.hl-dot{flex:0 0 12px;width:12px;height:12px;border-radius:50%;margin-top:6px;background:#2e9e6b;box-shadow:0 0 0 4px rgba(46,158,107,.18)}
.hl-item.warn .hl-dot{background:#d7af58;box-shadow:0 0 0 4px rgba(215,175,88,.18)}
.hl-item.bad{border-color:rgba(192,57,43,.5);background:rgba(192,57,43,.08)}.hl-item.bad .hl-dot{background:#c0392b;box-shadow:0 0 0 4px rgba(192,57,43,.2)}
@media(max-width:700px){.hl-grid{grid-template-columns:1fr}}

/* staff: open request — list beside the details */
#list tbody tr{cursor:pointer;transition:background .15s}
#list tbody tr:hover{background:rgba(215,175,88,.07)}
#list tbody tr.sel{background:rgba(215,175,88,.14);box-shadow:inset -4px 0 0 #d7af58}
#list tbody tr.sel td:first-child::after{content:"◀ مفتوح الآن";display:block;font-size:11px;font-weight:700;color:#f0d48e;margin-top:2px}
#req-split.open{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px;align-items:start}
#req-split.open .requests-card{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;padding:16px;margin:0}
#req-split.open .requests-card h2{font-size:20px}
#req-split.open #list table,#req-split.open #list tbody,#req-split.open #list tr,#req-split.open #list td{display:block;width:auto;min-width:0!important;max-width:100%}
#req-split.open #list thead{display:none}
#req-split.open #list tr{margin:0 0 8px;padding:10px 12px;border-radius:12px;border:1px solid rgba(240,212,142,.12)}
#req-split.open #list tr.sel{border-color:rgba(240,212,142,.7);box-shadow:inset -4px 0 0 #d7af58}
#req-split.open #list td{padding:2px 0;border:0;text-align:right;font-size:13px}
#req-split.open #list td:first-child{font-weight:800;font-size:14px;color:#fff8ed}
#req-split.open #list td[data-l="المسند إليه"],#req-split.open #list td:last-child{display:none}
#req-split.open .scroll{overflow:visible}
#req-split.open #detail{min-width:0;margin:0}
.req-head{position:sticky;top:0;z-index:5;display:grid;gap:8px;margin:0 0 14px;padding:14px 16px;border-radius:16px;background:#121418;border:1px solid rgba(240,212,142,.28);box-shadow:0 10px 24px rgba(0,0,0,.35)}
.rh-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rh-id{display:flex;align-items:center;gap:10px}.rh-id b{font-size:21px;color:#f0d48e}
.rh-id em{font-style:normal;font-size:12px;font-weight:800;color:#fff;padding:3px 11px;border-radius:99px;background:#555}
.rh-id em.st-New{background:#6b7a99}.rh-id em.st-Under-Review{background:#4b8bbe}.rh-id em.st-Missing-Document{background:#c0392b}.rh-id em.st-Reviewed{background:#8e6cc4}.rh-id em.st-Accepted{background:#2e9e6b}.rh-id em.st-Waitlist{background:#b8912f}.rh-id em.st-Rejected{background:#7a7a7a}
.rh-nav{display:flex;align-items:center;gap:8px}.rh-nav span{font-size:12px;color:#a99f90}.rh-nav button{min-height:40px}.rh-nav button:disabled{opacity:.35}
.rh-name{font-weight:800;color:#fff8ed}.rh-name small{font-weight:400;color:#a99f90}
.rh-contact{display:flex;gap:8px;flex-wrap:wrap}
.rh-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:10px;border:1px solid rgba(240,212,142,.4);color:#f0d48e;text-decoration:none;font-size:13px;font-weight:700}
.rh-btn span{color:#cfc5b4;font-weight:400}
.rh-btn.wa{background:rgba(37,211,102,.12);border-color:rgba(37,211,102,.5);color:#7ee2a8}
.rh-btn.em{background:rgba(192,57,43,.1);border-color:rgba(192,57,43,.5);color:#ff9c8f}
@media(max-width:1100px){#req-split.open{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:700px){
  #req-split.open{display:block}
  body.req-open #req-split .requests-card{display:none!important}
  .req-head{top:0;border-radius:0 0 16px 16px}
  .rh-contact .rh-btn{flex:1;justify-content:center;min-height:44px}
  .rh-top{flex-direction:column-reverse;align-items:stretch}
  .rh-nav{justify-content:space-between}
  .rh-nav{gap:6px}
  .rh-nav button{white-space:nowrap;padding:0 10px;font-size:12.5px;flex:1}
  .rh-nav span{display:none}
  .req-head{box-sizing:border-box;max-width:100%}
}

/* staff: compact open-request layout */
.status-select{display:none}
#req-split.open .status-filter{display:none}
#req-split.open .status-select{display:block;width:100%;min-height:40px;margin:0 0 10px;padding:0 12px;border-radius:12px;background:#0f1115;color:#efe6d6;border:1px solid rgba(240,212,142,.3);font:inherit;font-size:13px}
#req-split.open .req-search{display:flex;gap:6px;margin-bottom:8px}
#req-split.open .req-search input{min-height:40px;font-size:13px;flex:1;min-width:0}
#req-split.open .req-search button{min-height:40px;padding:0 12px;font-size:13px}
#req-split.open .requests-card h2{font-size:18px;margin:0}
#req-split.open #list tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 10px;margin-bottom:6px}
#req-split.open #list td:nth-child(2){font-size:12px;color:#e9dcc2;align-self:center}
#req-split.open #list td:nth-child(3){grid-column:1/-1;font-size:12px;color:#a99f90}
#req-split.open #list tr.sel td:first-child::after{display:none}
#req-split.open .pagination button{min-height:36px;font-size:13px}
.req-head{padding:12px 14px;gap:6px}
.rh-id b{font-size:18px}
.rh-nav button{min-height:36px;padding:0 12px;font-size:13px}
.rh-btn{min-height:34px}
.req-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(240,212,142,.14)}
.req-tools #assignment{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;flex:1 1 320px;min-width:0}
.req-tools #assignment h3{margin:0;font-size:13px;color:#a99f90;font-weight:600;white-space:nowrap}
.req-tools #assignment select{min-height:38px;flex:1;min-width:0;font-size:13px}
.req-tools button{min-height:38px!important;padding:0 12px!important;font-size:13px!important;margin:0!important}
.req-tools [data-delete-application]{background:transparent!important;border:1px solid rgba(192,57,43,.45)!important;color:#ff9c8f!important;box-shadow:none!important}
#detail .notes-card{padding:14px 16px}
#detail .notes-card textarea{min-height:56px}
@media(max-width:700px){.req-tools #assignment{flex-basis:100%}}

/* staff: smaller internal notes box */
#detail .notes-card{margin:0 0 12px;padding:10px 14px}
#detail .notes-head{gap:8px}
#detail .notes-head h3{margin:0;font-size:15px}
#detail .notes-head small{font-size:11px}
#detail .notes-list{margin:8px 0;gap:6px;max-height:190px;overflow:auto}
#detail .notes-list li{padding:7px 10px;border-radius:10px;font-size:13px}
#detail .notes-list li p{margin:0 0 2px;font-size:13px;line-height:1.6}
#detail .notes-list li small{font-size:11px}
#detail .notes-list li.muted{padding:2px 0;font-size:12px}
#detail .note-form{display:flex;gap:8px;align-items:flex-start;margin:0}
#detail .note-form textarea{flex:1;min-width:0;height:40px;min-height:40px!important;padding:9px 12px;font-size:13px;resize:none;transition:height .15s}
#detail .note-form textarea:focus{height:72px}
#detail .note-form button{min-height:40px;padding:0 14px;font-size:13px;white-space:nowrap}

/* staff: fold/unfold internal notes */
#detail .notes-head{cursor:pointer;user-select:none}
.notes-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;justify-content:flex-end;background:none;border:0;padding:0;margin:0;min-height:0;color:#cfc5b4;font:inherit;font-size:12px;cursor:pointer;box-shadow:none}
.nt-count{color:#f0d48e;font-weight:800}
.nt-last{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right;color:#a99f90}
.nt-chev{transition:transform .2s;color:#d7af58}
.notes-card:not(.notes-closed) .nt-chev{transform:rotate(180deg)}
#detail .notes-card.notes-closed .notes-list,#detail .notes-card.notes-closed .note-form{display:none}
#detail .notes-card.notes-closed{padding:10px 14px}

/* staff: assignment toolbar — everything on one aligned line */
.req-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}
.req-tools #assignment{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;width:auto!important;flex:none}
.req-tools #assignment>*{margin:0!important;align-self:center}
.req-tools #assignment h3{width:auto!important;grid-column:auto!important;line-height:38px}
.req-tools #assignment select{width:100%!important;height:38px;min-height:38px!important;box-sizing:border-box}
.req-tools>button,.req-tools #assignment button{height:38px;min-height:38px!important;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;margin:0!important}
@media(max-width:700px){
  .req-tools{grid-template-columns:1fr 1fr}
  .req-tools #assignment{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto}
  .req-tools #assignment h3{display:none}
}

/* staff: tighter top so the work starts higher */
main>.topbar{margin:6px 0 12px!important;padding:0 0 12px!important;min-height:0!important;align-items:center}
main>.topbar small{display:none}
main>.topbar h1{margin:0!important;font-size:24px!important;line-height:1.3}
#workspace{margin-top:0!important}
#workspace .admin-tabs{margin-bottom:14px}
#message:empty{display:none;margin:0}

/* ===== update 58: «المحذوفين» ===== */
.del-tag{display:inline-block;margin-inline-start:6px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;color:#ff9c8f;border:1px solid rgba(192,57,43,.45);background:rgba(192,57,43,.08)}
.del-banner{display:flex;flex-direction:column;gap:4px;margin:10px 0 14px;padding:12px 16px;border-radius:14px;border:1px solid rgba(192,57,43,.45);background:rgba(192,57,43,.08)}
.del-banner b{color:#ff9c8f;font-size:14px}.del-banner span{font-size:13px;line-height:1.7;opacity:.9}
.req-tools [data-trash-application]{background:transparent!important;border:1px solid rgba(192,57,43,.45)!important;color:#ff9c8f!important;box-shadow:none!important}
.restore-application,.req-tools [data-restore-application]{margin:10px 8px 18px}

/* ===== update 64: «فئة أ / ب» ===== */
.tiers-staff ul{list-style:none;margin:6px 0;padding:0;display:grid;gap:8px}
.tiers-staff .tier-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:12px;border:1px solid rgba(240,212,142,.18);background:rgba(255,255,255,.03)}
.tiers-staff .tier-btns{display:flex;gap:6px}
.tiers-staff .tier-btn{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(240,212,142,.45);background:transparent;color:#f0d48e;font:inherit;font-weight:800;cursor:pointer}
.tiers-staff .tier-btn.on{background:linear-gradient(135deg,#f0d48e,#c89b45);color:#1f1506;border-color:#f0d48e}
.tiers-staff .tier-hint{margin:4px 0 0;font-size:12.5px;opacity:.75}

/* ===== update 65: tidy rooms / category blocks + the download menu ===== */
.person.rooms-staff,.person.tiers-staff{margin-top:14px}
.rooms-staff .muted-line{margin:6px 0 0;opacity:.8}
.tiers-staff .tier-row dd{display:flex;align-items:center}
.tiers-staff .tier-btns{display:flex;flex-wrap:wrap;gap:6px}
.tiers-staff .tier-hint{margin:12px 0 0;padding-top:10px;border-top:1px solid rgba(240,212,142,.14);font-size:12.5px;line-height:1.7;opacity:.75}
/* the menu opens inside the page (anchored to the button's right edge) and never runs past the panel */
.dl-menu{position:relative}
.dl-list{right:0!important;left:auto!important;width:min(290px,calc(100vw - 32px))!important;max-width:min(290px,calc(100vw - 32px))!important;padding:6px!important;gap:0!important}
.dl-list button{padding:13px 14px!important;border-radius:10px!important;gap:5px!important;line-height:1.45!important;white-space:normal!important}
.dl-list button+button{border-top:1px solid rgba(240,212,142,.16)!important;border-top-left-radius:0!important;border-top-right-radius:0!important}
.dl-list b{font-size:15px}
.dl-list small{display:block;font-size:12.5px;line-height:1.5}
.tiers-staff .tier-row{display:block!important;padding:0!important;border:0!important;background:none!important}
.tiers-staff .tier-row dt{font-size:inherit}
.tiers-staff .tier-row dd{margin-top:6px}

/* ===== update 66: correct the English name ===== */
.en-name{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.edit-en{min-height:30px;padding:0 12px;border-radius:999px;border:1px solid rgba(240,212,142,.45);background:transparent;color:#f0d48e;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.edit-en:hover{background:rgba(215,175,88,.12)}

/* ===== update 67: removed staff ===== */
.staff-removed{margin-top:14px}
.staff-removed .removed-box{border:1px dashed rgba(240,212,142,.3);border-radius:14px;padding:10px 14px;background:rgba(255,255,255,.02)}
.staff-removed summary{cursor:pointer;font-weight:800;color:#d7af58;list-style:none}.staff-removed summary::-webkit-details-marker{display:none}
.staff-removed summary b{display:inline-block;margin-inline-start:6px;padding:0 8px;border-radius:999px;background:rgba(215,175,88,.15);font-size:12px}
.staff-removed ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.staff-removed .team-member.removed strong{opacity:.75}
.staff-removed .restore-staff{border:1px solid rgba(240,212,142,.55)!important;color:#f0d48e!important;background:transparent!important}

/* ===== update 67: season reset ===== */
.reset-zone{margin-top:16px;border:1px solid rgba(192,57,43,.5);border-radius:16px;padding:12px 16px;background:rgba(192,57,43,.06)}
.reset-zone summary{cursor:pointer;font-weight:800;color:#ff9c8f;list-style:none}.reset-zone summary::-webkit-details-marker{display:none}
.reset-zone summary:before{content:"⚠ ";}
.reset-zone .reset-body{margin-top:10px}
.reset-zone .reset-warn{margin:0 0 8px;line-height:1.8;font-size:14px}
.reset-zone .reset-counts{margin:0 0 12px;padding:8px 12px;border-radius:10px;background:rgba(0,0,0,.2);font-size:13.5px;line-height:1.8}
.reset-zone .reset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.reset-zone .reset-grid label{display:flex;flex-direction:column;gap:6px;font-size:14px}
@media(max-width:700px){.reset-zone .reset-grid{grid-template-columns:1fr}}

/* ===== update 68: the campaign's own dialogs ===== */
.ui-dialog-back{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;background:rgba(5,6,8,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:uiFade .15s ease-out}
.ui-dialog{width:min(460px,100%);max-height:calc(100vh - 32px);overflow:auto;direction:rtl;text-align:right;font-family:'Alexandria',Tahoma,Arial,sans-serif;color:#f6efe3;background:linear-gradient(160deg,#1d1e24,#111216);border:1px solid rgba(240,212,142,.45);border-radius:22px;padding:22px 22px 18px;box-shadow:0 30px 80px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.05);animation:uiPop .18s ease-out}
.ui-dialog.danger{border-color:rgba(192,57,43,.6)}
.ui-dialog-title{margin:0 0 8px;font-size:19px;line-height:1.4;color:#f0d48e}
.ui-dialog-text{margin:0 0 14px;font-size:15.5px;line-height:1.85;color:#efe6d6}
.ui-dialog-input{display:block;width:100%;box-sizing:border-box;margin:0 0 16px;padding:12px 14px;border-radius:14px;border:1px solid rgba(240,212,142,.45);background:#0d0e12;color:#fff8ed;font:inherit;font-size:16px;outline:none}
.ui-dialog-input:focus{border-color:#f0d48e;box-shadow:0 0 0 3px rgba(240,212,142,.18)}
.ui-dialog-actions{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap}
.ui-dialog-actions button{min-height:44px;padding:0 20px;border-radius:14px;font:inherit;font-weight:800;font-size:15px;cursor:pointer}
.ui-dialog-actions .ui-ok.primary{background:linear-gradient(135deg,#f0d48e,#c89b45);color:#1f1506;border:0}
.ui-dialog-actions .ui-ok.danger{background:#8f2a20;color:#fff;border:1px solid #c0392b}
.ui-dialog-actions .ui-cancel{background:transparent;color:#efe6d6;border:1px solid rgba(240,212,142,.35)}
.ui-dialog-choices{display:grid;gap:8px;margin:0 0 16px}
.ui-choice{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:14px;border:1px solid rgba(240,212,142,.2);background:rgba(255,255,255,.03);cursor:pointer}
.ui-choice.on{border-color:#f0d48e;background:rgba(215,175,88,.12)}
.ui-choice input{margin-top:5px;accent-color:#d7af58}
.ui-choice b{display:block;font-size:15px}.ui-choice small{display:block;margin-top:2px;font-size:12.5px;line-height:1.6;opacity:.75}
@keyframes uiFade{from{opacity:0}to{opacity:1}}@keyframes uiPop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
/* ===== update 68: all status filters on one line (smaller), «المحذوفين» next to the others ===== */
.status-filter{flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}
.status-filter .sf{flex:0 0 auto;white-space:nowrap;padding:6px 10px!important;font-size:12px!important;line-height:1.3!important}
.status-filter .sf b{margin-inline-start:5px!important;padding:0 6px!important;font-size:11px!important}
.ui-dialog .ui-choice{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;margin:0!important;width:auto!important}
.ui-dialog .ui-choice input[type=radio]{flex:0 0 auto!important;width:18px!important;height:18px!important;min-width:0!important;min-height:0!important;margin:4px 0 0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;appearance:auto!important;-webkit-appearance:radio!important}
.ui-dialog .ui-choice span{flex:1 1 auto;min-width:0}

.status-filter{gap:5px!important}
.status-filter .sf{padding:5px 8px!important;font-size:11.5px!important}
.status-filter .sf b{margin-inline-start:4px!important;padding:0 5px!important;font-size:10.5px!important}
.ui-dialog-text{white-space:normal}
@media(max-width:1150px){.status-filter{gap:4px!important}.status-filter .sf{padding:4px 6px!important;font-size:11px!important}.status-filter .sf b{margin-inline-start:3px!important;padding:0 4px!important;font-size:10px!important}}

/* ===== update 71: calmer, consistent type scale for the admin page only (staff.html has #workspace) ===== */
body:has(#workspace) main>.topbar h1{font-size:20px!important;font-weight:800!important}
body:has(#workspace) h2{font-size:17px!important;font-weight:800!important;line-height:1.35}
body:has(#workspace) #req-split.open .requests-card h2{font-size:16px!important}
body:has(#workspace) .team-title h2 small{font-size:13px}
body:has(#workspace) .eyebrow{font-size:11px!important;font-weight:700!important}
body:has(#workspace) h3{font-size:15px!important;font-weight:700}
body:has(#workspace) .req-tools #assignment h3{font-size:12.5px!important;font-weight:600}
body:has(#workspace) h4{font-size:14.5px!important}
body:has(#workspace) .rh-id b,body:has(#workspace) #detail>h2{font-size:16px!important}
body:has(#workspace) .rh-name{font-size:14px}
body:has(#workspace) .stat strong{font-size:21px}
body:has(#workspace) .profile-card strong{font-size:19px}
body:has(#workspace) .team-member strong{font-size:15px}
@media(min-width:761px){
body:has(#workspace) #workspace{font-size:14px}
body:has(#workspace) .admin-tabs button{font-size:13.5px}
body:has(#workspace) #workspace button:not(.sf):not(.icon-btn):not([data-tab]),body:has(#workspace) #workspace .rh-btn{font-size:13px}
body:has(#workspace) th{font-size:12.5px!important}
body:has(#workspace) #list td,body:has(#workspace) #list td:first-child{font-size:13.5px}
body:has(#workspace) #list td button{min-height:34px!important;padding:0 14px!important;font-size:12.5px!important}
body:has(#workspace) dt{font-size:12px}
body:has(#workspace) dd,body:has(#workspace) dd.value{font-size:14px}
body:has(#workspace) #detail p,body:has(#workspace) #detail li,body:has(#workspace) #detail label,body:has(#workspace) .muted-line{font-size:13.5px}
body:has(#workspace) .tiers-staff .tier-btn{font-size:13px}
body:has(#workspace) #detail .tier-hint{font-size:12px}
body:has(#workspace) main>.topbar button{font-size:13.5px}
body:has(#workspace) #workspace input,body:has(#workspace) #workspace select,body:has(#workspace) #workspace textarea{font-size:13.5px}
}

/* ===== update 72: document viewer inside the admin page ===== */
.doc-viewer-back{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;background:rgba(5,6,8,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.doc-viewer{display:flex;flex-direction:column;width:min(1000px,100%);height:min(92vh,100%);direction:rtl;background:linear-gradient(160deg,#1d1e24,#111216);border:1px solid rgba(240,212,142,.45);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.55);overflow:hidden;font-family:'Alexandria',Tahoma,Arial,sans-serif}
.doc-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid rgba(240,212,142,.18)}
.doc-viewer-head b{color:#f0d48e;font-size:15px;font-weight:800}
.doc-viewer-tools{display:flex;gap:8px;flex-wrap:wrap}
.doc-viewer-tools button{min-height:36px!important;padding:0 14px!important;border-radius:12px!important;font:inherit;font-size:13px!important;font-weight:700;margin:0!important;cursor:pointer}
.doc-viewer-body{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;padding:12px;background:#0b0c0f}
.doc-viewer-body img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;background:#fff}
.doc-viewer-back.zoomed .doc-viewer-body{place-items:start center}
.doc-viewer-back.zoomed .doc-viewer-body img{max-width:none;max-height:none}
@media(max-width:600px){.doc-viewer-back{padding:0}.doc-viewer{height:100%;border-radius:0}}

/* ===== update 72: «فئة أ / ب» — one tidy row per person, names and buttons aligned ===== */
.tiers-staff dl.grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:6px 0 0!important}
.tiers-staff .tier-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:9px 14px!important;border:1px solid rgba(240,212,142,.14)!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important}
.tiers-staff .tier-row dt{margin:0!important;font-size:14px!important;font-weight:600;color:#efe6d6;line-height:1.5}
.tiers-staff .tier-row dt small.tier-main{display:inline-block;margin-inline-start:6px;padding:1px 9px;border-radius:999px;background:rgba(215,175,88,.14);color:#f0d48e;font-size:11px;font-weight:700;vertical-align:middle}
.tiers-staff .tier-row dd{margin:0!important;flex:0 0 auto}
.tiers-staff .tier-btns{flex-wrap:nowrap!important;gap:6px!important}
.tiers-staff .tier-btn{min-height:32px!important;padding:0 14px!important;font-size:12.5px!important}
.tiers-staff .tier-hint{margin:12px 0 0!important;font-size:12px!important}
@media(max-width:480px){.tiers-staff .tier-row{flex-wrap:wrap!important}.tiers-staff .tier-row dd{margin-inline-start:auto!important}}
