/* Moja zgrada UI v2 — independent white-label SaaS design system */
:root{
  --brand-primary:#2477e8;
  --brand-primary-rgb:36,119,232;
  --brand-secondary:#123a63;
  --brand-accent:#38a7e8;
  --ui-bg:#f5f7fa;
  --ui-surface:#fff;
  --ui-surface-raised:#fff;
  --ui-surface-soft:#f8f9fb;
  --ui-sidebar:#fff;
  --ui-text:#1d2533;
  --ui-text-soft:#606b7c;
  --ui-text-faint:#8b95a5;
  --ui-border:#e7ebf0;
  --ui-border-strong:#d9dfe7;
  --ui-success:#16875d;
  --ui-warning:#b76e00;
  --ui-danger:#d13c4b;
  --ui-shadow:0 1px 2px rgba(18,26,40,.03),0 10px 30px rgba(18,26,40,.035);
  --ui-radius:14px;
  --ui-radius-sm:9px;
}
:root[data-theme="dark"]{
  --ui-bg:#171c24;
  --ui-surface:#202630;
  --ui-surface-raised:#252c37;
  --ui-surface-soft:#1c222c;
  --ui-sidebar:#1b212a;
  --ui-text:#eef3f8;
  --ui-text-soft:#b4bdc9;
  --ui-text-faint:#8994a3;
  --ui-border:#303844;
  --ui-border-strong:#3a4452;
  --ui-success:#4bd0a0;
  --ui-warning:#f5b84b;
  --ui-danger:#ff7180;
  --ui-shadow:0 1px 2px rgba(0,0,0,.12),0 12px 32px rgba(0,0,0,.10);
}
html{background:var(--ui-bg)}
body.mz-shell{background:var(--ui-bg)!important;color:var(--ui-text)!important;font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;transition:background .18s ease,color .18s ease}
.mz-shell .app{align-items:stretch;min-height:100vh}
.mz-shell .sidebar{width:260px;min-height:100vh;padding:18px 13px;background:var(--ui-sidebar)!important;border-right:1px solid var(--ui-border);box-shadow:none!important;color:var(--ui-text)}
.mz-shell .sidebar::before{display:none!important}
.mz-shell .brand-wrap{min-height:58px;padding:0 8px 16px;margin:0 0 8px;border-bottom:1px solid var(--ui-border)}
.mz-shell .brand-logo img{width:38px;height:38px;object-fit:contain;border-radius:10px;background:#fff;box-shadow:0 2px 10px rgba(18,26,40,.08)}
.mz-shell .brand{color:var(--ui-text)!important;font-size:14px!important;font-weight:780;letter-spacing:-.025em}
.mz-shell .brand-subtitle{color:var(--ui-text-faint)!important;font-size:9px;letter-spacing:.025em}
.mz-shell .nav{gap:2px}
.mz-shell .nav-section-title{margin:19px 11px 6px;color:var(--ui-text-faint)!important;font-size:9px;font-weight:800;letter-spacing:.12em}
.mz-shell .nav a,.mz-shell .nav a.nav-module{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:6px 9px;border:0!important;border-radius:var(--ui-radius-sm);background:transparent!important;color:var(--ui-text-soft)!important;box-shadow:none!important;font-size:12.5px;font-weight:630;transform:none!important}
.mz-shell .nav a>i,.mz-shell .nav a.nav-module>i{display:grid;place-items:center;width:27px!important;min-width:27px!important;height:27px!important;border-radius:8px;background:transparent!important;color:var(--ui-text-faint)!important;font-size:15px;transition:.15s ease}
.mz-shell .nav a:hover,.mz-shell .nav a.nav-module:hover{background:var(--ui-surface-soft)!important;color:var(--ui-text)!important}
.mz-shell .nav a:hover>i{color:var(--ui-text)!important}
.mz-shell .nav a.is-active,.mz-shell .nav a.nav-module.is-active{background:rgba(var(--brand-primary-rgb),.11)!important;color:var(--brand-primary)!important;box-shadow:none!important}
.mz-shell .nav a.is-active::after{display:none!important}
.mz-shell .nav a.is-active>i,.mz-shell .nav a.nav-module.is-active>i{background:rgba(var(--brand-primary-rgb),.12)!important;color:var(--brand-primary)!important}
.mz-shell .nav-pill{background:var(--ui-danger)!important;color:#fff!important}
.mz-shell .active-building-nav{margin:10px 2px;padding:13px;border:1px solid rgba(var(--brand-primary-rgb),.18);border-radius:12px;background:rgba(var(--brand-primary-rgb),.06);box-shadow:none}
.mz-shell .active-building-nav span,.mz-shell .active-building-nav small{color:var(--ui-text-faint)!important}
.mz-shell .active-building-nav strong{color:var(--ui-text)!important}
.mz-shell .active-building-nav a{color:var(--brand-primary)!important}
.mz-shell .content{width:calc(100% - 260px);max-width:none;padding:18px clamp(20px,2.6vw,42px) 44px;background:var(--ui-bg)}
.mz-shell .topbar{min-height:60px;padding:7px 0 15px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:transparent!important;box-shadow:none!important;backdrop-filter:none}
.mz-shell .topbar-title,.mz-shell .topbar-user strong{color:var(--ui-text)!important}
.mz-shell .topbar-title i{color:var(--ui-text-faint)!important}
.mz-shell .topbar-search{height:40px;border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-sm);background:var(--ui-surface)!important;color:var(--ui-text);box-shadow:0 1px 2px rgba(18,26,40,.025)}
.mz-shell .topbar-search input{color:var(--ui-text)!important;background:transparent!important}
.mz-shell .topbar-search:focus-within{border-color:var(--brand-primary);box-shadow:0 0 0 3px rgba(var(--brand-primary-rgb),.12)}
.mz-shell .topbar-user span{background:rgba(var(--brand-primary-rgb),.12)!important;color:var(--brand-primary)!important}
.theme-toggle{position:relative;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text-soft);cursor:pointer;transition:.15s ease}
.theme-toggle:hover{border-color:var(--ui-border-strong);color:var(--ui-text);transform:translateY(-1px)}
.theme-toggle i{position:absolute;font-size:17px;transition:opacity .15s ease,transform .2s ease}
.theme-toggle .ti-sun{opacity:0;transform:rotate(-30deg) scale(.7)}
.theme-toggle .ti-moon{opacity:1}
:root[data-theme="dark"] .theme-toggle .ti-sun{opacity:1;transform:rotate(0) scale(1)}
:root[data-theme="dark"] .theme-toggle .ti-moon{opacity:0;transform:rotate(30deg) scale(.7)}
.mz-shell h1,.mz-shell h2,.mz-shell h3,.mz-shell h4,.mz-shell strong{color:var(--ui-text)}
.mz-shell .page-head{margin:24px 0 18px}
.mz-shell .page-head h1{color:var(--ui-text)!important;font-size:clamp(27px,2.4vw,36px);letter-spacing:-.045em}
.mz-shell .eyebrow{color:var(--brand-primary)!important;font-size:9px;font-weight:850;letter-spacing:.14em}
.mz-shell .page-subtitle,.mz-shell .section-note,.mz-shell .dashboard-intro,.mz-shell p{color:var(--ui-text-soft)}
.mz-shell .card,.mz-shell .analysis-card,.mz-shell .ad-admin-card{border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;color:var(--ui-text);box-shadow:var(--ui-shadow)!important}
.mz-shell .section-head{border-color:var(--ui-border)}
.mz-shell .btn{height:40px;border-radius:var(--ui-radius-sm);font-weight:720;box-shadow:none!important}
.mz-shell .btn:not(.btn-light):not(.btn-soft):not(.btn-danger-soft):not(.btn-soft-success):not(.btn-soft-purple){border-color:transparent!important;background:var(--brand-primary)!important;color:#fff!important}
.mz-shell .btn:not(.btn-light):hover{filter:brightness(.94);transform:translateY(-1px)}
.mz-shell .btn-light,.mz-shell .btn-soft{border:1px solid var(--ui-border-strong)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important}
.mz-shell input,.mz-shell select,.mz-shell textarea{border:1px solid var(--ui-border-strong)!important;border-radius:var(--ui-radius-sm);background:var(--ui-surface-raised)!important;color:var(--ui-text)!important;box-shadow:none}
.mz-shell input::placeholder,.mz-shell textarea::placeholder{color:var(--ui-text-faint)}
.mz-shell input:focus,.mz-shell select:focus,.mz-shell textarea:focus{border-color:var(--brand-primary)!important;box-shadow:0 0 0 3px rgba(var(--brand-primary-rgb),.11)!important}
.mz-shell table{color:var(--ui-text)}
.mz-shell th{background:var(--ui-surface-soft)!important;color:var(--ui-text-faint)!important;border-color:var(--ui-border)!important}
.mz-shell td{color:var(--ui-text-soft)!important;border-color:var(--ui-border)!important}
.mz-shell tr:hover td{background:rgba(var(--brand-primary-rgb),.035)}
.mz-shell .dashboard-hero{margin:24px 0 18px;padding:27px;border:1px solid rgba(var(--brand-primary-rgb),.2)!important;border-radius:16px;background:linear-gradient(125deg,rgba(var(--brand-primary-rgb),.10),rgba(var(--brand-primary-rgb),.035) 58%,rgba(var(--brand-primary-rgb),.075))!important;color:var(--ui-text)!important;box-shadow:none!important}
.mz-shell .dashboard-hero::before{display:none!important}
.mz-shell .dashboard-hero h1{color:var(--ui-text)!important;letter-spacing:-.05em}
.mz-shell .executive-kpi{border:1px solid var(--ui-border)!important;border-radius:13px!important;background:var(--ui-surface)!important;box-shadow:none!important}
.mz-shell .executive-kpi strong{color:var(--ui-text)!important}
.mz-shell .executive-kpi span,.mz-shell .executive-kpi small{color:var(--ui-text-soft)!important}
.mz-shell .finance-pulse>div,.mz-shell .attention-list>div,.mz-shell .finance-month-detail{border:1px solid var(--ui-border);background:var(--ui-surface-soft)!important}
.mz-shell .dashboard-building-row,.mz-shell .dashboard-activity-list>a,.mz-shell .notification-item{border-color:var(--ui-border)!important;color:var(--ui-text)}
.mz-shell .dashboard-building-row:hover,.mz-shell .dashboard-activity-list>a:hover,.mz-shell .notification-item:hover{background:rgba(var(--brand-primary-rgb),.05)!important}
.mz-shell .dashboard-building-avatar,.mz-shell .activity-icon{background:rgba(var(--brand-primary-rgb),.11)!important;color:var(--brand-primary)!important}
.mz-shell .alert{border-radius:11px}
.mz-shell .mobile-topbar{background:var(--ui-surface)!important;border-bottom:1px solid var(--ui-border);color:var(--ui-text)}
.mz-shell .mobile-topbar-title,.mz-shell .mobile-menu-btn{color:var(--ui-text)!important}

/* White-label editor */
.branding-tenant-picker{display:grid;grid-template-columns:180px minmax(260px,420px);gap:16px;align-items:center;margin-bottom:18px}
.branding-tenant-picker label{font-weight:750;color:var(--ui-text)}
.branding-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:18px;align-items:start}
.branding-form-card{margin:0!important}
.branding-color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.branding-color-field{display:grid;gap:7px;color:var(--ui-text-soft);font-size:11px;font-weight:750}
.branding-color-field>span:last-child{display:flex;align-items:center;gap:8px}
.branding-color-field input[type="color"]{width:44px;height:42px;padding:4px;cursor:pointer}
.branding-color-field input:not([type="color"]){min-width:0;text-transform:uppercase}
.branding-preview{position:sticky;top:85px;margin:0!important;overflow:hidden}
.branding-preview-window{display:grid;grid-template-columns:72px 1fr;min-height:310px;margin-top:14px;border:1px solid var(--ui-border);border-radius:13px;overflow:hidden;background:var(--ui-bg)}
.branding-preview-sidebar{display:flex;flex-direction:column;align-items:center;gap:13px;padding:16px 10px;background:var(--brand-secondary)}
.branding-preview-logo{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fff;color:var(--brand-primary);font-weight:900}
.branding-preview-sidebar i{width:30px;height:7px;border-radius:99px;background:rgba(255,255,255,.22)}
.branding-preview-sidebar i:nth-child(2){background:var(--brand-accent)}
.branding-preview-main{padding:23px 18px}
.branding-preview-main small{color:var(--ui-text-faint)}
.branding-preview-main h3{margin:7px 0 20px}
.branding-preview-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:25px}
.branding-preview-kpis i{height:58px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface)}
.branding-preview-main button{border:0;border-radius:8px;padding:9px 12px;background:var(--brand-primary);color:#fff;font-weight:750}
.branding-preview-note{margin:13px 0 0;font-size:11px}
@media(max-width:1050px){.branding-layout{grid-template-columns:1fr}.branding-preview{position:static}.branding-preview-window{min-height:260px}}
@media(max-width:900px){.mz-shell .sidebar{position:fixed;width:min(86vw,290px)}.mz-shell .content{width:100%;padding:16px}.mz-shell .topbar{padding-top:3px}.branding-tenant-picker{grid-template-columns:1fr}.branding-color-grid{grid-template-columns:1fr}}

/* Authentication — neutral product surface, no client-specific photography */
body.auth-shell.login-page{position:relative;min-height:100vh;display:grid;place-items:center;padding:28px;background:
 radial-gradient(circle at 15% 12%,rgba(var(--brand-primary-rgb),.15),transparent 34%),
 radial-gradient(circle at 88% 82%,color-mix(in srgb,var(--brand-accent) 14%,transparent),transparent 32%),
 var(--ui-bg)!important;background-image:radial-gradient(circle at 15% 12%,rgba(var(--brand-primary-rgb),.15),transparent 34%),radial-gradient(circle at 88% 82%,rgba(var(--brand-primary-rgb),.07),transparent 32%)!important}
.auth-shell::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(var(--ui-border) 1px,transparent 1px),linear-gradient(90deg,var(--ui-border) 1px,transparent 1px);background-size:48px 48px;opacity:.22;mask-image:linear-gradient(to bottom,black,transparent 75%)}
.auth-shell .login-box{position:relative;z-index:1;width:min(100%,420px);padding:38px;border:1px solid var(--ui-border);border-radius:18px;background:color-mix(in srgb,var(--ui-surface) 94%,transparent);box-shadow:0 24px 70px rgba(18,26,40,.1);backdrop-filter:blur(18px);text-align:left}
:root[data-theme="dark"] .auth-shell .login-box{box-shadow:0 28px 80px rgba(0,0,0,.34)}
.auth-shell .login-logo{display:block;width:52px;height:52px;margin:0 0 20px;object-fit:contain;border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(18,26,40,.1)}
.auth-shell .login-title{color:var(--ui-text)!important;font-size:26px;font-weight:800;letter-spacing:-.045em}
.auth-shell .login-subtitle{margin:6px 0 26px;color:var(--ui-text-soft)!important}
.auth-shell .input-icon{position:relative}
.auth-shell .input-icon i{color:var(--ui-text-faint)}
.auth-shell .input-icon input{height:48px;background:var(--ui-surface-raised)!important;color:var(--ui-text)!important}
.auth-shell .btn{height:48px;margin-top:12px;background:var(--brand-primary)!important}
.auth-shell a{color:var(--brand-primary);font-weight:650;text-decoration:none}
.auth-theme-toggle{position:fixed;z-index:5;top:22px;right:22px}
.auth-shell .cu-language-switcher{position:fixed;z-index:5;top:22px;left:22px}
@media(max-width:520px){body.auth-shell.login-page{padding:14px}.auth-shell .login-box{padding:27px 22px}.auth-shell .cu-language-switcher{top:14px;left:14px}.auth-theme-toggle{top:14px;right:14px}}

/* V2 component reset — prevents legacy module styles leaking into the shell. */
.mz-shell,.mz-shell *{box-sizing:border-box}
.mz-shell .topbar-left{display:flex;align-items:center;gap:18px;min-width:0;flex:1}
.mz-shell .topbar-search{position:relative;display:flex;align-items:center;gap:9px;width:min(100%,520px);max-width:520px;padding:0 12px!important;overflow:visible}
.mz-shell .topbar-search>i{position:static!important;flex:0 0 auto;transform:none!important;color:var(--ui-text-faint)!important}
.mz-shell .topbar-search input,
.mz-shell .topbar-search input:focus{
  width:100%!important;height:38px!important;min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-text)!important;
  box-shadow:none!important;outline:0!important;font-size:12px!important;line-height:38px!important;
}
.mz-shell .topbar-search .live-search-clear{position:static!important;display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;margin:0;padding:0;border:0;background:transparent;color:var(--ui-text-faint)}
.mz-shell .live-search-results{top:calc(100% + 8px);border:1px solid var(--ui-border);background:var(--ui-surface-raised);box-shadow:0 18px 45px rgba(18,26,40,.14)}
.mz-shell .live-search-item,.mz-shell .live-search-state{border-color:var(--ui-border)!important;color:var(--ui-text)!important}
.mz-shell .live-search-item:hover,.mz-shell .live-search-item.is-active{background:rgba(var(--brand-primary-rgb),.08)!important}

.mz-shell .admin-dashboard-hero{min-height:120px;padding:25px 27px!important;border-radius:15px!important}
.mz-shell .admin-dashboard-hero h1{margin:3px 0 7px;font-size:clamp(26px,2vw,34px)}
.mz-shell .admin-dashboard-hero p{line-height:1.55}
.mz-shell .executive-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mz-shell .executive-kpi{min-height:98px;padding:15px!important;gap:12px}
.mz-shell .executive-kpi-icon{width:42px;height:42px;flex-basis:42px;border-radius:11px!important}
.mz-shell .executive-kpi strong{font-size:22px}
.mz-shell .kpi-blue .executive-kpi-icon{background:#eaf3ff;color:#2477e8}
.mz-shell .kpi-purple .executive-kpi-icon{background:#edf3ff;color:#537bc5}
:root[data-theme="dark"] .mz-shell .executive-kpi-icon{background:rgba(var(--brand-primary-rgb),.13)!important;color:#77b2ff!important}
:root[data-theme="dark"] .mz-shell .kpi-teal .executive-kpi-icon{background:rgba(44,191,159,.12)!important;color:#63d2b8!important}
:root[data-theme="dark"] .mz-shell .kpi-amber .executive-kpi-icon,
:root[data-theme="dark"] .mz-shell .kpi-orange .executive-kpi-icon{background:rgba(229,157,59,.13)!important;color:#efbd74!important}

.mz-shell .dashboard-insight-grid,.mz-shell .dashboard-main-grid{gap:14px}
.mz-shell .finance-pulse>div{padding:14px;border-radius:10px}
.mz-shell .finance-pulse span,.mz-shell .attention-list small{color:var(--ui-text-soft)!important}
.mz-shell .finance-pulse strong,.mz-shell .attention-list strong{color:var(--ui-text)!important}
.mz-shell .attention-list>div{padding:11px;border-radius:10px}
.mz-shell .attention-list>div>i{background:rgba(229,157,59,.12)!important;color:var(--ui-warning)!important}

.mz-shell .cu-data-bars,
.mz-shell .finance-combo-chart,
.mz-shell .dashboard-bar-chart{
  border-color:var(--ui-border)!important;
  background-color:transparent!important;
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 46px,var(--ui-border) 47px,var(--ui-border) 48px)!important;
}
:root[data-theme="dark"] .mz-shell .cu-data-bars,
:root[data-theme="dark"] .mz-shell .finance-combo-chart,
:root[data-theme="dark"] .mz-shell .dashboard-bar-chart{
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 46px,rgba(255,255,255,.055) 47px,rgba(255,255,255,.055) 48px)!important;
}
.mz-shell .cu-data-month,.mz-shell .cu-data-legend,.mz-shell .cu-data-legend small{color:var(--ui-text-faint)!important}
.mz-shell .cu-data-columns .cu-income{background:#2db493!important}
.mz-shell .cu-data-columns .cu-expense{background:#ed6473!important}

.mz-shell .empty-state,.mz-shell .empty-state-soft,.mz-shell .communication-empty,.mz-shell .communication-placeholder{
  border:1px dashed var(--ui-border-strong)!important;border-radius:12px!important;
  background:var(--ui-surface-soft)!important;color:var(--ui-text-soft)!important;box-shadow:none!important;
}
.mz-shell .empty-state h3,.mz-shell .empty-state strong{color:var(--ui-text)!important}
.mz-shell .building-mini-metrics span{border:1px solid var(--ui-border)!important;background:var(--ui-surface-soft)!important;color:var(--ui-text-soft)!important}
.mz-shell .building-mini-metrics b,.mz-shell .dashboard-building-copy strong,.mz-shell .activity-copy strong{color:var(--ui-text)!important}
.mz-shell .dashboard-building-copy small,.mz-shell .activity-copy small,.mz-shell .dashboard-activity-list time{color:var(--ui-text-faint)!important}

.mz-shell .notification-panel,.mz-shell .admin-message-popover,.mz-shell details>div{border-color:var(--ui-border)!important;background:var(--ui-surface-raised)!important;color:var(--ui-text)!important;box-shadow:0 18px 45px rgba(18,26,40,.14)}
.mz-shell .notification-bell,.mz-shell .admin-message-notifications>summary,.mz-shell .cu-language-switcher select{border-color:var(--ui-border)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important}
:root[data-theme="dark"] .mz-shell .card,:root[data-theme="dark"] .mz-shell .executive-kpi{box-shadow:none!important}
@media(max-width:1280px){.mz-shell .executive-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mz-shell .executive-kpi-grid{grid-template-columns:1fr}.mz-shell .admin-dashboard-hero{padding:22px!important}}

/* Entity management — buildings and residents */
.entity-page-head{align-items:center!important}
.entity-page-head .btn,.page-head>[data-details-open]{flex:0 0 auto}
.entity-editor{margin:0 0 18px!important;padding:0!important;overflow:hidden;border:1px solid var(--ui-border)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}
.entity-editor>summary{display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:70px;padding:16px 20px!important;cursor:pointer;list-style:none;background:var(--ui-surface)!important;color:var(--ui-text)!important;font-size:14px;font-weight:760}
.entity-editor>summary::-webkit-details-marker{display:none}
.entity-editor>summary::after{content:"\ea5f";font-family:"tabler-icons";font-size:18px;color:var(--ui-text-faint);transition:transform .18s ease}
.entity-editor[open]>summary{border-bottom:1px solid var(--ui-border)}
.entity-editor[open]>summary::after{transform:rotate(180deg)}
.entity-editor .faq-answer{padding:22px!important;background:var(--ui-surface)!important}
.entity-editor form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.entity-editor .form-group{margin:0!important;min-width:0}
.entity-editor .form-group label{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:var(--ui-text);font-size:11px;font-weight:760}
.entity-editor .form-group small{display:block;margin-top:6px;color:var(--ui-text-faint);font-size:10px;line-height:1.45}
.entity-editor input,.entity-editor select{width:100%;height:44px}
.entity-editor textarea{width:100%;min-height:96px;resize:vertical}
.entity-editor .form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;margin-top:4px;padding-top:18px;border-top:1px solid var(--ui-border)}
.entity-editor .form-span-2{grid-column:1/-1}
.fixed-context-value{min-height:62px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-soft)!important}
.password-generator-row{display:flex;gap:8px}.password-generator-row input{min-width:0}.password-generator-row .btn{flex:0 0 auto}
.choice-card{display:block;cursor:pointer}
.choice-card>input{position:absolute;opacity:0;pointer-events:none}
.choice-card>span{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-surface-soft);transition:.15s ease}
.choice-card>span>i{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:9px;background:rgba(var(--brand-primary-rgb),.1);color:var(--brand-primary);font-size:17px}
.choice-card>span>span{display:grid;gap:3px}.choice-card strong{font-size:12px}.choice-card small{color:var(--ui-text-soft);font-size:10px;line-height:1.45}
.choice-card>input:checked+span{border-color:var(--brand-primary);background:rgba(var(--brand-primary-rgb),.07);box-shadow:0 0 0 3px rgba(var(--brand-primary-rgb),.08)}

.entity-directory{margin-top:0!important;padding:20px!important}
.entity-directory .section-head{margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid var(--ui-border)}
.entity-directory .section-count{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid var(--ui-border);border-radius:99px;background:var(--ui-surface-soft);color:var(--ui-text-soft);font-size:10px;font-weight:750}
.entity-directory .building-directory-toolbar,.entity-directory .resident-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--ui-border)}
.entity-directory .building-directory-search,.entity-directory .resident-search-wrap{position:relative;flex:1;max-width:none}
.entity-directory .building-directory-search>i,.entity-directory .resident-search-wrap>i{position:absolute;z-index:2;left:13px;top:50%;transform:translateY(-50%);color:var(--ui-text-faint)}
.entity-directory .building-directory-search input,.entity-directory .resident-search-wrap input{width:100%;height:42px;padding-left:38px!important}
.entity-directory .building-directory-sort{display:flex;align-items:center;gap:8px}.entity-directory .building-directory-sort label{display:none}.entity-directory .building-directory-sort select{width:auto;min-width:130px;height:42px}
.entity-directory .table-wrap{border:1px solid var(--ui-border);border-radius:12px;overflow:auto}
.entity-directory table{margin:0;border-collapse:separate;border-spacing:0}
.entity-directory th{height:42px;padding:0 14px!important;font-size:9px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.entity-directory td{padding:13px 14px!important;font-size:11px;vertical-align:middle}
.entity-directory tbody td{background:var(--ui-surface)!important}
.entity-directory tbody tr:hover td{background:rgba(var(--brand-primary-rgb),.055)!important}
.entity-directory td:nth-child(2){color:var(--ui-text)!important;font-weight:750}
.entity-directory tbody tr:last-child td{border-bottom:0!important}
.entity-directory .table-actions{display:flex;justify-content:flex-end;gap:5px}.entity-directory .action-btn{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text-soft)}
.entity-directory .action-btn:hover{border-color:var(--brand-primary);color:var(--brand-primary);background:rgba(var(--brand-primary-rgb),.06)}

.context-building-banner{border-color:var(--ui-border)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)}
.stats-grid{gap:12px!important;margin:0 0 18px!important}.stat-card{min-height:92px;padding:15px!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important;box-shadow:none!important}.stat-card .stat-icon{width:40px;height:40px;border-radius:10px}.stat-card strong{color:var(--ui-text)!important;font-size:21px}.stat-card span{color:var(--ui-text-soft)!important;font-size:10px}
.residents-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.resident-card{padding:16px!important;border:1px solid var(--ui-border)!important;border-radius:12px!important;background:var(--ui-surface)!important;box-shadow:none!important;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.resident-card:hover{border-color:var(--ui-border-strong)!important;transform:translateY(-1px);box-shadow:var(--ui-shadow)!important}
.resident-avatar{width:40px!important;height:40px!important;background:rgba(var(--brand-primary-rgb),.11)!important;color:var(--brand-primary)!important}
.resident-main h4{margin:0;color:var(--ui-text)!important;font-size:13px}.resident-main span{color:var(--ui-text-faint)!important;font-size:10px}
.resident-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.resident-meta>div{padding:9px!important;border:1px solid var(--ui-border)!important;border-radius:9px!important;background:var(--ui-surface-soft)!important}.resident-meta small,.resident-login small{color:var(--ui-text-faint)!important;font-size:8px}.resident-meta strong{color:var(--ui-text)!important;font-size:10px}
.resident-login{border-color:var(--ui-border)!important}.resident-login span{color:var(--ui-text-soft)!important}
.resident-activity{gap:6px!important}.resident-activity span{border:1px solid var(--ui-border);background:var(--ui-surface-soft)!important;color:var(--ui-text-soft)!important}
.resident-actions{padding-top:13px!important;border-top:1px solid var(--ui-border);gap:7px!important}.resident-actions .btn{height:34px!important;padding:0 10px!important;font-size:10px!important}.resident-actions .action-btn{width:34px;height:34px}
.badge{border-radius:99px!important;font-size:9px!important}.badge-success{background:rgba(22,135,93,.1)!important;color:var(--ui-success)!important}.badge-warning{background:rgba(183,110,0,.1)!important;color:var(--ui-warning)!important}
@media(max-width:1150px){.residents-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){.entity-editor form{grid-template-columns:1fr}.entity-editor .form-span-2{grid-column:auto}.entity-editor .form-actions{grid-column:auto;flex-direction:column}.entity-editor .form-actions .btn{width:100%}.entity-directory .building-directory-toolbar,.entity-directory .resident-toolbar,.entity-directory .building-directory-sort{align-items:stretch;flex-direction:column}.entity-directory .building-directory-sort select{width:100%}.resident-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}.entity-page-head .btn,.page-head>[data-details-open]{width:100%}}

/* Building operations */
.operations-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}.operations-main,.operations-side{display:grid;gap:16px}.operations-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}.compact-directory{padding:18px!important}.contractor-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid var(--ui-border)}.contractor-row:last-child{border:0}.contractor-row>i{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;background:rgba(var(--brand-primary-rgb),.1);color:var(--brand-primary)}.contractor-row>div{display:grid;gap:2px}.contractor-row small,.muted{color:var(--ui-text-faint);font-size:10px}.operation-list{display:grid}.operation-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:13px;align-items:start;padding:15px 2px;border-bottom:1px solid var(--ui-border)}.operation-row:last-child{border:0}.operation-state{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:rgba(var(--brand-primary-rgb),.1);color:var(--brand-primary);font-size:18px}.priority-urgent .operation-state{background:rgba(209,60,75,.12);color:var(--ui-danger)}.operation-title{display:flex;align-items:center;gap:8px}.operation-row p{margin:5px 0;color:var(--ui-text-soft);font-size:11px}.operation-row small{color:var(--ui-text-faint);font-size:9px}.operation-cost{display:flex;align-items:center;gap:9px;color:var(--ui-text);font-size:11px;font-weight:750}.operations-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.operations-bottom>.card{padding:20px!important}.inline-editor{margin:0 0 12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface-soft)}.inline-editor>summary{padding:12px 14px;cursor:pointer;color:var(--brand-primary);font-size:11px;font-weight:750}.inline-editor form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 12px 12px}.inline-editor textarea,.inline-editor button{grid-column:1/-1}.inline-editor input,.inline-editor select{height:39px}.mini-list>div{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--ui-border)}.mini-list>div>i{color:var(--brand-primary);font-size:17px}.mini-list span{display:grid;gap:3px}.mini-list small{color:var(--ui-text-faint);font-size:9px}
@media(max-width:1100px){.operations-layout{grid-template-columns:1fr}.operations-side{grid-template-columns:1fr 1fr}.operations-bottom{grid-template-columns:1fr}}@media(max-width:700px){.operations-side{grid-template-columns:1fr}.operations-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.operation-row{grid-template-columns:36px 1fr}.operation-cost{grid-column:2}.inline-editor form{grid-template-columns:1fr}.inline-editor textarea,.inline-editor button{grid-column:auto}}
.order-quick-update{display:flex;gap:7px;margin-top:10px}.order-quick-update select,.order-quick-update input{width:auto;min-width:120px;height:34px!important;font-size:10px}.order-quick-update .btn{height:34px!important;font-size:10px}@media(max-width:700px){.order-quick-update{flex-direction:column}.order-quick-update select,.order-quick-update input{width:100%}}
@media(max-width:1380px) and (min-width:901px){.mz-shell .topbar-search{max-width:390px}.mz-shell .topbar-left{gap:12px}}
