@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{
  --green:#0f7a5a;--green-dark:#075c44;--green-soft:#e8f6f1;--ink:#17231f;--muted:#6a7772;--line:#e2e9e6;--bg:#f4f7f6;--white:#fff;--danger:#b42318;--warning:#a15c00;--shadow:0 14px 40px rgba(15,45,35,.08);--radius:20px
}
*{box-sizing:border-box}html{font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink)}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 0 0 auto;width:270px;background:linear-gradient(180deg,#0a644b,#073f31);color:#fff;padding:22px 16px;display:flex;flex-direction:column;z-index:20;box-shadow:-10px 0 30px rgba(0,0,0,.08)}.brand{display:flex;gap:12px;align-items:center;padding:2px 8px 22px;border-bottom:1px solid rgba(255,255,255,.12)}.brand img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:16px;padding:5px}.brand strong,.brand span{display:block}.brand strong{font-size:17px}.brand span{font-size:12px;opacity:.75;margin-top:4px}.sidebar nav{display:grid;gap:7px;margin-top:22px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:14px;color:rgba(255,255,255,.8);transition:.2s}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.13);color:#fff}.sidebar nav b{width:24px;text-align:center;font-size:19px}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:16px}.user-mini{display:flex;gap:10px;align-items:center;margin-bottom:12px}.user-mini strong,.user-mini small{display:block}.user-mini small{opacity:.7;margin-top:2px}.avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#d9f2e8;color:var(--green-dark);font-weight:800;flex:0 0 auto}.avatar.large{width:48px;height:48px;font-size:19px}.logout-btn{width:100%;border:1px solid rgba(255,255,255,.2);background:transparent;color:#fff;border-radius:12px;padding:10px}.main{margin-right:270px;min-height:100vh}.topbar{height:92px;padding:0 34px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}.topbar h1{margin:3px 0 0;font-size:23px}.crumb{font-size:12px;color:var(--muted)}.menu-toggle{display:none;background:none;border:0;font-size:24px}.content{padding:30px 34px}.content>*,.content>.grid{max-width:1500px;margin-left:auto;margin-right:auto}.content>*+*{margin-top:22px}footer{padding:20px 34px 34px;text-align:center;color:var(--muted);font-size:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.panel-head h2{margin:4px 0 0;font-size:20px}.panel-head p{margin:7px 0 0;color:var(--muted);font-size:14px}.panel-head>a{color:var(--green);font-weight:700;font-size:13px}.eyebrow{display:block;color:var(--green);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.welcome{background:linear-gradient(135deg,var(--green),#12976f);color:#fff;border-radius:24px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 20px 50px rgba(15,122,90,.22)}.welcome h2{font-size:27px;margin:5px 0}.welcome p{margin:0;opacity:.85}.welcome .eyebrow{color:#c9f4e5}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stats article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(15,45,35,.05)}.stats span,.stats small{display:block;color:var(--muted)}.stats strong{display:block;font-size:32px;margin:8px 0;color:var(--green-dark)}.grid{display:grid;gap:22px}.grid.two{grid-template-columns:1.35fr 1fr}.grid.case-grid{grid-template-columns:1.5fr .75fr;align-items:start}.grid.users-grid{grid-template-columns:.75fr 1.6fr;align-items:start}.btn{border:0;border-radius:12px;padding:11px 17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.small{padding:8px 12px;font-size:13px}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green-dark)}.btn.dark{background:#24332e;color:#fff}.btn.outline{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn.light{background:#fff;color:var(--green-dark)}.alert{padding:14px 17px;border-radius:14px;border:1px solid}.alert.success{background:#e8f8f0;color:#08663f;border-color:#bce7d2}.alert.error{background:#fff0ef;color:#9b1c14;border-color:#f1c3bf}.empty{padding:38px;text-align:center;color:var(--muted)}.case-list{display:grid}.case-list>a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.case-list>a:last-child{border-bottom:0}.case-list strong,.case-list small{display:block}.case-list small{color:var(--muted);margin-top:4px}.case-icon{width:34px;height:34px;border-radius:11px;background:var(--green-soft);display:grid;place-items:center;color:var(--green)}.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-style:normal;font-size:11px;font-weight:800;white-space:nowrap}.status-new{background:#edf4ff;color:#315b9c}.status-under_review{background:#fff3dc;color:#9b5a00}.status-needs_info{background:#fff0e8;color:#a64c19}.status-approved{background:#e7f7ef;color:#11704d}.status-completed{background:#e2f5e9;color:#0a6c42}.status-rejected{background:#ffeceb;color:#a72c24}.status-archived{background:#ecefed;color:#68716d}.status-bars{display:grid;gap:16px}.status-bars span{display:flex;justify-content:space-between;margin-bottom:7px}.status-bars b{font-size:13px}.status-bars em{font-style:normal;color:var(--muted)}.status-bars i{display:block;height:9px;background:#edf1ef;border-radius:99px;overflow:hidden}.status-bars u{display:block;height:100%;background:linear-gradient(90deg,var(--green),#42b78e);border-radius:99px}.staff-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.staff-grid article{border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;align-items:center;gap:10px}.staff-grid article div{flex:1}.staff-grid strong,.staff-grid small{display:block}.staff-grid small{color:var(--muted);margin-top:3px}.staff-grid article>b{color:var(--green);font-size:13px}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:850px}.table-wrap th{text-align:right;font-size:12px;color:var(--muted);font-weight:800;background:#f7faf8;padding:12px;border-bottom:1px solid var(--line)}.table-wrap td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle}.table-wrap td strong,.table-wrap td small{display:block}.table-wrap td small{color:var(--muted);margin-top:4px;font-size:12px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mono{font-family:Consolas,monospace;font-size:12px;color:var(--green-dark)}.row-link{color:var(--green);font-weight:800}.filters{display:flex;gap:10px;margin-bottom:18px}.filters input{flex:1}.filters select{min-width:170px}.filters input,.filters select,.inline-form input,.reset-form input{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;outline:none}.filters input:focus,.filters select:focus,.inline-form input:focus,.reset-form input:focus{border-color:#76bea5;box-shadow:0 0 0 3px rgba(15,122,90,.08)}.form-panel{overflow:hidden}.case-form{display:grid;gap:22px}.form-section{border:1px solid var(--line);border-radius:17px;padding:20px}.form-section h3{margin:0 0 17px;font-size:16px}.form-section h3 span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--green-soft);color:var(--green);margin-left:7px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form-grid.compact{gap:10px}.form-grid label,.stack label{display:grid;gap:7px;font-size:13px;font-weight:700}.form-grid .wide,.details .wide,fieldset.wide{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea{width:100%;border:1px solid #dbe5e1;border-radius:12px;padding:11px 12px;background:#fff;outline:none;transition:.2s}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack input:focus{border-color:#64b496;box-shadow:0 0 0 4px rgba(15,122,90,.08)}textarea{resize:vertical}.form-actions{display:flex;gap:10px;justify-content:flex-start}.stack{display:grid;gap:15px}.stack fieldset,.user-edit fieldset{border:1px solid var(--line);border-radius:14px;padding:13px}.stack legend,.user-edit legend{font-weight:800;padding:0 7px}.check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;font-weight:600!important;margin:8px 0}.check input{width:auto!important}.scope-switch{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:15px}.scope-switch label{border:1px solid var(--line);padding:10px 13px;border-radius:12px;background:#fafcfa}.upload-box{margin-top:15px;border:1px dashed #8bc8b1;background:#f6fbf9;border-radius:14px;padding:18px;display:grid;gap:4px;cursor:pointer}.upload-box input{margin-bottom:8px}.upload-box span{font-weight:800}.upload-box small{color:var(--muted)}.details{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0}.details>div{border:1px solid var(--line);background:#fafcfb;border-radius:14px;padding:13px}.details dt{color:var(--muted);font-size:12px;margin-bottom:6px}.details dd{margin:0;font-weight:700;line-height:1.8}.case-header{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 25px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:var(--shadow)}.case-header h2{margin:5px 0;font-size:25px}.case-header p{margin:0;color:var(--muted)}.case-header>div:last-child{display:flex;align-items:center;gap:8px}.inline{display:inline}.timeline{list-style:none;padding:0;margin:0;display:grid;gap:2px}.timeline li{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding-bottom:20px}.timeline li:not(:last-child):before{content:"";position:absolute;right:6px;top:14px;width:2px;height:calc(100% - 2px);background:#dbe9e3}.timeline i{width:14px;height:14px;background:var(--green);border:3px solid #d9f2e8;border-radius:50%;margin-top:3px;z-index:1}.timeline strong,.timeline span{display:block}.timeline span{font-size:12px;color:var(--muted);margin-top:4px}.beneficiary-link{display:flex;justify-content:space-between;gap:10px;background:var(--green-soft);color:var(--green-dark);border-radius:14px;padding:14px;margin-top:8px}.attachments{margin-top:22px}.attachments h3{font-size:15px}.attachments>a{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:11px;margin-top:8px}.attachments strong,.attachments small{display:block}.attachments small{color:var(--muted);margin-top:3px}.inline-form{display:flex;gap:10px}.inline-form input{flex:1}.type-list{display:grid}.type-list>div{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.type-list>div:last-child{border-bottom:0}.type-list strong,.type-list small{display:block}.type-list small{color:var(--muted);margin-top:3px}.user-cards{display:grid;gap:10px}.user-cards details{border:1px solid var(--line);border-radius:15px;overflow:hidden}.user-cards summary{list-style:none;display:flex;align-items:center;gap:11px;padding:13px;cursor:pointer}.user-cards summary::-webkit-details-marker{display:none}.user-cards summary div{flex:1}.user-cards summary strong,.user-cards summary small{display:block}.user-cards summary small{color:var(--muted);margin-top:3px}.user-edit{border-top:1px solid var(--line);background:#fafcfb;padding:15px}.user-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.reset-form{display:flex;gap:8px}.count-pill{display:inline-grid;place-items:center;min-width:36px;height:32px;padding:0 10px;border-radius:999px;background:var(--green-soft);color:var(--green-dark);font-weight:800}.count-pill.large{height:44px;min-width:56px}.auth-page{background:radial-gradient(circle at top right,#dff3eb 0,#f4f7f6 42%,#edf2ef 100%);display:grid;place-items:center;padding:25px}.auth-shell{width:min(100%,980px);display:grid;grid-template-columns:1.15fr .85fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(13,61,45,.18);min-height:570px}.auth-brand{background:linear-gradient(145deg,#08674c,#0b8e67);color:#fff;padding:50px;display:flex;flex-direction:column;justify-content:center}.auth-brand img{width:115px;height:115px;object-fit:contain;background:#fff;border-radius:28px;padding:10px;margin-bottom:30px}.auth-brand span{opacity:.8}.auth-brand h1{font-size:35px;margin:8px 0}.auth-brand p{font-size:17px;line-height:1.8;opacity:.82;max-width:400px}.auth-card{padding:50px;display:flex;flex-direction:column;justify-content:center}.auth-card h2{font-size:28px;margin:7px 0}.muted{color:var(--muted);line-height:1.7}.auth-card .stack{margin-top:18px}.auth-card .btn{margin-top:5px;padding:13px}.auth-card input{font-size:16px}.auth-card .alert{margin-bottom:15px}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid.two,.grid.case-grid,.grid.users-grid{grid-template-columns:1fr}.staff-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.sidebar{transform:translateX(100%);transition:.25s}.menu-open .sidebar{transform:translateX(0)}.main{margin-right:0}.topbar{padding:0 18px;height:78px}.menu-toggle{display:block}.topbar>div:first-of-type{flex:1;margin-right:10px}.topbar h1{font-size:19px}.content{padding:20px 14px}.top-actions .btn{display:none}.stats{grid-template-columns:1fr 1fr}.welcome{align-items:flex-start;flex-direction:column}.form-grid,.details{grid-template-columns:1fr}.form-grid .wide,.details .wide{grid-column:auto}.filters{display:grid;grid-template-columns:1fr}.filters select{min-width:0}.staff-grid{grid-template-columns:1fr}.case-header{align-items:flex-start;flex-direction:column}.case-header>div:last-child{width:100%;justify-content:space-between}.auth-shell{grid-template-columns:1fr;min-height:0}.auth-brand{padding:30px}.auth-brand img{width:75px;height:75px;margin-bottom:15px}.auth-brand h1{font-size:26px}.auth-brand p{font-size:14px}.auth-card{padding:30px}.user-actions,.reset-form{align-items:stretch;flex-direction:column}.inline-form{flex-direction:column}}
@media(max-width:520px){.stats{grid-template-columns:1fr}.panel{padding:17px;border-radius:16px}.welcome{padding:22px}.scope-switch{display:grid}.form-section{padding:14px}.auth-page{padding:0}.auth-shell{border-radius:0;min-height:100vh}.auth-brand,.auth-card{padding:24px}.topbar .crumb{display:none}}

/* V1.1 enhancements */
*,*::before,*::after{box-sizing:border-box}
.sidebar{height:100dvh;overflow:hidden;padding-bottom:14px}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 3px 14px;margin-left:-3px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.sidebar nav a{flex:0 0 auto}
.sidebar-foot{flex:0 0 auto;margin-top:0;padding-top:14px;background:linear-gradient(180deg,rgba(7,63,49,0),#073f31 18%)}
.logout-btn{display:flex;align-items:center;justify-content:center;min-height:42px;cursor:pointer;font-weight:800}
.sidebar-backdrop{display:none}
.panel-actions,.case-header-actions,.summary-pills{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.result-count{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#f0f5f3;color:var(--green-dark);font-size:13px;font-weight:800;white-space:nowrap}
.btn.excel{background:#167c4f;color:#fff;border:1px solid #0f6c42}
.btn.excel:hover{background:#0f6c42}
.btn.tiny{padding:7px 10px;font-size:12px;white-space:nowrap}
.advanced-filters{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(150px,1fr));gap:12px;padding:15px;background:#f7faf8;border:1px solid var(--line);border-radius:16px;margin-bottom:20px}
.filter-field{display:grid;gap:6px;min-width:0}
.filter-field>span{font-size:11px;font-weight:800;color:var(--muted)}
.filter-field input,.filter-field select{width:100%;min-width:0;height:44px}
.search-field{grid-column:span 2}
.filter-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.beneficiary-filters{display:grid;grid-template-columns:minmax(260px,2fr) minmax(180px,1fr) auto;align-items:end;padding:15px;background:#f7faf8;border:1px solid var(--line);border-radius:16px}
.benefit-pill{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:900;line-height:1.25;white-space:nowrap}
.benefit-pill.yes{background:#e5f7ed;color:#0b7147;border:1px solid #bde8cf}
.benefit-pill.no{background:#f1f3f2;color:#66716c;border:1px solid #dde3e0}
.last-benefit{color:#0b7147!important;white-space:normal!important;max-width:340px!important}
.pagination{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin-top:20px}
.pagination a{min-width:38px;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:#fff;font-weight:800;color:var(--ink)}
.pagination a.active{background:var(--green);border-color:var(--green);color:#fff}
.pagination a.disabled{pointer-events:none;opacity:.4}
.benefits-panel{overflow:hidden}
.benefit-history{display:grid;gap:10px}
.benefit-history article{display:grid;grid-template-columns:140px minmax(0,1fr) 170px;gap:16px;align-items:center;border:1px solid var(--line);border-radius:15px;padding:15px;background:#fbfdfc}
.benefit-date{border-left:1px solid var(--line);padding-left:14px}
.benefit-date strong,.benefit-date small,.benefit-meta span,.benefit-meta small{display:block}
.benefit-date strong{font-size:16px;color:var(--green-dark)}
.benefit-date small,.benefit-meta small{color:var(--muted);margin-top:4px}
.benefit-main h3{margin:0 0 5px;font-size:16px}
.benefit-main p{margin:0 0 6px;line-height:1.7}
.benefit-main>span{display:inline-flex;background:#fff4d9;color:#8a5b00;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:800}
.benefit-main>small{display:block;color:var(--muted);margin-top:7px}
.benefit-meta{text-align:left}
.benefit-form{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}
.benefit-form>.btn{margin-top:14px}
.small-stat{font-size:22px!important}
.beneficiary-stats{margin-top:18px!important}
.table-wrap td .benefit-pill{margin-top:8px}
.mobile-cards table td{word-break:break-word}
.auth-page{min-height:100dvh;overflow:auto}
.auth-shell{max-height:none}
.auth-card .btn{min-height:48px;flex:0 0 auto}
@media(max-width:1180px){
  .advanced-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .search-field{grid-column:span 2}
}
@media(max-width:820px){
  body.menu-open{overflow:hidden}
  .sidebar{width:min(88vw,310px);padding:16px 13px;box-shadow:-14px 0 40px rgba(0,0,0,.25)}
  .sidebar-backdrop{position:fixed;inset:0;z-index:19;border:0;background:rgba(7,30,23,.46);backdrop-filter:blur(2px)}
  .menu-open .sidebar-backdrop{display:block}
  .sidebar .brand{padding-bottom:15px}
  .sidebar nav{margin-top:14px}
  .sidebar nav a{padding:11px 12px}
  .topbar{min-height:72px;height:auto;padding:12px 14px;gap:10px}
  .topbar>div:first-of-type{min-width:0}
  .topbar h1{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-actions{display:none}
  .content{padding:16px 11px}
  .responsive-head{flex-direction:column;align-items:stretch}
  .panel-actions{justify-content:space-between;width:100%}
  .advanced-filters,.beneficiary-filters{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
  .advanced-filters .search-field,.beneficiary-filters .search-field{grid-column:1/-1}
  .filter-actions{grid-column:1/-1}
  .filter-actions .btn{flex:1}
  .case-header-actions{width:100%;justify-content:flex-start!important}
  .summary-pills{width:100%}
  .benefit-history article{grid-template-columns:1fr;gap:10px}
  .benefit-date{border-left:0;border-bottom:1px solid var(--line);padding:0 0 10px}
  .benefit-meta{text-align:right;border-top:1px dashed var(--line);padding-top:9px}
  .auth-shell{margin:auto;min-height:auto}
  .auth-brand{display:none}
  .auth-card{min-height:100dvh;padding:28px 22px;justify-content:center}
  .auth-card form{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .mobile-cards{overflow:visible}
  .mobile-cards table{min-width:0;display:block}
  .mobile-cards thead{display:none}
  .mobile-cards tbody{display:grid;gap:12px}
  .mobile-cards tr{display:block;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 6px 20px rgba(19,58,45,.05)}
  .mobile-cards td{display:grid;grid-template-columns:minmax(95px,34%) minmax(0,1fr);gap:12px;align-items:start;padding:11px 13px;border-bottom:1px solid var(--line);text-align:right}
  .mobile-cards td:last-child{border-bottom:0}
  .mobile-cards td::before{content:attr(data-label);font-size:11px;font-weight:900;color:var(--muted)}
  .mobile-cards td[colspan]{display:block}
  .mobile-cards td[colspan]::before{display:none}
  .mobile-cards td .btn{width:100%}
  .mobile-cards td small{white-space:normal;max-width:none}
  .case-list>a{grid-template-columns:auto minmax(0,1fr);align-items:start}
  .case-list>a em{grid-column:2;justify-self:start}
}
@media(max-width:520px){
  .advanced-filters,.beneficiary-filters{grid-template-columns:1fr}
  .advanced-filters .search-field,.beneficiary-filters .search-field,.filter-actions{grid-column:auto}
  .filter-actions{display:grid;grid-template-columns:1fr 1fr}
  .panel-actions{display:grid;grid-template-columns:1fr 1fr}
  .panel-actions .btn{width:100%}
  .result-count{width:100%}
  .case-header{padding:18px}
  .case-header h2{font-size:22px}
  .summary-pills{display:grid;grid-template-columns:1fr}
  .benefit-pill{white-space:normal}
  .mobile-cards td{grid-template-columns:1fr;gap:5px}
  .mobile-cards td::before{margin-bottom:2px}
  .pagination a{min-width:34px;height:34px;padding:0 8px}
  .auth-card{padding:24px 18px}
}
.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

/* V1.2 mobile form and branded interface refinements */
html,body{max-width:100%;overflow-x:hidden}
img{max-width:100%}
.mobile-top-logo{display:none;width:42px;height:42px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px;flex:0 0 auto}
.topbar-title{min-width:0}

/* Keep Arabic text comfortably aligned inside every form control */
.form-grid input,.form-grid select,.stack input,.stack select,
.filters input,.filters select,.inline-form input,.reset-form input{
  min-height:48px;line-height:1.45;text-align:right;direction:rtl;padding:11px 13px
}
.form-grid textarea,.stack textarea{line-height:1.8;text-align:right;direction:rtl;padding:12px 13px;min-height:96px}
.form-grid select,.stack select,.filters select{
  padding-inline-start:13px;padding-inline-end:38px;background-color:#fff
}
input[type="date"]{direction:rtl;text-align:right}
input[type="date"]::-webkit-date-and-time-value{text-align:right}
input::placeholder,textarea::placeholder{color:#98a49f;opacity:1}
.form-grid label,.stack label{min-width:0;line-height:1.55}
.form-section{background:linear-gradient(180deg,#fff,#fcfefd)}
.form-section h3{display:flex;align-items:center;line-height:1.5}
.scope-switch label{display:flex;align-items:center;gap:8px;line-height:1.5}
.scope-switch input{accent-color:var(--green);flex:0 0 auto}

@media(max-width:820px){
  /* The closed off-canvas menu must not cast a dark shadow into the page. */
  .sidebar{box-shadow:none;visibility:hidden;pointer-events:none}
  .menu-open .sidebar{box-shadow:-14px 0 40px rgba(0,0,0,.25);visibility:visible;pointer-events:auto}
  .app-shell,.main,.content,.panel,.form-panel,.case-form,.form-section{max-width:100%;min-width:0}
  .mobile-top-logo{display:block}
  .topbar{background:rgba(255,255,255,.96);box-shadow:0 5px 20px rgba(15,45,35,.06)}
  .topbar h1{font-size:17px}

  /* Login page: retain the association identity instead of hiding it. */
  .auth-page{padding:16px;background:linear-gradient(155deg,#e7f5f0 0%,#f7faf9 50%,#eef4ff 100%)}
  .auth-shell{width:min(100%,520px);grid-template-columns:1fr;border-radius:24px;min-height:0;box-shadow:0 24px 65px rgba(9,72,52,.18);margin:auto}
  .auth-brand{display:flex;min-height:0;padding:25px 22px 22px;flex-direction:row;align-items:center;justify-content:flex-start;gap:17px;background:linear-gradient(135deg,#075c44,#11916b)}
  .auth-brand img{width:82px;height:82px;margin:0;border-radius:21px;padding:7px;flex:0 0 auto;box-shadow:0 10px 25px rgba(0,0,0,.12)}
  .auth-brand div{min-width:0}
  .auth-brand span{font-size:12px}
  .auth-brand h1{font-size:23px;margin:4px 0;line-height:1.35}
  .auth-brand p{font-size:12px;line-height:1.65;margin:0;max-width:none}
  .auth-card{min-height:0;padding:28px 22px 30px;justify-content:flex-start}
  .auth-card h2{font-size:24px}
  .auth-card .stack{gap:14px}
  .auth-card input{font-size:16px;min-height:50px}
  .auth-card .btn{min-height:50px;border-radius:14px}

  /* New case form on phones */
  .form-panel{padding:14px;border-radius:18px;box-shadow:0 8px 28px rgba(15,45,35,.06);overflow:visible}
  .form-panel>.panel-head{padding:3px 3px 0;margin-bottom:16px}
  .form-panel>.panel-head h2{font-size:20px}
  .case-form{gap:14px}
  .form-section{padding:15px 13px;border-radius:16px;box-shadow:0 4px 16px rgba(15,45,35,.035)}
  .form-section h3{font-size:15px;margin-bottom:14px}
  .form-grid{gap:13px}
  .form-grid input,.form-grid select,.stack input,.stack select{font-size:16px;min-height:50px;border-radius:13px}
  .form-grid textarea,.stack textarea{font-size:16px;border-radius:13px}
  .scope-switch{grid-template-columns:1fr;gap:9px}
  .scope-switch label{width:100%;padding:12px 13px;border-radius:13px;background:#f7fbf9}
  .upload-box{padding:15px;border-radius:14px}
  .upload-box input{max-width:100%;font-size:14px}
  .form-actions{display:grid;grid-template-columns:1fr;position:sticky;bottom:0;z-index:5;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(244,247,246,0),var(--bg) 28%)}
  .form-actions .btn{width:100%;min-height:50px;border-radius:14px}
}

@media(max-width:520px){
  .auth-page{padding:0}
  .auth-shell{width:100%;min-height:100dvh;border-radius:0;box-shadow:none}
  .auth-brand{padding:22px 18px 19px}
  .auth-brand img{width:72px;height:72px;border-radius:18px}
  .auth-brand h1{font-size:21px}
  .auth-brand p{display:none}
  .auth-card{padding:25px 18px 28px}
  .mobile-top-logo{width:38px;height:38px;border-radius:11px}
  .topbar{padding:10px 11px}
  .menu-toggle{width:42px;height:42px;border-radius:12px;background:var(--green-soft);color:var(--green-dark);display:grid;place-items:center}
  .content{padding:13px 9px}
  .form-panel{padding:11px}
  .form-section{padding:14px 11px}
  .form-grid input,.form-grid select,.stack input,.stack select{padding-inline:12px}
}


/* V1.2.2: storage cleanup, permanent deletion and attachment controls */
.btn.danger{background:#b42318;color:#fff}
.btn.danger:hover{background:#8f1c13}
.btn.warning{background:#fff4dd;color:#8b4c00;border:1px solid #f0cf94}
.btn.warning:hover{background:#ffe9bf}
.btn:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.25)}
.danger-text{color:var(--danger)}
.attachment-row{display:flex;align-items:stretch;gap:9px;margin-top:9px}
.attachment-row>a{flex:1;min-width:0;margin:0!important}
.attachment-row form{display:flex;align-items:center}
.danger-zone{border-color:#f0c7c3;background:linear-gradient(180deg,#fff,#fffafa)}
.danger-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.danger-grid>article{border:1px solid var(--line);border-radius:17px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.72fr);gap:18px;align-items:start;background:#fff}
.danger-grid .cleanup-card{border-color:#f0d7ac;background:#fffdf8}
.danger-grid .delete-card{border-color:#efc3bf;background:#fffafa}
.danger-grid h3{margin:0 0 7px;font-size:17px}
.danger-grid p{margin:0;color:var(--muted);line-height:1.75;font-size:13px}
.danger-grid ul{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:13px 0 0}
.danger-grid li{background:#f2f6f4;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;color:#52605b}
.danger-form{display:grid;gap:10px;border-right:1px dashed var(--line);padding-right:18px}
.danger-form label{display:grid;gap:7px;font-size:12px;font-weight:800}
.danger-form input{width:100%;min-height:45px;border:1px solid #e3cac7;border-radius:11px;padding:10px 12px;direction:rtl;text-align:right;background:#fff}
.danger-form input:focus{outline:0;border-color:#d5827a;box-shadow:0 0 0 3px rgba(180,35,24,.08)}
.danger-form .btn{width:100%}
@media(max-width:1050px){.danger-grid{grid-template-columns:1fr}.danger-grid>article{grid-template-columns:1fr 280px}}
@media(max-width:700px){.attachment-row{display:grid;grid-template-columns:1fr}.attachment-row form,.attachment-row .btn{width:100%}.danger-grid>article{grid-template-columns:1fr;padding:15px}.danger-form{border-right:0;border-top:1px dashed var(--line);padding:14px 0 0}.danger-grid ul{display:grid;grid-template-columns:1fr 1fr}.danger-zone{padding:17px 13px}}

/* V1.2.3: multiple registration types per case */
.filter-field>small{font-size:10px;line-height:1.5;color:var(--muted)}
.type-choice-group{grid-column:1/-1;border:1px solid #dbe5e1;border-radius:15px;padding:15px;background:#fbfdfc;min-width:0}
.type-choice-group legend{padding:0 8px;font-size:13px;font-weight:800;color:var(--ink)}
.type-choice-group>p{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.65}
.type-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.type-choice{display:flex!important;align-items:flex-start;gap:9px!important;border:1px solid var(--line);border-radius:13px;padding:11px 12px;background:#fff;cursor:pointer;transition:.18s;min-width:0;font-weight:700!important}
.type-choice:hover{border-color:#8bc8b1;background:#f7fcfa}
.type-choice:has(input:checked){border-color:#45a984;background:var(--green-soft);box-shadow:0 0 0 3px rgba(15,122,90,.07)}
.type-choice input{width:18px!important;height:18px!important;min-height:0!important;margin:1px 0 0;accent-color:var(--green);flex:0 0 auto}
.type-choice span{line-height:1.5;min-width:0}
.type-choice small{display:block;color:#8a5d00;font-size:10px;line-height:1.45;margin-top:2px}
.case-type-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px}
.case-type-tags span{display:inline-flex;align-items:center;max-width:100%;padding:5px 8px;border-radius:999px;background:#e8f7f1;color:#0b6b4d;font-size:10px;font-weight:800;line-height:1.35}
.detail-tags{margin:0}
.detail-tags span{font-size:12px;padding:6px 10px}

@media(max-width:1000px){.type-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .type-choice-group{padding:13px 10px;border-radius:14px}
  .type-choice-grid{grid-template-columns:1fr;gap:8px}
  .type-choice{padding:12px 11px}
  .case-type-tags span{font-size:10px}
}

/* V1.2.4: exact multi-type filters and Excel export tracking */
.filter-types-field{grid-column:span 2;border:1px solid #dbe5e1;border-radius:13px;padding:10px 12px;background:#fff;min-width:0}
.filter-types-field legend{padding:0 5px;font-size:11px;font-weight:800;color:var(--muted)}
.filter-type-options{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.filter-type-options label{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:7px 10px;background:#f8fbfa;font-size:11px;font-weight:800;cursor:pointer;transition:.16s}
.filter-type-options label:hover{border-color:#8bc8b1;background:#f1faf6}
.filter-type-options label:has(input:checked){border-color:#3ca27d;background:var(--green-soft);color:var(--green-dark);box-shadow:0 0 0 2px rgba(15,122,90,.06)}
.filter-type-options input{width:16px!important;height:16px!important;min-height:0!important;margin:0;accent-color:var(--green)}
.bulk-export-form{display:grid;gap:10px}
.bulk-export-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 13px;border:1px solid #cce7dc;background:#f2fbf7;border-radius:14px;margin-bottom:10px}
.bulk-export-bar label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;cursor:pointer}
.bulk-export-bar input{width:17px;height:17px;accent-color:var(--green)}
.bulk-export-bar .selected-cases-count{color:var(--muted);font-size:12px;flex:1}
.select-column{width:68px;text-align:center!important}
.select-cell{text-align:center}
.case-select{width:18px;height:18px;accent-color:var(--green);cursor:pointer}
.case-header-actions{flex-wrap:wrap}
@media(max-width:1000px){.filter-types-field{grid-column:1/-1}}
@media(max-width:700px){.filter-types-field{grid-column:1/-1;padding:10px}.filter-type-options{display:grid;grid-template-columns:1fr 1fr}.filter-type-options label{border-radius:11px;justify-content:flex-start;padding:9px}.bulk-export-bar{display:grid;grid-template-columns:1fr;padding:11px}.bulk-export-bar .btn{width:100%}.bulk-export-bar .selected-cases-count{order:2}.select-cell{display:flex!important;justify-content:flex-end;align-items:center}}
@media(max-width:430px){.filter-type-options{grid-template-columns:1fr}}

/* V1.2.5: unified beneficiary profile, needs and controlled benefit lookup */
.needs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}
.need-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:#fff;display:grid;gap:10px;min-width:0}
.need-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.need-title>span{font-weight:900;line-height:1.5}.need-card p{margin:0;line-height:1.75;color:#43514c}.need-card>small{color:var(--muted)}
.need-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:auto}.need-actions form{display:flex;gap:6px;align-items:center}
.need-form,.benefit-form{border-top:1px dashed var(--line);padding-top:18px;margin-top:18px}.need-form>.btn,.benefit-form>.btn{margin-top:12px}
.attachment-mini{display:inline-flex;margin-top:10px;padding:7px 9px;border-radius:10px;background:#f2f8f5;color:var(--green-dark);font-size:11px;font-weight:800}
.delete-benefit{margin-top:10px;max-width:250px}.delete-benefit summary{cursor:pointer;color:var(--danger);font-size:11px;font-weight:800}.delete-benefit form{display:grid;gap:7px;margin-top:9px;padding:10px;border:1px solid #f0c7c3;border-radius:12px;background:#fffafa}.delete-benefit label{display:grid;gap:4px;font-size:10px;font-weight:800}.delete-benefit input{width:100%;border:1px solid #e3cac7;border-radius:9px;padding:8px;background:#fff}
.recent-warning{margin:12px 0 0;padding:11px 13px;border:1px solid #f0cf94;border-radius:12px;background:#fff7e8;color:#8b5700;font-size:12px;font-weight:800}
.lookup-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lookup-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff;display:grid;gap:9px}.lookup-card strong,.lookup-card small{display:block}.lookup-card small{color:var(--muted);margin-top:3px}.lookup-card p{margin:0;color:#52605b;line-height:1.7}.lookup-card details{border-top:1px dashed var(--line);padding-top:9px}.lookup-card summary{cursor:pointer;font-weight:800;color:var(--green-dark)}.lookup-card ul{margin:10px 0 0;padding-right:18px;display:grid;gap:7px;line-height:1.6}
@media(max-width:1050px){.needs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.needs-grid,.lookup-results{grid-template-columns:1fr}.need-card{padding:13px}.need-actions form{width:100%}.need-actions .btn{width:100%}.benefit-history article{align-items:start}.delete-benefit{max-width:none}.need-form,.benefit-form{padding-top:15px}}
.unified-edit-note{border:1px solid #b9ddd0;background:#f2faf7;border-radius:14px;padding:13px;display:grid;gap:4px}.unified-edit-note strong{color:var(--green-dark)}.unified-edit-note span{font-size:12px;color:var(--muted);line-height:1.6}

/* V1.2.6: manager approval workflow for staff registrations */
.approval-panel{border-color:#c9ded6;background:linear-gradient(180deg,#fff,#f8fcfa)}
.approval-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:start}
.approval-actions form{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;min-width:0}
.approval-actions label{display:grid;gap:7px;font-size:12px;font-weight:800}
.approval-actions textarea{width:100%;min-height:76px;border:1px solid var(--line);border-radius:11px;padding:10px 12px;resize:vertical;background:#fff;font:inherit}
.approval-actions textarea:focus{outline:0;border-color:#54a98a;box-shadow:0 0 0 3px rgba(15,122,90,.08)}
.approval-actions .btn{width:100%;min-height:44px}
.alert.warning{border:1px solid #f0cf94;background:#fff7e8;color:#7b4c00}
@media(max-width:900px){.approval-actions{grid-template-columns:1fr}}

/* V1.2.7 - simplified beneficiary registration form */
.optional-fields{margin-top:16px;border:1px solid var(--line);border-radius:14px;background:#fafcfb;overflow:hidden}
.optional-fields summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:800;color:var(--green-dark);display:flex;align-items:center;justify-content:space-between;gap:10px}
.optional-fields summary::-webkit-details-marker{display:none}
.optional-fields summary:after{content:"＋";font-size:18px;color:var(--green)}
.optional-fields[open] summary:after{content:"−"}
.optional-fields>p{margin:0;padding:0 16px 12px;color:var(--muted);font-size:13px}
.optional-fields>.form-grid{padding:0 16px 16px}
.form-section h3 small{font-size:12px;color:var(--muted);font-weight:600;margin-right:5px}
@media(max-width:520px){.optional-fields summary{padding:13px}.optional-fields>p{padding:0 13px 11px}.optional-fields>.form-grid{padding:0 13px 13px}}

/* V1.2.8 - optional fields displayed with the basic data */
.field-note{margin:12px 0 0;color:var(--muted);font-size:.9rem}


/* V1.2.9 - compact needs and assistance sections */
.current-needs-summary{padding:14px 0 4px}
.current-needs-tags{margin:0}.current-needs-tags span{font-size:12px;padding:7px 11px}
.compact-empty{padding:16px;margin:0}
.needs-editor,.benefit-entry{margin-top:16px;border-top:1px dashed var(--line);padding-top:15px}
.needs-editor>summary,.benefit-entry>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border-radius:11px;padding:10px 15px;font-weight:900;transition:.18s}
.needs-editor>summary::-webkit-details-marker,.benefit-entry>summary::-webkit-details-marker{display:none}
.needs-editor>summary{border:1px solid var(--green);background:#fff;color:var(--green-dark)}
.needs-editor>summary:hover{background:var(--green-soft)}
.needs-editor>summary:after,.benefit-entry>summary:after{content:"＋";font-size:16px}
.needs-editor[open]>summary:after,.benefit-entry[open]>summary:after{content:"−"}
.needs-editor-body{margin-top:15px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fbfdfc}
.editor-note{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.7}
.compact-need-form{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;margin-top:15px}
.benefit-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}
.benefit-overview>div{border:1px solid var(--line);border-radius:14px;background:#f8fbfa;padding:13px;display:grid;gap:4px;min-width:0}
.benefit-overview strong{font-size:17px;color:var(--ink);overflow-wrap:anywhere}.benefit-overview span{font-size:11px;color:var(--muted);font-weight:800}
.benefit-compact-list{display:grid;gap:9px}
.benefit-compact-list>article{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:13px;padding:11px 12px;background:#fff;min-width:0}
.benefit-compact-main{display:grid;gap:3px;min-width:0;flex:1}.benefit-compact-main strong{font-size:14px}.benefit-compact-main small{color:var(--muted);font-size:11px}
.benefit-detail-toggle{position:relative;flex:0 0 auto}.benefit-detail-toggle>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:7px 10px;color:var(--green-dark);font-size:11px;font-weight:900;background:#fff}
.benefit-detail-toggle>summary::-webkit-details-marker{display:none}.benefit-detail-toggle[open]>summary{background:var(--green-soft);border-color:#9bcdbb}
.benefit-detail-box{position:relative;margin-top:10px;border:1px solid var(--line);border-radius:12px;background:#fafcfb;padding:12px;min-width:min(540px,75vw)}
.benefit-detail-box dl{margin:0;display:grid;gap:9px}.benefit-detail-box dl>div{display:grid;gap:3px}.benefit-detail-box dt{font-size:10px;color:var(--muted);font-weight:900}.benefit-detail-box dd{margin:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.benefit-entry>summary{border:1px solid var(--green);background:var(--green);color:#fff}.benefit-entry>summary:hover{background:var(--green-dark)}
.compact-benefit-form{margin-top:14px;border:1px solid var(--line);border-radius:15px;padding:15px;background:#fbfdfc}
.compact-benefit-form label small{display:inline;color:var(--muted);font-weight:600}
.compact-optional-fields{grid-column:1/-1;margin-top:2px;background:#fff}.compact-optional-fields>.form-grid{padding-top:0}
@media(max-width:760px){.benefit-overview{grid-template-columns:1fr}.benefit-compact-list>article{align-items:flex-start;flex-wrap:wrap}.benefit-detail-toggle{width:100%}.benefit-detail-toggle>summary{width:100%;text-align:center}.benefit-detail-box{min-width:0;width:100%}.needs-editor>summary,.benefit-entry>summary{width:100%}.needs-editor-body,.compact-benefit-form{padding:12px}}

/* V1.2.12 - simplified filters and stateless Excel exports */
.beneficiary-open-action{justify-content:flex-start;margin-top:14px}
.beneficiary-data-panel .details{grid-template-columns:repeat(4,minmax(0,1fr))}
.import-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}
.import-intro h2{margin:5px 0 7px}.import-intro p{margin:0;color:var(--muted);line-height:1.7}
.import-template-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.import-grid{align-items:start}.import-form label small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.55}
.import-rules{border:1px solid #d7e6df;border-radius:13px;background:#f7fbf9;padding:12px 14px;color:#43514c}
.import-rules strong{display:block;color:var(--green-dark);margin-bottom:6px}.import-rules ul{margin:0;padding-right:18px;display:grid;gap:5px;font-size:12px;line-height:1.6}
.import-results{margin-top:18px}.import-stats{margin:15px 0}.import-history a{align-items:center}
.import-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.import-status.imported{background:#e4f6ec;color:#087047}.import-status.existing,.import-status.duplicate_file,.import-status.already_recorded{background:#fff4dc;color:#8b5700}.import-status.not_found,.import-status.not_approved,.import-status.invalid{background:#fde9e7;color:#a43831}
@media(max-width:1050px){.beneficiary-data-panel .details{grid-template-columns:repeat(2,minmax(0,1fr))}.import-intro{align-items:flex-start;flex-direction:column}.import-template-actions{justify-content:flex-start}}
@media(max-width:650px){.beneficiary-data-panel .details{grid-template-columns:1fr}.import-template-actions,.import-template-actions .btn{width:100%}.import-intro{padding:16px}.import-stats{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.import-stats{grid-template-columns:1fr}}

/* V1.2.14 - focused staff permissions and scheduled backups */
.quick-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.staff-simple-dashboard .panel{min-height:170px}
.backup-grid select{width:100%}
@media(max-width:650px){.quick-actions,.quick-actions .btn{width:100%}}

/* V1.2.15 - simplified case actions and consistent interface icons */
.app-icon{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.sidebar nav a{padding:9px 10px;gap:10px;border:1px solid transparent}
.sidebar nav a:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.08)}
.sidebar nav a.active{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.11);box-shadow:inset -3px 0 0 rgba(205,245,230,.9)}
.nav-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);transition:background .18s,border-color .18s,transform .18s}
.nav-icon .app-icon{width:18px;height:18px}
.sidebar nav a:hover .nav-icon,.sidebar nav a.active .nav-icon{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.16)}
.sidebar nav a:hover .nav-icon{transform:translateX(-1px)}
.btn .app-icon{width:17px;height:17px;stroke-width:2}
.btn{transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.primary{box-shadow:0 7px 18px rgba(15,122,90,.14)}
.btn.primary:hover{box-shadow:0 9px 22px rgba(15,122,90,.2)}
.case-icon{border:1px solid #d5ece3;box-shadow:0 4px 12px rgba(15,122,90,.06)}
.case-icon .app-icon{width:17px;height:17px;stroke-width:2}
.logout-btn{display:flex;align-items:center;justify-content:center;gap:8px;transition:background .18s,border-color .18s}
.logout-btn .app-icon{width:17px;height:17px}
.logout-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3)}
.top-actions .btn,.quick-actions .btn,.welcome .btn{gap:8px}
@media(max-width:820px){.sidebar nav a{padding:9px 10px}.nav-icon{width:33px;height:33px}.btn:hover{transform:none}}

/* V1.2.18 - clearer sidebar grouping and ordering */
.sidebar nav .nav-section-label{margin:13px 11px 2px;padding-top:10px;border-top:1px solid rgba(255,255,255,.10);font-size:10px;font-weight:900;letter-spacing:.08em;color:rgba(255,255,255,.48)}
.sidebar nav .nav-section-label:first-of-type{margin-top:3px;border-top:0;padding-top:2px}
.sidebar nav a{position:relative}
.sidebar nav a.active:after{content:"";position:absolute;right:4px;top:9px;bottom:9px;width:3px;border-radius:99px;background:rgba(255,255,255,.9)}
@media(max-width:820px){.sidebar nav .nav-section-label{margin-top:10px;padding-top:8px}}

/* V1.2.19: clearer assistance summaries and OR multi-need filtering */
.benefit-type-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.benefit-type-summary>span{display:inline-flex;align-items:center;gap:4px;border:1px solid #d8e6e0;background:#f7fbf9;color:#29483d;border-radius:9px;padding:5px 8px;font-size:10px;font-weight:800;line-height:1.35}
.benefit-type-summary>span b{color:var(--green-dark)}
.benefit-type-summary.compact{max-width:340px}
.benefit-filter-count{display:block;margin-top:7px;color:var(--green-dark);font-weight:900}
.benefit-type-breakdown{border:1px solid var(--line);border-radius:15px;background:#fbfdfc;padding:13px;margin-bottom:15px}
.benefit-breakdown-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:9px}
.benefit-breakdown-title strong{font-size:13px}.benefit-breakdown-title small{font-size:10px;color:var(--muted)}
.benefit-type-summary.detailed{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin-top:0}
.benefit-type-summary.detailed>span{display:grid;gap:2px;align-items:start;padding:9px 10px}
.benefit-type-summary.detailed>span strong{font-size:12px;color:var(--ink)}
.benefit-type-summary.detailed>span small,.benefit-type-summary.lookup>span small{font-size:9px;color:var(--muted);font-weight:700}
.benefit-type-summary.lookup>span{display:grid;gap:2px}
@media(max-width:760px){.benefit-breakdown-title{align-items:start;flex-direction:column}.benefit-type-summary.detailed{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.benefit-type-summary.detailed{grid-template-columns:1fr}}

/* V1.2.20: optional beneficiary registration + safe type deletion */
.type-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.type-actions form{margin:0}.case-form .field-note{background:#f7fafc;border:1px solid #e4eaf1;border-radius:10px;padding:10px 12px;color:#526170}.case-form .form-section h3 small{font-weight:500;color:#6d7c8b}

/* V1.2.21: national-ID requirement + distinct beneficiaries per assistance type */
.type-usage-list .type-main{display:grid;gap:6px;min-width:0}.type-stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.type-stats em{font-style:normal;display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #dfe8e4;background:#f8fbfa;border-radius:9px;color:#4d6259;font-size:10px;font-weight:800}.type-stats em b{color:var(--green-dark);font-size:12px}.type-history-note{color:#738178!important}.case-form input[name="national_id"]:invalid:not(:placeholder-shown){border-color:#d88b8b;background:#fffafa}.case-form input[name="national_id"][readonly]{background:#f3f6f8;color:#53616d}
@media(max-width:620px){.type-stats{display:grid;grid-template-columns:1fr}.type-stats em{justify-content:space-between}}


/* V1.2.23: live national-ID validation and duplicate detection */
.national-id-field{position:relative}.national-id-feedback{display:none;margin-top:6px;padding:7px 9px;border-radius:9px;font-size:11px;font-weight:800;line-height:1.6}.national-id-feedback:not(:empty){display:block}.national-id-feedback.checking{display:block;background:#f4f7fa;color:#617181;border:1px solid #dfe7ed}.national-id-feedback.incomplete,.national-id-feedback.warning{display:block;background:#fff8e8;color:#805c13;border:1px solid #f0dfb2}.national-id-feedback.available,.national-id-feedback.current{display:block;background:#eaf8f0;color:#176840;border:1px solid #bee3cc}.national-id-feedback.invalid,.national-id-feedback.duplicate{display:block;background:#fff0ef;color:#9e302b;border:1px solid #edc4c1}.national-id-feedback a{color:inherit;text-decoration:underline;font-weight:900}.case-form input[name="national_id"].national-id-available{border-color:#72bf91;background:#f8fffb}.case-form input[name="national_id"].national-id-duplicate,.case-form input[name="national_id"].national-id-invalid{border-color:#cf7772;background:#fff8f7}.case-form .form-actions .btn:disabled{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}.upload-optimize-status{display:block;margin-top:7px;color:#657783;font-size:11px;font-weight:750;line-height:1.6}.upload-optimize-status.working{color:#526a78}.upload-optimize-status.success{color:#176840}.upload-optimize-status.warning{color:#805c13}

/* V1.2.29: simple dedicated reports area */
.reports-shell{border-radius:22px;overflow:hidden}
.reports-head{align-items:center;margin-bottom:18px}
.report-actions{display:flex;gap:9px;align-items:center}
.report-filter-card{border:1px solid var(--line);background:#f8fbf9;border-radius:18px;padding:16px;display:grid;gap:14px}
.report-mode-switch{display:inline-flex;gap:6px;padding:5px;background:#edf4f0;border-radius:14px;width:max-content;max-width:100%}
.report-mode-option{position:relative;display:flex;align-items:center;justify-content:center;padding:9px 15px;border-radius:11px;font-size:13px;font-weight:800;color:var(--muted);cursor:pointer;transition:.18s}
.report-mode-option input{position:absolute;opacity:0;pointer-events:none}.report-mode-option.active{background:var(--green);color:#fff;box-shadow:0 5px 14px rgba(15,122,90,.22)}
.report-mode-option:focus-within{outline:3px solid rgba(15,122,90,.13);outline-offset:2px}
.report-filter-fields{display:grid;gap:12px;align-items:end}.report-filter-fields [hidden]{display:none!important}
.report-filter-card.report-mode-year .report-filter-fields{grid-template-columns:minmax(220px,360px) auto;justify-content:start}
.report-filter-card.report-mode-custom .report-filter-fields{grid-template-columns:minmax(180px,280px) minmax(180px,280px) auto;justify-content:start}
.report-filter-fields label{display:grid;gap:7px;font-size:12px;font-weight:800;color:var(--ink)}
.report-filter-fields input,.report-filter-fields select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 12px;outline:none;text-align:right;direction:rtl}
.report-filter-fields input:focus,.report-filter-fields select:focus{border-color:#76bea5;box-shadow:0 0 0 3px rgba(15,122,90,.08)}
.report-show-btn{min-height:46px;white-space:nowrap}.report-period-line{display:flex;align-items:center;gap:9px;margin-top:15px;padding:11px 14px;border-radius:14px;background:var(--green-soft);color:var(--green-dark);font-size:13px}.report-period-line span{color:var(--muted)}
.report-summary-stats{margin-top:18px}.report-summary-stats article{border-radius:20px}.report-summary-stats strong{font-size:30px}
.report-two-columns{grid-template-columns:1fr 1fr}.report-card{border-radius:22px}.report-card .table-wrap{border:1px solid var(--line);border-radius:14px;overflow:auto}.report-card table{min-width:0}.report-card th:first-child{border-radius:0 12px 0 0}.report-card th:last-child{border-radius:12px 0 0 0}
@media(max-width:980px){.report-filter-card.report-mode-year .report-filter-fields,.report-filter-card.report-mode-custom .report-filter-fields{grid-template-columns:1fr 1fr}.report-show-btn{grid-column:1/-1;width:100%}.report-two-columns{grid-template-columns:1fr}}
@media(max-width:620px){.reports-shell{border-radius:18px;padding:16px}.report-mode-switch{width:100%}.report-mode-option{flex:1;padding:9px 8px}.report-filter-card.report-mode-year .report-filter-fields,.report-filter-card.report-mode-custom .report-filter-fields{grid-template-columns:1fr}.report-show-btn{grid-column:auto}.report-period-line{align-items:flex-start;flex-direction:column;gap:4px}.report-summary-stats{grid-template-columns:1fr 1fr}.report-summary-stats strong{font-size:26px}.report-card{border-radius:18px}}
@media print{
  .report-print-mode .sidebar,.report-print-mode .sidebar-backdrop,.report-print-mode .topbar,.report-print-mode footer,.report-print-mode .no-print{display:none!important}
  .report-print-mode .main{margin:0!important;width:100%!important}.report-print-mode .content{padding:0!important}.report-print-mode{background:#fff!important}
  .report-print-mode .content>*{max-width:none!important}.report-print-mode .panel,.report-print-mode .stats article{box-shadow:none!important;break-inside:avoid}
  .report-print-mode .reports-shell{border:0!important;padding:0 0 12px!important}.report-print-mode .report-period-line{border:1px solid #dfe9e4;background:#f6faf8!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .report-print-mode .report-summary-stats{grid-template-columns:repeat(4,1fr)!important;gap:8px!important}.report-print-mode .report-summary-stats article{padding:12px!important;border-radius:12px!important}.report-print-mode .report-summary-stats strong{font-size:22px!important}
  .report-print-mode .report-two-columns{grid-template-columns:1fr!important;gap:12px!important}.report-print-mode .report-card{padding:14px!important;border-radius:12px!important}.report-print-mode .mobile-cards{overflow:visible!important}.report-print-mode .mobile-cards table{display:table!important;min-width:0!important}.report-print-mode .mobile-cards thead{display:table-header-group!important}.report-print-mode .mobile-cards tbody{display:table-row-group!important}.report-print-mode .mobile-cards tr{display:table-row!important;box-shadow:none!important;border:0!important}.report-print-mode .mobile-cards td{display:table-cell!important;padding:8px!important;border-bottom:1px solid #ddd!important}.report-print-mode .mobile-cards td:before{display:none!important}
  @page{size:A4 portrait;margin:12mm}
}

/* V1.2.30 - تقارير أكثر اتساقًا */
.reports-shell,.report-card{border-radius:16px}
.report-filter-card{border-radius:14px}
.report-mode-switch{border-radius:12px}
.report-mode-option{border-radius:9px}
.report-filter-fields input,.report-filter-fields select,.report-period-line{border-radius:10px}
.report-card .table-wrap{border-radius:10px}
.report-card th:first-child,.report-card th:last-child{border-radius:0}
.report-actions .btn{min-width:140px;justify-content:center}
@media(max-width:620px){.reports-shell,.report-card{border-radius:14px}.report-filter-card{border-radius:12px}.report-actions{width:100%}.report-actions .btn{width:100%}}

/* V1.2.36 - English digits across numeric/date controls and identifiers */
input[type="date"], input[type="number"], input[inputmode="numeric"], input[type="tel"], .mono {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
input[type="date"], input[type="number"], input[inputmode="numeric"], input[type="tel"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

/* V1.2.38 - Modern BSCR interface redesign */
:root{
  --green:#087f78;
  --green-dark:#075f5a;
  --green-soft:#e9f7f5;
  --ink:#18232d;
  --muted:#70808f;
  --line:#e5ebef;
  --bg:#f5f8fa;
  --white:#fff;
  --danger:#b42318;
  --warning:#a15c00;
  --shadow:0 10px 32px rgba(21,42,54,.065);
  --radius:18px;
  --blue:#2d6cdf;
  --blue-soft:#eef4ff;
  --gold:#c48a22;
}
html{background:var(--bg);scrollbar-color:#b7c9c7 transparent}
body.app-page{background:
  radial-gradient(circle at 8% 4%,rgba(8,127,120,.045),transparent 27rem),
  linear-gradient(180deg,#f8fbfc 0,#f4f7f9 100%);color:var(--ink)}
body.app-page:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:linear-gradient(rgba(26,65,75,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(26,65,75,.025) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.3),transparent 45%)}
.sidebar{width:292px;background:rgba(255,255,255,.96);color:var(--ink);padding:20px 14px 16px;border-left:1px solid #e8edef;box-shadow:-8px 0 28px rgba(20,44,54,.035);backdrop-filter:blur(14px);overflow-y:auto}
.brand{gap:11px;padding:2px 10px 18px;border-bottom:1px solid var(--line);min-height:82px}
.brand img{width:60px;height:60px;border-radius:50%;padding:2px;background:#fff;border:1px solid #edf1f3;box-shadow:0 6px 18px rgba(34,61,72,.08)}
.brand strong{font-size:18px;color:#08746e;line-height:1.2}.brand span{font-size:13px;color:#26333d;opacity:1;margin-top:3px;font-weight:800}.brand small{display:block;color:#8a98a4;font-size:10px;margin-top:4px}
.sidebar nav{gap:5px;margin-top:14px}.sidebar nav a{color:#586673;padding:10px 11px;border-radius:12px;font-weight:700;font-size:13px;position:relative}.sidebar nav a:hover{background:#f3f8f8;color:var(--green-dark);transform:translateX(-1px)}.sidebar nav a.active{background:linear-gradient(135deg,#0a8981,#08766f);color:#fff;box-shadow:0 8px 20px rgba(8,127,120,.18)}
.nav-icon{width:35px;height:35px;border-radius:10px;background:#f2f6f7;color:#64727d;display:grid;place-items:center;flex:0 0 auto}.sidebar nav a.active .nav-icon{background:rgba(255,255,255,.15);color:#fff}.sidebar nav a:hover .nav-icon{background:#e7f5f3;color:var(--green-dark)}
.sidebar nav .nav-section-label{margin:12px 11px 3px;padding-top:11px;border-top:1px solid var(--line);font-size:9px;color:#a1abb3;letter-spacing:.04em}.sidebar nav .nav-section-label:first-of-type{border-top:0;margin-top:2px;padding-top:3px}
.sidebar-impact{margin:16px 4px 10px;padding:12px;border:1px solid #dceae8;border-radius:15px;background:linear-gradient(135deg,#e8f7f4,#f9fcfb);display:flex;gap:10px;align-items:center}.sidebar-impact img{width:42px;height:42px;object-fit:contain;flex:0 0 auto}.sidebar-impact strong,.sidebar-impact span{display:block}.sidebar-impact strong{font-size:11px;color:var(--green-dark);line-height:1.55}.sidebar-impact span{font-size:9px;color:#78878e;margin-top:3px;line-height:1.55}
.sidebar-foot{border-top:1px solid var(--line);padding:13px 5px 0;margin-top:auto}.user-mini{margin-bottom:9px;padding:0 5px}.user-mini small{opacity:1;color:var(--muted)}.logout-btn{border:1px solid #e2e8eb;background:#fff;color:#596873;border-radius:11px;padding:9px 10px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800}.logout-btn:hover{border-color:#efc3c0;color:var(--danger);background:#fff8f8}
.main{margin-right:292px;min-height:100vh}.topbar{height:86px;padding:0 28px;background:rgba(255,255,255,.86);border-bottom:1px solid rgba(220,230,234,.85);box-shadow:0 4px 18px rgba(21,42,54,.025);display:grid;grid-template-columns:minmax(180px,1fr) minmax(300px,560px) minmax(220px,1fr);gap:22px;position:sticky;top:0}.topbar-start,.topbar-end{display:flex;align-items:center;gap:12px}.topbar-end{justify-content:flex-start}.topbar h1{font-size:20px;margin:2px 0 0;color:#1e2d38}.crumb{font-size:10px;color:#94a0a8}.top-search{height:46px;border:1px solid #dce5e9;border-radius:13px;background:#fbfdfd;display:flex;align-items:center;padding:0 12px;gap:9px;transition:.18s}.top-search:focus-within{border-color:#8dcac4;background:#fff;box-shadow:0 0 0 4px rgba(8,127,120,.06)}.top-search-icon{display:grid;place-items:center;color:#8998a3}.top-search input{border:0;outline:0;background:transparent;width:100%;color:var(--ink);min-width:0}.top-search input::placeholder{color:#a5b0b8}.top-search kbd{font:700 9px/1 "Segoe UI",sans-serif;color:#929fa8;background:#f0f4f5;border:1px solid #e4eaed;border-radius:7px;padding:6px 7px;white-space:nowrap;direction:ltr}.top-user{display:flex;align-items:center;gap:9px;padding:6px 8px 6px 10px;border-radius:12px;transition:.18s}.top-user:hover{background:#f1f7f6}.top-user>span:last-child strong,.top-user>span:last-child small{display:block}.top-user strong{font-size:11px}.top-user small{font-size:9px;color:var(--muted);margin-top:2px}.avatar{background:linear-gradient(145deg,#d9f3ef,#edf8f6);color:var(--green-dark);border:1px solid #cde7e3;box-shadow:inset 0 0 0 2px #fff}.top-actions .btn{white-space:nowrap}
.content{padding:26px 28px 12px}.content>*,.content>.grid{max-width:1520px}.content>*+*{margin-top:18px}footer{padding:18px 28px 28px;color:#98a3aa}
.panel{border:1px solid #e4eaed;border-radius:17px;padding:21px;box-shadow:var(--shadow);background:rgba(255,255,255,.97)}.panel:hover{box-shadow:0 13px 34px rgba(21,42,54,.08)}.panel-head{margin-bottom:17px}.panel-head h2{font-size:18px;color:#1e2c36}.panel-head p{font-size:12px;line-height:1.8}.eyebrow{color:var(--green);font-size:9px;letter-spacing:.035em}.panel-head>a{font-size:11px;color:var(--green)}
.dashboard-hero{min-height:182px;padding:26px 30px;border-radius:19px;background:linear-gradient(115deg,#ffffff 0%,#f9fcfb 52%,#edf8f6 100%);color:var(--ink);border:1px solid #dfe9e8;box-shadow:0 12px 34px rgba(28,64,72,.06);position:relative;overflow:hidden}.dashboard-hero:before{content:"";position:absolute;inset:auto -90px -145px auto;width:390px;height:390px;border-radius:50%;border:52px solid rgba(8,127,120,.045)}.dashboard-hero:after{content:"";position:absolute;left:45%;top:0;width:1px;height:100%;background:linear-gradient(transparent,#cfe1df,transparent)}.welcome-copy{position:relative;z-index:2;max-width:58%}.welcome-copy .eyebrow{color:#4a918c}.dashboard-hero h2{font-size:29px;color:#192630;margin:7px 0 9px}.dashboard-hero p{opacity:1;color:#64727c;line-height:1.85;font-size:13px}.hero-actions{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap}.dashboard-hero .btn.primary{background:linear-gradient(135deg,#0a8d84,#08746e);box-shadow:0 8px 20px rgba(8,127,120,.17)}.dashboard-hero .btn.outline{background:#fff}.welcome-visual{width:38%;min-width:330px;display:flex;align-items:center;justify-content:center;gap:22px;position:relative;z-index:2}.impact-rings{width:112px;height:112px;position:relative;display:grid;place-items:center}.impact-rings span{position:absolute;border:1px solid rgba(8,127,120,.15);border-radius:50%}.impact-rings span:nth-child(1){inset:0}.impact-rings span:nth-child(2){inset:13px}.impact-rings span:nth-child(3){inset:27px;background:rgba(255,255,255,.65)}.impact-rings img{width:72px;height:72px;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 7px 12px rgba(33,46,58,.11))}.impact-words span,.impact-words strong,.impact-words small{display:block}.impact-words span{font-size:12px;color:#718088}.impact-words strong{font-size:22px;color:var(--green-dark);margin:3px 0}.impact-words small{font-size:10px;color:#91a0a7;line-height:1.7}
.stats{gap:14px;grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}.stats article{border:1px solid #e3e9ec;border-radius:16px;padding:18px 18px 17px;box-shadow:0 7px 22px rgba(21,42,54,.045);position:relative;overflow:hidden;min-height:130px}.stats article:before{content:"";position:absolute;left:18px;top:18px;width:39px;height:39px;border-radius:12px;background:#e8f7f4;box-shadow:inset 0 0 0 1px #dcefeb}.stats article:after{content:"↗";position:absolute;left:31px;top:27px;color:var(--green);font-weight:900;font-size:16px}.stats article:nth-child(2):before{background:#eef4ff;box-shadow:inset 0 0 0 1px #dce6fb}.stats article:nth-child(2):after{color:var(--blue)}.stats article:nth-child(3):before{background:#fff6e9;box-shadow:inset 0 0 0 1px #f6e7d0}.stats article:nth-child(3):after{color:#d37a23}.stats article:nth-child(4):before{background:#f1edff;box-shadow:inset 0 0 0 1px #e4ddfb}.stats article:nth-child(4):after{color:#7659c7}.stats article:nth-child(5):before{background:#eaf7ef;box-shadow:inset 0 0 0 1px #dcecdf}.stats article:nth-child(5):after{color:#378d58}.stats span{font-size:11px;color:#5f6d78;font-weight:800;padding-left:52px}.stats strong{font-size:30px;margin:10px 0 5px;color:#17313c;font-variant-numeric:lining-nums tabular-nums}.stats small{font-size:10px;color:#92a0a8}
.grid{gap:18px}.grid.two{grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr)}.case-list>a{padding:13px 3px;border-bottom:1px solid #edf1f2;border-radius:10px}.case-list>a:hover{background:#f8fbfb;padding-right:10px;padding-left:10px}.case-icon{width:38px;height:38px;border-radius:11px;background:#edf7f5}.status-bars{gap:14px}.status-bars i{height:7px;background:#edf1f2}.status-bars u{background:linear-gradient(90deg,#0a9187,#58b6ad)}
.staff-grid{gap:10px}.staff-grid article{border:1px solid #e6ecee;border-radius:14px;background:#fbfdfd;padding:12px}.staff-grid article:hover{border-color:#cee3e0;background:#f6fbfa}.staff-grid article>b{color:var(--green-dark);font-size:11px}
.btn{border-radius:10px;padding:10px 15px;font-size:12px;transition:.18s;box-shadow:none}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,#0a8b83,#08736d);box-shadow:0 6px 16px rgba(8,127,120,.14)}.btn.primary:hover{background:linear-gradient(135deg,#087c75,#06645f)}.btn.dark{background:#223943}.btn.outline{border:1px solid #dce5e8;background:#fff;color:#3c4c57}.btn.outline:hover{border-color:#a9cfcb;color:var(--green-dark);background:#f9fcfb}.btn.excel{background:#e9f6ee;color:#267146;border:1px solid #cde5d5}.btn.light{background:#fff;color:var(--green-dark)}
.table-wrap{border:1px solid #e7ecef;border-radius:13px;background:#fff}.table-wrap table{min-width:820px}.table-wrap th{font-size:10px;color:#7b8993;background:#f8fafb;padding:11px 12px;border-bottom:1px solid #e7edef}.table-wrap td{padding:13px 12px;border-bottom:1px solid #edf1f2;font-size:12px}.table-wrap tbody tr{transition:.15s}.table-wrap tbody tr:hover{background:#fbfdfd}.table-wrap td small{font-size:10px}.mono{font-size:11px;color:#176c67}.badge{padding:5px 8px;font-size:9px;border-radius:8px}.case-type-tags{gap:4px}.case-type-tags span{font-size:9px;padding:5px 7px;border-radius:8px;background:#edf8f5;color:#16715f}
.filters{gap:9px;margin-bottom:16px}.advanced-filters,.beneficiary-filters{padding:13px;border:1px solid #e6ecee;background:#f9fbfc;border-radius:14px}.filter-field>span,.filter-field legend{font-size:10px;color:#65747e}.filters input,.filters select,.inline-form input,.reset-form input,.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea{border-color:#dde6e9;border-radius:10px;min-height:42px;background:#fff}.filters input:focus,.filters select:focus,.inline-form input:focus,.reset-form input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack input:focus{border-color:#75bdb7;box-shadow:0 0 0 4px rgba(8,127,120,.055)}
.form-section{border-color:#e4eaed;border-radius:14px;padding:18px;background:#fbfcfd}.form-section h3{font-size:14px}.form-section h3 span{background:#eaf7f5;color:var(--green);border-radius:8px}.type-choice-group,.filter-types-field{border-color:#e0e8eb;background:#fff}.type-choice{border-radius:11px}.type-choice:has(input:checked),.filter-type-options label:has(input:checked){border-color:#79beb8;background:#eaf7f5;box-shadow:0 0 0 2px rgba(8,127,120,.045)}
.details>div{border-color:#e5ebee;background:#fbfcfd;border-radius:12px}.case-header{border-color:#e4eaed;border-radius:16px;padding:20px 22px;box-shadow:var(--shadow)}.case-header h2{font-size:22px}.beneficiary-link,.unified-edit-note,.report-period-line{background:#edf8f6;border-color:#d8ebe8}.needs-grid{gap:10px}.need-card{border-color:#e4eaed;border-radius:14px;background:#fff}.lookup-card{border-color:#e4eaed;border-radius:14px}.user-cards details{border-color:#e2e9ec;border-radius:13px}.user-edit{background:#fafcfc}.count-pill{background:#e9f7f5;color:var(--green-dark)}
.reports-shell,.report-card{border-radius:15px}.report-filter-card{background:#f9fbfc;border-color:#e4eaed}.report-mode-switch{background:#edf3f4}.report-mode-option.active{background:linear-gradient(135deg,#0a8b83,#08736d)}
.auth-page{background:radial-gradient(circle at 82% 14%,rgba(8,127,120,.15),transparent 24rem),linear-gradient(145deg,#edf7f5 0%,#f7fafb 45%,#eef4f8 100%)}.auth-shell{border:1px solid rgba(255,255,255,.65);border-radius:24px;box-shadow:0 30px 80px rgba(24,58,65,.14);min-height:560px}.auth-brand{background:linear-gradient(145deg,#087b74,#075c58);position:relative;overflow:hidden}.auth-brand:after{content:"";position:absolute;width:380px;height:380px;border:65px solid rgba(255,255,255,.06);border-radius:50%;left:-190px;bottom:-210px}.auth-brand img{width:124px;height:124px;border-radius:50%;padding:4px;box-shadow:0 12px 30px rgba(0,0,0,.13);position:relative;z-index:2}.auth-brand h1{font-size:31px;position:relative;z-index:2}.auth-brand span,.auth-brand p{position:relative;z-index:2}.auth-card{padding:48px}.auth-card h2{font-size:26px}.auth-card .btn{min-height:46px}
@media(max-width:1180px){.topbar{grid-template-columns:minmax(180px,1fr) minmax(240px,420px) auto}.top-user>span:last-child{display:none}.welcome-copy{max-width:62%}.welcome-visual{width:35%;min-width:280px}.impact-words small{display:none}}
@media(max-width:980px){.top-search kbd{display:none}.grid.two{grid-template-columns:1fr}.dashboard-hero:after{display:none}.welcome-copy{max-width:60%}.welcome-visual{min-width:250px}.impact-words span,.impact-words small{display:none}.impact-words strong{font-size:18px}}
@media(max-width:820px){.sidebar{width:min(88vw,310px);transform:translateX(100%);box-shadow:-18px 0 40px rgba(20,44,54,.14)}.main{margin-right:0}.topbar{height:74px;padding:0 14px;display:flex;justify-content:space-between;gap:10px}.topbar-start{min-width:0;flex:1}.topbar-title{min-width:0}.topbar h1{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-search{display:none}.topbar-end{gap:4px}.top-user{display:none}.content{padding:17px 12px 8px}.dashboard-hero{padding:22px;min-height:0}.welcome-copy{max-width:none;width:100%}.welcome-visual{display:none}.dashboard-hero h2{font-size:24px}.dashboard-hero p{font-size:12px}.dashboard-hero:before{opacity:.65}.hero-actions .btn{flex:1}.stats{grid-template-columns:1fr 1fr}.sidebar-impact{margin-top:12px}.panel{padding:17px}.advanced-filters,.beneficiary-filters{padding:10px}.btn:hover{transform:none}}
@media(max-width:560px){.stats{grid-template-columns:1fr}.stats article{min-height:116px}.dashboard-hero{border-radius:15px}.dashboard-hero h2{font-size:21px}.hero-actions{display:grid;grid-template-columns:1fr}.panel{border-radius:14px}.panel-head{align-items:flex-start;flex-direction:column;gap:9px}.panel-head h2{font-size:17px}.auth-shell{border-radius:0}.auth-brand{padding:27px 23px}.auth-brand img{width:84px;height:84px}.auth-brand h1{font-size:25px}.auth-card{padding:28px 23px}}
@media print{body.app-page:before{display:none}.sidebar-impact,.top-search,.top-user{display:none!important}}

/* V1.2.38 polish */
.sidebar-foot{background:transparent!important}

/* V1.2.41 - Social worker workflow + readability polish */
body.app-page{font-size:15px;line-height:1.65}
.content{font-size:14px}
.panel{padding:22px;border-radius:17px}
.panel-head{gap:14px;margin-bottom:18px}
.panel-head h2{font-size:21px;line-height:1.35;letter-spacing:-.15px}
.panel-head p{font-size:13.5px;line-height:1.8;color:#6d7c85;max-width:820px}
.eyebrow{font-size:10.5px;letter-spacing:.15px}
.table-wrap th{font-size:11.5px;font-weight:850;padding:12px 13px}
.table-wrap td{font-size:13.5px;padding:14px 13px;line-height:1.65}
.table-wrap td small{font-size:11px;line-height:1.55;margin-top:3px}
.badge{font-size:10.5px;padding:6px 9px;font-weight:850}
.case-type-tags span{font-size:10.5px;padding:6px 8px}
.btn{min-height:42px;padding:10px 16px;font-size:13px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.btn.small{min-height:39px;padding:9px 13px;font-size:12px}
.btn.tiny{min-height:36px;padding:8px 11px;font-size:11.5px}
.form-grid label,.stack label{font-size:13px;font-weight:800;color:#4d626b}
.filters input,.filters select,.inline-form input,.reset-form input,.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea{font-size:14px;min-height:45px;padding:10px 12px}
.form-grid textarea,.stack textarea{line-height:1.75}

/* Clear service status action: no longer looks like a plain text link */
.service-state-panel details{border-top:1px solid #edf1f2;padding-top:14px}
.service-state-panel details>summary{list-style:none;display:inline-flex;align-items:center;gap:9px;min-height:43px;padding:10px 15px;border:1px solid #f1d7a7;border-radius:12px;background:#fff8e9;color:#8a5200;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 4px 12px rgba(130,84,18,.055);transition:.18s}
.service-state-panel details>summary::-webkit-details-marker{display:none}
.service-state-panel details>summary:before{content:"⏸";display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#ffedc7;color:#8a5200;font-size:12px}
.service-state-panel details>summary:after{content:"▾";font-size:12px;margin-right:3px;transition:.18s}
.service-state-panel details[open]>summary{background:#fff3d9;border-color:#e9c77e}
.service-state-panel details[open]>summary:after{transform:rotate(180deg)}
.service-state-panel details>form{margin-top:14px;padding:15px;border-radius:13px;background:#fffdf8;border:1px solid #f2e4c7}

/* Admin notification in top bar */
.top-notification{position:relative;min-height:40px;display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dfe7e9;border-radius:11px;background:#fff;color:#52646d;text-decoration:none;font-size:11.5px;font-weight:800;transition:.18s}
.top-notification svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.top-notification:hover{border-color:#b8d7d3;background:#f8fcfb;color:var(--green-dark)}
.top-notification.has-alert{border-color:#f0d9a7;background:#fffaf0;color:#7e5709}
.top-notification b{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:#c84343;color:#fff;border:2px solid #fff;font-size:9px;font-variant-numeric:tabular-nums}

/* Social review marker on beneficiary profile */
.social-review-strip{display:flex;align-items:center;gap:12px;margin:14px 0 2px;padding:13px 15px;border:1px solid #bfe1d5;border-radius:14px;background:linear-gradient(135deg,#f1fbf7,#fbfefd);box-shadow:0 5px 16px rgba(25,108,82,.04)}
.social-review-strip.pending{border-color:#e3e8eb;background:#fafcfd;color:#62727b}
.social-review-strip>div{flex:1;min-width:0}
.social-review-strip strong{display:block;font-size:13.5px;color:#27594d}
.social-review-strip.pending strong{color:#64727b}
.social-review-strip small{display:block;margin-top:3px;font-size:11px;color:#72867e}
.review-check{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#d9f2e8;color:#167257;font-weight:950;font-size:17px}
.social-review-strip.pending .review-check{background:#eef2f4;color:#7d8a91}

/* Specialist editing area */
.social-review-panel{border-color:#cfe4de;background:linear-gradient(145deg,#ffffff,#fbfefd);box-shadow:0 12px 32px rgba(25,86,74,.055)}
.social-review-form>.form-grid{padding:17px;border:1px solid #e2ece9;border-radius:14px;background:#fbfdfc}
.social-assessment{display:grid;grid-template-columns:minmax(220px,.42fr) minmax(320px,1fr);gap:13px;margin-top:14px;padding:15px;border:1px solid #e6ecee;border-radius:14px;background:#fff}
.social-assessment label{font-size:13px;font-weight:800;color:#4d626b}
.social-assessment select,.social-assessment textarea{width:100%;margin-top:7px;border:1px solid #dce5e7;border-radius:11px;background:#fff;padding:11px;font:inherit}
.review-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:15px;padding:15px 16px;border-radius:14px;background:#eef8f5;border:1px solid #d5ebe4}
.review-submit-bar>div{min-width:0}
.review-submit-bar strong{display:block;color:#235e50;font-size:13px}
.review-submit-bar small{display:block;margin-top:3px;color:#668078;font-size:11.5px;line-height:1.6}
.admin-review-summary{border-right:4px solid #3e9b82}
.small-help{font-size:11.5px;line-height:1.7;margin:0 0 9px}

/* Review inbox */
.review-request-list{display:grid;gap:14px}
.review-request-card{border:1px solid #e1e8ea;border-radius:16px;background:#fff;padding:17px;box-shadow:0 7px 22px rgba(35,63,73,.045)}
.review-request-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:13px;border-bottom:1px solid #edf1f2}
.review-request-head h3{margin:3px 0;font-size:18px;color:#223842}
.review-request-head small{color:#7b8990;font-size:11px}
.review-evaluation{display:flex;align-items:flex-start;gap:12px;margin:14px 0;padding:12px 14px;border-radius:12px;background:#f6faf9;border:1px solid #e2ece9}
.review-evaluation strong{white-space:nowrap;color:#1d6d5c;font-size:12px;background:#e3f4ef;border-radius:9px;padding:6px 9px}
.review-evaluation span{font-size:12px;color:#5e6e76;line-height:1.75}
.review-diff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.review-diff{border:1px solid #e5ebed;border-radius:12px;overflow:hidden;background:#fbfcfd}
.review-diff>b{display:block;padding:8px 10px;border-bottom:1px solid #e9eef0;background:#f6f8f9;color:#52636c;font-size:11.5px}
.review-diff>span{display:block;padding:9px 10px;min-height:47px;font-size:12px;overflow-wrap:anywhere}
.review-diff>span small{display:inline-block;min-width:50px;margin-left:7px;font-size:9px;font-weight:900;color:#89949a}
.review-diff .before{color:#7b858b;background:#fff}
.review-diff .after{color:#185d4e;background:#f0faf6;border-top:1px solid #dcefe8;font-weight:750}
.review-decision-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:15px;padding-top:14px;border-top:1px solid #edf1f2}
.review-decision-actions form{margin:0}
.reject-review-form{display:flex;align-items:center;gap:8px;flex:1;min-width:320px}
.reject-review-form input{flex:1;min-height:42px;border:1px solid #ead7d7;border-radius:10px;padding:9px 11px;background:#fffafa}
.review-queue{display:grid;gap:8px}
.review-queue>a{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;border:1px solid #e6ecee;border-radius:13px;background:#fbfdfd;text-decoration:none;color:inherit;transition:.16s}
.review-queue>a:hover{background:#f3faf8;border-color:#c9e0dc;transform:translateY(-1px)}
.review-queue>a>div strong{display:block;font-size:13px;color:#243b45}
.review-queue>a>div small{display:block;margin-top:3px;font-size:10.5px;color:#7a898f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-stats article{min-height:122px}

@media(max-width:1100px){.top-notification span{display:none}.social-assessment{grid-template-columns:1fr}.review-submit-bar{align-items:stretch;flex-direction:column}.review-submit-bar .btn{width:100%}}
@media(max-width:820px){body.app-page{font-size:14px}.panel{padding:17px}.panel-head h2{font-size:18px}.table-wrap td{font-size:13px}.top-notification{min-width:40px;padding:8px;justify-content:center}.review-request-head{flex-direction:column}.review-decision-actions{align-items:stretch;flex-direction:column}.review-decision-actions>form,.reject-review-form{width:100%;min-width:0}.reject-review-form{flex-direction:column;align-items:stretch}.review-diff-grid{grid-template-columns:1fr}.social-review-strip{align-items:flex-start;flex-wrap:wrap}.social-review-strip .badge{margin-right:46px}.review-queue>a{grid-template-columns:38px minmax(0,1fr)}.review-queue>a>.badge{grid-column:2}.service-state-panel details>summary{width:100%;justify-content:center}}

/* V1.2.44 — مؤشر مراجعة الأخصائي الاجتماعي في قائمة بانتظار الاعتماد */
.social-reviewed-badge{display:inline-flex;align-items:center;gap:5px;font-weight:800;white-space:nowrap}
.social-unreviewed-badge{display:inline-flex;align-items:center;white-space:nowrap}
.reviewed-meta{display:block;margin-top:6px;color:#5c7076;line-height:1.55;max-width:250px}

/* V1.2.45 — رأي الأخصائي على الطلبات المعلقة فقط */
.social-readonly-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0;padding:14px;border:1px solid #e2ece9;border-radius:14px;background:#fbfdfc}
.social-readonly-summary>div{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border-radius:11px;background:#fff;border:1px solid #edf2f0}
.social-readonly-summary>div.wide{grid-column:1/-1}
.social-readonly-summary strong{font-size:11.5px;color:#688078}
.social-readonly-summary span{font-size:13.5px;color:#244a42;line-height:1.7}
@media(max-width:900px){.social-readonly-summary{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.social-readonly-summary{grid-template-columns:1fr}}


/* V1.2.47 — comprehensive mobile containment and table-card hardening */
.app-shell,.main,.content,.grid,.panel,.form-panel,.form-section,.stack,.form-grid,.details,.table-wrap,
.advanced-filters,.beneficiary-filters,.lookup-results,.lookup-card,.case-header,.user-cards,.user-edit,
.backup-grid,.reports-shell,.report-card,.benefit-overview,.benefit-compact-list,.social-readonly-summary{min-width:0}
input,select,textarea,button{max-width:100%}
input[type="file"]{width:100%;max-width:100%;min-width:0;overflow:hidden}
.mono{overflow-wrap:anywhere;word-break:break-word}
.social-self-submitted-badge{white-space:normal;text-align:center;line-height:1.45}
.social-review-strip.self-submitted{border-color:#cfe0ef;background:#f5f9fd}

@media(max-width:820px){
  .content>*{max-width:100%;min-width:0}
  .grid,.grid.two,.grid.case-grid,.grid.users-grid,.backup-grid{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)!important}
  .panel,.form-panel,.form-section,.case-header{width:100%;max-width:100%;min-width:0}
  .stack,.form-grid,.details,.filters,.advanced-filters,.beneficiary-filters{width:100%;max-width:100%;min-width:0}
  .stack>*,.form-grid>*,.details>*,.filters>*,.advanced-filters>*,.beneficiary-filters>*{min-width:0;max-width:100%}
  .table-wrap.mobile-cards{width:100%;max-width:100%;min-width:0;overflow:visible!important;border:0;background:transparent}
  .table-wrap.mobile-cards table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed}
  .table-wrap.mobile-cards tbody{display:grid!important;width:100%;max-width:100%;min-width:0;gap:12px}
  .table-wrap.mobile-cards tr{display:block!important;width:100%;max-width:100%;min-width:0;overflow:hidden}
  .table-wrap.mobile-cards td{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word}
  .table-wrap.mobile-cards td>*{max-width:100%;min-width:0}
  .table-wrap.mobile-cards .mono{white-space:normal!important;overflow-wrap:anywhere;word-break:break-all}
  .table-wrap.mobile-cards .panel-actions{width:100%;max-width:100%;min-width:0}
  .table-wrap.mobile-cards .panel-actions form{min-width:0;max-width:100%}
  .table-wrap.mobile-cards td .badge{max-width:100%;white-space:normal;text-align:center;line-height:1.4}
  .table-wrap.mobile-cards td small{white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .backup-grid .panel,.page-backups .form-panel{overflow:visible}
  .page-backups .stack label,.page-backups .stack input,.page-backups .stack select,.page-backups .stack textarea{min-width:0;max-width:100%}
  .page-backups input[type="file"]{font-size:13px}
  .reviewed-meta{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:520px){
  .table-wrap.mobile-cards td{grid-template-columns:1fr!important;gap:5px!important;padding:11px 12px}
  .table-wrap.mobile-cards td::before{display:block;max-width:100%;overflow-wrap:anywhere}
  .panel-actions,.filter-actions,.form-actions{max-width:100%}
  .panel-actions form,.panel-actions a,.filter-actions .btn,.filter-actions a{min-width:0;max-width:100%}
  .case-header-actions,.summary-pills{min-width:0;max-width:100%}
}


/* V1.2.49 - pending approval notification counters */
.sidebar nav a .nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-badge{margin-inline-start:auto;min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;background:#ef4444;color:#fff;font-size:11px;font-weight:900;line-height:1;box-shadow:0 5px 14px rgba(239,68,68,.32);border:2px solid rgba(255,255,255,.18);font-variant-numeric:tabular-nums}
.sidebar nav a.active .nav-badge{background:#fff;color:#b91c1c;border-color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.13)}
.pending-action{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important;box-shadow:none!important}
.pending-action:hover{background:#ffedd5!important;color:#7c2d12!important}
.btn-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#ef4444;color:white;font-size:11px;font-weight:900;font-variant-numeric:tabular-nums}
@media(max-width:820px){.nav-badge{min-width:25px;height:25px;font-size:12px}.pending-action{width:100%;justify-content:center}.btn-count{margin-inline-start:auto}}




/* V1.2.51 - mandatory classification before admin approval */
.category-required-group,.approval-category-picker{border:1px solid #cfe4df;background:#fbfefd;border-radius:14px;padding:14px}
.category-required-group legend,.approval-category-picker legend{font-weight:800;color:#0f665f;padding:0 6px}
.category-required-group legend small,.approval-category-picker legend small{color:#b45309;font-weight:700;margin-inline-start:6px}
.category-required-group>p,.approval-category-picker>p{margin:2px 0 12px;color:#61777d;font-size:12px;line-height:1.7}
.category-required-warning{display:block;padding:10px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.approval-with-categories{min-width:min(100%,430px)}
.approval-with-categories .approval-category-picker{margin-bottom:12px}
.approval-with-categories .type-choice-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media(max-width:820px){.approval-with-categories{width:100%;min-width:0}.approval-category-picker{padding:12px}.approval-with-categories .type-choice-grid{grid-template-columns:1fr}}

/* V1.2.52 - pending social opinion alert + safe user deletion */
.social-note-alert{margin-top:8px;padding:9px 10px;border:1px solid #fecaca;border-right:4px solid #dc2626;border-radius:10px;background:#fff1f2;color:#991b1b;display:flex;flex-direction:column;gap:3px;line-height:1.55;max-width:420px}
.social-note-alert strong{font-size:12px;color:#b91c1c}.social-note-alert span{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.user-delete-hint{display:inline-flex;align-items:center;padding:7px 9px;border-radius:9px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:11px}
@media(max-width:820px){.social-note-alert{max-width:none;width:100%;margin-inline:0}.user-actions .user-delete-hint{width:100%;justify-content:center;text-align:center}}

/* V1.2.53 - backup/restore audit and mobile polish */
.restore-saved-panel{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fffafa)}
.restore-selected-file{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin:0 0 14px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;min-width:0}
.restore-selected-file strong,.backup-filename{overflow-wrap:anywhere;word-break:break-word}.restore-selected-file span{color:#7c5b3a;font-size:12px}
.backup-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.backup-actions form{margin:0}.page-backups .table-wrap{max-width:100%}
@media(max-width:820px){.page-backups .backup-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.page-backups .backup-actions .btn,.page-backups .backup-actions form,.page-backups .backup-actions form .btn{width:100%;text-align:center;justify-content:center}.restore-selected-file{width:100%}}
@media(max-width:430px){.page-backups .backup-actions{grid-template-columns:1fr}.page-backups .panel-head.responsive-head>a.btn{width:100%}}


/* V1.2.54 - bulk delivery / one-time receiving workflow */
.bulk-roster-download{display:grid;gap:12px;margin:0 0 16px;padding:14px;border:1px solid #d8e6e0;border-radius:14px;background:#f7fbf9}
.bulk-roster-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end}
.bulk-roster-form label{margin:0}.bulk-roster-form label span{display:block;margin-bottom:6px;font-weight:700;color:#315247}
.import-rules.compact{margin:0;padding:10px 12px;background:#fff}.import-rules.compact ul{margin-top:7px}
.bulk-delivery-panel .alert.info{border-color:#bfdbfe;background:#eff6ff;color:#1e3a8a}
@media(max-width:820px){.bulk-roster-form{grid-template-columns:1fr}.bulk-roster-form .btn{width:100%}.bulk-roster-download{padding:12px}.import-template-actions{width:100%}.import-template-actions .btn{flex:1 1 100%}}


/* V1.2.55 — custom category ordering + exact-ID full beneficiary lookup */
.sensitive-permission{
  align-items:flex-start!important;
  padding:10px 12px;
  border:1px solid #dce9e4;
  border-radius:12px;
  background:#f8fbfa;
}
.sensitive-permission small{
  display:block;
  grid-column:2;
  color:var(--muted);
  margin-top:2px;
  font-weight:600;
  line-height:1.6;
}
.category-order-help{margin-top:16px}
.category-order-form{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  margin-bottom:8px;
  border:1px dashed #b8d7ca;
  border-radius:13px;
  background:#f7fbf9;
}
.category-order-actions{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.category-sort-list>.category-sort-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.category-sort-row.dragging{
  opacity:.5;
  background:#eef8f4;
  border-radius:12px;
}
.category-drag-handle{
  width:34px;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fbfa;
  color:var(--green-dark);
  font-size:19px;
  cursor:grab;
}
.category-drag-handle:active{cursor:grabbing}
.category-move-buttons{
  display:flex;
  gap:5px;
}
.category-move-buttons .btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.full-lookup-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin:22px 0 14px;
  padding:20px 22px;
  border:1px solid #b9ddce;
  border-radius:18px;
  background:linear-gradient(135deg,#f2fbf7,#fbfdfc);
}
.full-lookup-banner h3{
  margin:5px 0;
  font-size:24px;
}
.full-lookup-banner p{
  margin:0;
  color:var(--muted);
}
.full-lookup-grid{
  margin-top:15px;
}
.lookup-subpanel{
  box-shadow:none;
}
.lookup-needs-list{
  display:grid;
  gap:10px;
}
.lookup-needs-list article{
  border:1px solid var(--line);
  border-radius:13px;
  padding:13px;
  background:#fafcfb;
}
.lookup-needs-list strong,
.lookup-needs-list small{
  display:block;
}
.lookup-needs-list p{
  margin:7px 0;
  color:#4f5d57;
}
.lookup-needs-list small{
  color:var(--muted);
}
.full-lookup-benefits{
  margin-top:16px;
}
.full-lookup-note{
  margin-top:14px;
}
@media(max-width:820px){
  .category-order-form,
  .category-order-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .category-order-actions .btn{width:100%}
  .category-sort-list>.category-sort-row{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .category-sort-row .type-actions{
    grid-column:2/-1;
  }
  .full-lookup-banner{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:520px){
  .category-sort-list>.category-sort-row{
    grid-template-columns:auto minmax(0,1fr);
  }
  .category-move-buttons{
    grid-column:2;
  }
  .category-sort-row .type-actions{
    grid-column:1/-1;
    justify-content:flex-end;
  }
}


/* V1.2.56 — read-only attachments in exact-ID full beneficiary lookup */
.full-lookup-attachments{margin-top:16px}
.lookup-attachment-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.lookup-attachment-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfdfc;
  color:inherit;
  text-decoration:none;
  transition:.18s ease;
}
.lookup-attachment-card:hover{
  border-color:#b6d7c9;
  background:#f4faf7;
  transform:translateY(-1px);
}
.lookup-attachment-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#edf7f2;
  font-size:19px;
}
.lookup-attachment-copy{
  min-width:0;
  display:block;
}
.lookup-attachment-copy strong,
.lookup-attachment-copy small{
  display:block;
}
.lookup-attachment-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lookup-attachment-copy small{
  margin-top:3px;
  color:var(--muted);
  line-height:1.5;
}
.lookup-benefit-attachment{
  display:inline-flex;
  margin-top:10px;
}
@media(max-width:760px){
  .lookup-attachment-list{grid-template-columns:1fr}
}
@media(max-width:460px){
  .lookup-attachment-card{
    grid-template-columns:auto minmax(0,1fr);
  }
  .lookup-attachment-card>.btn{
    grid-column:2;
    justify-self:start;
  }
}


/* V1.2.57 — compact long need/category lists + manual need ordering */
.settings-scroll-list{
  max-height:min(58vh,560px);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding-inline-end:5px;
  scrollbar-width:thin;
  scrollbar-color:#b9cec5 transparent;
}
.settings-scroll-list::-webkit-scrollbar{width:8px}
.settings-scroll-list::-webkit-scrollbar-thumb{background:#bfd1ca;border-radius:99px}
.settings-scroll-list::-webkit-scrollbar-track{background:transparent}
.type-sort-list>.type-sort-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
}
.type-sort-row.dragging{
  opacity:.5;
  background:#eef8f4;
  border-radius:12px;
}
.type-choice-grid{
  max-height:340px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding:2px 2px 2px 5px;
  scrollbar-width:thin;
  scrollbar-color:#bfd1ca transparent;
}
.type-choice-grid::-webkit-scrollbar{width:7px}
.type-choice-grid::-webkit-scrollbar-thumb{background:#c4d5ce;border-radius:99px}
.type-choice-grid::-webkit-scrollbar-track{background:transparent}
@media(max-width:820px){
  .settings-scroll-list{max-height:52vh}
  .type-sort-list>.type-sort-row{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .type-sort-row .type-actions{
    grid-column:2/-1;
  }
  .type-choice-grid{max-height:300px}
}
@media(max-width:520px){
  .settings-scroll-list{max-height:440px}
  .type-sort-list>.type-sort-row{
    grid-template-columns:auto minmax(0,1fr);
  }
  .type-sort-row .category-move-buttons{
    grid-column:2;
  }
  .type-sort-row .type-actions{
    grid-column:1/-1;
    justify-content:flex-end;
  }
  .type-choice-grid{max-height:280px}
}

/* V1.2.58 — structured sub-options for needs/services */
.type-option-help{margin-top:10px}
.structured-type-pill{background:#eef7ff!important;color:#315f83!important;border:1px solid #d7e9f6;padding:3px 7px;border-radius:999px;font-style:normal}
.type-option-editor{grid-column:1/-1;border-top:1px dashed var(--line);margin-top:2px;padding-top:8px}
.type-option-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:7px 2px;font-weight:800;color:var(--green-dark);list-style:none}
.type-option-editor>summary::-webkit-details-marker{display:none}
.type-option-editor>summary small{color:var(--muted);font-weight:700}
.type-option-editor-body{padding:10px 0 4px}
.type-option-config-form{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fbfdfc}
.option-config-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:4px}
.option-config-head small{color:var(--muted)}
.option-config-rows{display:grid;gap:8px}
.option-config-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1.2fr) 105px auto;gap:8px;align-items:center;padding:8px;border:1px solid transparent;border-radius:12px}
.option-config-row.option-row-inactive{background:#fff8f2;border-color:#f0d5bd}
.option-config-row input,.option-config-row select{width:100%;border:1px solid #dbe5e1;border-radius:10px;padding:9px 10px;background:#fff}
.option-config-row .option-usage-note,.option-config-row .option-inactive-note{grid-column:1/-1;line-height:1.55}
.option-config-row .option-usage-note{color:#8a5a16;font-weight:800}
.option-config-row .option-inactive-note{color:var(--muted)}
.type-option-config-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}
.reset-type-options{margin-top:8px}
.type-choice-item{display:grid;gap:7px;min-width:0}
.type-choice-item>.type-choice{height:100%}
.type-inline-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px;border:1px dashed #b8d7ca;border-radius:11px;background:#f7fbf9}
.type-inline-options label,.structured-option-fields label{display:grid;gap:5px;font-size:12px;font-weight:800;color:var(--ink)}
.type-inline-options select,.structured-option-fields select{width:100%;border:1px solid #d7e4df;border-radius:10px;padding:9px 10px;background:#fff;outline:none}
.structured-option-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px dashed #9fcbb9;border-radius:13px;background:#f4faf7}
.structured-option-fields:not([hidden]){display:grid}
.structured-option-hint{grid-column:1/-1;color:var(--muted);line-height:1.6}
.need-option-summary,.benefit-option-summary{display:block;color:#315f83!important;font-size:11px!important;font-weight:800!important;margin-top:3px!important}
.need-title{display:flex;flex-direction:column;gap:2px}
@media(max-width:820px){
  .option-config-row{grid-template-columns:1fr 1fr 105px auto}
  .structured-option-fields,.type-inline-options{grid-template-columns:1fr}
}
@media(max-width:520px){
  .option-config-row{grid-template-columns:1fr}
  .option-config-row .btn{justify-self:start}
  .type-option-config-actions{align-items:stretch;flex-direction:column}
  .type-option-config-actions .btn{width:100%}
}


/* V1.2.59 — focused initial-needs picker */
.initial-needs-picker{
  position:relative;
  background:#fbfdfc;
}
.initial-needs-selected{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.initial-need-card{
  border:1px solid #d9e6e1;
  border-radius:14px;
  background:#fff;
  padding:12px 13px;
}
.initial-need-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.initial-need-card-head strong,
.initial-need-card-head small{
  display:block;
}
.initial-need-card-head small{
  color:var(--muted);
  margin-top:3px;
  font-size:12px;
}
.initial-need-options{
  margin-top:11px;
  padding-top:11px;
  border-top:1px dashed #d7e4df;
}
.initial-needs-empty{
  display:grid;
  gap:3px;
  place-items:center;
  min-height:92px;
  padding:18px;
  border:1px dashed #cbded6;
  border-radius:14px;
  background:#f8fbfa;
  color:var(--muted);
  text-align:center;
}
.initial-needs-empty span{
  color:var(--text);
  font-weight:800;
}
.initial-needs-add{
  position:relative;
  margin-top:12px;
}
.initial-needs-add-btn{
  min-width:150px;
}
.initial-needs-menu{
  position:absolute;
  z-index:30;
  inset-inline-start:0;
  top:calc(100% + 7px);
  width:min(430px,100%);
  padding:12px;
  border:1px solid #d5e3dd;
  border-radius:15px;
  background:#fff;
  box-shadow:0 18px 45px rgba(13,61,45,.16);
}
.initial-needs-search{
  display:grid;
  gap:6px;
  margin-bottom:9px;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.initial-needs-search input{
  width:100%;
  border:1px solid #dbe5e1;
  border-radius:11px;
  padding:10px 11px;
  background:#fff;
  outline:none;
}
.initial-needs-search input:focus{
  border-color:#64b496;
  box-shadow:0 0 0 4px rgba(15,122,90,.08);
}
.initial-needs-options{
  display:grid;
  gap:6px;
  max-height:260px;
  overflow:auto;
  overscroll-behavior:contain;
  padding-inline-end:3px;
}
.initial-needs-options button{
  width:100%;
  border:1px solid #e0e8e4;
  border-radius:11px;
  padding:10px 11px;
  background:#fafcfb;
  color:var(--text);
  text-align:start;
  cursor:pointer;
}
.initial-needs-options button:hover{
  border-color:#a9cfbf;
  background:#f1f8f5;
}
.initial-needs-options button span,
.initial-needs-options button small{
  display:block;
}
.initial-needs-options button span{
  font-weight:800;
}
.initial-needs-options button small{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
}
.initial-needs-options button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.initial-needs-no-results{
  padding:15px 8px 5px;
  color:var(--muted);
  text-align:center;
  font-size:12px;
}
@media(max-width:620px){
  .initial-needs-menu{
    position:static;
    width:100%;
    margin-top:8px;
    box-shadow:none;
  }
  .initial-needs-add-btn{width:100%}
  .initial-need-card-head{
    align-items:flex-start;
  }
}


/* V1.2.60 — respect hidden option fields */
.type-inline-options[hidden],
.type-inline-options [hidden],
.structured-option-fields[hidden],
.structured-option-fields [hidden],
.initial-needs-picker [hidden]{
  display:none!important;
}


/* V1.2.61 — precise suboption filters + delivery-only workflow */
.structured-filter{
  display:grid;
  gap:8px;
}
.structured-filter > label{
  margin:0;
}
.structured-filter-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:9px;
  border:1px solid #dce8e3;
  border-radius:12px;
  background:#f8fbfa;
}
.structured-filter-options label{
  display:grid;
  gap:5px;
  margin:0;
}
.structured-filter-options label > span{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.import-links-panel{
  padding-block:14px;
}
.import-links-panel .panel-head{
  margin-bottom:0;
}
.bulk-roster-form .structured-option-fields{
  grid-column:1/-1;
}
.bulk-roster-form .structured-option-fields label,
.bulk-delivery-panel .structured-option-fields label{
  margin:0;
}
.bulk-delivery-panel + .bulk-delivery-panel{
  margin-top:16px;
}
@media(max-width:720px){
  .structured-filter-options{
    grid-template-columns:1fr;
  }
  .import-links-panel .panel-actions{
    width:100%;
  }
  .import-links-panel .panel-actions .btn{
    flex:1 1 auto;
  }
}

/* V1.2.63 — direct pasted identity list for bulk delivery */
.bulk-delivery-panel textarea[data-bulk-identity-list]{
  min-height:180px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  letter-spacing:.04em;
  text-align:left;
}
.bulk-delivery-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:800}
.bulk-delivery-or::before,.bulk-delivery-or::after{content:"";height:1px;background:#dfe9e5;flex:1}
.bulk-delivery-or span{padding:2px 8px;border:1px solid #dfe9e5;border-radius:999px;background:#fff}

/* V1.2.65 - safe undo for bulk delivery batches */
.bulk-undo-zone{margin:18px 0;padding:18px;border:1px solid #f0c7c3;border-radius:16px;background:#fffafa}
.bulk-undo-zone .panel-head{margin-bottom:12px}.bulk-undo-zone h3{margin:3px 0 7px}.bulk-undo-zone p{margin:0;color:var(--muted);line-height:1.75}
.bulk-undo-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}.bulk-undo-form label{margin:0}.bulk-undo-form .btn{min-height:46px;white-space:nowrap}
.bulk-undo-status{margin:18px 0;line-height:1.8}
@media(max-width:700px){.bulk-undo-form{grid-template-columns:1fr}.bulk-undo-form .btn{width:100%}}

/* V1.2.66 — Clean Institutional UI */
:root{
  --green:#0a6f43;
  --green-dark:#075733;
  --green-soft:#eef8f1;
  --ink:#1b2530;
  --muted:#6e7b86;
  --line:#e4e9ed;
  --bg:#f7f9fa;
  --shadow:0 5px 18px rgba(28,43,54,.045);
  --radius:14px;
}
body.app-page{background:#f7f9fa}
body.app-page:before{display:none}
.sidebar{width:252px;padding:18px 12px 14px;background:#fff;border-left:1px solid #e4e9ec;box-shadow:none;transition:width .22s ease,transform .22s ease}
.main{margin-right:252px;transition:margin-right .22s ease}
.brand{min-height:72px;padding:0 8px 16px;gap:10px}
.brand img{width:50px;height:50px;box-shadow:none;border-color:#e8efeb}
.brand strong{font-size:16px;color:#12653f}.brand span{font-size:11px}.brand small{font-size:9px}
.sidebar nav{margin-top:11px;gap:3px}
.sidebar nav a{min-height:44px;padding:6px 8px;border-radius:9px;font-size:12px;color:#52616c;gap:9px}
.nav-icon{width:31px;height:31px;border-radius:8px;background:transparent;color:#72808b}
.sidebar nav a:hover{background:#f2f7f4;color:#0b633d;transform:none}
.sidebar nav a:hover .nav-icon{background:#e7f4eb;color:#0b633d}
.sidebar nav a.active{background:#0b6b42;color:#fff;box-shadow:0 5px 13px rgba(10,103,62,.15)}
.sidebar nav a.active .nav-icon{background:rgba(255,255,255,.12)}
.sidebar nav .nav-section-label{margin:10px 8px 3px;padding-top:9px;font-size:8px;color:#a1abb1}
.sidebar-impact{display:none}
.sidebar-foot{padding-top:11px}.user-mini{padding:0 3px}.logout-btn{min-height:38px;border-radius:9px;font-size:11px}
.topbar{height:76px;padding:0 24px;grid-template-columns:minmax(175px,1fr) minmax(280px,520px) minmax(190px,1fr);gap:18px;background:rgba(255,255,255,.97);box-shadow:none;border-bottom:1px solid #e4e9ed}
.topbar h1{font-size:18px}.crumb{font-size:9px}.top-search{height:40px;border-radius:10px;background:#f8fafb}.top-user{border:1px solid transparent}.top-user:hover{border-color:#e3ebe7;background:#f7faf8}
.sidebar-collapse-toggle{display:grid;place-items:center;width:35px;height:35px;border:1px solid #e1e7ea;border-radius:9px;background:#fff;color:#5f6d77;font-size:16px;line-height:1}
.sidebar-collapse-toggle:hover{background:#f4f8f6;color:var(--green-dark)}
.content{padding:22px 24px 10px}.content>*+*{margin-top:16px}.content>*,.content>.grid{max-width:1600px}
.panel{padding:18px;border-radius:12px;border-color:#e2e7eb;box-shadow:var(--shadow)}
.panel:hover{box-shadow:0 7px 22px rgba(28,43,54,.055)}
.panel-head{margin-bottom:14px}.panel-head h2{font-size:17px;margin-top:3px}.panel-head p{font-size:11.5px}.eyebrow{font-size:8.5px;color:#478366}
.btn{border-radius:8px;padding:9px 13px;font-size:11.5px}.btn.primary{background:#0b6b42;box-shadow:none}.btn.primary:hover{background:#075733}
.btn.outline{border-color:#dde4e7}.btn.dark{background:#283842}
/* Dashboard: compact executive header like the approved mockup */
.page-dashboard .dashboard-hero{min-height:112px;padding:17px 20px;border-radius:12px;background:#fff;border:1px solid #e2e7eb;box-shadow:var(--shadow);align-items:center}
.page-dashboard .dashboard-hero:before,.page-dashboard .dashboard-hero:after{display:none}
.page-dashboard .welcome-copy{max-width:none;flex:1}.page-dashboard .welcome-visual{display:none}
.page-dashboard .dashboard-hero h2{font-size:23px;margin:4px 0 5px}.page-dashboard .dashboard-hero p{font-size:11.5px;line-height:1.7;max-width:780px}
.page-dashboard .hero-actions{margin-top:11px}.page-dashboard .hero-actions .btn{min-height:35px}
.dashboard-stats{grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px}
.dashboard-stats article{min-height:110px;padding:15px 15px 13px;border-radius:11px;box-shadow:none;background:#fff;border-color:#e2e7eb}
.dashboard-stats article:before,.dashboard-stats article:after{display:none}
.dashboard-stats .stat-icon{position:absolute;left:14px;top:14px;width:37px;height:37px;padding:9px;border-radius:10px;display:grid;place-items:center}
.dashboard-stats .stat-icon .app-icon{width:19px;height:19px}
.dashboard-stats article>span:not(.stat-icon){font-size:10.5px;padding-left:43px;color:#596771}
.dashboard-stats article>strong{font-size:27px;margin:9px 0 4px;color:#17352a}
.dashboard-stats article>small{font-size:9.5px;color:#8b969e}
.dashboard-stats .stat-beneficiaries .stat-icon{background:#eaf6ed;color:#2b8b4d}
.dashboard-stats .stat-today .stat-icon{background:#edf4ff;color:#3970cf}
.dashboard-stats .stat-pending .stat-icon{background:#fff4e8;color:#d57b28}
.dashboard-stats .stat-needs .stat-icon{background:#f1edff;color:#7058bd}
.dashboard-stats .stat-benefits .stat-icon{background:#eaf7f5;color:#0b8378}
.grid.two{grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr)}
.case-list>a{padding:11px 4px;border-radius:7px}.case-list>a:hover{background:#f7faf8}
.case-icon{width:34px;height:34px;border-radius:9px}
.staff-grid article{border-radius:10px;background:#fff}
/* Tables are the primary work surface */
.table-wrap{border-radius:10px;border-color:#e2e7eb}
.table-wrap table{border-collapse:separate;border-spacing:0}
.table-wrap th{position:sticky;top:0;z-index:2;background:#f5f7f8!important;color:#63717c;font-size:10px;font-weight:800;padding:10px 11px;box-shadow:inset 0 -1px #e2e7eb}
.table-wrap td{font-size:12px;padding:11px;border-bottom-color:#edf0f2}
.table-wrap tbody tr:nth-child(even){background:#fcfdfd}.table-wrap tbody tr:hover{background:#f4f8f6}
.badge{border-radius:999px;padding:5px 8px}
/* Bulk delivery: clearer operator workflow */
.page-import .import-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;border-right:4px solid var(--green);background:#fff}
.page-import .import-intro h2{margin:4px 0 6px;font-size:20px}.page-import .import-intro p{margin:0;color:var(--muted);font-size:11.5px;line-height:1.8}
.page-import .bulk-delivery-panel{border-top:3px solid #0b6b42}
.page-import .bulk-delivery-panel textarea[data-bulk-identity-list]{min-height:210px;background:#fbfcfc;border:1px solid #dce4e7;border-radius:10px;font-family:Consolas,"Courier New",monospace;line-height:1.75}
.page-import .bulk-delivery-panel textarea[data-bulk-identity-list]:focus{background:#fff;border-color:#76b694;box-shadow:0 0 0 4px rgba(10,111,67,.06)}
.page-import .import-stats{grid-template-columns:repeat(4,minmax(145px,1fr))}.page-import .import-stats article{min-height:96px;border-radius:10px;box-shadow:none}
.page-import .bulk-undo-zone{border-radius:10px;background:#fff9f9;border-style:dashed}
.page-import .import-history>a{border:1px solid transparent;padding:10px 8px}.page-import .import-history>a:hover{border-color:#e1e8e4;background:#f8fbf9}
/* Desktop collapsed sidebar */
@media(min-width:821px){
  body.sidebar-collapsed .sidebar{width:78px;padding-left:9px;padding-right:9px}
  body.sidebar-collapsed .main{margin-right:78px}
  body.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}
  body.sidebar-collapsed .brand img{width:45px;height:45px}
  body.sidebar-collapsed .brand>div,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-section-label,body.sidebar-collapsed .sidebar-foot .user-mini>div,body.sidebar-collapsed .logout-btn span{display:none}
  body.sidebar-collapsed .sidebar nav a{justify-content:center;padding:6px;gap:0}
  body.sidebar-collapsed .nav-icon{width:34px;height:34px}
  body.sidebar-collapsed .nav-badge{position:absolute;top:1px;right:1px;min-width:17px;height:17px;padding:0 4px;font-size:8px}
  body.sidebar-collapsed .user-mini{justify-content:center}
  body.sidebar-collapsed .logout-btn{padding:8px}
}
@media(max-width:1180px){.dashboard-stats{grid-template-columns:repeat(3,minmax(150px,1fr))}.topbar{grid-template-columns:minmax(150px,1fr) minmax(240px,400px) auto}}
@media(max-width:820px){
  .sidebar{width:min(86vw,288px)}.main{margin-right:0}.sidebar-collapse-toggle{display:none}.content{padding:15px 11px 7px}.topbar{height:68px;padding:0 12px}
  .page-dashboard .dashboard-hero{padding:16px;min-height:0}.page-dashboard .dashboard-hero h2{font-size:20px}.dashboard-stats{grid-template-columns:1fr 1fr}
  .page-import .import-intro{align-items:flex-start;flex-direction:column}.page-import .import-template-actions{width:100%}
  .page-import .import-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:540px){.dashboard-stats,.page-import .import-stats{grid-template-columns:1fr}.dashboard-stats article{min-height:102px}.page-dashboard .hero-actions{display:grid}.page-dashboard .hero-actions .btn{width:100%}}

/* V1.2.67 — Green institutional theme + data storage dashboard card */
:root{
  --green:#197a43;
  --green-dark:#0d5e32;
  --green-soft:#edf8f0;
  --ink:#1c2b23;
  --muted:#68766e;
  --line:#dfe9e2;
  --bg:#f3f8f4;
  --shadow:0 6px 20px rgba(24,83,49,.055);
}
body.app-page{background:linear-gradient(180deg,#f5faf6 0%,#f1f6f2 100%)}
.sidebar{border-left-color:#dce8df;background:#fff}
.brand strong{color:#145f36}
.sidebar nav a{color:#52645a}
.sidebar nav a:hover{background:#edf7f0;color:#125f35}
.sidebar nav a:hover .nav-icon{background:#dff1e5;color:#12663a}
.sidebar nav a.active{background:linear-gradient(135deg,#196f40,#23864d);box-shadow:0 6px 16px rgba(22,111,63,.18)}
.topbar{background:rgba(250,253,250,.97);border-bottom-color:#dfe9e2}
.top-search{background:#f4f9f5;border-color:#e0ebe3}
.top-search:focus-within{background:#fff;border-color:#9bc9aa;box-shadow:0 0 0 4px rgba(25,122,67,.06)}
.panel{border-color:#dfe8e1;background:#fff}
.page-dashboard .dashboard-hero{background:linear-gradient(118deg,#ffffff 0%,#f5fbf6 58%,#ecf7ef 100%);border-color:#dce9df;box-shadow:0 8px 24px rgba(24,83,49,.055)}
.page-dashboard .dashboard-hero h2{color:#183b28}
.page-dashboard .dashboard-hero .eyebrow{color:#3d8d5c}
.page-dashboard .dashboard-hero p{color:#64756b}
.dashboard-stats{grid-template-columns:repeat(6,minmax(145px,1fr))}
.dashboard-stats article{border-color:#dfe9e2;background:linear-gradient(180deg,#fff,#fcfefd)}
.dashboard-stats article>strong{color:#174c2b}
.dashboard-stats .stat-beneficiaries .stat-icon{background:#e6f5ea;color:#277b46}
.dashboard-stats .stat-today .stat-icon{background:#edf7e8;color:#4b8b42}
.dashboard-stats .stat-pending .stat-icon{background:#f3f8e7;color:#718d35}
.dashboard-stats .stat-needs .stat-icon{background:#e8f5ef;color:#2d8061}
.dashboard-stats .stat-benefits .stat-icon{background:#e5f6ee;color:#177c54}
.dashboard-stats .stat-storage .stat-icon{background:#e4f2e7;color:#17683a}
.dashboard-stats .stat-storage>strong{font-size:20px;line-height:1.25;white-space:nowrap;margin-top:10px}
.dashboard-stats .stat-storage>small{line-height:1.55;white-space:normal}
.storage-meter{height:5px;background:#e8f0ea;border-radius:999px;overflow:hidden;margin-top:9px}
.storage-meter i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#62ad76,#1b7a43)}
.table-wrap th{background:#f2f7f3!important;color:#5f7066;box-shadow:inset 0 -1px #dce8df}
.table-wrap tbody tr:hover{background:#f1f8f3}
.case-icon{background:#eaf6ed;color:#1b7943}
.btn.primary{background:linear-gradient(135deg,#197a43,#116936)}
.btn.primary:hover{background:linear-gradient(135deg,#146c3a,#0c592e)}
.eyebrow{color:#3e8b5a}
/* Login panel keeps the same structure; V1.2.67 changes colors only. */
.auth-page{background:radial-gradient(circle at top right,#d9f0df 0,#f2f8f3 43%,#e7f2e9 100%)}
.auth-shell{box-shadow:0 30px 80px rgba(20,86,48,.20)}
.auth-brand{background:linear-gradient(145deg,#0d6036,#21884b)}
.auth-card{background:linear-gradient(180deg,#fff 0%,#fbfefc 100%)}
.auth-card .eyebrow{color:#2f8751}
.auth-card input:focus{border-color:#75b98a!important;box-shadow:0 0 0 4px rgba(25,122,67,.08)!important}
@media(max-width:1320px){.dashboard-stats{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:820px){.dashboard-stats{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.dashboard-stats{grid-template-columns:1fr}}

/* V1.2.68 */
.auth-card>.eyebrow{font-size:18px;font-weight:950;letter-spacing:.1px;color:var(--green-dark);margin-bottom:4px}
.beneficiary-needs-tags{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:230px}.beneficiary-needs-tags span{display:flex;align-items:center;justify-content:flex-start;margin:0!important;line-height:1.5;white-space:normal}.beneficiary-needs-picker{margin:0;padding:0;border:0!important}.beneficiary-import-intro{border-inline-start:4px solid var(--green)}.preview-confirm-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.import-status.ready{background:#e6f6ee;color:#176845;border:1px solid #c5e8d5}small,.muted,.eyebrow,.panel-head p,.details dt,.timeline span,.type-list small,.user-cards summary small,.lookup-card small,.stat-card small{font-size:max(13px,.82rem)}.btn.tiny{font-size:13px;padding:7px 10px}.badge,.count-pill,.result-count{font-size:13px}@media(max-width:700px){.beneficiary-needs-tags{grid-template-columns:1fr;min-width:0}}

/* V1.2.72 — guardian, disability and age profile fields */
.birth-date-age-field{min-width:0}
.birth-date-age-row{display:flex;align-items:center;gap:10px;min-width:0}
.birth-date-age-row input{flex:1;min-width:0}
.age-chip{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border-radius:999px;background:#e8f7f1;border:1px solid #c7e8dc;color:#0b6b4d;font-size:12px;font-weight:900;white-space:nowrap}
.age-chip.inline-age{min-height:0;padding:4px 8px;margin-inline-start:7px;font-size:11px;vertical-align:middle}
.conditional-profile-card{border:1px solid #dce9e4;border-radius:16px;padding:16px;background:linear-gradient(180deg,#fbfefd,#f6fbf9)}
.conditional-profile-card[hidden]{display:none!important}
.conditional-profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.conditional-profile-head strong{display:block;font-size:14px;color:#174d3c}
.conditional-profile-head small{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:600}
.disability-list{display:grid;gap:9px}
.disability-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
.disability-row input{min-width:0}
.disability-tags{gap:7px}
.guardian-display-card{background:#f8fcfa!important;border-color:#d4e8df!important}
.detail-separator{color:var(--muted);font-weight:600}
.details dd small{color:var(--muted);font-weight:600;line-height:1.8}
@media(max-width:700px){
  .birth-date-age-row{align-items:stretch;flex-direction:column}
  .age-chip{align-self:flex-start;min-height:34px}
  .conditional-profile-head{align-items:flex-start;flex-direction:column}
  .conditional-profile-head .btn{width:100%}
  .disability-row{grid-template-columns:1fr}
  .disability-row .btn{width:100%}
}


/* V1.2.75 — active beneficiaries priority table + service status controls */
.beneficiaries-priority-table table{min-width:1180px}
.beneficiaries-priority-table th:first-child,.beneficiaries-priority-table td:first-child{min-width:210px}
.beneficiaries-priority-table td:first-child strong{font-size:14px;color:var(--green-dark)}
.beneficiaries-priority-table .muted-cell{color:var(--muted);font-weight:700}
.disability-list-tags span{background:#f0f1ff;color:#4c4b86;border:1px solid #deddf7}
.beneficiary-service-status-panel{border-width:1px}
.beneficiary-service-status-panel.is-active{border-color:#cfe7dc;background:linear-gradient(180deg,#fff,#fbfefc)}
.beneficiary-service-status-panel.is-inactive{border-color:#f0c7c3;background:linear-gradient(180deg,#fff,#fffafa)}
.beneficiary-service-status-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.beneficiary-service-status-form label{display:grid;gap:7px;font-size:13px;font-weight:800}
.beneficiary-service-status-form textarea{width:100%;border:1px solid #e1d5d2;border-radius:12px;padding:11px 12px;background:#fff;outline:none;resize:vertical}
.beneficiary-service-status-form textarea:focus{border-color:#d5827a;box-shadow:0 0 0 3px rgba(180,35,24,.08)}
.beneficiary-inactive-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:15px}
.beneficiary-inactive-summary>div{border:1px solid #efd9d6;background:#fff;border-radius:14px;padding:13px}
.beneficiary-inactive-summary small,.beneficiary-inactive-summary strong{display:block}
.beneficiary-inactive-summary small{color:var(--muted);margin-bottom:5px;font-size:11px}
.beneficiary-reactivate-form{display:flex;justify-content:flex-start}
@media(max-width:820px){.beneficiary-service-status-form{grid-template-columns:1fr}.beneficiary-service-status-form .btn{width:100%}.beneficiary-inactive-summary{grid-template-columns:1fr}.beneficiary-reactivate-form .btn{width:100%}}


/* V1.2.76 — clearer institutional Arabic typography */
html,body,button,input,select,textarea{
  font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;
}
body{font-weight:500;letter-spacing:0}
.topbar h1,.panel-head h2,.case-header h2,.welcome h2,.auth-card h2,.auth-brand h1{font-weight:800}
.brand strong,.sidebar nav a,.btn,.row-link,.table-wrap th,.form-grid label,.stack label,.filter-field>span{font-weight:700}
.table-wrap th{font-size:13px;line-height:1.55}
.table-wrap td{font-size:14px;line-height:1.7}
.table-wrap td strong{font-weight:700;font-size:14px}
.table-wrap td small{font-size:12.5px;line-height:1.65}
.beneficiaries-priority-table td:first-child strong{font-size:15px;font-weight:800}
.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea,.filters input,.filters select,.inline-form input,.reset-form input{font-weight:500}
.badge,.count-pill,.result-count,.benefit-pill,.age-chip{font-weight:700}
.eyebrow{font-weight:700;letter-spacing:.02em;text-transform:none}
.auth-card>.eyebrow{font-weight:800;letter-spacing:0}
@media(max-width:820px){
  .topbar h1{font-weight:800}
  .table-wrap td{font-size:13.5px}
}


/* V1.2.77 — refined institutional colors, spacing and surfaces */
:root{
  --ink:#1d2c24;
  --muted:#5f6f66;
  --line:#dbe6df;
  --bg:#f4f8f5;
  --shadow:0 8px 26px rgba(24,83,49,.055);
  --radius:18px;
}
body.app-page{color:var(--ink);background:linear-gradient(180deg,#f7faf8 0%,#f2f7f3 100%)}
.topbar{background:rgba(251,253,251,.97);border-bottom-color:#dbe6df}
.topbar h1,.panel-head h2,.case-header h2,.form-section h3{color:#183b28}
.crumb,.panel-head p,.muted,.details dt,.table-wrap td small,.timeline span,.type-list small,.user-cards summary small,.lookup-card small,.stat-card small{color:var(--muted)}
.sidebar nav a{color:#46594d}
.sidebar nav a:hover{background:#edf6ef;color:#125f35}
.panel,.case-header,.form-section,.details>div,.conditional-profile-card,.beneficiary-inactive-summary>div{border-color:var(--line)}
.panel,.case-header{border-radius:18px;box-shadow:var(--shadow)}
.form-section,.details>div,.conditional-profile-card,.beneficiary-inactive-summary>div{border-radius:14px}
.btn{border-radius:11px}
.form-grid input,.form-grid select,.form-grid textarea,.stack input,.stack select,.stack textarea,.filters input,.filters select,.inline-form input,.reset-form input,.beneficiary-service-status-form textarea{
  border-color:#d7e3dc;
  border-radius:11px;
  color:var(--ink);
  background:#fff;
}
.form-grid input::placeholder,.form-grid textarea::placeholder,.stack input::placeholder,.stack textarea::placeholder,.filters input::placeholder{color:#849188}
.table-wrap table{border-collapse:separate;border-spacing:0}
.table-wrap th{
  background:#eff5f1!important;
  color:#43564a!important;
  padding:13px 14px;
  border-bottom:1px solid #d4e1d8;
  font-weight:800;
}
.table-wrap td{
  padding:15px 14px;
  border-bottom:1px solid #e6ede8;
  color:#26372d;
}
.table-wrap tbody tr{transition:background-color .16s ease}
.table-wrap tbody tr:hover{background:#f6faf7}
.table-wrap tbody tr:last-child td{border-bottom-color:transparent}
.beneficiaries-priority-table td:first-child strong{color:#145f36}
.row-link{color:#176f40}
.badge,.count-pill,.result-count,.benefit-pill,.age-chip{letter-spacing:0}
.disability-list-tags span{background:#f1f1ff;color:#4b4b82;border-color:#dcdcf5}
.alert.error,.status-rejected{color:#9d2b22}
.alert.success,.status-approved,.status-completed{color:#116640}
@media(max-width:820px){
  .table-wrap th{padding:12px}
  .table-wrap td{padding:13px 12px}
}


/* V1.2.78 — keep short informational tags readable on one line */
.beneficiaries-priority-table th:nth-child(3),
.beneficiaries-priority-table td:nth-child(3){min-width:150px}
.disability-list-tags,
.disability-tags{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start;
  gap:7px!important;
  min-width:130px;
}
.disability-list-tags span,
.disability-tags span{
  display:inline-flex!important;
  width:max-content;
  max-width:none!important;
  white-space:nowrap!important;
  word-break:keep-all;
  overflow-wrap:normal;
  line-height:1.45!important;
}
.beneficiary-category-tags span{
  white-space:nowrap!important;
  word-break:keep-all;
  overflow-wrap:normal;
}
/* Keep the deliberately two-column needs layout unchanged; long need branches may wrap inside their own cell. */
.beneficiary-needs-tags span{white-space:normal!important;word-break:normal;overflow-wrap:anywhere}
@media(max-width:820px){
  .beneficiaries-priority-table th:nth-child(3),
  .beneficiaries-priority-table td:nth-child(3){min-width:0}
  .disability-list-tags,.disability-tags{min-width:0}
  .disability-list-tags span,.disability-tags span{max-width:100%!important}
}


/* V1.2.79 — comprehensive beneficiaries list workspace */
.beneficiaries-workspace-panel{overflow:hidden}
.beneficiary-filters-v1279{display:block!important;padding:0!important;border:0!important;background:transparent!important;margin-bottom:18px!important}
.beneficiary-filter-quick{display:grid;grid-template-columns:minmax(300px,2fr) minmax(185px,1fr) minmax(210px,1fr) auto;gap:10px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:15px;background:#f8fbf9}
.beneficiary-filter-quick .search-field{grid-column:auto}
.beneficiary-filter-quick input,.beneficiary-filter-quick select{width:100%;min-width:0}
.beneficiary-quick-actions{display:flex;gap:7px;align-items:end;white-space:nowrap}
.beneficiary-advanced-filters{margin-top:10px;border:1px solid #dce7e0;border-radius:14px;background:#fff;overflow:hidden}
.beneficiary-advanced-filters>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 14px;color:#365344;font-weight:800;background:#f6faf7}
.beneficiary-advanced-filters>summary::-webkit-details-marker{display:none}
.beneficiary-advanced-filters>summary span{display:inline-flex;align-items:center;gap:7px}
.beneficiary-advanced-filters>summary svg{width:17px;height:17px}
.beneficiary-advanced-filters>summary small{color:var(--muted);font-weight:600}
.beneficiary-advanced-filters[open]>summary{border-bottom:1px solid var(--line);background:#f1f7f3}
.beneficiary-advanced-filter-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) minmax(190px,.7fr);gap:12px;padding:14px;align-items:start}
.beneficiary-advanced-filter-body>.filter-field{min-width:0}
.beneficiary-advanced-filter-body input,.beneficiary-advanced-filter-body select{width:100%;min-width:0}
.advanced-filter-title{font-size:13px;font-weight:800;color:#42584b}
.beneficiary-advanced-filter-body .structured-filter-options{margin-top:1px}

.beneficiaries-compact-table table{min-width:930px!important;table-layout:auto}
.beneficiaries-compact-table th,.beneficiaries-compact-table td{vertical-align:top}
.beneficiaries-compact-table th:nth-child(1),.beneficiaries-compact-table td:nth-child(1){min-width:235px;width:26%}
.beneficiaries-compact-table th:nth-child(2),.beneficiaries-compact-table td:nth-child(2){min-width:145px;width:14%}
.beneficiaries-compact-table th:nth-child(3),.beneficiaries-compact-table td:nth-child(3){min-width:225px;width:23%}
.beneficiaries-compact-table th:nth-child(4),.beneficiaries-compact-table td:nth-child(4){min-width:210px;width:21%}
.beneficiaries-compact-table th:nth-child(5),.beneficiaries-compact-table td:nth-child(5){min-width:150px;width:12%}
.beneficiaries-compact-table th:nth-child(6),.beneficiaries-compact-table td:nth-child(6){min-width:96px;width:4%}
.beneficiary-core-cell{padding-inline-start:16px!important}
.beneficiary-list-name{display:block!important;font-size:15px!important;line-height:1.55!important;color:#145f36!important;font-weight:800!important;margin-bottom:7px}
.beneficiary-core-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:var(--muted);font-size:11.5px;line-height:1.6}
.beneficiary-core-meta span{display:inline-flex;gap:5px;align-items:center}
.beneficiary-core-meta b{font-weight:700;color:#405148;font-size:11.5px}
.compact-tag-list{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0!important;min-width:0!important}
.compact-tag-list span{display:inline-flex!important;align-items:center!important;width:auto!important;max-width:100%!important;margin:0!important;padding:5px 8px!important;border-radius:9px!important;font-size:11px!important;line-height:1.45!important}
.beneficiary-needs-compact span{white-space:normal!important;overflow-wrap:anywhere}
.beneficiary-category-tags span{white-space:nowrap!important}
.compact-more-tag{background:#f2f5f3!important;color:#5d6d64!important;border:1px solid #dde5e0!important;font-weight:800!important;white-space:nowrap!important}
.beneficiary-benefit-cell .benefit-pill{margin:0 0 8px!important}
.beneficiary-latest-benefit{display:grid;gap:1px;max-width:240px;padding-top:2px}
.beneficiary-latest-benefit small{margin:0!important;font-size:10.5px!important;color:var(--muted)!important}
.beneficiary-latest-benefit strong{font-size:12.5px!important;line-height:1.55!important;color:#244b36!important;font-weight:700!important}
.beneficiary-latest-benefit span{font-size:11px;color:#738078}
.benefit-filter-count{display:block!important;margin-top:7px!important;padding-top:6px;border-top:1px dashed #dfe7e2;color:#42604e!important;white-space:normal!important}
.beneficiary-action-cell{text-align:center;vertical-align:middle!important}
.beneficiary-action-cell .btn{min-width:82px}

@media(max-width:1100px){
  .beneficiary-filter-quick{grid-template-columns:minmax(260px,2fr) 1fr 1fr}
  .beneficiary-quick-actions{grid-column:1/-1;justify-content:flex-start}
  .beneficiary-advanced-filter-body{grid-template-columns:1fr 1fr}
  .beneficiary-advanced-filter-body>.filter-field:last-child{grid-column:1/-1}
}
@media(max-width:820px){
  .beneficiary-filter-quick{grid-template-columns:1fr 1fr;padding:12px}
  .beneficiary-filter-quick .search-field{grid-column:1/-1}
  .beneficiary-quick-actions{grid-column:1/-1}
  .beneficiary-quick-actions .btn{flex:1}
  .beneficiary-advanced-filters>summary{align-items:flex-start;flex-direction:column;gap:3px}
  .beneficiary-advanced-filter-body{grid-template-columns:1fr}
  .beneficiary-advanced-filter-body>.filter-field:last-child{grid-column:auto}
  .beneficiaries-compact-table table{min-width:0!important}
  .beneficiaries-compact-table td{min-width:0!important;width:100%!important}
  .beneficiaries-compact-table td[data-label="المستفيد"]::before{display:none!important}
  .beneficiary-core-cell{padding:15px 13px!important;background:#f9fcfa}
  .beneficiary-list-name{font-size:16px!important}
  .beneficiary-core-meta{font-size:12px}
  .beneficiary-action-cell .btn{width:100%}
}
@media(max-width:520px){
  .beneficiary-filter-quick{grid-template-columns:1fr}
  .beneficiary-filter-quick .search-field,.beneficiary-quick-actions{grid-column:auto}
  .beneficiary-quick-actions{display:grid;grid-template-columns:1fr 1fr}
  .beneficiary-advanced-filters>summary small{font-size:11px}
  .compact-tag-list span{font-size:10.5px!important}
}


/* V1.2.80 — centralized disability type catalogue */
.disability-row{grid-template-columns:minmax(210px,1fr) minmax(220px,1fr) auto}
.disability-row select,.disability-row input{width:100%;min-width:0}
.disability-row [data-disability-custom][hidden]{display:none!important}
.page-disability_types .type-list{max-height:620px;overflow:auto}
.page-disability_types .disability-type-admin-row{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:760px){.disability-row{grid-template-columns:1fr}.disability-row .btn{width:100%}.page-disability_types .disability-type-admin-row{grid-template-columns:1fr}}


/* V1.2.81 — clean disability selector layout */
.disability-profile-card{overflow:visible}
.disability-profile-card .conditional-profile-head{margin-bottom:12px}
.disability-profile-card .conditional-profile-head>div{min-width:0}
.disability-list{display:grid;gap:10px;width:100%;min-width:0}
.disability-row{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  flex-wrap:wrap!important;
  width:100%;
  min-width:0;
  padding:0;
}
.disability-row select{
  flex:1 1 360px;
  width:auto!important;
  min-width:240px!important;
  max-width:100%;
}
.disability-row [data-disability-custom]{
  flex:1 1 300px;
  width:auto!important;
  min-width:220px!important;
  max-width:100%;
}
.disability-row [data-disability-custom][hidden]{display:none!important}
.disability-row [data-remove-disability]{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:72px;
  min-height:45px;
  padding-inline:14px;
  white-space:nowrap;
}
.disability-row [data-remove-disability][hidden]{display:none!important}
.disability-help-note{
  display:block!important;
  position:static!important;
  width:100%;
  max-width:none!important;
  clear:both;
  margin:12px 0 0!important;
  padding:9px 11px!important;
  border:1px solid #e3ebe7!important;
  border-radius:10px!important;
  background:#f8fbf9!important;
  color:#617169!important;
  line-height:1.8!important;
  font-size:11.5px!important;
}
@media(max-width:760px){
  .disability-profile-card{padding:14px!important}
  .disability-profile-card .conditional-profile-head{gap:9px}
  .disability-profile-card .conditional-profile-head .btn{width:auto!important;align-self:flex-start}
  .disability-row{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
  .disability-row select,.disability-row [data-disability-custom],.disability-row [data-remove-disability]{
    width:100%!important;
    min-width:0!important;
  }
  .disability-row [data-remove-disability]{justify-self:stretch}
}

/* V1.2.82 — SMS Ready */
.sms-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;margin-bottom:22px;border:1px solid #dce9e0;border-radius:20px;background:linear-gradient(135deg,#fbfdfb,#eef7f0);box-shadow:0 10px 30px rgba(25,75,45,.05)}
.sms-hero h2{margin:4px 0 5px;font-size:1.55rem;color:#183c27}.sms-hero p{margin:0;color:#68766e;max-width:780px}.sms-provider-state{display:flex;align-items:center;gap:10px;min-width:235px;padding:12px 14px;border-radius:14px;border:1px solid #e4e9e5;background:#fff}.sms-provider-state>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:900}.sms-provider-state.ready>span{background:#e1f2e5;color:#23713b}.sms-provider-state.waiting>span{background:#fff4d8;color:#916a11}.sms-provider-state strong,.sms-provider-state small{display:block}.sms-provider-state small{color:#78847d;font-size:.75rem;line-height:1.5}.sms-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.sms-compose-panel{overflow:visible}.sms-recipient-filters{margin-bottom:20px}.sms-compose-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:24px;align-items:start}.sms-message-editor,.sms-recipient-picker{border:1px solid #e0e9e3;border-radius:17px;background:#fbfdfb;padding:18px}.sms-message-editor{display:grid;gap:14px}.sms-message-editor label{display:grid;gap:6px;font-weight:750;color:#264736}.sms-message-editor label small{font-weight:500;color:#7b8780}.sms-message-editor textarea{resize:vertical;min-height:160px}.sms-vars{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#718077;font-size:.78rem}.sms-vars code{direction:rtl;padding:4px 7px;border-radius:7px;background:#eef5ef;color:#245f36;font-family:'Cairo','Segoe UI',sans-serif;font-size:.74rem}.sms-live-count{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:10px;background:#f1f6f2;color:#617068;font-size:.76rem;font-weight:700}.sms-recipient-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.sms-recipient-head strong,.sms-recipient-head small{display:block}.sms-recipient-head small{color:#7b877f;font-size:.76rem}.sms-select-all{display:flex!important;align-items:center;gap:7px!important;padding:7px 9px;border-radius:9px;background:#edf6ef;color:#2e6540;font-size:.78rem!important;font-weight:800!important;white-space:nowrap}.sms-recipient-list{display:grid;gap:7px;max-height:470px;overflow:auto;padding-inline-end:4px}.sms-recipient-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px!important;padding:10px 11px;border:1px solid #e2eae4;border-radius:11px;background:#fff;cursor:pointer}.sms-recipient-row:hover{border-color:#bed3c4;background:#fafdFA}.sms-recipient-row.no-phone{opacity:.58;cursor:not-allowed}.sms-recipient-row input{width:17px;height:17px}.sms-recipient-person strong,.sms-recipient-person small{display:block}.sms-recipient-person strong{color:#183c27;font-size:.9rem}.sms-recipient-person small{color:#78847d;font-size:.72rem;margin-top:1px}.sms-mini-tag{padding:4px 7px;border-radius:999px;background:#f1ebfa;color:#69459a;font-size:.68rem;font-weight:800;white-space:nowrap}.sms-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:14px 16px;border-radius:14px;background:#f5f9f6;border:1px solid #e0e9e3}.sms-submit-bar strong,.sms-submit-bar small{display:block}.sms-submit-bar small{color:#758179;font-size:.76rem}.sms-campaign-list{display:grid;gap:10px}.sms-campaign-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #e0e9e3;border-radius:14px;background:#fff}.sms-campaign-card h3{margin:2px 0;color:#1b432b;font-size:1rem}.sms-campaign-card p{margin:2px 0 8px;color:#6b776f;font-size:.79rem}.sms-campaign-meta{display:flex;gap:7px;flex-wrap:wrap}.sms-campaign-meta span{padding:4px 7px;border-radius:999px;background:#f2f6f3;color:#5d6d63;font-size:.68rem;font-weight:800}.sms-campaign-meta .warn{background:#fff2d5;color:#856110}.sms-campaign-actions{flex:0 0 auto}.sms-admin-grid{align-items:start}.sms-template-list{display:grid;gap:8px;margin-top:14px}.sms-template-list>details{border:1px solid #e0e8e2;border-radius:12px;background:#fff;overflow:hidden}.sms-template-list>details>summary{padding:11px 13px;cursor:pointer;list-style:none}.sms-template-list>details>summary::-webkit-details-marker{display:none}.sms-template-list summary strong,.sms-template-list summary small{display:block}.sms-template-list summary small{color:#7a877f;font-size:.72rem}.sms-template-edit{padding:13px;border-top:1px solid #e8eee9;background:#fafcfb}.sms-template-edit>form+form{margin-top:9px}.sms-log-message{display:block;max-width:420px;white-space:normal;line-height:1.6}.sms-error-text{display:block;margin-top:3px;color:#a0443d;font-size:.7rem}.sms-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.7rem;font-weight:900;white-space:nowrap}.sms-status-queued{background:#edf2f7;color:#526171}.sms-status-waiting_provider{background:#fff3d7;color:#8a6410}.sms-status-simulated{background:#e9effc;color:#4266a1}.sms-status-sent,.sms-status-delivered{background:#e1f2e5;color:#236d39}.sms-status-failed{background:#fde9e7;color:#9a3d37}.sms-status-cancelled{background:#eef0ef;color:#657169}.beneficiary-header-actions{margin-top:10px;display:flex;align-items:center;flex-wrap:wrap;gap:14px}.beneficiary-header-actions .app-icon{width:16px;height:16px}
@media(max-width:1050px){.sms-compose-grid{grid-template-columns:1fr}.sms-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.sms-hero{align-items:flex-start;flex-direction:column;padding:19px}.sms-provider-state{width:100%;min-width:0}.sms-stats{grid-template-columns:1fr 1fr}.sms-message-editor,.sms-recipient-picker{padding:13px}.sms-recipient-head{align-items:flex-start;flex-direction:column}.sms-recipient-row{grid-template-columns:auto minmax(0,1fr)}.sms-mini-tag{grid-column:2}.sms-submit-bar,.sms-campaign-card{align-items:stretch;flex-direction:column}.sms-submit-bar .btn,.sms-campaign-actions .btn{width:100%}.sms-campaign-actions form{width:100%}.sms-live-count{align-items:flex-start;flex-direction:column}}


/* V1.2.83 — SMS simplified: pasted bulk numbers + direct message from beneficiary file */
.sms-simple-panel{max-width:900px;margin-inline:auto}.sms-bulk-paste-form{max-width:760px}.sms-bulk-paste-form textarea[name="phone_numbers"]{min-height:260px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}.sms-bulk-paste-form textarea[name="message_body"]{min-height:150px}.sms-bulk-paste-form .btn{justify-self:start;min-width:180px}
.beneficiary-sms-details{position:relative;display:inline-block}.beneficiary-sms-details>summary{list-style:none;cursor:pointer}.beneficiary-sms-details>summary::-webkit-details-marker{display:none}.beneficiary-sms-popover{position:absolute;z-index:40;top:calc(100% + 8px);right:0;width:min(390px,calc(100vw - 36px));padding:16px;border:1px solid #dce8df;border-radius:14px;background:#fff;box-shadow:0 16px 38px rgba(28,61,40,.16)}.beneficiary-sms-form textarea{min-height:110px;resize:vertical}.beneficiary-sms-form select{direction:rtl}.beneficiary-sms-form .btn{width:100%}
@media(max-width:720px){.beneficiary-sms-popover{position:fixed;left:18px;right:18px;top:22%;width:auto}.sms-simple-panel{margin-inline:0}.sms-bulk-paste-form .btn{width:100%}}


/* V1.2.84 — SMS simplified sending + modern results + separate settings */
.sms-modern-shell{display:grid;gap:18px}.sms-modern-hero{margin-bottom:0}.sms-subnav{display:flex;gap:8px;padding:6px;border:1px solid #dce8df;border-radius:14px;background:#fff;width:max-content;max-width:100%;box-shadow:0 6px 18px rgba(25,75,45,.04)}.sms-subnav a{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;color:#637169;font-weight:800;text-decoration:none}.sms-subnav a .app-icon{width:17px;height:17px}.sms-subnav a:hover{background:#f3f7f4;color:#2e6540}.sms-subnav a.active{background:#eaf4ec;color:#1f6337}.sms-compose-modern{max-width:none}.sms-compose-modern .sms-bulk-paste-form{max-width:none;display:grid;grid-template-columns:minmax(330px,.82fr) minmax(420px,1.18fr);gap:18px}.sms-compose-modern .sms-number-input{grid-column:1}.sms-compose-modern .sms-preview{grid-column:2;grid-row:1 / span 2}.sms-compose-modern .sms-bulk-paste-form>label:not(.sms-number-input){grid-column:1}.sms-compose-modern .sms-send-bar{grid-column:1 / -1}.sms-bulk-paste-form textarea[name="phone_numbers"]{min-height:250px}.sms-preview{border:1px solid #dfe9e2;border-radius:18px;background:#fbfdfb;padding:16px;min-height:430px}.sms-preview-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.sms-preview-head h3{margin:2px 0 0;color:#1d452d;font-size:1rem}.sms-preview-stats,.sms-result-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.sms-preview-stats article,.sms-result-summary article{padding:10px 11px;border:1px solid #e4ebe6;border-radius:12px;background:#fff}.sms-preview-stats span,.sms-result-summary span{display:block;color:#748078;font-size:.72rem;font-weight:750}.sms-preview-stats strong,.sms-result-summary strong{display:block;margin-top:2px;color:#193e29;font-size:1.2rem}.sms-number-results{display:grid;gap:7px;max-height:420px;overflow:auto;padding-inline-end:3px}.sms-number-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto 30px;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e2eae4;border-radius:11px;background:#fff}.sms-number-state{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:950;background:#e4f3e8;color:#246f3d}.sms-number-row.duplicate .sms-number-state{background:#fff2d9;color:#8a6410}.sms-number-row.invalid .sms-number-state{background:#fde9e7;color:#a0443d}.sms-number-row strong,.sms-number-row small{display:block}.sms-number-row strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#263b2e;font-size:.84rem;text-align:left}.sms-number-row small{margin-top:1px;color:#818b85;font-size:.68rem;direction:ltr;text-align:left}.sms-number-badge{padding:4px 7px;border-radius:999px;background:#e6f4e9;color:#26703d;font-size:.66rem;font-weight:900}.sms-number-row.duplicate .sms-number-badge{background:#fff3da;color:#88630e}.sms-number-row.invalid .sms-number-badge{background:#fdebe9;color:#9b403a}.sms-number-remove{border:0;background:#f2f5f3;color:#718077;width:28px;height:28px;border-radius:8px;font-size:1.15rem;cursor:pointer;line-height:1}.sms-number-remove:hover{background:#fee9e7;color:#9e403a}.sms-preview-empty{display:grid;place-items:center;min-height:190px;padding:24px;text-align:center;border:1px dashed #cfdad2;border-radius:13px;color:#7a877f;background:#fff}.sms-preview-more{margin-top:9px;padding:8px 10px;border-radius:9px;background:#eef5ef;color:#637169;font-size:.72rem}.sms-message-counter{display:flex!important;justify-content:space-between;gap:10px;color:#748078!important;font-size:.72rem!important;font-weight:700!important}.sms-send-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #dfe9e2;border-radius:14px;background:#f6faf7}.sms-send-bar strong,.sms-send-bar small{display:block}.sms-send-bar small{color:#758179;font-size:.74rem;margin-top:2px}.sms-send-bar .btn{min-width:180px}.sms-settings-panel{max-width:950px}.sms-settings-form{max-width:820px}.sms-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sms-settings-grid .wide{grid-column:1/-1}.sms-settings-note{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:12px;border:1px solid #e2e9e4;background:#f8faf9}.sms-settings-note>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#fff}.sms-settings-note .app-icon{width:18px;height:18px}.sms-settings-note strong,.sms-settings-note small{display:block}.sms-settings-note small{color:#748078;font-size:.73rem;margin-top:2px}.sms-settings-note.ready>span{color:#26703d}.sms-settings-note.waiting>span{color:#8a6410}.sms-send-results{overflow:hidden}.sms-result-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.sms-result-summary article.success{background:#f3faf5}.sms-result-summary article.waiting{background:#fffaf0}.sms-result-summary article.failed{background:#fff6f5}.sms-result-list{display:grid;gap:7px;max-height:520px;overflow:auto}.sms-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:10px 12px;border:1px solid #e3eae5;border-radius:11px;background:#fff}.sms-result-number strong,.sms-result-number small{display:block}.sms-result-number strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}.sms-result-number small{color:#7b877f;font-size:.69rem;text-align:right;direction:rtl}.sms-result-error{grid-column:1/-1;color:#9e403a;font-size:.68rem;background:#fff5f4;border-radius:8px;padding:6px 8px}
@media(max-width:900px){.sms-compose-modern .sms-bulk-paste-form{grid-template-columns:1fr}.sms-compose-modern .sms-number-input,.sms-compose-modern .sms-preview,.sms-compose-modern .sms-bulk-paste-form>label:not(.sms-number-input),.sms-compose-modern .sms-send-bar{grid-column:1;grid-row:auto}.sms-preview{min-height:0}.sms-number-results{max-height:360px}}
@media(max-width:620px){.sms-subnav{width:100%}.sms-subnav a{flex:1;justify-content:center}.sms-settings-grid{grid-template-columns:1fr}.sms-settings-grid .wide{grid-column:1}.sms-preview-stats,.sms-result-summary{grid-template-columns:1fr 1fr}.sms-number-row{grid-template-columns:28px minmax(0,1fr) 28px}.sms-number-badge{display:none}.sms-send-bar{align-items:stretch;flex-direction:column}.sms-send-bar .btn{width:100%}.sms-modern-hero{padding:18px}.sms-result-row{grid-template-columns:1fr}.sms-result-row .sms-status{justify-self:start}.sms-result-error{grid-column:1}.sms-provider-state{width:100%}}


/* V1.2.85 — SMS result recovery + cancel/delete pending */
.sms-panel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sms-result-row{position:relative}
.sms-result-cancel-form{margin-inline-start:auto}
.sms-result-cancel-form .btn{white-space:nowrap}
@media(max-width:720px){.sms-panel-actions{width:100%;justify-content:stretch}.sms-panel-actions .btn{flex:1}.sms-result-cancel-form{width:100%;margin-inline-start:0}.sms-result-cancel-form .btn{width:100%}}


/* V1.2.86 — SMS history: keep and display the latest 20 operations */
.sms-history-panel{overflow:hidden}.sms-history-list{display:grid;gap:9px}.sms-history-row{display:grid;grid-template-columns:minmax(250px,1fr) auto auto;align-items:center;gap:14px;padding:12px 13px;border:1px solid #e1e9e3;border-radius:13px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.sms-history-row:hover{border-color:#cbdccf;box-shadow:0 7px 18px rgba(28,77,46,.05)}.sms-history-row.active{border-color:#a9cfb3;background:#f6fbf7;box-shadow:inset 3px 0 0 #3c8a55}.sms-history-main{display:flex;align-items:center;gap:10px;min-width:0}.sms-history-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#eef6f0;color:#2d7243;flex:0 0 auto}.sms-history-icon .app-icon{width:18px;height:18px}.sms-history-main div{min-width:0}.sms-history-main strong,.sms-history-main small{display:block}.sms-history-main strong{color:#24432f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sms-history-main small{margin-top:3px;color:#7a867e;font-size:.7rem}.sms-history-metrics{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.sms-history-metrics span{padding:5px 8px;border-radius:999px;background:#f2f5f3;color:#617068;font-size:.67rem;font-weight:750;white-space:nowrap}.sms-history-metrics span b{color:#30483a;font-size:.74rem}.sms-history-metrics .success{background:#edf8f0;color:#377248}.sms-history-metrics .waiting{background:#fff6e5;color:#8a681e}.sms-history-metrics .failed{background:#fff0ef;color:#9b4b44}.sms-history-row>.btn{min-width:108px;justify-content:center}
@media(max-width:900px){.sms-history-row{grid-template-columns:1fr auto}.sms-history-metrics{grid-column:1/-1;grid-row:2;justify-content:flex-start}.sms-history-row>.btn{grid-column:2;grid-row:1}}
@media(max-width:620px){.sms-history-row{grid-template-columns:1fr}.sms-history-metrics{grid-column:1;grid-row:auto}.sms-history-row>.btn{grid-column:1;grid-row:auto;width:100%}.sms-history-row.active{box-shadow:inset 0 3px 0 #3c8a55}}

/* V1.2.87 — smart manual SMS paste + personalized keys */
.sms-number-row.fixed .sms-number-state{background:#eaf2ff;color:#315f9d;font-size:.62rem}.sms-number-row.fixed .sms-number-badge{background:#edf4ff;color:#315f9d}.sms-number-content{min-width:0}.sms-extracted-meta{display:flex;gap:5px 7px;flex-wrap:wrap;margin-top:4px;direction:rtl;justify-content:flex-start}.sms-extracted-meta span{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:7px;background:#f3f6f4;color:#596960;font-size:.64rem}.sms-extracted-meta span b{color:#31523d;font-weight:900}.sms-extracted-meta span i{font-style:normal;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.sms-extracted-meta.muted-meta span{background:#fafbfa;color:#8a938d}.sms-raw-line{margin-top:5px!important;padding-top:4px;border-top:1px dashed #edf1ee;color:#929a95!important;direction:auto!important;text-align:right!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sms-message-field{display:grid;gap:8px}.sms-template-keys{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:3px}.sms-template-keys>span{color:#738078;font-size:.72rem;font-weight:800}.sms-template-keys button{display:flex;align-items:center;gap:6px;border:1px solid #d9e5dc;border-radius:9px;background:#f8fbf9;color:#31523d;padding:6px 8px;cursor:pointer}.sms-template-keys button:hover{border-color:#a9cbb2;background:#edf6ef}.sms-template-keys button b{direction:ltr;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.72rem}.sms-template-keys button small{font-size:.64rem;color:#6f7c74}.sms-key-note{color:#7f8983!important;font-size:.68rem!important}.sms-personalized-preview{padding:10px 12px;border:1px solid #d9e6dc;border-radius:11px;background:#f8fbf9}.sms-personalized-preview>span{display:block;color:#668071;font-size:.66rem;font-weight:850;margin-bottom:4px}.sms-personalized-preview p{margin:0;color:#294232;white-space:pre-wrap;line-height:1.7}.sms-result-number small{line-height:1.6}.sms-compose-modern .sms-number-input textarea{font-family:inherit;text-align:right}.sms-compose-modern .sms-number-input textarea::placeholder{direction:rtl;text-align:right}
@media(max-width:620px){.sms-template-keys button{flex:1;justify-content:center}.sms-extracted-meta{gap:4px}.sms-raw-line{white-space:normal}.sms-number-row.fixed .sms-number-state{font-size:.58rem}}

/* V1.2.88 — separate manual SMS columns + row preview */
.sms-compose-modern .sms-bulk-paste-form{grid-template-columns:1fr;gap:18px}
.sms-compose-modern .sms-manual-columns,.sms-compose-modern .sms-preview,.sms-compose-modern .sms-message-field,.sms-compose-modern .sms-send-bar{grid-column:1;grid-row:auto}
.sms-manual-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.sms-column-field{display:grid;gap:7px;padding:12px;border:1px solid #dfe9e2;border-radius:15px;background:#fbfdfb;min-width:0}
.sms-column-field>span{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.sms-column-field>span b{color:#244b32;font-size:.86rem}.sms-column-field>span small{color:#819087;font-size:.62rem;font-weight:700}
.sms-column-field textarea{min-height:235px!important;resize:vertical;font-family:inherit;line-height:1.7;background:#fff}
.sms-column-field.sms-phone-column textarea,.sms-column-field textarea[name="national_ids"]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}
.sms-column-field>small{color:#78857d;font-size:.67rem;line-height:1.55}
.sms-preview{min-height:0}
.sms-number-results{max-height:560px;overflow:auto;display:block;border:1px solid #e3ebe5;border-radius:12px;background:#fff}
.sms-column-preview-head,.sms-column-preview-row{display:grid;grid-template-columns:36px 132px 110px 132px minmax(150px,1fr) 108px 34px;gap:8px;align-items:center}
.sms-column-preview-head{position:sticky;top:0;z-index:2;padding:9px 10px;background:#f0f6f2;border-bottom:1px solid #dce7df;color:#637269;font-size:.66rem;font-weight:900}
.sms-column-preview-row{padding:9px 10px;border-bottom:1px solid #edf1ee;background:#fff}
.sms-column-preview-row:last-child{border-bottom:0}.sms-column-preview-row.invalid{background:#fffafa}.sms-column-preview-row.duplicate{background:#fffdf8}.sms-column-preview-row.fixed{background:#fbfdff}
.sms-column-preview-row>strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem;color:#263b2e;text-align:left}
.sms-column-preview-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;color:#596960}
.sms-column-preview-row .sms-preview-index{font-weight:900;color:#87928b;text-align:center}.sms-column-preview-row .sms-number-badge{justify-self:start;overflow:visible}
.sms-row-message-preview{grid-column:2 / 7;padding:7px 9px;border-radius:8px;background:#f7faf8;color:#617068;font-size:.68rem;line-height:1.65;white-space:normal}.sms-row-message-preview b{color:#31523d;margin-left:4px}
.sms-personalized-preview [data-sms-personalized-text]{display:grid;gap:7px}.sms-personalized-preview [data-sms-personalized-text]>span{display:grid;gap:2px;padding:7px 9px;border-radius:8px;background:#fff;color:#294232;line-height:1.65}.sms-personalized-preview [data-sms-personalized-text]>span b{font-size:.68rem;color:#5f7868}
@media(max-width:1100px){.sms-manual-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.sms-column-preview-head,.sms-column-preview-row{grid-template-columns:34px 124px 95px 118px minmax(130px,1fr) 96px 32px}}
@media(max-width:760px){.sms-manual-columns{grid-template-columns:1fr}.sms-column-field textarea{min-height:160px!important}.sms-column-preview-head{display:none}.sms-column-preview-row{grid-template-columns:32px minmax(120px,1fr) auto 32px;gap:7px}.sms-column-preview-row>span:nth-of-type(2),.sms-column-preview-row>span:nth-of-type(3),.sms-column-preview-row>span:nth-of-type(4){grid-column:2 / 4;white-space:normal}.sms-column-preview-row>span:nth-of-type(2)::before{content:'الكود: ';font-weight:900;color:#31523d}.sms-column-preview-row>span:nth-of-type(3)::before{content:'الهوية: ';font-weight:900;color:#31523d}.sms-column-preview-row>span:nth-of-type(4)::before{content:'الاسم: ';font-weight:900;color:#31523d}.sms-column-preview-row .sms-number-badge{grid-column:3}.sms-column-preview-row .sms-number-remove{grid-column:4;grid-row:1}.sms-row-message-preview{grid-column:2 / 5}}


/* V1.2.89 — SMS preview table alignment + message key click fix */
.sms-message-field{
  display:grid;
  gap:9px;
  padding:16px;
  border:1px solid #dfe9e2;
  border-radius:16px;
  background:#fbfdfb;
}
.sms-message-title{
  display:block;
  color:#244b32;
  font-size:.9rem;
  font-weight:900;
  line-height:1.5;
}
.sms-message-field textarea[data-sms-message-body]{
  width:100%;
  min-height:150px;
  resize:vertical;
  background:#fff;
}
.sms-template-keys{
  position:relative;
  z-index:1;
}
.sms-template-keys button{
  position:relative;
  width:auto;
  flex:0 0 auto;
}
.sms-number-results{
  overflow:auto;
  max-height:560px;
  padding:0;
}
.sms-preview-table-wrap{
  min-width:900px;
  width:100%;
}
.sms-preview-table{
  width:100%;
  min-width:900px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  direction:rtl;
  background:#fff;
}
.sms-preview-table col.col-index{width:52px}
.sms-preview-table col.col-phone{width:150px}
.sms-preview-table col.col-code{width:105px}
.sms-preview-table col.col-id{width:145px}
.sms-preview-table col.col-name{width:auto}
.sms-preview-table col.col-status{width:130px}
.sms-preview-table col.col-action{width:62px}
.sms-preview-table th{
  position:sticky;
  top:0;
  z-index:3;
  padding:11px 9px;
  border-bottom:1px solid #d8e4dc;
  border-inline-start:1px solid #e2ebe5;
  background:#eef5f0;
  color:#52675a;
  font-size:.7rem;
  font-weight:900;
  text-align:center;
  white-space:nowrap;
}
.sms-preview-table th:first-child{border-inline-start:0}
.sms-preview-table td{
  padding:10px 9px;
  border-bottom:1px solid #edf1ee;
  border-inline-start:1px solid #f0f3f1;
  color:#4f6256;
  font-size:.75rem;
  vertical-align:middle;
  background:#fff;
}
.sms-preview-table td:first-child{border-inline-start:0}
.sms-preview-table tbody tr:last-child td{border-bottom:0}
.sms-preview-table tbody tr.fixed td{background:#fbfdff}
.sms-preview-table tbody tr.duplicate td{background:#fffdf8}
.sms-preview-table tbody tr.invalid td{background:#fff9f9}
.sms-preview-table .sms-preview-index,
.sms-preview-table .sms-preview-phone,
.sms-preview-table .sms-preview-code,
.sms-preview-table .sms-preview-id,
.sms-preview-table .sms-preview-status,
.sms-preview-table .sms-preview-action{
  text-align:center;
}
.sms-preview-table .sms-preview-index{
  color:#829087;
  font-weight:900;
}
.sms-preview-table .sms-preview-phone{
  color:#173f29;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-weight:900;
  letter-spacing:.02em;
}
.sms-preview-table .sms-preview-code,
.sms-preview-table .sms-preview-id{
  color:#51645a;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sms-preview-table .sms-preview-name{
  direction:rtl;
  text-align:right;
  color:#334d3c;
  font-weight:750;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.65;
}
.sms-preview-table .sms-number-badge{
  display:inline-flex;
  justify-content:center;
  max-width:100%;
  white-space:nowrap;
}
.sms-preview-table tr.fixed .sms-number-badge{background:#edf4ff;color:#315f9d}
.sms-preview-table tr.duplicate .sms-number-badge{background:#fff3da;color:#88630e}
.sms-preview-table tr.invalid .sms-number-badge{background:#fdebe9;color:#9b403a}
.sms-preview-table .sms-number-remove{
  margin-inline:auto;
}
@media(max-width:760px){
  .sms-preview-table-wrap,.sms-preview-table{min-width:820px}
  .sms-message-field{padding:13px}
  .sms-template-keys button{flex:0 0 auto}
}

/* V1.2.90 — Android phone SMS gateway */
.sms-status-queued_gateway,.sms-status-gateway_claimed{background:#fff3d7;color:#8a6410}
.sms-status-sending{background:#e9effc;color:#4266a1}
.sms-gateway-panel{max-width:1050px}
.sms-gateway-live{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;font-size:.72rem;font-weight:900;white-space:nowrap;border:1px solid #e0e8e2;background:#f7f9f8;color:#6d7b72}
.sms-gateway-live i{width:8px;height:8px;border-radius:50%;background:#9aa69e;box-shadow:0 0 0 4px rgba(120,135,125,.09)}
.sms-gateway-live.online{background:#eff9f2;color:#26703d;border-color:#d6eadb}.sms-gateway-live.online i{background:#31a457;box-shadow:0 0 0 4px rgba(49,164,87,.12)}
.sms-gateway-live.offline{background:#fff9ed;color:#8a6410;border-color:#f0e2bf}.sms-gateway-live.offline i{background:#d59b1b;box-shadow:0 0 0 4px rgba(213,155,27,.11)}
.sms-gateway-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sms-gateway-card{display:grid;gap:6px;align-content:start;padding:14px;border:1px solid #e1e9e3;border-radius:14px;background:#fbfdfb;min-width:0}
.sms-gateway-card>span{color:#77847b;font-size:.7rem;font-weight:800}.sms-gateway-card>strong{color:#1f4630;font-size:.92rem;overflow-wrap:anywhere}.sms-gateway-card>small{color:#758078;font-size:.7rem;line-height:1.6}.sms-gateway-card .btn{justify-self:start;margin-top:4px}.sms-gateway-card form{margin-top:4px}
.sms-gateway-url{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.78rem!important;text-align:left;direction:ltr}
.sms-gateway-queue-card{background:#f7faf8}
.sms-gateway-token-once{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:14px 16px;border:1px solid #bcdac4;border-radius:14px;background:#f0faf3}
.sms-gateway-token-once span,.sms-gateway-token-once strong,.sms-gateway-token-once small{display:block}.sms-gateway-token-once span{color:#557061;font-size:.7rem;font-weight:800}.sms-gateway-token-once strong{margin:5px 0;color:#16482a;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.84rem;word-break:break-all;text-align:left}.sms-gateway-token-once small{color:#66776c;font-size:.69rem}
.sms-gateway-steps{margin-top:14px;padding:14px 16px;border-radius:14px;background:#f6f8f7;border:1px solid #e3e9e5}.sms-gateway-steps>strong{color:#244b32}.sms-gateway-steps ol{margin:8px 0 0;padding-right:20px;color:#637168;font-size:.76rem;line-height:1.9}
@media(max-width:720px){.sms-gateway-grid{grid-template-columns:1fr}.sms-gateway-token-once{align-items:stretch;flex-direction:column}.sms-gateway-token-once .btn{width:100%}}

/* V1.2.91 — simplified BSCR SMS account + aligned settings width */
.sms-settings-panel,.sms-gateway-panel{max-width:none;width:100%}
.sms-settings-form{max-width:none;width:100%}
.sms-settings-grid{width:100%}
.sms-gateway-grid{width:100%;align-items:stretch}
.sms-gateway-card{height:100%}
.sms-gateway-account-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;align-items:end}
.sms-gateway-account-form label{display:grid;gap:6px;color:#526259;font-size:.74rem;font-weight:800;min-width:0}
.sms-gateway-account-form label small{color:#879189;font-size:.66rem;font-weight:650}
.sms-gateway-account-form input{width:100%;border:1px solid #dbe5e1;border-radius:11px;padding:10px 11px;background:#fff;outline:none}
.sms-gateway-account-form input:focus{border-color:#64b496;box-shadow:0 0 0 4px rgba(15,122,90,.08)}
.sms-gateway-account-form .btn{grid-column:1/-1;justify-self:start}
@media(max-width:900px){.sms-gateway-account-form{grid-template-columns:1fr 1fr}.sms-gateway-account-form label:first-of-type{grid-column:1/-1}}
@media(max-width:620px){.sms-gateway-account-form{grid-template-columns:1fr}.sms-gateway-account-form label:first-of-type{grid-column:auto}.sms-gateway-account-form .btn{width:100%}}


/* V1.2.92 — SMS history cleanup + in-system Android APK */
.sms-history-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-start}
.sms-history-head-actions form{margin:0}
.sms-app-download-panel{width:100%;max-width:none}
.sms-app-download-wrap{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:4px 0}
.sms-app-download-brand{display:flex;align-items:center;gap:16px;min-width:0}
.sms-app-download-brand img{width:68px;height:68px;object-fit:contain;border:1px solid #e0ebe4;border-radius:16px;background:#fff;padding:7px;box-shadow:0 8px 24px rgba(23,73,43,.06)}
.sms-app-download-brand h2{margin:3px 0 4px;color:#173f29}
.sms-app-download-brand p{margin:0;color:#6c7b72;line-height:1.7;font-size:.78rem}
.sms-app-download-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;flex:0 0 auto}
.sms-app-version{display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid #dce7e0;border-radius:999px;background:#f7faf8;color:#557061;font-size:.7rem;font-weight:900;direction:ltr}
.sms-app-download-note{margin-top:14px;padding:10px 13px;border-radius:11px;background:#f5f8f6;color:#69776e;font-size:.7rem;border:1px solid #e4ebe6}
@media(max-width:850px){.sms-app-download-wrap{align-items:stretch;flex-direction:column}.sms-app-download-actions{justify-content:flex-start}.sms-app-download-actions .btn{flex:1 1 190px}}
@media(max-width:560px){.sms-app-download-brand{align-items:flex-start}.sms-app-download-brand img{width:58px;height:58px}.sms-app-download-actions{display:grid;grid-template-columns:1fr}.sms-app-download-actions .btn,.sms-app-version{width:100%;justify-content:center}.sms-history-head-actions{width:100%}.sms-history-head-actions form,.sms-history-head-actions .btn{width:100%}}

/* V1.3.4 — database storage management */
.sql-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;border:1px solid var(--line,#dfe8e2);border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f4faf6 100%);margin-bottom:18px}.sql-hero h2{margin:4px 0 8px;font-size:28px}.sql-hero p{margin:0;color:var(--muted,#66756d);max-width:760px}.sql-mode-pill{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;padding:10px 15px;border-radius:999px;font-weight:800;background:#fff;border:1px solid #dbe7df}.sql-mode-pill i{width:10px;height:10px;border-radius:50%;background:#a9b6ae;box-shadow:0 0 0 5px rgba(169,182,174,.14)}.sql-hero.active .sql-mode-pill{color:#146b3a;border-color:#bfe2cb;background:#eefaf2}.sql-hero.active .sql-mode-pill i{background:#20a457;box-shadow:0 0 0 5px rgba(32,164,87,.14)}.sql-stats{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:18px}.sql-stats article strong{font-size:24px}.sql-stats article small{white-space:normal}.sql-grid{align-items:start}.sql-step .form-grid{margin-top:8px}.sql-step .inline-form{display:inline-block;margin-inline-start:8px}.sql-activate-panel{margin-top:18px}.sql-live-dot{font-weight:800;color:#168146;background:#edf9f1;border:1px solid #c5e8d1;border-radius:999px;padding:8px 12px}.sql-ready-note{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:14px;margin-bottom:14px;border:1px solid}.sql-ready-note.ready{background:#eefaf2;border-color:#c4e7d0;color:#126738}.sql-ready-note.waiting{background:#fff9eb;border-color:#f0dfae;color:#7c5a09}.sql-safety{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid #ead5d5;border-radius:16px;background:#fffafa}.sql-safety>div{display:flex;flex-direction:column;gap:4px}.sql-data-chips{display:flex;flex-wrap:wrap;gap:9px;margin:8px 0 12px}.sql-data-chips span{padding:8px 11px;border-radius:999px;background:#f3f7f4;border:1px solid #dfe8e2;font-weight:700;font-size:13px}body.page-database .panel{overflow:visible}body.page-database input[dir="ltr"]{text-align:left}
@media(max-width:1100px){.sql-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sql-stats article:last-child{grid-column:span 2}}@media(max-width:700px){.sql-hero{align-items:flex-start;flex-direction:column;padding:20px}.sql-hero h2{font-size:23px}.sql-stats{grid-template-columns:1fr 1fr}.sql-stats article:last-child{grid-column:1/-1}.sql-safety{align-items:stretch;flex-direction:column}.sql-step .inline-form{display:block;margin:10px 0 0}.sql-step .inline-form .btn{width:100%}}


/* V1.3.5 — Advanced SQL database center */
.sql-stats-advanced{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.sql-stats-advanced article{min-height:118px;display:flex;flex-direction:column;justify-content:center}
.sql-version-value{font-size:1.05rem!important;word-break:break-word}
.sql-grid-advanced{align-items:stretch}
.sql-grid-advanced>.panel{height:100%}
.sql-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.sql-metric-grid>div,.sql-health-list>div,.sql-backup-state{border:1px solid var(--line,#e4e7ec);border-radius:14px;padding:13px 14px;background:var(--surface-soft,#fafbfc)}
.sql-metric-grid span,.sql-health-list span,.sql-backup-state span{display:block;font-size:.78rem;color:var(--muted,#667085);margin-bottom:5px}
.sql-metric-grid strong{font-size:1.08rem}
.sql-health-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.sql-health-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px}
.sql-health-list>div span{margin:0}
.sql-health-list b{min-width:34px;text-align:center;border-radius:999px;padding:4px 8px;background:#fff;border:1px solid var(--line,#e4e7ec)}
.sql-backup-state{display:flex;align-items:center;justify-content:space-between;margin:14px 0}
.sql-backup-state span{margin:0}
.sql-table-panel .table-wrap{margin-top:8px}
.sql-connection-list strong{overflow-wrap:anywhere}
@media(max-width:1100px){.sql-stats-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sql-stats-advanced,.sql-metric-grid,.sql-health-list{grid-template-columns:1fr}.sql-stats-advanced article{min-height:auto}.sql-hero{gap:14px}}


/* V1.3.6 — Bulk delivery workflow redesign */
.bulk-v136-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#ffffff,#f3f8f5)}
.bulk-v136-intro h2{margin:4px 0 6px}.bulk-v136-intro p{margin:0;color:var(--muted);max-width:820px;line-height:1.8}
.bulk-intro-state{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.bulk-flow-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dce8e1;border-radius:999px;background:#fff;color:#567166;font-size:11px;font-weight:800;white-space:nowrap}
.bulk-flow-chip b{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#e6f3ea;color:#0b6b42;font-size:10px}
.bulk-v136-form .import-form{gap:16px}
.bulk-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.bulk-config-grid>label,.bulk-config-grid>.structured-option-fields{margin:0}
.bulk-config-grid>.structured-option-fields{grid-column:1/-1}
.bulk-identities-field{margin:0}.bulk-identities-field textarea{min-height:220px!important}
.bulk-file-alternative{border:1px solid #e0e8e3;border-radius:12px;background:#fafcfb;overflow:hidden}
.bulk-file-alternative>summary{cursor:pointer;padding:12px 14px;font-size:11.5px;font-weight:850;color:#496257;list-style:none}
.bulk-file-alternative>summary::-webkit-details-marker{display:none}.bulk-file-alternative>summary::after{content:"+";float:left;font-size:17px;line-height:1}
.bulk-file-alternative[open]>summary::after{content:"−"}
.bulk-file-alternative-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:0 14px 14px}
.bulk-file-alternative-body label{margin:0}
.bulk-preview-submit,.bulk-confirm-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #dfe9e2;border-radius:13px;background:#f7faf8}
.bulk-preview-submit strong,.bulk-preview-submit small,.bulk-confirm-bar strong,.bulk-confirm-bar small{display:block}
.bulk-preview-submit small,.bulk-confirm-bar small{margin-top:2px;color:var(--muted);font-size:11px}
.bulk-preflight-panel{border-color:#cfe2d6;box-shadow:0 8px 22px rgba(16,89,53,.05)}
.bulk-preflight-stats article.success,.bulk-v136-results .import-stats article.success{background:#f2faf4;border-color:#d5eadb}
.bulk-preview-table table{min-width:760px}
.bulk-preview-table tr.is-ready{background:#fbfefc}.bulk-preview-table tr.is-blocked{background:#fffdfc}
.bulk-preview-table tr.is-excluded{opacity:0;transform:translateX(-8px);transition:opacity .12s ease,transform .12s ease}
.bulk-row-note{display:block;margin-top:4px;color:var(--muted);font-size:10.5px;line-height:1.5}
.bulk-exclude-btn{white-space:nowrap}
.bulk-preview-confirm-form{display:grid;gap:12px}.bulk-preview-cancel-form{margin-top:8px}
.bulk-undo-details{margin:15px 0;border:1px solid #e5e8e6;border-radius:12px;background:#fbfcfb;overflow:hidden}
.bulk-undo-details>summary{cursor:pointer;padding:11px 13px;font-size:11px;font-weight:850;color:#6b756f;list-style:none}
.bulk-undo-details>summary::-webkit-details-marker{display:none}
.bulk-undo-details .bulk-undo-zone{margin:0;border:0;border-top:1px solid #f0c7c3;border-radius:0}
.bulk-history-panel .panel-head{align-items:end}
.bulk-history-table table{min-width:980px}.bulk-history-table td,.bulk-history-table th{vertical-align:middle}
.success-text{color:#177443}.muted-text{color:#8a9590;font-size:11px}
@media(max-width:820px){
  .bulk-v136-intro{align-items:flex-start;flex-direction:column}
  .bulk-intro-state{justify-content:flex-start}
  .bulk-config-grid{grid-template-columns:1fr}
  .bulk-config-grid>.structured-option-fields{grid-column:1}
  .bulk-file-alternative-body{grid-template-columns:1fr}
  .bulk-file-alternative-body .btn{width:100%}
  .bulk-preview-submit,.bulk-confirm-bar{align-items:stretch;flex-direction:column}
  .bulk-preview-submit .btn,.bulk-confirm-bar .btn{width:100%}
}


/* V1.3.7 — SMS settings cleanup and device session controls */
.sms-provider-choice-grid{grid-template-columns:minmax(260px,560px)}
.sms-provider-config[hidden],[data-sms-provider-phone-area][hidden]{display:none!important}
.sms-provider-config{display:grid;gap:12px}
.sms-settings-save-row{display:flex;justify-content:flex-start;align-items:center}
.sms-settings-save-btn{width:auto!important;min-width:145px;max-width:180px;justify-content:center}
.sms-gateway-logout-form,.sms-gateway-logout-all-form{margin-top:8px!important}
.btn.danger-outline{background:#fff;color:#9b3d37;border:1px solid #e8c3bf}
.btn.danger-outline:hover{background:#fff4f3;border-color:#dba8a2}
@media(max-width:620px){.sms-settings-save-btn{width:auto!important;min-width:140px}.sms-provider-choice-grid{grid-template-columns:1fr}}

/* V1.3.8 — Database migration center */
.db-migration-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:15px 17px;border:1px solid #f0cf94;border-radius:16px;background:#fff8e8;box-shadow:0 8px 24px rgba(120,75,0,.06)}
.db-migration-banner-copy{display:flex;align-items:flex-start;gap:12px;min-width:0}.db-migration-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#ffe9bf;font-size:19px}.db-migration-banner-copy strong{display:block;color:#7b4c00;font-size:14px}.db-migration-banner-copy p{margin:4px 0 0;color:#7b6441;font-size:12px;line-height:1.7}.db-migration-banner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.db-migration-banner-actions form{margin:0}
.sql-migration-panel{scroll-margin-top:88px}.sql-migration-version-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px}.sql-migration-version-grid>div{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fafcfb}.sql-migration-version-grid span{display:block;color:var(--muted);font-size:11px;font-weight:800}.sql-migration-version-grid strong{display:block;margin-top:5px;color:var(--ink);font-size:14px;overflow-wrap:anywhere}.sql-migration-version-grid small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.sql-migration-list{display:grid;gap:9px;margin:13px 0}.sql-migration-list article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #eed8ab;border-radius:13px;background:#fffdf7}.sql-migration-list article>div{display:flex;align-items:flex-start;gap:10px}.sql-migration-list strong{display:block;font-size:13px}.sql-migration-list p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.65}.sql-migration-list small{white-space:nowrap;color:#8b5b14;font-weight:800}.migration-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;background:#d98a12;box-shadow:0 0 0 4px #fff0cf}.migration-run-form{align-items:center;gap:12px}.migration-run-form span{color:var(--muted);font-size:11px;font-weight:700}
@media(max-width:820px){.db-migration-banner{align-items:stretch;flex-direction:column}.db-migration-banner-actions{justify-content:flex-start}.sql-migration-version-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.sql-migration-version-grid{grid-template-columns:1fr}.sql-migration-list article{align-items:flex-start;flex-direction:column}}


/* V1.3.12 — beneficiary SMS popup: simpler direct message + mobile close */
.beneficiary-sms-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px -2px 14px;padding-bottom:11px;border-bottom:1px solid #edf2ee}
.beneficiary-sms-popover-head>div{display:grid;gap:2px;min-width:0}.beneficiary-sms-popover-head strong{color:#23452f;font-size:.95rem}.beneficiary-sms-popover-head small{color:#748278;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.beneficiary-sms-close{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid #d9e5dc;border-radius:10px;background:#f7faf8;color:#31523d;font-size:1.45rem;line-height:1;cursor:pointer}.beneficiary-sms-close:hover,.beneficiary-sms-close:focus{background:#edf5ef;border-color:#b9d2c0;outline:none}
.beneficiary-sms-actions{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center}.beneficiary-sms-actions .btn{width:auto}.beneficiary-sms-actions .btn.primary{width:100%}
@media(max-width:720px){.beneficiary-sms-popover{left:12px;right:12px;top:50%;width:auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;transform:translateY(-50%);padding:14px;z-index:1000}.beneficiary-sms-popover-head{position:sticky;top:-14px;z-index:2;margin:-14px -14px 14px;padding:14px;background:#fff;border-radius:14px 14px 0 0}.beneficiary-sms-close{width:40px;height:40px;flex-basis:40px}.beneficiary-sms-actions{grid-template-columns:1fr 1fr}.beneficiary-sms-actions .btn{width:100%}}


/* V1.3.24 - Clean beneficiary detailed report */
.beneficiary-report-page{font-family:"Cairo",Tahoma,Arial,sans-serif;max-width:1180px;margin:0 auto}
.beneficiary-report-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.beneficiary-report-sheet{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:30px;color:#17231f}
.beneficiary-report-header{display:grid;grid-template-columns:92px 1fr auto;gap:18px;align-items:center;padding-bottom:22px;border-bottom:2px solid #0f7a5a}
.beneficiary-report-header img{width:86px;height:86px;object-fit:contain}
.beneficiary-report-org strong,.beneficiary-report-org span{display:block}.beneficiary-report-org strong{font-size:18px;color:#075c44}.beneficiary-report-org span{font-size:12px;color:#6a7772;margin-top:3px}.beneficiary-report-org h1{font-size:24px;margin:8px 0 0;color:#17231f}
.beneficiary-report-meta{text-align:left;display:grid;gap:3px;min-width:150px}.beneficiary-report-meta span,.beneficiary-report-meta small{color:#6a7772;font-size:11px}.beneficiary-report-meta b{font-size:18px;color:#075c44}
.beneficiary-report-identity{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.beneficiary-report-identity span{font-size:11px;color:#6a7772;font-weight:700}.beneficiary-report-identity h2{margin:4px 0;font-size:25px}.beneficiary-report-identity small{color:#6a7772}.beneficiary-report-status{display:grid;justify-items:end;gap:7px;text-align:left}
.beneficiary-report-section{padding:22px 0;border-bottom:1px solid var(--line);break-inside:avoid}.beneficiary-report-section:last-of-type{border-bottom:0}.beneficiary-report-section h3{margin:0 0 14px;font-size:17px;color:#075c44}.beneficiary-report-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.beneficiary-report-section-head h3{margin:0}.beneficiary-report-section-head>b{font-size:12px;background:#e8f6f1;color:#075c44;padding:6px 10px;border-radius:999px}
.beneficiary-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.beneficiary-report-grid>div{border:1px solid #e2e9e6;background:#fafcfb;border-radius:12px;padding:11px 12px;min-height:70px}.beneficiary-report-grid>div.wide{grid-column:1/-1}.beneficiary-report-grid span{display:block;color:#6a7772;font-size:11px;margin-bottom:5px}.beneficiary-report-grid strong{display:block;font-size:13px;line-height:1.8}.beneficiary-report-grid small{display:block;color:#6a7772;font-size:11px;margin-top:3px}
.beneficiary-report-needs{display:flex;flex-wrap:wrap;gap:8px}.beneficiary-report-needs span{background:#e8f6f1;color:#075c44;border:1px solid #c8e8dc;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}
.beneficiary-report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.beneficiary-report-summary>div{background:#f6faf8;border:1px solid #e2e9e6;border-radius:12px;padding:12px}.beneficiary-report-summary span{display:block;font-size:10px;color:#6a7772;margin-bottom:5px}.beneficiary-report-summary strong{display:block;font-size:13px;color:#075c44}
.beneficiary-report-table-wrap{overflow:auto;border:1px solid #e2e9e6;border-radius:12px}.beneficiary-report-table{width:100%;border-collapse:collapse;min-width:900px}.beneficiary-report-table th{background:#f2f8f5;color:#075c44;text-align:right;padding:10px;font-size:11px;border-bottom:1px solid #dce9e4}.beneficiary-report-table td{padding:10px;border-bottom:1px solid #edf1ef;font-size:11px;vertical-align:top;line-height:1.7}.beneficiary-report-table tr:last-child td{border-bottom:0}.beneficiary-report-table td:first-child{width:36px;text-align:center}.beneficiary-report-empty{margin:0;background:#fafcfb;border:1px dashed #d6e2dd;border-radius:12px;padding:16px;color:#6a7772;text-align:center;font-size:12px}
.beneficiary-report-footer{display:flex;justify-content:space-between;gap:16px;color:#6a7772;font-size:10px;padding-top:18px;margin-top:4px;border-top:1px solid #e2e9e6}
@media(max-width:900px){.beneficiary-report-header{grid-template-columns:70px 1fr}.beneficiary-report-meta{grid-column:1/-1;text-align:right}.beneficiary-report-header img{width:66px;height:66px}.beneficiary-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.beneficiary-report-summary{grid-template-columns:1fr}.beneficiary-report-identity{align-items:flex-start;flex-direction:column}.beneficiary-report-status{justify-items:start;text-align:right}.beneficiary-report-actions{align-items:stretch;flex-direction:column}.beneficiary-report-actions .btn{width:100%}}
@media print{
  @page{size:A4;margin:10mm}
  body.page-beneficiary_report{background:#fff!important;font-family:"Cairo",Tahoma,Arial,sans-serif!important}
  body.page-beneficiary_report .sidebar,body.page-beneficiary_report .topbar,body.page-beneficiary_report footer:not(.beneficiary-report-footer),body.page-beneficiary_report .no-print{display:none!important}
  body.page-beneficiary_report .main{margin:0!important;min-height:0!important}
  body.page-beneficiary_report .content{padding:0!important}
  body.page-beneficiary_report .content>*{max-width:none!important;margin:0!important}
  .beneficiary-report-page{max-width:none!important}
  .beneficiary-report-sheet{border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
  .beneficiary-report-header{grid-template-columns:78px 1fr auto;padding-bottom:12px}.beneficiary-report-header img{width:72px;height:72px}.beneficiary-report-org h1{font-size:20px}.beneficiary-report-identity{padding:14px 0}.beneficiary-report-identity h2{font-size:21px}.beneficiary-report-section{padding:14px 0}.beneficiary-report-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.beneficiary-report-grid>div{padding:8px 9px;min-height:0}.beneficiary-report-table-wrap{overflow:visible}.beneficiary-report-table{min-width:0;table-layout:fixed}.beneficiary-report-table th,.beneficiary-report-table td{padding:6px;font-size:9px;word-break:break-word}.beneficiary-report-needs span{font-size:10px;padding:5px 8px}.beneficiary-report-summary>div{padding:8px}.beneficiary-report-footer{font-size:9px}
}


/* V1.3.26 - beneficiary report print/download cleanup */
.beneficiary-report-action-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.beneficiary-report-page,.beneficiary-report-page *{font-family:"Cairo",Tahoma,Arial,sans-serif}
.beneficiary-report-guardian-section,.beneficiary-report-disability-section{position:relative}
@media(max-width:900px){.beneficiary-report-action-buttons{width:100%;display:grid;grid-template-columns:1fr 1fr}.beneficiary-report-action-buttons .btn{width:100%}}
@media print{
  @page{size:A4;margin:0}
  html,body{margin:0!important;padding:0!important}
  body.page-beneficiary_report .content{padding:12mm!important}
  body.page-beneficiary_report .beneficiary-report-sheet{font-family:"Cairo",Tahoma,Arial,sans-serif!important}
}
