@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--navy:#163f62;--navy-deep:#102f4d;--blue:#367ca8;--orange:#ef8c55;--orange-light:#fff2e9;--sky:#eef6fb;--bg:#f4f7fb;--white:#fff;--ink:#20364b;--muted:#8292a1;--line:#e8edf3;--green:#2c936f;--red:#db6571;--shadow:0 12px 36px rgba(34,58,83,.045);--radius:17px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Cairo',Tahoma,Arial,sans-serif;color:var(--ink);font-size:14px}body.app-body{background:var(--bg)}button,input,select{font:inherit}a{text-decoration:none;color:inherit}button{cursor:pointer}input,select{min-width:0}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.7px}.icon{flex-shrink:0}.eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:800;color:#7797b0}
.btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:11px;padding:11px 18px;font-weight:800;transition:transform .2s,background .2s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--navy);color:white;box-shadow:0 6px 15px rgba(20,66,104,.12)}.btn-primary:hover{background:#255a80}.btn-subtle{background:#f0f5fa;color:var(--navy);border:1px solid #e2ebf3}.btn.full{width:100%}.btn.tiny{padding:6px 12px;font-size:12px}.muted{color:#7c8e9f;line-height:2;font-weight:500}.message{margin:0 0 20px;border-radius:12px;padding:12px 16px;font-weight:700}.message.error{background:#fff0f0;border:1px solid #f3d5d8;color:#af3345}.message.success{background:#eff9f4;border:1px solid #d7eee1;color:#287752}
/* Login */
.login-body{background:#eff5f8;min-height:100vh;display:grid;place-items:center}.login-wrap{width:min(1040px,calc(100% - 38px));min-height:640px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:28px;background:white;box-shadow:0 30px 80px rgba(17,58,83,.11)}.login-card{padding:65px 62px;background:#fff;display:flex;flex-direction:column;justify-content:center}.brand-logo{background:linear-gradient(140deg,#125078,#3a86b2);color:white;border-radius:12px;width:49px;height:49px;display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;font-weight:800;font-size:25px;letter-spacing:-3px;box-shadow:0 6px 14px rgba(29,83,118,.16);direction:ltr}.brand-logo span{font-size:15px;color:#ffc59a;margin-left:2px;letter-spacing:0}.brand-logo.large{width:66px;height:66px;border-radius:18px;font-size:33px;margin:0 0 30px}.brand-logo.large span{font-size:18px}.login-intro h1{font-size:29px;color:#183e5d;margin:9px 0 8px;font-weight:800}.login-intro p{color:#8a99a5;font-size:13px;line-height:1.9;margin-bottom:36px}.login-form{display:flex;flex-direction:column;gap:11px}.login-form label{font-weight:800;color:#385165;font-size:13px;margin-top:6px}.input-wrap{display:flex;align-items:center;gap:13px;border:1px solid #e0e8ef;background:#fafdff;border-radius:12px;padding:0 14px;transition:.2s}.input-wrap:focus-within{border-color:#5596bd;box-shadow:0 0 0 3px #edf7fc}.input-wrap .icon{color:#8c9eac}.input-wrap input{background:transparent;border:0;outline:none;height:52px;width:100%;color:var(--ink)}.login-form .btn{margin-top:19px;height:54px}.login-form .btn span{font-size:22px;line-height:1}.login-footer{font-size:12px;text-align:center;margin:25px 0 0;color:#94a6b4}.login-aside{position:relative;overflow:hidden;background:linear-gradient(150deg,#17496d 0%,#102e4a 83%);padding:65px 60px;color:#fff;display:flex;align-items:center}.login-aside:before,.login-aside:after{content:'';position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:100%;width:500px;height:500px;left:-190px;top:-210px}.login-aside:after{width:400px;height:400px;left:200px;top:370px}.aside-decor{position:absolute;width:215px;height:215px;border:40px solid rgba(129,196,225,.07);border-radius:50%;top:52px;left:26px}.aside-content{position:relative;z-index:1}.pill{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.07);font-size:11px;font-weight:700;border-radius:999px;padding:6px 16px}.aside-content h2{font-size:42px;line-height:1.57;margin:34px 0 18px;font-weight:800;letter-spacing:-1.1px}.aside-content h2 em{color:#ffa36b;font-style:normal}.aside-content p{font-size:13px;line-height:2.2;max-width:330px;color:#cadde7}.aside-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:46px}.aside-chips span{background:#ffffff10;border:1px solid #ffffff14;border-radius:8px;padding:7px 10px;font-size:11px;color:#d7eaf4}.install-wrap{width:min(560px,calc(100% - 26px));margin:40px 0}.install-wrap .login-card{border-radius:25px;box-shadow:var(--shadow);padding:40px}.install-wrap .login-intro p{margin-bottom:15px}
/* Shell */
.app-layout{display:flex;min-height:100vh}.sidebar{width:252px;flex:0 0 252px;background:#fff;border-left:1px solid #e7edf3;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:22}.side-brand{display:flex;align-items:center;gap:12px;padding:31px 21px 37px}.side-brand strong{display:block;font-size:15px;color:#183e5b}.side-brand small{display:block;color:#94a6b4;font-family:Arial,sans-serif;letter-spacing:1.2px;font-size:9px;margin-top:4px}.sidebar-caption{font-size:11px;color:#a2acb5;font-weight:800;padding:0 28px;margin-bottom:18px}.side-nav{display:flex;flex-direction:column;padding:0 12px;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;border-radius:11px;padding:12px 15px;color:#6d8090;font-weight:700;position:relative;transition:.2s}.nav-link:hover{background:#f6f9fc;color:var(--navy)}.nav-link.active{color:#215c83;background:#eaf4fb}.nav-link.active:before{content:'';width:3px;height:22px;background:var(--orange);border-radius:3px;position:absolute;right:0}.sidebar-bottom{margin-top:auto;border-top:1px solid #eaf0f4;padding:18px 16px 22px}.sidebar-profile{display:flex;align-items:center;gap:11px}.sidebar-profile strong{display:block;font-size:12px}.sidebar-profile small{color:#93a0ad;font-size:11px}.avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#e6f2fa,#d8ebf5);display:flex;align-items:center;justify-content:center;color:#2d6487;font-weight:800;flex:none}.signout{display:flex;gap:12px;align-items:center;width:100%;margin:15px 0 0;padding:10px;border:0;border-radius:10px;background:#f8fafd;color:#8393a1;font-weight:700;font-size:12px}.signout:hover{color:#c34d5b;background:#fff2f3}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:79px;flex:0 0 79px;background:#fff;border-bottom:1px solid #eaf0f4;display:flex;align-items:center;justify-content:space-between;padding:0 35px}.topbar-main,.topbar-actions{display:flex;align-items:center;gap:18px}.breadcrumb{font-size:13px;color:#90a1ac}.breadcrumb b{color:#1c4f73}.divider-sign{color:#b8c7d2;margin:0 9px}.ksa-label{font-size:11px;color:#7b8c9e;display:flex;align-items:center;gap:7px}.user-circle{border:2px solid white;outline:1px solid #dce9f1;width:36px;height:36px;border-radius:50%;background:#e8f2f9;color:#317ca5;display:grid;place-items:center;font-weight:800}.menu-btn{display:none;border:0;background:#edf4f8;border-radius:8px;color:#33688d;padding:7px}.main-content{flex:1;width:100%;padding:33px 36px 50px;max-width:1650px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:16px}.page-head h1{font-size:27px;margin:5px 0 3px;color:#1c405d}.page-head p{font-size:12px;color:#93a3b1;margin:0}.head-mark{background:#fff;border:1px solid #e9eef4;padding:12px 15px;display:flex;align-items:center;gap:12px;color:#4c7797;border-radius:12px;font-size:12px;font-weight:800}.head-mark .icon{color:var(--orange)}.notice{display:flex;gap:13px;align-items:flex-start;background:#fff9f0;border:1px solid #f6e5c9;padding:13px 18px;border-radius:12px;margin-bottom:26px;color:#a0691b}.notice div{display:flex;flex-direction:column;gap:4px}.notice strong{font-size:13px}.notice span{font-size:11px;line-height:1.9}.notice .icon{margin-top:3px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:21px 0 14px;gap:14px}.section-title h2{font-size:16px;color:#294b65;margin:0}.section-title span{font-size:12px;color:#91a1ae}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:25px}.stat-card{background:white;border-radius:var(--radius);border:1px solid #e8edf3;min-height:135px;padding:18px 19px;box-shadow:var(--shadow);min-width:0}.stat-top{display:flex;justify-content:space-between;gap:5px;align-items:center;color:#7c8e9e;font-size:12px;font-weight:700}.stat-icon{width:39px;height:39px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#e8f3fb;color:#4389b0}.stat-icon.orange{background:#fff0e6;color:#e99a56}.stat-icon.green{background:#e6f7ef;color:#41a37d}.stat-icon.red{background:#fcebee;color:#d76d7b}.stat-value{font:800 28px 'Cairo',Tahoma,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:16px;color:#254962;letter-spacing:-.9px}.stat-value small{font-size:11px;color:#8095a6;font-weight:700}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:25px}.grid-two.wider-left{grid-template-columns:1.14fr 1fr}.panel{background:white;border:1px solid #e8edf3;border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.panel h3{font-size:16px;color:#234d68;margin:0 0 10px}.panel-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:20px;gap:12px}.panel-heading .icon{color:#5192b4}.panel-heading h3{margin:0 0 5px}.panel-heading p{font-size:11px;color:#9ba8b2;margin:0}.panel p.muted{margin:5px 0 20px}.footer{display:flex;justify-content:space-between;gap:10px;color:#9eabb8;font-size:11px;padding:18px 36px 23px}.footer span{direction:ltr}
/* Tables & forms */
.table-scroll{max-width:100%;overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;text-align:right;min-width:530px}th{background:#f6f9fc;color:#7890a0;padding:13px;font-weight:800;white-space:nowrap}th:first-child{border-radius:0 9px 9px 0}th:last-child{border-radius:9px 0 0 9px}td{padding:13px;border-bottom:1px solid #f0f3f6;vertical-align:middle;color:#597082}td strong{color:#2a465b}.tag{display:inline-block;padding:4px 10px;border-radius:7px;background:#eaf3fa;color:#417a9d;font-size:10px;font-weight:800;white-space:nowrap}.tag.good{background:#e6f7f0;color:#2d9368}.tag.bad{background:#fff0ed;color:#b75559}.empty-table{text-align:center;color:#a2adb8;padding:39px 15px}.toolbar{display:flex;gap:12px;margin-bottom:18px}.search-box{border:1px solid #e5edf3;display:flex;align-items:center;gap:12px;border-radius:10px;padding:0 13px;flex:1;background:#fafcfd;color:#97a8b4}.search-box input{width:100%;height:46px;background:transparent;border:0;outline:none}.filters-bar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filters-bar label,.new-user-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#526c80;flex:1;min-width:150px}.filters-bar input,.filters-bar select,.new-user-form input,.new-user-form select{border:1px solid #e2ebf1;padding:11px 12px;background:#fafcfe;border-radius:10px;color:#29475b;outline:none;width:100%;height:46px}.new-user-form{display:flex;flex-direction:column;gap:12px}.new-user-form label{flex:initial}.new-user-form .btn{margin-top:8px}.filters-bar input:focus,.filters-bar select:focus,.new-user-form input:focus,.new-user-form select:focus{border-color:#4394bd;box-shadow:0 0 0 3px #edf7fc}.tabs-preview{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.tab-preview{background:white;border:1px solid #e7edf3;color:#6e8798;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:800}.tab-preview:first-child{background:#fff0f0;color:#cd6674}.empty-state{text-align:center;padding:62px 24px;max-width:670px;margin:auto}.empty-state .icon{color:#9fc4d9;margin-bottom:17px}.empty-state h3{font-size:19px}.empty-state p{color:#7f91a0;line-height:2.2;font-size:13px}.user-list{display:flex;flex-direction:column;max-height:550px;overflow:auto}.user-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f2f4f6}.user-row:last-child{border:0}.avatar.small{width:37px;height:37px;border-radius:12px}.user-row-info{min-width:0;flex:1}.user-row-info b{display:block;font-size:12px;color:#31526b}.user-row-info small{display:block;color:#9ba9b4;direction:ltr;text-align:right;overflow-wrap:anywhere;font-size:10px;margin:3px 0 6px}.inline-form{flex:0 0 auto}.password-panel{margin-top:20px}.password-panel h3{margin-bottom:4px}.settings-list{display:grid;grid-template-columns:130px 1fr;gap:12px 10px;font-size:12px}.settings-list dt{color:#8ba0ae}.settings-list dd{margin:0;font-weight:700;overflow-wrap:anywhere}.settings-list .mono{font:11px monospace;direction:ltr;text-align:right}.safe-pill{margin-top:18px;display:flex;align-items:center;gap:9px;color:#378063;background:#e9f8f1;padding:12px;border-radius:12px;font-size:12px}.access-box{text-align:center;max-width:600px;margin:20vh auto;background:white;padding:45px;border-radius:17px;box-shadow:var(--shadow)}
/* Adaptive */
.mobile-overlay{display:none}
@media(max-width:1200px){.sidebar{width:230px;flex-basis:230px}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.main-content{padding:28px 22px}.login-wrap{width:min(960px,calc(100% - 36px))}}
@media(max-width:900px){.sidebar{position:fixed;right:-280px;width:252px;top:0;height:100dvh;box-shadow:0 20px 60px rgba(17,52,75,.14);transition:right .22s}.menu-open .sidebar{right:0}.menu-btn{display:flex}.menu-open .mobile-overlay{display:block;position:fixed;inset:0;background:rgba(11,37,59,.45);z-index:20}.topbar{height:67px;flex-basis:67px;padding:0 19px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-card{padding:43px 31px}.login-aside{padding:35px}.aside-content h2{font-size:34px}}
@media(max-width:650px){.login-wrap{display:flex;flex-direction:column-reverse;width:min(420px,calc(100% - 24px));margin:20px 0;min-height:0;border-radius:20px}.login-aside{padding:22px 24px}.aside-content h2{font-size:22px;line-height:1.5;margin:10px 0 5px}.aside-content p,.aside-chips,.aside-decor,.login-aside:before,.login-aside:after{display:none}.pill{font-size:10px;padding:5px 10px}.login-card{padding:28px 25px 31px}.brand-logo.large{width:51px;height:51px;font-size:26px;margin-bottom:20px}.login-intro h1{font-size:24px}.login-intro p{margin-bottom:21px}.main-content{padding:21px 13px 34px}.page-head h1{font-size:22px}.page-head p{font-size:11px}.head-mark{display:none}.stats-grid,.stats-grid.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{min-height:120px;padding:13px}.stat-top{font-size:10px;align-items:flex-start}.stat-icon{width:32px;height:32px;border-radius:8px}.stat-value{font-size:22px}.grid-two,.grid-two.wider-left{grid-template-columns:minmax(0,1fr);margin-top:15px;gap:15px}.panel{padding:17px}.ksa-label{display:none}.footer{padding:15px;flex-direction:column;text-align:center;font-size:10px;gap:2px}.section-title h2{font-size:14px}.breadcrumb{font-size:11px}.filters-bar{align-items:stretch}.filters-bar label{min-width:100%}.toolbar{flex-wrap:wrap}.toolbar .btn{width:100%}.notice{padding:12px}.notice strong{font-size:12px}.notice span{font-size:11px}.user-row{gap:8px}}
@media(max-width:365px){.stats-grid,.stats-grid.three{grid-template-columns:1fr}.stat-card{min-height:95px}.stat-value{margin-top:6px}.stat-top{font-size:12px}.topbar{padding:0 10px}}

/* CRM 1.1 — Search, filters, Excel export (read-only) */
.client-filter-panel{margin-bottom:18px}.client-filter-form{display:flex;flex-direction:column;gap:15px}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.filter-grid label{display:flex;flex-direction:column;gap:7px;color:#4b687e;font-weight:800;font-size:12px}
.filter-grid input,.filter-grid select{background:#fbfdff;border:1px solid #dfebf2;border-radius:10px;height:47px;width:100%;padding:10px 13px;outline:none;color:#264962}
.filter-grid input:focus,.filter-grid select:focus{border-color:#438bb1;box-shadow:0 0 0 3px #eaf5fb}
.filter-fieldset{border:1px solid #e5ecf2;border-radius:12px;padding:13px 16px 16px;min-width:0}
.filter-fieldset legend{font-weight:800;font-size:13px;padding:0 7px;color:#355e77}
.filter-checkboxes{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.filter-check{display:inline-flex;align-items:center;gap:8px;border:1px solid #e3edf4;background:#fafdff;border-radius:9px;padding:9px 13px;font-weight:700;font-size:12px;cursor:pointer}
.filter-check:has(input:checked){color:#174c73;background:#eaf6fd;border-color:#b9daec}
.filter-check input,.radio-pill input{accent-color:#246b98;width:16px;height:16px;flex:none}
.radio-pill{display:inline-flex;align-items:center;gap:6px;margin-inline-end:19px;font-weight:700;color:#5e7587;font-size:12px}
.filters-actions{display:flex;gap:10px;flex-wrap:wrap}.filter-help{font-size:11px;color:#7d92a1;line-height:2;margin:0}
.filter-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.filter-results-head h3{margin-bottom:2px}.filter-results-head p{margin:0!important}.filter-results-actions{display:flex;gap:10px}
.clients-table{min-width:830px}.pagination{display:flex;gap:9px;align-items:center;margin-top:17px;color:#7790a4;font-size:12px;flex-wrap:wrap}
@media(max-width:1000px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.filter-grid{grid-template-columns:1fr}.filter-checkboxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-check{padding:9px}.filters-actions .btn{flex:1}.filter-fieldset{padding:13px}}
@media(max-width:355px){.filter-checkboxes{grid-template-columns:1fr}}

/* CRM V2 — branding, clean dashboards, responsive administration */
.real-logo{display:block;object-fit:contain;background:#fff}.login-logo{width:168px;height:100px;object-position:right;margin:0 0 16px}.sidebar-logo{width:61px;height:48px;object-position:center}.side-brand{padding:24px 14px 27px}.sidebar{width:265px;flex-basis:265px}.login-aside{background:linear-gradient(145deg,#174a73,#123653)}
.stat-link{display:block;transition:transform .15s,box-shadow .15s}.stat-link:hover{transform:translateY(-3px);box-shadow:0 13px 24px #102f4d14}.stat-link small{display:block;font-size:11px;margin-top:8px;color:#4e83a2}
.chart-bars{height:220px;display:flex;gap:7px;align-items:flex-end;border-bottom:1px solid #dfe9f0;padding:8px 0 0;overflow-x:auto}.chart-col{min-width:35px;flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}.chart-bar{border-radius:6px 6px 0 0;background:linear-gradient(#58a6c4,#1d5c87);width:65%;min-height:6px}.chart-value{font-size:10px;color:#668297}.chart-col small{font-size:11px}.quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-links a{border:1px solid #e0ebf2;background:#f8fbfd;border-radius:12px;padding:17px 10px;color:#215575;font-weight:700;text-align:center}.quick-links a:hover{background:#eaf4f9}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.form-grid label{display:flex;flex-direction:column;gap:7px;color:#4b687e;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea,.new-user-form textarea,.panel textarea{border:1px solid #e0e8f0;border-radius:11px;background:#fafcfe;padding:12px;width:100%;font:inherit;min-width:0}.form-grid button{align-self:end}.form-grid .span-all{grid-column:1/-1;min-width:0;border:1px solid #e6edf3;border-radius:10px}.form-grid legend{padding:0 8px}.client-detail{display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap}.client-detail p{font-size:12px;color:#708a9b}.panel{margin-bottom:15px}.login-wrap{min-height:590px}
@media(max-width:1000px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.form-grid{grid-template-columns:1fr}.login-logo{width:135px;height:82px}.chart-bars{height:170px}.sidebar-logo{width:50px;height:43px}.quick-links{grid-template-columns:1fr 1fr}}

/* V3 - calm enterprise clinical design, optimised for touch */
:root{--navy:#163e61;--blue:#2b739d;--muted:#748a9b;--orange:#ef8952;--bg:#f4f7fa}
.app-body{font-size:15px}.main-content{padding-top:25px}
.welcome-hero{background:linear-gradient(120deg,#173f61 0%,#205c83 72%,#397ca0 100%);display:flex;align-items:center;justify-content:space-between;gap:22px;border-radius:22px;padding:29px 33px;margin-bottom:20px;color:white;position:relative;overflow:hidden;box-shadow:0 14px 30px #163d6018}
.welcome-hero:after{content:"";position:absolute;left:-75px;top:-110px;width:330px;height:330px;border:50px solid #ffffff0c;border-radius:50%;pointer-events:none}
.welcome-hero .eyebrow{color:#b8d7e6}.welcome-hero h1{font-size:clamp(22px,2.7vw,36px);margin:5px 0 9px;color:white}.welcome-hero p{margin:0;color:#c8dcea;line-height:1.9}.welcome-wave{color:#ffba91}.btn-hero{background:#fff;color:#184668;box-shadow:0 7px 20px #0b26383d;position:relative;z-index:1}
.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-grid .stat-card{border-radius:17px;min-height:130px;padding:18px}.kpi-grid .stat-top span:first-child{font-size:12px}.kpi-grid .stat-value{font-size:25px;margin-top:12px}.quick-tool-row{display:flex;gap:10px;flex-wrap:wrap;margin:19px 0}
.action-header{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e8eef3;border-radius:17px;padding:18px 22px;margin-bottom:16px}.action-header h3{margin:0 0 5px;font-size:18px;color:#244c69}.action-header p{color:#8194a4;margin:0;font-size:12px}
.top-search{display:flex;gap:8px;align-items:center;border:1px solid #e2ebf3;background:#f7fafc;padding:0 12px;border-radius:10px;max-width:310px;flex:1}.top-search input{width:100%;min-width:130px;height:37px;border:0;background:transparent;outline:0;color:#27516d;font-size:12px}.top-search .icon{color:#5984a0}
.ksa-label{white-space:normal;line-height:1.5;font-size:12px;font-weight:700;color:#49738d;text-align:center}.user-circle,.avatar-icon{background:linear-gradient(135deg,#e4f4fb,#d5e8f3);color:#2a7199}.user-circle svg{width:20px;height:20px}
.read-only-note{padding:18px;background:#f4f8fb;border-radius:10px;min-height:90px;white-space:pre-wrap;line-height:1.9}.client-summary{display:flex;gap:22px;justify-content:space-between;flex-wrap:wrap}.client-summary h2{font-size:22px;color:#194566}.client-summary p{color:#688397;line-height:1.9}
.conditional-field[hidden]{display:none!important}.required{color:#ce6170}.form-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bars-list{display:flex;flex-direction:column;gap:15px;margin-top:18px;max-height:360px;overflow:auto;padding:0 2px}.bar-row{display:grid;grid-template-columns:minmax(70px,135px) 1fr minmax(55px,100px);gap:9px;align-items:center;color:#516c80;font-size:12px}.bar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.bar-row strong{font-size:11px;color:#285772;direction:ltr;text-align:left}.bar-track{height:13px;background:#f0f5f8;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,#2d7098,#60a6b9);border-radius:99px;min-width:1px}.bar-row:nth-child(4n+2) .bar-fill{background:linear-gradient(90deg,#e78553,#f3b98e)}.bar-row:nth-child(4n+3) .bar-fill{background:linear-gradient(90deg,#3a9a83,#8accad)}.bar-row:nth-child(4n+4) .bar-fill{background:linear-gradient(90deg,#8479ad,#ada0d2)}.empty-visual{padding:50px 12px;text-align:center;border:1px dashed #dbe7ed;border-radius:13px;color:#899dab;background:#f9fbfc;font-size:12px}
.panel h3 .icon{vertical-align:middle;margin-inline-end:5px}.clients-table td .btn{white-space:nowrap}.new-user-form label{font-weight:700}
@media(max-width:1260px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.top-search{max-width:230px}}
@media(max-width:900px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.top-search{display:none}.welcome-hero{padding:24px;flex-wrap:wrap}.bar-row{grid-template-columns:100px 1fr 75px}}
@media(max-width:620px){.welcome-hero{border-radius:17px}.action-header{flex-direction:column;align-items:stretch}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi-grid .stat-card{padding:13px;min-height:119px}.kpi-grid .stat-value{font-size:22px}.topbar-actions{gap:9px}.ksa-label{font-size:10px;max-width:140px}.quick-tool-row .btn{flex:1}.bar-row{grid-template-columns:minmax(67px,85px) 1fr 68px;font-size:10px}.welcome-hero h1{font-size:22px}.add-lead-form{grid-template-columns:1fr}}
.month-separator td{background:#dcecf6!important;color:#1a5479;font-size:13px;font-weight:800;text-align:right;padding:14px!important;border-block:1px solid #c7e1ef!important}.day-separator td{background:#f2f8fb!important;color:#497a98;font-size:11px;font-weight:800;text-align:right;padding:9px 14px!important}.archive-confirm{display:inline-flex;gap:7px;align-items:center;margin-inline-end:10px;font-size:12px;color:#6a7c88}.archive-confirm input{width:17px;height:17px;accent-color:#c45c66}


/* Almajad 3.2 – inclusive responsive CRM, filter workspace and booking time */
.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bfd6e4 transparent}
.sidebar .side-nav{flex:0 0 auto;padding-bottom:18px}
.sidebar .sidebar-bottom{position:relative;background:white;flex-shrink:0}
@media(max-width:900px){.sidebar{height:100dvh;max-height:100dvh;overflow-y:auto;right:-285px}.menu-open .sidebar{right:0}.mobile-overlay.visible{display:block;position:fixed;inset:0;background:#102f4da6;z-index:21}}
input[type=date],input[type=datetime-local],input[type=time],input[type=month]{color-scheme:light;min-height:49px;font-size:16px;max-width:100%;direction:ltr;text-align:right}
input,select,textarea{max-width:100%;min-width:0}
.client-filter-panel .filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.multi-month-picker{background:#f7fbfd;padding:16px;border:1px solid #e3edf4;border-radius:14px}
.multi-month-picker strong{display:block;margin-bottom:10px}.multi-month-picker small{color:#728b9d}.multi-month-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.multi-month-row label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#355e77}
.multi-month-row input{border:1px solid #dbe9f1;border-radius:10px;padding:10px;background:white;width:100%}
.queue-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 22px}
.queue-tile{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:100px;padding:16px;background:white;border:1px solid #e4edf3;border-radius:16px;transition:box-shadow .2s,border .2s}
.queue-tile:hover{box-shadow:0 12px 28px #18496c16;border-color:#b6d6e7}.queue-tile.active{background:#eaf4fb;border:2px solid #2777a3}
.queue-tile b{display:block;color:#245674;font-size:25px;margin-top:8px}.queue-tile span{font-size:13px;color:#6a8799;font-weight:700}.queue-tile .icon{color:#3b82ac;flex-shrink:0}
.search-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e6eff5;border-radius:16px;padding:16px;margin-bottom:18px}
.search-toolbar label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px;font-size:12px;color:#51718a;font-weight:800}
.search-toolbar input{border:1px solid #dae9f1;border-radius:10px;padding:11px 13px;min-height:49px;background:#fbfdff;font-size:16px;width:100%}
.search-toolbar .btn{min-height:49px}
.action-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.action-form-grid label{min-width:0}.action-form-grid .span-all{grid-column:1/-1}
.queue-help{color:#6f8597;margin:10px 0 18px;font-size:12px}
.finance-actions{display:flex;gap:10px;flex-wrap:wrap}
.client-payment-box{border:1px solid #c9e4dc;background:#f4fcf8;border-radius:12px;padding:16px;margin-top:13px}
.client-payment-box h4{color:#217457;margin:0 0 10px}
.mobile-client-cards{display:none}
@media(max-width:1240px){.queue-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.queue-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.client-filter-panel .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .queue-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.queue-tile{min-height:84px;padding:12px}.queue-tile span{font-size:11px}.queue-tile b{font-size:21px}
 .search-toolbar{align-items:stretch}.search-toolbar label{width:100%;flex-basis:100%}.search-toolbar .btn{flex:1}
 .multi-month-row,.client-filter-panel .filter-grid,.action-form-grid{grid-template-columns:1fr}
 .main-content{padding:15px 11px 30px}.panel{padding:14px}.panel h3{font-size:16px}
 .clients-table{min-width:900px}.table-scroll{max-width:calc(100vw - 48px);-webkit-overflow-scrolling:touch}
 .form-buttons .btn,.action-form-grid .btn{width:100%}
 .topbar{padding:0 12px}.topbar-actions{min-width:0}.ksa-label{font-size:9px;max-width:115px}.breadcrumb{font-size:11px}
 .client-summary>div{width:100%}.welcome-hero{padding:17px}
}
@media(max-width:360px){.queue-tiles{grid-template-columns:1fr 1fr}.queue-tile{padding:8px}.topbar-actions{gap:6px}}

/* Version 3.2 final – fixed and fully scrollable nav, predictable touch targets */
.sidebar{min-height:0;max-height:100dvh;overflow-y:auto;overscroll-behavior-y:contain}
.side-nav{flex:0 0 auto;overflow:visible}.sidebar-bottom{margin-top:auto;flex:0 0 auto;position:relative}
@media (hover:none){.nav-link,.btn,.queue-tile{min-height:44px}}
@media(max-width:900px){.sidebar{height:100dvh;max-height:100dvh;overflow-y:auto;-webkit-overflow-scrolling:touch}}
@media(max-width:650px){.top-search{display:none}.page-head{align-items:flex-start}.page-head .head-mark{display:none}.stats-grid{gap:8px}}

/* Mobile-first vertical record cards; no zoom-out needed for client rows. */
@media(max-width:650px){
 .table-scroll{max-width:100%;overflow-x:auto}
 .clients-table{display:block;min-width:0!important;width:100%!important;overflow:visible;border:0!important}
 .clients-table thead{display:none}
 .clients-table tbody{display:flex;flex-direction:column;gap:12px;min-width:0}
 .clients-table tbody tr:not(.month-separator):not(.day-separator){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 9px;background:white;border:1px solid #dae8f1;border-radius:13px;padding:11px;box-shadow:0 5px 14px #17466b0b}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td{display:flex;flex-direction:column;justify-content:flex-start;gap:4px;min-width:0!important;max-width:none;overflow-wrap:anywhere;padding:7px 3px;border:0!important;font-size:12px;white-space:normal}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(2){grid-column:1/-1;font-weight:800;font-size:16px;color:#21567b}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(3):before{content:'الخدمة';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(4):before{content:'الجوال';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(5):before{content:'الحالة';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(6):before{content:'الموعد';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(7):before{content:'المبلغ';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(8):before{content:'السداد';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(9){grid-column:1/-1}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(9):before{content:'المسؤولة';font-size:10px;color:#7d97a6}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(10),.clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(11){display:none}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(12){grid-column:1/-1}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(12) .btn{width:100%;text-align:center;justify-content:center}
 .clients-table .month-separator,.clients-table .day-separator{display:block;width:100%}
 .clients-table .month-separator td,.clients-table .day-separator td{display:block;width:100%;text-align:right}
}

/* --- CRM 3.3: calm hospital identity, clearer interactive boards, full mobile layout --- */
:root{--v33-navy:#174568;--v33-blue:#2d77a3;--v33-orange:#ed874e;--v33-mint:#2e9b83;--v33-border:#dce8f1}
.v33-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#174467,#236084);color:#fff;border-radius:21px;padding:28px 33px;margin-bottom:23px;box-shadow:0 12px 30px #16456324;min-width:0}
.v33-welcome h1{font-size:30px;color:white;margin:5px 0 7px}.v33-welcome h1 span{color:#ffad76}.v33-welcome p{margin:0;color:#d5e9f4;font-size:13px}.v33-overline{font-size:10px;letter-spacing:1px;font-weight:800;color:#bce3f6}
.v33-date{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#e0f0f8;margin-top:16px;font-size:13px;font-weight:700}.v33-welcome-buttons{display:flex;gap:9px;flex-wrap:wrap}.v33-welcome .btn-primary{background:#fff;color:var(--v33-navy);border-color:#fff}.v33-welcome .btn-subtle{background:#ffffff18;color:#fff;border-color:#ffffff55}
.v33-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:24px 0 13px}.v33-heading h2{font-size:18px;color:#1e4667;margin:0}.v33-heading>span{font-size:12px;color:#718c9e}
.v33-home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.v33-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid var(--v33-border);background:white;border-radius:17px;padding:17px 18px;min-width:0;transition:transform .15s,box-shadow .15s;box-shadow:0 5px 18px #1548660a;color:var(--v33-navy)}
.v33-kpi:hover,.v33-queue-card:hover{transform:translateY(-2px);box-shadow:0 9px 22px #17456820}.v33-kpi:focus-visible,.v33-queue-card:focus-visible,.v33-lead:focus-visible{outline:3px solid #ee874e;outline-offset:2px}
.v33-kpi-icon,.v33-queue-icon{width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#e9f4fb;color:#2e80ab}
.tone-orange .v33-kpi-icon,.tone-orange .v33-queue-icon{background:#fff2e8;color:#dc7b45}.tone-green .v33-kpi-icon,.tone-green .v33-queue-icon{background:#e6f7ef;color:#248a6a}.tone-red .v33-kpi-icon,.tone-red .v33-queue-icon{background:#ffeded;color:#c95c63}
.v33-kpi-name{font-size:13px;font-weight:800;color:#658198}.v33-kpi strong{font-size:26px;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.v33-kpi small{font-size:10px;font-weight:700;color:#4a8ab0}
.v33-queue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:12px 0 23px}
.v33-queue-card{position:relative;display:flex;align-items:center;gap:11px;min-width:0;border-radius:16px;border:1px solid var(--v33-border);background:white;padding:13px;min-height:91px;transition:transform .15s,box-shadow .15s;color:var(--v33-navy)}
.v33-queue-card.selected{outline:2px solid #367da7;background:#eaf5fb}.v33-queue-body{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.v33-queue-body strong{font-size:12px;color:#5f7a8f}.v33-queue-body b{font-size:24px;color:#174568}.v33-queue-arrow{margin-inline-start:auto;color:#7394ab}
.v33-fastsearch{border:1px solid #e2edf3;background:white;border-radius:18px;padding:20px;margin-bottom:24px}.v33-fastsearch>div:first-child{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:11px}.v33-fastsearch b{color:#174568}.v33-fastsearch small{color:#7593a5}.v33-fastsearch .search-toolbar{margin:0;box-shadow:none;border:0;padding:0}
.v33-workbench-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:10px 0}.v33-workbench-head h2{font-size:20px;margin:0;color:#204e6a}.v33-workbench-head p{font-size:12px;margin:5px 0;color:#7893a5}
.v33-board{display:grid;grid-template-columns:minmax(300px,.88fr) minmax(0,1.12fr);align-items:start;gap:17px;scroll-margin-top:15px}
.v33-board-list,.v33-board-detail{min-width:0;background:white;border:1px solid var(--v33-border);border-radius:19px;padding:20px;box-shadow:0 4px 20px #1849690a}
.v33-board-detail{scroll-margin-top:15px}.v33-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.v33-list-head h2{margin:0;font-size:18px;color:#1c4c6e}.v33-list-head p{font-size:12px;color:#7791a2;margin:3px 0 0}.v33-reset{font-size:12px;color:#287ba8;font-weight:800}
.v33-search{display:flex;align-items:center;gap:9px;border:1px solid #dbe9f0;border-radius:12px;background:#f7fbfd;padding:6px 7px 6px 13px;margin:16px 0}
.v33-search input{min-width:0;width:100%;flex:1;border:0!important;background:transparent!important;box-shadow:none!important;padding:8px!important;font-size:16px!important;outline:none}
.v33-search button{border:0;background:#174568;color:white;border-radius:9px;padding:10px 17px;font-weight:800;cursor:pointer}
.v33-lead-list{display:flex;flex-direction:column;gap:9px}.v33-lead{display:flex;flex-direction:column;gap:9px;border:1px solid #e2edf3;border-radius:13px;padding:14px;color:#1c4a68;min-width:0}.v33-lead.current{border-color:#4b96c1;background:#f0f8fd;box-shadow:inset 3px 0 #418caf}
.v33-lead-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.v33-lead-head strong{font-size:16px}.v33-status{background:#e7f2fa;border-radius:18px;color:#2a729d;font-size:11px;font-weight:800;padding:5px 10px}.v33-lead-service{color:#608199;font-size:12px}.v33-lead-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;font-size:11px;color:#7892a4}.v33-lead-meta span{display:flex;align-items:center;gap:4px}.v33-lead-cta{font-size:11px;color:#2e79a2;font-weight:800}
.v33-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.v33-detail-heading small{font-size:11px;color:#849bad}.v33-detail-heading h2{margin:2px 0 6px;font-size:21px;color:#174568}.v33-detail-service{font-size:12px;color:#5d7f93}.v33-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
.v33-detail-facts>div{padding:12px 13px;background:#f5f9fc;border:1px solid #e7eef4;border-radius:12px;min-width:0;overflow-wrap:anywhere}.v33-detail-facts small{display:block;color:#7f98a8;font-size:11px;margin-bottom:5px}.v33-detail-facts b{display:block;color:#22526f;font-size:13px}
.v33-notes{background:#fffaf1;border:1px solid #f2e5ce;padding:13px 16px;border-radius:13px;margin-bottom:16px}.v33-notes h3{display:flex;align-items:center;gap:6px;font-size:13px;color:#805a2f;margin:0 0 9px}.v33-notes p{font-size:13px;line-height:1.8;margin:0 0 9px;overflow-wrap:anywhere}.v33-notes small{font-size:11px;color:#967f65;line-height:1.7}
.v33-action-title{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:12px}.v33-action-title h3{font-size:17px;color:#174568;margin:0;display:flex;align-items:center;gap:8px}.v33-action-title span{font-size:11px;color:#6790a7}
.v33-action{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;scroll-margin-top:15px}.v33-action .span-all{grid-column:1/-1}.v33-field{display:flex;flex-direction:column;gap:7px;font-weight:800;color:#365f77;font-size:13px;min-width:0}.v33-field input,.v33-field select,.v33-field textarea{width:100%;border:1px solid #d7e6f0;border-radius:11px;background:#fbfdff;min-height:50px;font-size:16px;padding:11px 12px;color:#183e5c;outline-offset:2px}.v33-field textarea{min-height:90px;resize:vertical}.v33-field select{cursor:pointer}
.v33-appointment-fields{background:#eaf6fa;border:1px solid #bcdbe8;border-radius:15px;padding:14px;min-width:0}.v33-field-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#184e6c;font-weight:900;margin-bottom:13px}.v33-field-heading small{font-size:11px;color:#61839b}.v33-datetime-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.v33-help{font-size:11px;color:#50768c;margin:12px 0 0;line-height:1.8}.v33-payment-switch{border:1px solid #c7e7d6;border-radius:12px;padding:12px;background:#f5fcf7}.v33-payment-switch>label:first-child{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#247a5e}.v33-payment-switch input[type=checkbox]{width:20px;height:20px;accent-color:#268567}.v33-payment-switch .v33-field{margin-top:11px}
.v33-action-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.v33-action-footer p{margin:0;font-size:11px;line-height:1.7;color:#607e91;flex:1;min-width:180px}.v33-action-footer .btn{min-width:150px}.v33-empty{text-align:center;padding:35px 15px;color:#6f8b9c}.v33-empty strong{display:block;color:#214b69}.v33-empty p{font-size:12px}.v33-pagination{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:16px;font-size:12px;color:#698da6}.v33-pagination>div{display:flex;gap:8px}
/* Hidden attribute must defeat inherited grid/flex display, including in Safari. */
.v33-action [hidden]{display:none!important}
@media(max-width:1280px){.v33-home-kpis,.v33-queue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v33-board{grid-template-columns:minmax(270px,.92fr) minmax(0,1.08fr)}}
@media(max-width:1050px){.v33-board{grid-template-columns:minmax(0,1fr)}.v33-board-detail{scroll-margin-top:75px}.v33-home-kpis,.v33-queue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .main-content{max-width:100vw;overflow-x:clip}
 .v33-welcome{padding:21px 18px;display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:16px;border-radius:16px}.v33-welcome h1{font-size:23px}.v33-welcome p{font-size:12px}.v33-date{font-size:12px}.v33-welcome-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.v33-welcome-buttons .btn{width:100%;justify-content:center;padding:10px 8px;font-size:12px}
 .v33-heading{align-items:start;flex-direction:column}.v33-heading h2{font-size:17px}.v33-home-kpis,.v33-queue-grid{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.v33-kpi{padding:12px;gap:8px;min-height:145px}.v33-kpi-icon{width:37px;height:37px}.v33-kpi-name{font-size:11px}.v33-kpi strong{font-size:22px}.v33-kpi small{font-size:10px}.v33-queue-card{padding:10px;min-height:81px;gap:7px}.v33-queue-icon{width:34px;height:34px;flex-shrink:0}.v33-queue-body strong{font-size:10px}.v33-queue-body b{font-size:20px}.v33-queue-arrow{display:none}
 .v33-workbench-head{flex-direction:column;align-items:stretch}.v33-board{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}.v33-board-list,.v33-board-detail{width:100%;padding:13px;border-radius:15px}.v33-board-detail{scroll-margin-top:12px}.v33-lead-head strong{font-size:15px}.v33-detail-heading h2{font-size:19px}.v33-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v33-detail-facts>div{padding:10px}.v33-action{grid-template-columns:minmax(0,1fr)}.v33-datetime-row{grid-template-columns:minmax(0,1fr)}.v33-action-footer .btn{width:100%}
 .v33-field input,.v33-field select,.v33-field textarea,.v33-search input{font-size:16px!important}.v33-queue-card,.v33-kpi,.v33-lead,.v33-search button{min-height:44px}
}
@media(max-width:345px){.v33-queue-body strong{font-size:9px}.v33-queue-card{padding:8px}.v33-kpi strong{font-size:19px}}

/* Almajad 3.4: ergonomic neutral profile and mobile */
.sidebar{scrollbar-gutter:stable;overflow-y:auto!important;overscroll-behavior:contain}
.sidebar-bottom{margin-top:auto;flex-shrink:0}
.crm-initials{border-radius:50%!important;background:linear-gradient(145deg,#15486d,#348ab1)!important;color:#fff!important;font-weight:900;font-size:14px;box-shadow:0 4px 12px rgba(31,93,127,.18)}
.user-circle.crm-initials{font-size:14px;white-space:nowrap}
.nav-link:hover{transform:translateX(-2px)}.nav-link .icon{flex:0 0 auto}
@media(max-width:900px){.sidebar{overflow-y:auto!important;height:100dvh;max-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}.side-nav{padding-bottom:40px}}
@media(max-width:650px){body{overflow-x:hidden}.app-layout,.workspace,.main-content{min-width:0;max-width:100%}.topbar{gap:7px}.v33-board,.panel{overflow-wrap:anywhere}.table-scroll{max-width:100%;overflow-x:auto}.client-filter-form input,.client-filter-form select,.v33-search input{font-size:16px!important}}

/* CRM 3.5: clean, mobile-first filters / single-workbook import */
.crm35-filter-panel{padding:clamp(18px,2.5vw,30px);background:linear-gradient(140deg,#fff 72%,#f4f9fd);border:1px solid #dcebf5;box-shadow:0 16px 42px #19466b0c;border-radius:22px}
.crm35-filters-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.crm35-filters-header h3{font-size:clamp(18px,2vw,24px);margin:4px 0 8px;color:#123f60}
.crm35-filters-header p{color:#708aa1;font-size:12px;margin:0}
.crm35-eyebrow{color:#e47d4d;font-size:11px;font-weight:800;letter-spacing:1px}
.crm35-filter-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;color:#175980;background:#e8f3fa;flex-shrink:0}
.crm35-basic-filters,.crm35-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.crm35-filter-panel label,.crm35-finance-export label,.sync-upload-form label{display:flex;flex-direction:column;gap:9px;min-width:0;font-weight:750;color:#3b607d;font-size:12px}
.crm35-filter-panel :is(input,select),.crm35-finance-export input,.sync-upload-form input{width:100%;min-width:0;border:1px solid #d8e7f1;border-radius:13px;padding:12px 14px;min-height:51px;background:#fbfdff;color:#183f5d;font-size:14px;outline:none}
.crm35-filter-panel :is(input,select):focus,.crm35-finance-export input:focus,.sync-upload-form input:focus{border-color:#65a0bf;box-shadow:0 0 0 3px #70b6da1b}
.crm35-more-filters{margin:18px 0 0;border:1px solid #e0edf5;border-radius:16px;background:#f8fbfe;overflow:hidden}
.crm35-more-filters summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:15px 18px;color:#245a7b;font-weight:800;list-style:none}
.crm35-more-filters summary::-webkit-details-marker{display:none}.crm35-more-filters summary:after{content:'+';margin-right:auto;color:#4e88a8;font-size:22px;font-weight:400}.crm35-more-filters[open] summary:after{content:'−'}
.crm35-extra-grid{padding:0 18px 18px}
.crm35-status-set{border:0;margin:0;padding:8px 18px 20px}.crm35-status-set legend{font-weight:800;color:#26516c}
.crm35-radio-row,.crm35-status-grid{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.crm35-status-grid label,.crm35-radio-row label{display:flex;flex-direction:row;align-items:center;gap:8px;background:#fff;border:1px solid #dce8f1;padding:11px 13px;border-radius:11px;font-size:12px;cursor:pointer}
.crm35-status-grid input,.crm35-radio-row input{width:16px;min-height:16px;margin:0;accent-color:#1d6489}
.crm35-filter-footer{display:flex;gap:11px;flex-wrap:wrap;align-items:center;padding-top:22px}
.crm35-filter-footer .btn{min-height:48px}.crm35-filter-footer span{margin-right:auto;color:#8499a9;font-size:11px}
.crm35-finance-export{border:1px solid #c8e1ec}.crm35-export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:15px;align-items:end}
.crm35-export-grid .btn{min-height:50px}
.sync-intro{display:flex;gap:17px;background:linear-gradient(140deg,#f8fcff,#e9f4fc);border-color:#cfe3f0;align-items:start}.sync-step-icon{flex:none;width:56px;height:56px;border-radius:18px;background:#174d71;color:white;display:grid;place-items:center}
.sync-intro p{margin:5px 0 9px;color:#55718b;line-height:2}.sync-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0}
.sync-stats>div{border:1px solid #e0edf4;border-radius:14px;padding:15px;background:#fbfdff;display:flex;flex-direction:column;gap:5px}.sync-stats b{font-size:25px;color:#164d70}.sync-stats span{font-size:12px;color:#6f879b}
.sync-upload-form{display:flex;gap:16px;align-items:end}.sync-upload-form label{flex:1}.sync-upload-form .btn{min-height:52px}
.confirm-sync{display:flex;align-items:center;gap:10px;margin:16px 0;color:#3b617e;font-weight:700}.confirm-sync input{width:18px;height:18px;accent-color:#17618b}
.sync-report{display:flex;flex-wrap:wrap;gap:9px}.sync-report span{background:#f0f7fc;border:1px solid #d9eaf4;border-radius:10px;padding:9px;color:#37617e}
/* Keep the mobile navigation and page filters genuinely usable without zooming. */
.sidebar{max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}.side-nav{overflow:visible!important;flex-shrink:0}
@media(max-width:800px){.crm35-basic-filters,.crm35-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm35-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm35-export-grid .btn{grid-column:1/-1}}
@media(max-width:600px){.crm35-basic-filters,.crm35-extra-grid,.crm35-export-grid{grid-template-columns:1fr}.crm35-filter-icon{width:42px;height:42px;border-radius:13px}.crm35-filter-panel{padding:16px}.crm35-filters-header{margin-bottom:15px}.crm35-filter-footer .btn{flex:1}.crm35-filter-footer span{width:100%;margin:0}.sync-intro{flex-direction:column}.sync-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sync-upload-form{flex-direction:column;align-items:stretch}.sync-upload-form label{width:100%}.crm35-filter-panel :is(input,select){font-size:16px}.crm35-filter-panel,.sync-intro{border-radius:16px}}


/* CRM 3.5.4 — readable responsive financial & client UI */
:root {--crm354-soft:#eef7fb;--crm354-line:#dce9f1;--crm354-accent:#14608d}
.app-body {font-size:15px}
.main-content {padding-inline:clamp(13px,2.25vw,32px)}
.panel {border-radius:19px}
.panel :is(input,select,textarea) {font-size:max(15px,1rem)}
.btn {min-height:43px}
.crm354-main-avatar {width:42px;height:42px;min-width:42px;border-radius:50%!important;display:inline-grid;place-items:center;background:linear-gradient(135deg,#11608b,#34a4c4)!important;color:#fff!important;box-shadow:0 6px 16px #0c547735;outline:3px solid #e4f4f9}
.crm354-main-avatar svg {width:24px;height:24px}
.crm354-owner {display:inline-flex;align-items:center;gap:9px;text-align:right;vertical-align:middle;max-width:100%;min-width:0}
.crm354-owner-avatar {flex:none;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#186487,#21a5bd);box-shadow:0 5px 12px #125c7d1c}
.crm354-owner-avatar.v1 {background:linear-gradient(135deg,#6547ac,#a688dc)}
.crm354-owner-avatar.v2 {background:linear-gradient(135deg,#1e8b79,#6bcbb0)}
.crm354-owner-avatar.v3 {background:linear-gradient(135deg,#d66c46,#e5ae72)}
.crm354-owner-avatar.v4 {background:linear-gradient(135deg,#3465a6,#74b6e6)}
.crm354-owner-avatar.unknown {background:#a2b3bf}
.crm354-owner-avatar svg {width:19px;height:19px}
.crm354-owner-copy {display:flex;flex-direction:column;min-width:0;gap:0}
.crm354-owner-copy strong {font-size:14px;font-weight:800;color:#244f6f;white-space:normal;overflow-wrap:anywhere}
.crm354-owner-copy small {font-size:11px;color:#bd6c31}
.crm354-state {display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;font-weight:800;font-size:12px;padding:6px 9px;border-radius:11px;white-space:normal;max-width:100%}
.crm354-state.tone-blue {background:#e8f3fa;color:#21648c}.crm354-state.tone-green{background:#e7f7f0;color:#207451}.crm354-state.tone-orange{background:#fff3e4;color:#a75c1f}.crm354-state.tone-red{background:#fff0f0;color:#ba434c}
.crm354-row-actions {display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.crm354-locked {display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#996a31;background:#fff5e7;padding:8px;border-radius:8px;line-height:1.5}
.crm354-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:14px}
.crm354-heading h3 {font-size:19px;margin:0;display:inline-flex;align-items:center;gap:9px}
.crm354-heading :is(p,span){font-size:13px;color:#607f93;margin:0}
.crm354-finance-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px}
.crm354-finance-form label {display:flex;flex-direction:column;gap:6px;min-width:0;color:#34607d;font-weight:800;font-size:13px}
.crm354-finance-form select,.crm354-finance-form input {display:block;width:100%;min-width:0;min-height:51px;background:#f8fbfe;border:1px solid var(--crm354-line);border-radius:12px;padding:12px;font-size:16px;color:#1b486b}
.crm354-finance-form [data-finance-field="day"],.crm354-finance-form [data-finance-field="range"] {display:none}
.crm354-finance-form:has([name="view"] option[value="day"]:checked) [data-finance-field="day"] {display:flex}
.crm354-finance-form:has([name="view"] option[value="range"]:checked) [data-finance-field="range"] {display:flex}
.crm354-finance-form:has([name="view"] option[value="day"]:checked) [data-finance-field="month"],
.crm354-finance-form:has([name="view"] option[value="range"]:checked) [data-finance-field="month"] {display:none}
.crm354-finance-form .btn {min-height:51px}
.crm354-period-note {margin:12px 0 0!important;color:#668397;font-size:13px}
.crm354-period-note strong {color:#205677}
.crm354-finance-cards {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.crm354-finance-cards .stat-card {min-height:140px}
.crm354-month-compare {background:#eaf5fa;border:1px solid #c9e4f0;border-radius:14px;padding:14px 18px;color:#2a6386;font-size:13px;line-height:1.9;margin:0 0 18px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.crm354-month-compare strong{font-size:19px;color:#174c70}
.crm354-fin-table{min-width:760px}.crm354-fin-table td{font-size:13px;white-space:normal}
.crm354-export {display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.crm354-export .crm354-heading {margin-bottom:0}
.crm354-ledger-notice {margin:15px 0}
.v33-detail-facts > div {min-width:0}.v33-detail-facts .crm354-owner {margin-top:4px}
/* Hide the horizontal overflow at desktop widths by rendering customer records as legible cards. */
@media (max-width:1580px) and (min-width:651px){
 .clients-table {display:block;width:100%!important;min-width:0!important;border:0!important}
 .clients-table thead {display:none}
 .clients-table tbody {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) {min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;background:white;border:1px solid #dbe8f0;border-radius:15px;padding:14px;box-shadow:0 7px 18px #194e6b0a}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td {border:0!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;display:flex;flex-direction:column;gap:5px;min-width:0;padding:6px 1px;text-align:right}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(2) {grid-column:1/-1;font-size:16px}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(3),
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(9),
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(11),
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(12) {grid-column:1/-1}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(10) {display:none}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(4):before{content:'الجوال';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(5):before{content:'الحالة';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(6):before{content:'الموعد';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(7):before{content:'قيمة الخدمة';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(8):before{content:'السداد';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(9):before{content:'المسؤولة';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(11):before{content:'الملاحظات';font-size:11px;color:#678da7}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(12):before{content:'التصرف';font-size:11px;color:#678da7}
 .clients-table tbody .month-separator,.clients-table tbody .day-separator{display:block;grid-column:1/-1;width:100%;border-radius:10px}
 .clients-table tbody .month-separator td,.clients-table tbody .day-separator td{display:block}
}
@media (max-width:1050px) and (min-width:651px){.clients-table tbody{grid-template-columns:1fr}}
@media (max-width:900px){.crm354-finance-form{grid-template-columns:repeat(2,minmax(0,1fr))}.crm354-finance-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:650px){
 .app-body{font-size:15px}.main-content{padding:15px 10px 30px}
 .crm354-finance-form{grid-template-columns:1fr}.crm354-finance-form input,.crm354-finance-form select{min-height:53px}
 .crm354-finance-cards{grid-template-columns:1fr 1fr;gap:9px}.crm354-finance-cards .stat-card{min-height:113px;padding:12px}
 .crm354-finance-cards .stat-value{font-size:20px;white-space:normal;overflow-wrap:anywhere}
 .crm354-owner-copy strong{font-size:14px}.crm354-fin-table{min-width:700px}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(11){display:flex!important;grid-column:1/-1}
 .clients-table tbody tr:not(.month-separator):not(.day-separator) td:nth-child(12){display:flex!important;grid-column:1/-1}
 .clients-table td{font-size:13px!important}
 .crm35-filter-panel :is(input,select),.crm35-finance-export input {font-size:16px!important}
 .v33-action :is(input,select,textarea){font-size:16px!important;min-height:47px}
 .v33-appointment-fields .v33-datetime-row{grid-template-columns:1fr!important}
 .crm354-export .btn{width:100%;white-space:normal}
 .crm354-row-actions .btn{min-height:42px}
}
@media (max-width:360px){.crm354-finance-cards{grid-template-columns:1fr}}

.crm354-calendar-link{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;background:#f0f7fc;color:#135987;border:1px solid #d5e6f1;border-radius:10px;padding:7px;font-weight:750;min-height:38px}
.crm354-calendar-link:hover{background:#deeffb}.v33-lead-meta .crm354-owner{color:#275c7a}.v33-lead-meta .crm354-owner-avatar{width:25px;height:25px}.v33-lead-meta .crm354-owner-avatar svg{width:15px;height:15px}.v33-lead-meta .crm354-owner-copy strong{font-size:12px}
@media(max-width:650px){.crm354-calendar-link{width:100%;justify-content:center;font-size:13px}.v33-lead-head{gap:9px;flex-wrap:wrap}.v33-lead-meta{flex-wrap:wrap}}

/* CRM 3.5.5: financial categories, RTL responsive ranking and clean downloads. */
.crm355-dept-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.crm355-dept-item {background:linear-gradient(145deg,#fff,#f8fbfe);border:1px solid #dceaf2;border-radius:18px;padding:18px;min-width:0;box-shadow:0 9px 24px rgba(27,71,105,.045)}
.crm355-dept-item.selected{border-color:#2a93bc;box-shadow:0 0 0 2px #2a93bc18}
.crm355-dept-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#1b4f70}
.crm355-dept-head strong{font-size:15px;font-weight:850;flex:1;min-width:0}
.crm355-rank{display:inline-grid;place-items:center;border-radius:12px;width:36px;height:36px;flex:none;background:#e4f4fa;color:#15648a;font-weight:900}
.crm355-dept-money{font-size:17px;font-weight:900;color:#153d5d;direction:rtl;font-variant-numeric:tabular-nums}
.crm355-dept-track{height:9px;background:#e8f0f6;border-radius:9px;overflow:hidden;margin:14px 0 9px}
.crm355-dept-track span{display:block;height:100%;background:linear-gradient(90deg,#2899c3,#1a709a);border-radius:9px}
.crm355-dept-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#527990;font-size:12px;font-weight:700}
.crm355-downloads{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.crm355-downloads h3{margin:0 0 6px;font-size:19px}
.crm355-downloads p{margin:0;line-height:1.8;color:#63849a}
.crm355-download-buttons{display:flex;gap:10px;flex-wrap:wrap}
.crm355-download-buttons .btn{min-height:47px}
.crm355-classification-warning{margin:16px 0}
@media(max-width:900px){.crm355-dept-list{grid-template-columns:1fr}}
@media(max-width:650px){.crm355-dept-item{padding:14px}.crm355-dept-money{font-size:16px}.crm355-download-buttons{width:100%;flex-direction:column}.crm355-download-buttons .btn{width:100%;justify-content:center;white-space:normal}}

/* CRM 3.5.6 — unified UI hotfix, only presentation. All money stays read-only. */
.crm355-dept-section{background:linear-gradient(160deg,#fff 66%,#f7fbff);border:1px solid #dceaf2;border-radius:20px;overflow:hidden}
.crm355-dept-section .crm354-heading{padding-bottom:14px;border-bottom:1px solid #ebf1f6}
.crm355-dept-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:16px 0 0!important;align-items:stretch}
.crm355-dept-item{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:146px;padding:17px!important;background:#fff!important;border:1px solid #dce7f0!important;border-right:4px solid #1586ae!important;border-radius:16px!important;box-shadow:0 6px 17px rgba(25,65,93,.05)!important;min-width:0!important;overflow:hidden}
.crm355-dept-item:nth-child(2n){border-right-color:#e89759!important}.crm355-dept-item:nth-child(3n){border-right-color:#3bad86!important}
.crm355-dept-head{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;gap:10px!important;align-items:center!important;direction:rtl!important;min-height:42px}
.crm355-dept-head strong{font-size:16px!important;line-height:1.7;color:#123e5e!important;min-width:0;overflow-wrap:anywhere}
.crm355-rank{display:grid!important;place-items:center!important;width:34px;height:34px;flex:none;background:#e7f4fb;border-radius:11px;font-size:15px}
.crm355-dept-money{display:inline-block!important;font-size:18px!important;font-weight:900!important;direction:ltr!important;unicode-bidi:isolate;white-space:nowrap;color:#134767}
.crm355-dept-track{height:10px!important;margin:10px 0 5px!important;border-radius:100px;background:#eaf2f7!important;overflow:hidden}
.crm355-dept-track>span{height:100%;border-radius:inherit;background:linear-gradient(90deg,#209ed3,#146f9b)}
.crm355-dept-foot{display:flex!important;gap:10px;justify-content:space-between!important;flex-wrap:wrap!important;line-height:1.75;font-size:13px!important;color:#52768d}
.crm354-month-compare{display:flex!important;flex-wrap:wrap!important;gap:9px!important;line-height:1.9!important;overflow-wrap:anywhere}
.crm354-month-compare strong{direction:ltr;unicode-bidi:isolate;display:inline-block;white-space:nowrap;font-size:19px!important}
.crm354-finance-form input[type=date],.crm354-finance-form input[type=month],.v33-field input[type=date]{direction:ltr;text-align:right;font-variant-numeric:tabular-nums;font-size:16px!important}
.crm354-finance-form [hidden],.v33-action [hidden]{display:none!important}
.crm356-date-hint{display:block;margin:5px 0 0;color:#377497;font-weight:750;font-size:12px;line-height:1.65}
.crm356-lock-banner{display:flex;align-items:flex-start;gap:14px;padding:18px;background:#fff8e9;border:1px solid #f3d6a6;border-radius:14px;margin:14px 0;color:#80572a;line-height:1.85}
.crm356-lock-banner>svg{flex:0 0 auto}.crm356-lock-banner strong{display:block;color:#7c4b10;font-size:15px}.crm356-lock-banner p{margin:6px 0 0;font-size:13px;line-height:1.95}
.crm355-downloads{gap:16px!important}.crm355-download-buttons{align-items:stretch!important}
.crm355-download-buttons .btn{border-radius:12px;padding:12px 18px;font-size:14px;line-height:1.5}
.crm354-fin-table td,.crm354-fin-table th{font-size:13px!important;line-height:1.85}
.crm354-report-filters{border:1px solid #dce8f1;border-radius:18px}.crm354-heading h3{font-size:19px!important}
.v33-lead,.v33-detail-facts>div{overflow-wrap:anywhere}
.v33-lead .crm354-owner{display:inline-flex;align-items:center;gap:8px}
.v33-detail-facts b{max-width:100%;overflow-wrap:anywhere}
@media(max-width:1100px){.crm355-dept-list{grid-template-columns:minmax(0,1fr)!important}.crm355-dept-head{grid-template-columns:34px minmax(0,1fr) auto}}
@media(max-width:680px){
 .crm355-dept-list{gap:10px!important}.crm355-dept-item{padding:13px!important;min-height:135px}
 .crm355-dept-head{grid-template-columns:32px minmax(0,1fr)!important;row-gap:5px}
 .crm355-dept-money{grid-column:2!important;font-size:17px!important}
 .crm355-dept-head strong{font-size:14px!important}
 .crm355-dept-foot{font-size:12px!important}
 .crm354-finance-cards .stat-card{padding:13px!important}
 .crm354-report-filters,.crm355-dept-section,.crm355-downloads{padding:15px!important}
 .crm355-download-buttons,.crm355-download-buttons .btn{width:100%}
 .crm354-finance-form :is(input,select),.v33-action :is(input,select,textarea){font-size:16px!important;min-height:48px}
 .crm356-lock-banner{padding:13px;gap:9px}
 .crm355-dept-track{margin:8px 0 5px!important}
}
@media(max-width:370px){.crm354-finance-cards{grid-template-columns:1fr!important}}
