/* Accounts reference design. All visual overrides stay within this page. */
body:has(#accountsView.active) #main-container{background:radial-gradient(ellipse at 15% 6%,#e1e4ff 0,transparent 38%),radial-gradient(ellipse at 90% 45%,#dcecff 0,transparent 55%),#edf5ff!important}
body:has(#accountsView.active) #content-area{padding:0 20px 24px!important;overflow:auto!important}
body:has(#accountsView.active) #global-filters-bar{display:none!important}
#accountsView{color:#24345f;font-family:"IBM Plex Sans Arabic","Segoe UI",sans-serif;max-width:1600px;margin:auto;isolation:isolate}
#accountsView *{box-sizing:border-box}
#accountsView button,#accountsView input,#accountsView select{font-family:inherit}
#accountsView .ac-hero{position:relative;min-height:145px;display:flex;align-items:center;overflow:hidden;padding:22px 24px;margin:0 -12px;isolation:isolate}
#accountsView .ac-hero>div{position:relative;z-index:1;margin-left:auto;max-width:60%}
#accountsView .ac-hero h1{font-size:28px;font-weight:750;margin:0 0 12px;color:#202a51;letter-spacing:-.6px}
#accountsView .ac-hero p{font-size:13px;color:#6d7e9f;margin:0;line-height:1.8}
#accountsView .ac-hero-art{position:absolute;left:-20px;top:-5px;width:58%;height:155px;object-fit:contain;object-position:left center;z-index:0}
#accountsView .ac-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 155px;gap:16px;background:#ffffffed;border:1px solid white;padding:12px 16px;border-radius:12px;margin-bottom:18px;align-items:end;box-shadow:0 6px 24px #6e9cdf08}
#accountsView .ac-filters label{font-size:11px;font-weight:600;color:#586b90;display:flex;flex-direction:column;gap:5px;margin:0}
#accountsView .ac-filters select{width:100%;min-width:0;height:36px;border:1px solid #dce7fa;border-radius:6px;background:#f9fbff;color:#7386aa;padding:0 10px;font-size:12px}
#accountsView .ac-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce7fc;border-radius:7px;background:#f0f6ff;color:#235bf4;font-size:12px;font-weight:600;min-height:36px;padding:7px 15px;cursor:pointer;transition:box-shadow .18s,background .18s;white-space:nowrap}
#accountsView .ac-button:hover{background:#e6efff;box-shadow:0 3px 12px #2d68ed1a}
#accountsView .ac-button svg{width:18px;height:18px;flex:none}
#accountsView .ac-primary{color:white;background:linear-gradient(110deg,#247dff,#0346ff);border-color:#3378ff;box-shadow:0 4px 9px #1460ff30}
#accountsView .ac-primary:hover{background:linear-gradient(110deg,#1469f4,#123ee5)}
#accountsView .ac-reset{color:#415d91;background:#eff4fc}
#accountsView .account-profile-card,#accountsView .users-table-wrap{border:1px solid #ffffff;border-radius:13px;background:#ffffffdf;margin:0 0 18px;box-shadow:0 8px 24px #88aee60a}
#accountsView h2{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin:0;color:#28365e;line-height:1.7}
#accountsView h2>svg{width:22px;height:22px;color:#1e62ff;flex:none}
#accountsView .ac-profile h2>svg{fill:#2975ff}
#accountsView .ac-profile{padding:15px 18px;display:flex;gap:22px;min-height:146px;align-items:center;overflow:hidden;position:relative;background:linear-gradient(110deg,#f8fbff,#ffffffed)}
#accountsView .ac-profile-content{flex:1;min-width:0}
#accountsView .ac-profile h2{margin-bottom:14px}
#accountsView .account-profile-grid{grid-template-columns:1fr 1fr 1.45fr 1fr .65fr;gap:15px;background:linear-gradient(110deg,#eef6ff99,#fff);border:1px solid #fff;border-radius:28px 10px 10px 28px;padding:14px 18px}
#accountsView .account-field{min-width:0;text-align:right}
#accountsView .account-field label{font-size:10px;color:#8395b5;margin:0 0 5px}
#accountsView .account-field .value{font-size:12px;font-weight:650;color:#2a426f;overflow-wrap:anywhere}
#accountsView .ac-profile-status .value{display:inline-flex;align-items:center;gap:5px;color:#19b97b;background:#e0faed;border-radius:15px;padding:2px 10px}
#accountsView .ac-profile-status .value:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}
#accountsView .ac-profile-art{width:135px;height:120px;flex:none;filter:drop-shadow(0 9px 10px #6697e72b)}
#accountsView .ac-profile-art svg{width:100%;height:100%}
#accountsView .ac-users{padding:14px 16px 12px;overflow:visible}
#accountsView .ac-users-header,#accountsView .ac-permissions-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px}
#accountsView .ac-users-header p,#accountsView .ac-permissions-header p{font-size:10px;color:#8a9cbb;margin:5px 0 0;line-height:1.8}
#accountsView .ac-user-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#accountsView .ac-search{position:relative;display:block;margin:0;min-width:180px}
#accountsView .ac-search svg{position:absolute;right:10px;top:10px;width:16px;height:16px;color:#7290bd}
#accountsView .ac-search input{height:36px;width:210px;border:1px solid #dce7fa;border-radius:6px;background:#fff;padding:0 32px 0 10px;font-size:11px;color:#3e5c8b}
#accountsView .ac-search input::placeholder{color:#9aabc6}
#accountsView .table-responsive{border:1px solid #e1eafa;border-radius:7px;overflow:auto}
#accountsView #tblUsers{width:100%;min-width:760px;border-collapse:collapse;margin:0;font-variant-numeric:tabular-nums}
#accountsView #tblUsers th,#accountsView #tblUsers td{text-align:center;padding:12px 9px;border:1px solid #e5edfb;background:transparent;color:#3f5c8d;font-size:11px;white-space:nowrap;vertical-align:middle}
#accountsView #tblUsers th{background:#eef5ff;color:#426298;font-weight:650;font-size:11px;height:40px}
#accountsView #tblUsers tbody tr:nth-child(even){background:#f5f9ff}
#accountsView #tblUsers tbody tr:hover,#accountsView #tblUsers tr.ac-user-selected{background:#edf3ff;box-shadow:inset -3px 0 #4b7dff}
#accountsView .ac-badge{display:inline-block;padding:3px 11px;border-radius:14px;background:#edf1ff;color:#567eff;font-size:10px;line-height:1.6}
#accountsView .ac-badge-user{background:#f1eaff;color:#9057ee}
#accountsView .ac-badge-active{background:#ddf9ed;color:#20b87f}
#accountsView .ac-badge-inactive{background:#fff0f1;color:#e56a7e}
#accountsView #tblUsers .row-actions{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:nowrap}
#accountsView #tblUsers .row-actions button{min-height:27px;height:27px;min-width:27px;border:1px solid #dbe7fc;background:#f3f7ff;border-radius:5px;padding:3px 7px;font-size:10px;color:#3269f4;display:inline-flex;align-items:center;justify-content:center;gap:4px;box-shadow:none}
#accountsView #tblUsers .row-actions svg{width:13px;height:13px}
#accountsView #tblUsers .row-actions [data-toggle-status]{color:#697995;background:#fff}
#accountsView #tblUsers .row-actions [data-delete-user]{color:#e77589;background:#fff6f8}
#accountsView .ac-permissions{padding:18px 18px 12px;position:relative;overflow:hidden}
#accountsView .ac-permissions-header{align-items:flex-start}
#accountsView .ac-bulk-actions{display:flex;gap:8px;flex:none}
#accountsView .ac-bulk-actions .ac-button{background:#f0efff;border-color:#e0dbff;color:#7150ff}
#accountsView .ac-bulk-actions .ac-button+button{background:#edf7ff;border-color:#dbedff;color:#356dff}
#accountsView .ac-selected-user{font-size:11px;color:#7c8fb4;margin:-3px 0 12px;min-height:16px}
#accountsView .permissions-grid{display:flex;flex-direction:column;gap:7px}
#accountsView .permission-module{display:grid;grid-template-columns:minmax(160px,1fr) auto 32px;align-items:center;column-gap:18px;background:linear-gradient(110deg,#f9fcff,#fff);border:1px solid #dfebff;border-radius:11px;padding:8px 11px;min-height:60px;box-shadow:0 2px 5px #84a7ef07}
#accountsView .ac-module-title{display:flex;align-items:center;gap:12px;min-width:0}
#accountsView .ac-module-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#eff1ff;color:#7951ff;flex:none}
#accountsView .ac-module-icon svg{width:24px;height:24px}
#accountsView .permission-module:nth-child(3n+2) .ac-module-icon{background:#eaf3ff;color:#1766ff}
#accountsView .permission-module:nth-child(4n) .ac-module-icon{background:#eefaff;color:#00a1e9}
#accountsView .permission-module:nth-child(5n) .ac-module-icon{background:#fff0fb;color:#d843d6}
#accountsView .permission-module h4{border:0;font-size:13px;font-weight:650;color:#34476b;margin:0;padding:0;line-height:1.6}
#accountsView .ac-module-subtitle{display:block;font-size:9px;color:#8fa1be;margin-top:3px}
#accountsView .permission-checks{display:flex;gap:22px;align-items:center;flex-wrap:wrap;justify-content:flex-start}
#accountsView .permission-checks label{display:flex;align-items:center;gap:7px;color:#7387a9;font-size:11px;white-space:nowrap;margin:0;cursor:pointer}
#accountsView .permission-checks input{appearance:none;width:15px;height:15px;border:1.5px solid var(--ac-check,#2864ff);border-radius:3px;display:grid;place-content:center;margin:0;background:#fff;cursor:inherit}
#accountsView .permission-checks input:checked{background:var(--ac-check,#2864ff)}
#accountsView .permission-checks input:checked:after{content:"";width:7px;height:4px;border-left:1.5px solid white;border-bottom:1.5px solid white;transform:rotate(-45deg);margin-top:-2px}
#accountsView [data-action="create"]{--ac-check:#20c38c}#accountsView [data-action="edit"]{--ac-check:#9150f8}#accountsView [data-action="delete"]{--ac-check:#ff637c}#accountsView [data-action="export"]{--ac-check:#b650ef}#accountsView [data-action="manage"]{--ac-check:#9150f8}
#accountsView .permission-checks input:disabled{cursor:default;opacity:.7}
#accountsView .ac-module-toggle{border:1px solid #e2ebff;background:#f2f7ff;color:#467dff;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 6px #3676ec14}
#accountsView .ac-module-toggle svg{width:14px;height:14px;transition:transform .15s}
#accountsView .ac-module-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#accountsView .ac-module-detail{grid-column:1/-1;border-top:1px solid #e5edfb;padding:10px 8px 2px;margin-top:9px;font-size:11px;color:#7c8fac}
#accountsView .ac-module-detail[hidden]{display:none}
#accountsView .ac-permissions-footer{display:flex;justify-content:flex-start;padding-top:17px;position:relative}
#accountsView .ac-permissions-footer:after{content:"";position:absolute;left:16px;bottom:-30px;width:190px;height:60px;background:linear-gradient(140deg,#c5d5ff99,#eef2ff33);transform:rotate(15deg);border-radius:18px;z-index:-1}
#accountsView :is(button,input,select):focus-visible{outline:3px solid #a8c9ff;outline-offset:3px}
@media(min-width:1400px){#accountsView .ac-hero{min-height:170px}#accountsView .ac-hero-art{height:180px}#accountsView .permission-module{min-height:65px}#accountsView .permission-checks{gap:32px}}
@media(max-width:1000px){#accountsView .ac-users-header{flex-wrap:wrap}#accountsView .ac-user-tools{width:100%;justify-content:space-between}#accountsView .ac-profile-art{width:100px}#accountsView .account-profile-grid{gap:10px;padding:12px}#accountsView .ac-permissions-header{flex-wrap:wrap}#accountsView .permission-module{column-gap:10px;grid-template-columns:minmax(130px,1fr) auto 27px}#accountsView .permission-checks{gap:12px}}
@media(max-width:600px){body:has(#accountsView.active) #content-area{padding:0 9px 14px!important}#accountsView .ac-hero{min-height:118px;padding:15px 12px}#accountsView .ac-hero h1{font-size:21px}#accountsView .ac-hero p{font-size:9px}#accountsView .ac-hero>div{max-width:64%}#accountsView .ac-hero-art{width:60%;height:122px;left:-33px}#accountsView .ac-filters{grid-template-columns:repeat(3,minmax(0,1fr)) 75px;gap:6px;padding:9px;margin-bottom:12px}#accountsView .ac-filters select{font-size:10px;padding:0 4px;height:31px}#accountsView .ac-reset{font-size:10px;padding:5px;min-height:31px}#accountsView .ac-profile{padding:12px 10px;gap:6px;margin-bottom:12px}#accountsView .ac-profile-art{width:70px;height:88px}#accountsView h2{font-size:13px;gap:6px}#accountsView h2>svg{width:18px;height:18px}#accountsView .account-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px;border-radius:12px}#accountsView .account-field label{font-size:8px}#accountsView .account-field .value{font-size:10px}#accountsView .ac-users,#accountsView .ac-permissions{padding:12px 9px;margin-bottom:12px}#accountsView .ac-user-tools{gap:7px;flex-wrap:nowrap}#accountsView .ac-search{min-width:0;flex:1}#accountsView .ac-search input{width:100%}#accountsView .ac-button{font-size:10px;padding:7px 10px}#accountsView .ac-permissions-header{gap:10px}#accountsView .ac-permissions-header p{font-size:9px}#accountsView .ac-bulk-actions{gap:6px}#accountsView .permission-module{grid-template-columns:minmax(0,1fr) 24px;padding:8px;gap:8px;min-height:74px}#accountsView .ac-module-title{grid-column:1;grid-row:1;gap:8px}#accountsView .ac-module-icon{width:29px;height:29px}#accountsView .ac-module-icon svg{width:20px;height:20px}#accountsView .permission-module h4{font-size:11px}#accountsView .ac-module-subtitle{font-size:8px}#accountsView .permission-checks{grid-column:1/-1;grid-row:2;gap:14px;padding-right:37px}#accountsView .permission-checks label{font-size:10px;gap:5px}#accountsView .permission-checks input{width:13px;height:13px}#accountsView .ac-module-toggle{grid-column:2;grid-row:1;width:24px;height:24px}#accountsView .ac-module-detail{grid-row:3}#accountsView .ac-selected-user{font-size:10px}}
@media(prefers-reduced-motion:reduce){#accountsView *{transition:none!important}}
/* Keep the compact reference composition on phones wide enough for the full table. */
#accountsView #tblUsers .row-actions [data-toggle-status]{background:#fff!important;color:#697995!important;border-color:#dbe7fc!important}
#accountsView #tblUsers .row-actions [data-select-user]{background:#edf3ff!important;color:#3269f4!important;border-color:#dbe7fc!important}
#accountsView .account-profile-grid{display:grid!important}
#accountsView .ac-profile-status .value.ac-inactive{background:#fff0f1;color:#e56a7e}
@media(min-width:420px) and (max-width:600px){
 #accountsView .ac-hero{min-height:66px;padding:10px 12px}
 #accountsView .ac-hero h1{font-size:16px;margin-bottom:6px}
 #accountsView .ac-hero p{font-size:7px}
 #accountsView .ac-hero-art{height:78px;width:62%;top:-5px;left:-9px}
 #accountsView .ac-filters{padding:5px 7px;gap:6px;border-radius:7px;margin-bottom:8px;grid-template-columns:repeat(3,minmax(0,1fr)) 70px}
 #accountsView .ac-filters label{font-size:7px;gap:3px}
 #accountsView .ac-filters select{height:23px;font-size:7px;border-radius:4px}
 #accountsView .ac-reset{height:23px;min-height:23px;font-size:7px;border-radius:4px;padding:2px 5px}
 #accountsView .ac-profile{padding:8px;min-height:74px;margin-bottom:8px;gap:8px;border-radius:8px}
 #accountsView .ac-profile-art{width:78px;height:66px}
 #accountsView h2{font-size:9px;gap:5px}
 #accountsView h2>svg{width:13px;height:13px}
 #accountsView .ac-profile h2{margin-bottom:7px}
 #accountsView .account-profile-grid{grid-template-columns:1fr .8fr 1.5fr 1fr .65fr!important;gap:6px!important;padding:8px 9px;border-radius:19px 7px 7px 19px}
 #accountsView .account-field label{font-size:5.5px;margin-bottom:3px}
 #accountsView .account-field .value{font-size:6.5px}
 #accountsView .ac-profile-status .value{padding:1px 5px;gap:3px}
 #accountsView .ac-profile-status .value:before{width:3px;height:3px}
 #accountsView .ac-users{padding:7px 8px;margin-bottom:8px;border-radius:8px}
 #accountsView .ac-users-header{flex-wrap:nowrap;gap:7px;margin-bottom:8px}
 #accountsView .ac-users-header>div:first-child{max-width:47%}
 #accountsView .ac-users-header p{font-size:5.5px;margin-top:3px}
 #accountsView .ac-user-tools{width:auto;gap:7px;flex:1;justify-content:flex-end}
 #accountsView .ac-search{flex:1;min-width:55px;max-width:105px}
 #accountsView .ac-search input{height:24px;font-size:6px;padding:0 19px 0 5px;border-radius:4px}
 #accountsView .ac-search svg{width:10px;height:10px;top:7px;right:5px}
 #accountsView .ac-button{font-size:7px;min-height:25px;padding:4px 9px;gap:5px;border-radius:5px}
 #accountsView .ac-button svg{width:12px;height:12px}
 #accountsView #tblUsers{min-width:0;table-layout:auto}
 #accountsView #tblUsers th,#accountsView #tblUsers td{padding:5px 3px!important;font-size:6px!important;line-height:1.5!important;height:24px;white-space:nowrap}
 #accountsView #tblUsers th{height:23px;font-size:6px!important}
 #accountsView #tblUsers .ac-badge{font-size:5.5px;padding:2px 5px}
 #accountsView #tblUsers .row-actions{gap:2px!important}
 #accountsView #tblUsers .row-actions button{height:17px!important;min-height:17px!important;min-width:15px!important;width:auto!important;font-size:5.5px!important;padding:1px 3px!important;border-radius:3px}
 #accountsView #tblUsers .row-actions svg{width:8px;height:8px}
 #accountsView .ac-permissions{padding:10px 8px 8px;border-radius:9px}
 #accountsView .ac-permissions-header{flex-wrap:nowrap;align-items:center;gap:7px;margin-bottom:6px}
 #accountsView .ac-permissions-header>div:first-child{flex:1}
 #accountsView .ac-permissions-header p{font-size:5.5px;line-height:1.7;margin-top:3px}
 #accountsView .ac-bulk-actions{gap:4px}
 #accountsView .ac-bulk-actions .ac-button{font-size:6px;min-height:23px;padding:4px 6px}
 #accountsView .ac-selected-user{font-size:6px;min-height:8px;margin:0 0 5px}
 #accountsView .permissions-grid{gap:4px}
 #accountsView .permission-module{grid-template-columns:minmax(135px,1fr) auto 19px;gap:6px;padding:4px 6px;min-height:34px;border-radius:7px}
 #accountsView .ac-module-title{grid-row:1;grid-column:1;gap:6px}
 #accountsView .ac-module-icon{width:25px;height:25px;border-radius:5px}
 #accountsView .ac-module-icon svg{width:17px;height:17px}
 #accountsView .permission-module h4{font-size:7px}
 #accountsView .ac-module-subtitle{font-size:5px;margin-top:1px}
 #accountsView .permission-checks{grid-row:1;grid-column:2;gap:8px;padding:0;flex-wrap:nowrap}
 #accountsView .permission-checks label{font-size:6px;gap:4px}
 #accountsView .permission-checks input{width:10px;height:10px;border-width:1px;border-radius:2px}
 #accountsView .permission-checks input:checked:after{width:5px;height:3px;border-width:1px}
 #accountsView .ac-module-toggle{grid-column:3;grid-row:1;width:17px;height:17px}
 #accountsView .ac-module-toggle svg{width:10px;height:10px}
 #accountsView .ac-module-detail{grid-row:2;font-size:7px;margin-top:3px;padding:5px}
 #accountsView .ac-permissions-footer{padding-top:10px}
}
@media(min-width:420px) and (max-width:600px){
 #accountsView #tblUsers{width:100%!important;min-width:0!important;table-layout:fixed!important}
 #accountsView #tblUsers th,#accountsView #tblUsers td{min-width:0!important;max-width:none!important;overflow:hidden;text-overflow:ellipsis}
 #accountsView #tblUsers th:nth-child(1){width:4%!important}
 #accountsView #tblUsers th:nth-child(2){width:10%!important}
 #accountsView #tblUsers th:nth-child(3){width:13%!important}
 #accountsView #tblUsers th:nth-child(4){width:20%!important}
 #accountsView #tblUsers th:nth-child(5){width:11%!important}
 #accountsView #tblUsers th:nth-child(6){width:7%!important}
 #accountsView #tblUsers th:nth-child(7){width:12%!important}
 #accountsView #tblUsers th:nth-child(8){width:23%!important}
 #accountsView .permission-module{min-height:28px;padding:3px 6px}
 #accountsView .ac-module-icon{width:20px;height:20px}
 #accountsView .ac-module-icon svg{width:15px;height:15px}
 #accountsView .permissions-grid{gap:3px}
}
