/* ==========================================================================
   أبيكس — طبقة الهوية والتنسيق (v1.css)
   تُحمَّل بعد styles.css في كل الصفحات.
   1) الخط   2) قواعد النظام الأصلية   3) صفحات الدخول   4) تنسيق مساحة العمل
   ========================================================================== */

/* 1) IBM Plex Sans Arabic — مستضاف ذاتيًا (OFL 1.1) تحت الاسم المستخدم في النظام */
@font-face{font-family:ApexArabic;font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/plex-arabic-400.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/plex-arabic-500.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/plex-arabic-600.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/plex-arabic-700.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/plex-latin-400.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/plex-latin-500.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/plex-latin-600.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:ApexArabic;font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/plex-latin-700.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

html{-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
body,input,select,textarea,button{font-family:ApexArabic,'Segoe UI',Tahoma,sans-serif}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* 2) قواعد النظام الأصلية (بدون تغيير في السلوك) */
.standalone-message{margin:10vh auto;max-width:500px;text-align:center;padding:30px}.standalone-message img{width:160px;margin-bottom:40px}.standalone-message p{margin:20px 0;line-height:2}.standalone-message a{color:#1e385b}.loading-state{padding:80px;text-align:center;color:#64748b}.profile-controls{display:flex;align-items:center;gap:8px}.profile-label{font-size:10px;color:#798694;max-width:100px}.filter-grid{display:flex;flex-wrap:wrap;gap:12px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:20px 0}.filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#64748b;flex:1;min-width:135px}.filter-grid input,.filter-grid select{height:39px;border:1px solid #dfe5eb;border-radius:7px;background:white;padding:0 10px;color:#1e385b;font:inherit}.filter-grid .btn{align-self:end}.report-preview{overflow:auto}.role-chip{font-size:10px;border-radius:30px;background:#eef2f7;padding:5px 10px;color:#1e385b}.record-actions{display:flex;gap:8px;flex-wrap:wrap}.action-menu{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.field-input[readonly]{background:#f4f6f9}.empty-note{text-align:center;padding:40px 20px;color:#8390a0;font-size:13px}.nav-button .nav-count{margin-inline-start:auto}.sidebar-note .dot{background:#91b3a3}.btn:disabled{opacity:.5;cursor:wait}.help-note{font-size:11px;color:#7c8999;line-height:2}.notice strong{font-weight:600}.modal input:focus-visible,.modal button:focus-visible{outline:2px solid #88a0c3;outline-offset:2px}.table-sort{margin-inline-start:auto}.table-sort select{font-size:11px}.report-head{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:18px}.record-type{font-size:11px;color:#6a7b91}.busy-overlay{pointer-events:none;opacity:.55}
.recovery-status{font-size:12px;line-height:2;color:#26745b;margin:16px 0}.auth-card [hidden]{display:none!important}
.admin-portal-thread{display:grid;gap:12px;max-height:360px;overflow:auto;margin:20px 0}.admin-portal-message{padding:14px;border-radius:12px;background:#f4f6f9;border:1px solid #e2e7ee}.admin-portal-message.client{background:#f7f4ef}.admin-portal-message>div{display:flex;justify-content:space-between;gap:16px;font-size:12px}.admin-portal-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px}.admin-portal-message span{color:#66758b}
@media(max-width:650px){.profile-label{display:none}.filter-grid label{min-width:calc(50% - 12px)}.report-head .heading-actions{width:100%}}
@media print{.sidebar,.topbar,.app-footer,.filter-grid,.heading-actions,.btn,.record-actions,#modal-root,#toast-root{display:none!important}.workspace{margin:0!important}.main-content{padding:0!important}.panel{break-inside:avoid}.app-shell{display:block}table{width:100%}thead{display:table-header-group}}


/* ==========================================================================
   3) صفحات الدخول والاستعادة وتهيئة الحساب
   تعمل مع القالب الجديد ومع القوالب القديمة (auth-statement / auth-kicker)
   ========================================================================== */
.auth-page{--a-navy:#1e385b;--a-deep:#12263f;--a-cream:#efeae4;--a-sand:#c2a174;--a-ink:#1b2a3e;--a-muted:#5f6d82;--a-line:#d4dbe5;--a-danger:#a2363b;background:#fff}
.auth-layout{--a-navy:#1e385b;--a-deep:#12263f;--a-cream:#efeae4;--a-sand:#c2a174;--a-ink:#1b2a3e;--a-muted:#5f6d82;--a-line:#d4dbe5;--a-danger:#a2363b;min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(440px,36%) 1fr;background:#fff;color:var(--a-ink)}

/* — لوحة العلامة: الشعار في الأعلى وأيقونة أبيكس بهدوء — */
.auth-brand{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(120% 90% at 85% 0%,#25466f 0%,rgba(37,70,111,0) 60%),radial-gradient(90% 80% at 0% 100%,#0f2137 0%,rgba(15,33,55,0) 65%),#1a3354;color:var(--a-cream);padding:48px 56px;display:flex;flex-direction:column;justify-content:flex-start}
.auth-logo{position:relative;z-index:2;width:150px;height:auto;max-width:60%}
.auth-mark{position:absolute;z-index:0;left:50%;top:54%;height:min(62vh,560px);width:auto;transform:translate(-50%,-50%);pointer-events:none;opacity:0;animation:auth-mark-in 1.2s cubic-bezier(.2,.7,.2,1) .1s forwards}
@keyframes auth-mark-in{from{opacity:0;transform:translate(-50%,-47%)}to{opacity:1;transform:translate(-50%,-50%)}}

/* القوالب القديمة */
.auth-statement{position:relative;z-index:2;margin-top:auto;max-width:420px}
.auth-statement>span{display:block;font-size:13px;color:#a9b8cc;margin-bottom:12px}
.auth-statement h1{font-size:clamp(26px,2.3vw,36px);line-height:1.5;font-weight:600;margin:0 0 14px;color:var(--a-cream)}
.auth-statement p{font-size:15px;line-height:1.9;color:#b9c6d7;max-width:360px}
.auth-watermark{position:absolute;z-index:0;width:min(560px,70%);left:-6%;bottom:-8%;opacity:.06;pointer-events:none}
.auth-brand>footer{position:relative;z-index:2;font-size:12px;color:#93a5bd}

/* — جهة النموذج — */
.auth-content{order:-1;display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100dvh;padding:48px 56px 28px;background:#fff}
.auth-card{width:100%;max-width:372px;margin:auto 0}
.mobile-auth-logo{display:none}
.auth-title,.auth-card>h2{font-size:30px;line-height:1.35;font-weight:600;color:var(--a-navy);margin:0 0 10px;letter-spacing:0}
.auth-lead,.auth-card>p:not(.auth-error):not(.auth-foot){font-size:15px;line-height:1.85;color:var(--a-muted);margin:0 0 34px;max-width:34em}
.auth-kicker{font-size:13px;color:var(--a-muted);margin-bottom:10px}

.auth-card .field{margin-bottom:22px}
.auth-card .field-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
.auth-card .field label,.auth-card form>label{display:block;font-size:14px;font-weight:500;color:var(--a-ink);line-height:1.6}
.auth-card .field>label{margin-bottom:8px}
.auth-card form>label{margin:0 0 22px}
.auth-card form>label>input,.auth-card form>label>.password-input{margin-top:8px}
.auth-card input{display:block;width:100%;height:50px;margin:0;padding:0 15px;border:1px solid var(--a-line);border-radius:10px;background:#fff;color:var(--a-ink);font-size:15px;line-height:1;outline:none;box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease;-webkit-appearance:none;appearance:none}
.auth-card input:hover:not(:disabled){border-color:#b3bfcf}
.auth-card input:focus,.auth-card input:focus-visible{border-color:var(--a-navy);box-shadow:0 0 0 4px rgba(30,56,91,.13);outline:none}
.auth-card input:disabled{background:#f4f6f9;color:#8a95a5;cursor:not-allowed}
.auth-card input[aria-invalid=true]{border-color:var(--a-danger)}
.auth-card input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fff inset;-webkit-text-fill-color:var(--a-ink)}

.password-input{position:relative}
.password-input input{padding-inline-end:54px}
.password-input button{position:absolute;inset-inline-end:5px;top:5px;min-width:40px;height:40px;padding:0 8px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#6b7a90;font-size:12px;cursor:pointer;transition:background-color .15s,color .15s}
.password-input button:hover{background:#f0f3f7;color:var(--a-navy)}
.password-input button:focus-visible{outline:2px solid var(--a-navy);outline-offset:0}
.password-input button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;grid-area:1/1}
.password-input button .eye-closed{visibility:hidden}
.password-input button[aria-pressed=true] .eye-open{visibility:hidden}
.password-input button[aria-pressed=true] .eye-closed{visibility:visible}

.caps-hint{margin:9px 0 0;font-size:13px;line-height:1.6;color:#8a5a12}
.auth-error{margin:0;font-size:13.5px;line-height:1.75;color:var(--a-danger)}
.auth-error:empty{display:none}
.auth-error:not(:empty){padding:11px 14px;margin:0 0 18px;border:1px solid #efd2d3;border-inline-start:3px solid var(--a-danger);border-radius:8px;background:#fcf3f3}
#recovery-status:not(:empty){color:#3f5370;background:#f2f5f9;border-color:#dde4ee;border-inline-start-color:#7f97b8;margin-bottom:26px}

.auth-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:52px;margin-top:6px;padding:0 20px;border:0;border-radius:10px;background:var(--a-navy);color:#fff;font-size:15.5px;font-weight:600;cursor:pointer;transition:background-color .15s ease,transform .1s ease}
.auth-submit:hover:not(:disabled){background:#173050}
.auth-submit:active:not(:disabled){transform:translateY(1px)}
.auth-submit:focus-visible{outline:3px solid rgba(30,56,91,.35);outline-offset:3px}
.auth-submit>span{display:none}
.auth-submit[aria-busy=true]{cursor:progress;opacity:.92}
.auth-submit[aria-busy=true]:before{content:'';width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:auth-spin .7s linear infinite}
.auth-submit:disabled:not([aria-busy=true]){opacity:.42;cursor:not-allowed}
@keyframes auth-spin{to{transform:rotate(360deg)}}

.auth-card a{color:var(--a-navy);font-weight:500;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-size:100% 1px;background-position:0 100%;background-repeat:no-repeat;padding-bottom:1px;transition:color .15s}
.auth-card a:hover{color:#2f5687}
.auth-card a:focus-visible{outline:2px solid var(--a-navy);outline-offset:3px;border-radius:2px}
.auth-card .field-link{font-size:13px;white-space:nowrap}
.recovery-link{margin-top:18px;font-size:13px}
.auth-foot,.auth-help{margin:30px 0 0;padding-top:22px;border-top:1px solid #e7ebf0;font-size:13.5px;line-height:1.85;color:var(--a-muted)}
.auth-foot p,.auth-help p{margin-top:10px}
.auth-copyright{margin-top:32px;font-size:12.5px;color:#8b96a6;text-align:center}

/* شاشات متوسطة */
@media(max-width:1100px){
  .auth-layout{grid-template-columns:minmax(400px,46%) 1fr}
  .auth-content{padding:40px 40px 24px}
  .auth-brand{padding:36px 36px}
  .auth-mark{height:min(56vh,460px)}
}
/* الجوال: شريط علوي من المخطط، ثم ورقة النموذج */
@media(max-width:820px){
  .auth-layout{display:flex;flex-direction:column}
  .auth-brand{order:-2;flex:0 0 auto;min-height:180px;padding:28px 22px 52px;justify-content:flex-start}
  .auth-content{order:0;flex:1;min-height:0;margin-top:-26px;padding:34px 22px calc(22px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;position:relative;z-index:2;box-shadow:0 -1px 0 rgba(18,38,63,.06)}
  .auth-card{margin:0 auto}
  .auth-logo{width:112px}
  .auth-mark{height:300px;left:12%;top:58%}
  .auth-statement,.auth-brand>footer{display:none}
  .auth-title,.auth-card>h2{font-size:26px}
  .auth-lead,.auth-card>p:not(.auth-error):not(.auth-foot){margin-bottom:28px}
  .auth-card input{font-size:16px}
  .auth-copyright{margin-top:auto;padding-top:28px}
}
@media(prefers-reduced-motion:reduce){
  .auth-mark{opacity:1!important;animation:none!important;transform:translate(-50%,-50%)!important}
}
@media(forced-colors:active){.auth-brand{forced-color-adjust:none}}


/* ==========================================================================
   4) تنسيق مساحة العمل
   ========================================================================== */
:root{--line:#e3e8ef;--bg:#f4f6f9;--muted:#5f6d82;--ink:#1b2a3e}
body{font-size:14px;line-height:1.7}
h1,h2,h3,h4{letter-spacing:0}

/* القائمة الجانبية: مجموعات واضحة بدل قائمة مسطحة من 17 بندًا */
.sidebar{background:#12263f;padding:26px 14px 16px}
.brand{padding:0 12px 22px;margin-bottom:18px;border-bottom-color:rgba(239,234,228,.08)}
.brand img{width:128px}
.brand-caption{font-size:12px;color:#93a5bd;margin-top:12px;letter-spacing:0}
.nav-label{padding:0 12px 6px;font-size:12px;font-weight:500;color:#7f93ae}
.navigation{gap:2px;padding-bottom:8px}
.nav-button{min-height:40px;padding:8px 12px;gap:11px;border-radius:8px;font-size:13.5px;color:#b9c7d9}
.nav-button:hover{background:rgba(239,234,228,.06);color:#fff}
.nav-button.active{background:rgba(239,234,228,.1);color:#fff;font-weight:500;box-shadow:none}
.nav-button.active:after{content:'';position:absolute;inset-inline-start:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:#c2a174}
.nav-button .nav-count{background:rgba(239,234,228,.1);color:#dbe3ee;font-size:11px;border-radius:10px;min-width:22px;padding:1px 7px}
.nav-button.active .nav-count{background:rgba(239,234,228,.18);color:#fff}
.nav-button[data-page=contracts],.nav-button[data-page=finance],.nav-button[data-page=settings]{margin-top:30px}
.nav-button[data-page=contracts]:before,.nav-button[data-page=finance]:before,.nav-button[data-page=settings]:before{position:absolute;inset-inline-start:12px;top:-25px;font-size:12px;font-weight:500;color:#7f93ae;pointer-events:none;white-space:nowrap}
.nav-button[data-page=contracts]:before{content:'العملاء والعقود'}
.nav-button[data-page=finance]:before{content:'المالية والتقارير'}
.nav-button[data-page=settings]:before{content:'إدارة النظام'}
.nav-button[data-page=developer],.nav-button[data-page=trash],.nav-button[data-page=backups],.nav-button[data-page=audit]{font-size:13px;color:#9fb0c6}
.sidebar-note{border-color:rgba(239,234,228,.08);background:transparent;font-size:12px}
.sidebar-note strong{font-size:12.5px}
.sidebar-bottom{font-size:11px}

/* الشريط العلوي */
.topbar{height:68px;padding:0 28px;background:rgba(255,255,255,.94)}
.topbar-title{font-size:18px;font-weight:600;color:#1e385b}
.breadcrumb{font-size:12px}
.global-search{border-radius:9px;background:#f4f6f9;padding:8px 12px}
.global-search input{font-size:13px}
.global-search:focus-within{border-color:#9db0c9;background:#fff;box-shadow:0 0 0 3px rgba(30,56,91,.08)}
.icon-button{border-radius:9px;color:#41556f}

/* المحتوى */
.main-content{padding:26px 30px 36px}
.page-heading{margin-bottom:22px}
.page-heading h1{font-size:24px;font-weight:600;color:#1e385b}
.page-heading p{font-size:14px}

/* لوحة "نظرة عامة": البطاقة الترحيبية أولًا ثم الفلاتر ثم المؤشرات */
.main-content:has(> .hero){display:flex;flex-direction:column}
.main-content:has(> .hero)>.hero{order:-2}
.filter-grid:has([data-filter^="dashboard."]){padding:0;margin:0 0 6px;background:transparent;border:0;border-radius:0;gap:10px}
.filter-grid:has([data-filter^="dashboard."])+.help-note{margin:0 0 18px}

.hero{min-height:0;padding:26px 30px;border-radius:14px;background:#1e385b;gap:28px}
.hero:before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(239,234,228,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(239,234,228,.05) 1px,transparent 1px);background-size:28px 28px;-webkit-mask-image:linear-gradient(90deg,#000,transparent 70%);mask-image:linear-gradient(90deg,#000,transparent 70%);pointer-events:none}
.hero .eyebrow{font-size:12.5px;color:#c6d2e2}
.hero .eyebrow:before{background:#c2a174}
.hero h1{font-size:24px;font-weight:600;line-height:1.5}
.hero p{font-size:14px;line-height:1.85;color:#d3dce8}
.hero-summary .big{font-size:34px;font-weight:600}
.hero-summary .caption,.hero-date{font-size:12px}

.metrics{gap:14px}
.metric{border-radius:12px;padding:18px 20px}
.metric-label{font-size:13px;font-weight:500;color:#4c5b70}
.metric-value{font-size:30px;font-weight:600;color:#1e385b;font-variant-numeric:tabular-nums}
.metric-foot{font-size:12px}

.section-label h2,.panel-header h2,.group-title h2{font-size:16px;font-weight:600;color:#1e385b}
.panel{border-radius:12px}
.panel-header .sub,.group-title span{font-size:12.5px}
.axis-card{border-radius:12px}
.axis-card h3{font-size:14px;font-weight:600}
.axis-card p{font-size:12px}
.service-card{border-radius:12px}
.service-card h3{font-size:15px;font-weight:600}
.service-card p,.service-stats{font-size:12.5px;line-height:1.8}
.report-card p,.asset-location,.task-description,.due-text,.activity-time{font-size:12px}
.asset-values .label{font-size:11.5px}

/* الجداول */
thead{background:#f6f8fb;font-size:12px;color:#5f6d82}
th{font-weight:600;padding:11px 18px}
table{font-size:13px}
td{padding:14px 18px}
.table-title{font-size:13px;font-weight:500}
.table-sub{font-size:11.5px}

/* الحالات والشارات والأزرار */
.status,.badge,.role-chip{font-size:11.5px;font-weight:500;border-radius:6px}
.btn{font-size:13px;border-radius:8px;min-height:40px}
.btn-small{font-size:12px;min-height:33px}
.btn-primary{background:#1e385b;border-color:#1e385b;box-shadow:none}
.btn-primary:hover{background:#173050}
.service-bottom .btn{font-size:12px}
.tab{font-size:12.5px}

/* الفلاتر والحقول */
.filter-grid label{font-size:12px;font-weight:500;color:#4c5b70}
.filter-grid input,.filter-grid select{height:40px;border-color:#dbe2ea;border-radius:8px;font-size:13px;color:#1b2a3e}
.field-input,.filters select{font-size:13px;border-radius:8px;border-color:#dbe2ea}
.field-input:focus,.filters select:focus,.filter-grid input:focus,.filter-grid select:focus{border-color:#1e385b;box-shadow:0 0 0 3px rgba(30,56,91,.1);outline:none}
.form-field>label{font-size:13px}
.form-help,.help-note{font-size:12px}
.table-sort select{font-size:12px}

/* الحالات الفارغة والتنبيهات */
.empty-state{border:1px dashed #cfd9e5;border-radius:12px;padding:40px 22px}
.empty-state h3{font-size:16px;font-weight:600;color:#1e385b}
.empty-state p{font-size:13.5px}
.notice{font-size:13px;line-height:1.8}

/* النوافذ الجانبية */
.modal-header h2{font-weight:600;color:#1e385b}
.modal-header p{font-size:12.5px}
.form-section{font-size:14px;font-weight:600}

.app-footer{font-size:11.5px}
.profile-label{font-size:12px}

/* قراءة أوضح للأرقام */
.metric-value,.hero-summary .big,td,.chart-row{font-variant-numeric:tabular-nums}

@media(max-width:760px){
  .topbar{height:62px;padding:0 14px}
  .main-content{padding:18px 14px 28px}
  .hero{padding:22px}
  .hero h1{font-size:21px}
  .filter-grid:has([data-filter^="dashboard."])+.help-note{display:none}
  .filter-grid:has([data-filter^="dashboard."]){margin-bottom:18px}
}
@media(max-width:500px){
  .topbar [data-action=refresh-data]{display:none}
  .topbar-actions{gap:6px}
  .metric-value{font-size:26px}
  .metric-label{font-size:12.5px}
  .metric-foot{font-size:11px}
}

/* Navigation controls: desktop collapse, mobile drawer, and visible labels. */
.topbar{height:auto;min-height:76px;padding-block:12px;gap:18px;overflow:visible;isolation:isolate}
.topbar-left{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.topbar-left>div{min-width:0}
.topbar-title{line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.breadcrumb{line-height:1.5;margin-bottom:3px}
.topbar-actions,.profile-controls{display:flex;align-items:center;flex-shrink:0;gap:10px}
.topbar .menu-toggle{display:grid;width:40px;height:40px}
.topbar .icon-button{position:relative;min-width:40px;min-height:40px}
.topbar .logout-button{display:inline-flex;width:auto;padding:0 12px;gap:7px;color:#843d44;border-color:#eadadd}
.logout-label{font-size:12px;white-space:nowrap}
.has-tooltip{position:relative}
.button-tooltip{position:absolute;top:calc(100% + 10px);inset-inline-end:0;z-index:100;display:block;width:max-content;max-width:240px;padding:8px 12px;border-radius:7px;background:#12263f;color:#fff;font-size:12px;font-weight:400;line-height:1.6;white-space:nowrap;box-shadow:0 5px 20px #12263f26;opacity:0;visibility:hidden;transform:translateY(-3px);pointer-events:none;transition:opacity .12s,transform .12s}
.has-tooltip:hover .button-tooltip,.has-tooltip:focus-visible .button-tooltip{opacity:1;visibility:visible;transform:translateY(0)}
.menu-toggle .button-tooltip{inset-inline-start:0;inset-inline-end:auto}
.sidebar-close{display:none}
@media(min-width:761px){
 .app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}
 .app-shell.sidebar-collapsed>.sidebar{display:none}
 .app-shell>.mobile-overlay{display:none}
}
@media(max-width:1100px){
 .topbar{gap:12px;padding-inline:18px}
 .topbar .profile-label{display:none}
 .topbar .global-search{width:150px}
 .topbar .logout-label{display:none}
 .topbar .logout-button{width:40px;padding:0}
 .topbar-actions,.profile-controls{gap:8px}
}
@media(max-width:760px){
 .topbar{min-height:66px;padding:12px 14px;gap:8px}
 .topbar-left{gap:9px}
 .topbar-title{font-size:17px}
 .sidebar{height:100dvh;overscroll-behavior:contain}
 .sidebar-close{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff0d;color:#fff;padding:8px 12px;margin-bottom:18px;font-size:12px}
 .sidebar-close .icon{width:17px;height:17px}
 body:has(.app-shell.menu-open){overflow:hidden}
}
@media(max-width:500px){
 .topbar .top-divider{display:none}
 .topbar-actions,.profile-controls{gap:5px}
 .topbar .icon-button{width:36px;min-width:36px;height:38px;min-height:38px}
 .topbar-title{font-size:15px}
 .topbar-left{gap:7px}
}
@media(prefers-reduced-motion:reduce){.button-tooltip{transition:none}}

/* Unified business interface */
svg.icon{stroke-width:1.75;width:19px;height:19px;overflow:visible}
.nav-button>.icon{width:18px;height:18px}
.topbar .icon-button>.icon{width:19px;height:19px}
.hero{background:#1e385b;border-radius:10px;padding:24px 28px}
.hero:before,.hero-art,.hero .eyebrow:before{display:none}
.hero h1{font-size:23px;font-weight:500;line-height:1.6}
.hero p{font-size:13px;color:#c9d3e0;line-height:1.8}
.hero .eyebrow{font-size:12px;letter-spacing:0;color:#aebed1}
.hero-summary .big{font-weight:500}
.metric,.axis-card,.service-card,.asset-card,.panel,.report-card{border-radius:9px;box-shadow:none;border-color:#e1e6ec}
.metric{padding:20px}
.metric-value{font-size:30px;font-weight:500;line-height:1.5}
.metric-label{font-size:12px;font-weight:500}
.metric-icon{background:#f2f5f8;color:#496079;border-radius:8px;width:34px;height:34px}
.metric.green .metric-icon{background:#f0f6f3;color:#47765f}
.metric.amber .metric-icon{background:#f8f4ec;color:#977744}
.axis-icon,.axis-icon.sand,.axis-icon.purple{background:#f0f3f7;color:#496079;border-radius:8px}
.axis-card h3,.service-card h3{font-size:14px;font-weight:500}
.axis-card p,.service-card p{font-size:12px;color:#69778a}
.page-heading h1{font-size:22px;font-weight:500}
.page-heading p{font-size:13px;line-height:1.8;max-width:58em}
.section-label h2,.panel-header h2,.group-title h2{font-size:15px;font-weight:500}
.btn{font-size:12px;font-weight:500;border-radius:7px;min-height:38px;gap:8px}
.btn-small{min-height:32px;font-size:11.5px}
.status,.badge,.role-chip{border-radius:4px;font-size:11px;font-weight:500}
.modal-header h2{font-weight:500;font-size:18px}
.empty-state .empty-icon{border-radius:9px;background:#f0f3f7;color:#61738b}
.app-footer{font-size:11px;color:#7d8898}
@media(max-width:760px){.hero{padding:22px}.hero h1{font-size:21px}.page-heading h1{font-size:21px}}
/* Property operations navigation and cloud storage */
.navigation-group-label{padding:17px 13px 5px;color:#8fa4c1;font-size:10px;letter-spacing:.15px}.navigation-group-label:first-child{padding-top:0}.hero-system-name{font-size:34px;font-weight:500;letter-spacing:-1px}.property-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 26px}.property-shortcut{display:flex;align-items:center;gap:13px;text-align:right;border:1px solid var(--line);border-radius:9px;background:white;padding:18px 17px;transition:background .15s,border-color .15s;min-width:0}.property-shortcut:hover{background:#f9fbfd;border-color:#c4d1e1}.property-shortcut>span:nth-child(2){flex:1;min-width:0}.property-shortcut strong{display:block;font-size:13px;font-weight:500;color:var(--navy)}.property-shortcut small{display:block;font-size:10px;color:var(--muted);margin-top:5px;white-space:normal}.property-shortcut>.icon{width:15px;height:15px;color:#9cabbf}.property-shortcut .axis-icon{width:36px;height:36px;background:#f0f4f9}.property-shortcut .axis-icon .icon{width:18px;height:18px}.drive-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.drive-status-grid .panel{margin-bottom:20px}.drive-lead{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 20px}.drive-facts{display:grid;grid-template-columns:130px 1fr;gap:14px;font-size:12px;margin:20px 0 26px}.drive-facts dt{color:var(--muted)}.drive-facts dd{margin:0}.drive-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 23px}.drive-counters>div{background:#f5f7fa;border:1px solid var(--line);padding:16px 12px;border-radius:7px}.drive-counters strong{display:block;font-size:27px;font-weight:500;color:var(--navy)}.drive-counters span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.drive-config{margin-top:22px;padding:22px}.drive-config summary{cursor:pointer;font-size:14px;font-weight:500}.drive-config p{font-size:12px;line-height:1.9;margin:16px 0;color:var(--muted)}.drive-config code{display:block;overflow-wrap:anywhere;background:#f5f7fa;border-radius:6px;padding:13px;font-size:11px;margin:15px 0 22px}.drive-config form .btn{margin-top:18px}.drive-config .form-error{color:var(--red)}.drive-status-grid .heading-actions{gap:8px}.drive-status-grid .btn{font-size:11px;padding:8px 11px}@media(max-width:1150px){.property-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.drive-status-grid{grid-template-columns:1fr}.drive-status-grid .panel{margin-bottom:0}.drive-status-grid{margin-bottom:22px}}@media(max-width:540px){.property-shortcuts{grid-template-columns:1fr;gap:10px}.property-shortcut{padding:15px}.property-shortcut strong{font-size:12px}.drive-counters{gap:8px}.drive-counters>div{padding:13px 9px}.drive-counters strong{font-size:23px}.drive-counters span{font-size:9px}.drive-config{padding:17px}.drive-facts{grid-template-columns:110px 1fr;font-size:11px}}
/* Property photos, video gallery and catalog review */
.asset-visual.has-cover{background:#dfe6ed;isolation:isolate}.property-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.asset-visual.has-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#10253b40,transparent 60%,#10253b26);z-index:1}.has-cover .building-art{display:none}.has-cover .asset-tag,.has-cover .asset-code{z-index:2}.has-cover .asset-code{color:white;text-shadow:0 1px 3px #10243b80}.property-media-panel{margin-bottom:22px}.property-media-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.property-media-item{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:white;min-width:0}.property-media-preview{height:190px;background:#eaf0f5;position:relative}.property-media-preview>button{padding:0;border:0;display:block;background:none;width:100%;height:100%}.property-media-preview img{width:100%;height:100%;object-fit:cover}.property-media-preview video{width:100%;height:100%;background:#10243b;object-fit:contain}.property-cover-label{position:absolute;top:10px;right:10px;background:#ffffffec;color:var(--navy);font-size:10px;padding:3px 9px;border-radius:4px;pointer-events:none}.property-media-caption{padding:14px}.property-media-caption>strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;display:block}.property-media-caption>small{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere;margin-top:6px;direction:ltr;text-align:right}.property-media-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.property-media-actions .btn{font-size:10px;padding:5px 8px;min-height:30px}.property-media-actions .icon{width:13px;height:13px}.property-media-help{margin-top:18px;line-height:1.9}.property-media-empty{padding:30px 18px;text-align:center;color:var(--muted)}.property-media-empty>.icon{width:34px;height:34px;margin:0 auto 14px;color:#8da3bd}.property-media-empty h3{font-size:14px;font-weight:500}.property-media-empty p{font-size:11px;margin-top:8px}.property-media-full{margin:0}.property-media-full img,.property-media-full video{width:100%;max-height:65dvh;object-fit:contain;background:#10243b;border-radius:8px}.property-media-full figcaption{font-size:12px;margin-top:14px;color:var(--muted)}#media-upload-progress{font-size:12px;color:var(--navy);margin-top:18px;overflow-wrap:anywhere}.service-review,.service-suggestions{margin-bottom:20px}.service-review>summary,.service-suggestions>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:19px 21px;list-style:none;border-bottom:1px solid var(--line)}.service-review summary>span:first-child,.service-suggestions summary>span:first-child{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500}.service-review summary>span:last-child,.service-suggestions summary>span:last-child{font-size:10px;color:var(--muted);white-space:nowrap}.service-review summary .icon,.service-suggestions summary .icon{width:18px;color:#8098b7}.service-review>.panel-body,.service-suggestions>.panel-body{padding-top:20px}.service-review-list{margin:15px 0}.service-review-list .settings-row{gap:14px}.service-review-list .settings-row>div{flex:1}.service-review-list strong{font-size:12px;font-weight:500}.service-review-list p{font-size:10px;color:var(--muted);margin-top:5px}.service-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.service-template-grid article{border:1px solid var(--line);border-radius:8px;padding:19px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.service-template-grid h3{font-size:13px;font-weight:500}.service-template-grid p{font-size:11px;line-height:1.9;color:var(--muted);flex:1}.service-template-grid small{font-size:10px;color:var(--muted)}.user-unit-links{padding:14px;border:1px solid var(--line);border-radius:7px;max-height:240px;overflow:auto}.user-unit-links legend{font-size:12px;padding:0 8px}.user-unit-links label{display:flex;align-items:center;gap:9px;font-size:12px;padding:6px 0}.user-unit-links input{accent-color:var(--navy)}@media(max-width:1100px){.service-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.property-media-gallery{grid-template-columns:1fr}.property-media-preview{height:210px}.service-template-grid{grid-template-columns:1fr}.service-review>summary,.service-suggestions>summary{align-items:flex-start;flex-direction:column;gap:8px}.service-review-list .settings-row{flex-wrap:wrap}.service-review-list .settings-row>div{min-width:180px}}
