/* Najmex Premium SaaS UI 2026/2027 – real redesign for Web panels
   Scope: landlord, tenant, BOK, admin. This file is intentionally loaded last. */
:root{
  --nx26-bg:#f2f6fb;
  --nx26-panel:#ffffff;
  --nx26-panel-soft:#f8fbff;
  --nx26-ink:#0d1726;
  --nx26-muted:#607085;
  --nx26-faint:#91a0b4;
  --nx26-line:#e4ebf3;
  --nx26-line-strong:#d8e2ef;
  --nx26-navy:#05162b;
  --nx26-navy-2:#08213e;
  --nx26-navy-3:#0b2b51;
  --nx26-cyan:#15c7c9;
  --nx26-blue:#1976d2;
  --nx26-green:#16b68f;
  --nx26-warn:#f59e0b;
  --nx26-red:#ef4444;
  --nx26-radius:18px;
  --nx26-radius-sm:12px;
  --nx26-shadow:0 18px 44px rgba(12, 30, 56, .09);
  --nx26-shadow-soft:0 10px 26px rgba(12, 30, 56, .065);
  --nx26-sidebar-w:266px;
  --nx26-topbar-h:72px;
  --nx26-font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Global polish ===== */
html{scroll-behavior:smooth;background:var(--nx26-bg)}
body{
  font-family:var(--nx26-font) !important;
  color:var(--nx26-ink) !important;
  background:
    radial-gradient(circle at 20% -10%, rgba(21,199,201,.14), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(25,118,210,.10), transparent 26rem),
    linear-gradient(180deg,#f8fbff 0%,#f2f6fb 42%,#eef4fb 100%) !important;
  font-size:14px !important;
  line-height:1.58 !important;
  letter-spacing:-.01em;
}
body, button, input, select, textarea{font-family:var(--nx26-font) !important}
body :where(strong,b){font-weight:600 !important}
body :where(h1,h2,h3,h4,.title,.section-title,.val){letter-spacing:-.035em !important;font-weight:650 !important}
body :where(.muted,.meta,.nx-sub){color:var(--nx26-muted) !important}
body :where(a){text-decoration:none}

/* Kill old top navigation for landlord / tenant. New shell is fixed. */
body.nx26-app-body .nm-header{display:none !important}
body.nx26-app-body{
  padding-left:var(--nx26-sidebar-w) !important;
  padding-top:var(--nx26-topbar-h) !important;
  min-height:100vh;
}

/* ===== Landlord/Tenant fixed shell ===== */
.nx26-sidebar{
  position:fixed;inset:0 auto 0 0;width:var(--nx26-sidebar-w);z-index:1100;
  background:
    radial-gradient(circle at 20% 0%, rgba(21,199,201,.22), transparent 15rem),
    linear-gradient(180deg,var(--nx26-navy) 0%, #041121 55%, #030b17 100%);
  color:#dceafd;display:flex;flex-direction:column;padding:18px 14px;
  box-shadow:18px 0 45px rgba(4,17,33,.24);
}
.nx26-brand{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 4px 0 6px;margin-bottom:16px}
.nx26-brand-logo{display:flex;align-items:center;min-width:0}.nx26-brand-logo img{max-width:138px;max-height:34px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.2))}
.nx26-close{display:none;width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.nx26-side-profile{display:flex;gap:11px;align-items:center;padding:12px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.095);margin-bottom:14px}
.nx26-side-avatar{width:40px;height:40px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1bd1d2,#1d76cf);color:white;font-weight:650;box-shadow:0 12px 26px rgba(21,199,201,.18)}
.nx26-side-profile-text{display:flex;flex-direction:column;min-width:0}.nx26-side-profile-text strong{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nx26-side-profile-text span{font-size:12px;color:#9fb3cc}
.nx26-nav{display:flex;flex-direction:column;gap:4px;overflow:auto;padding:2px 2px 10px;margin-right:-4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
.nx26-nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:42px;border-radius:13px;padding:10px 11px;color:#d8e6f6;text-decoration:none;font-size:13px;font-weight:480;letter-spacing:-.01em;transition:background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;border:1px solid transparent}
.nx26-nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(2px)}
.nx26-nav a.active{background:linear-gradient(135deg,rgba(21,199,201,.22),rgba(25,118,210,.15));color:#fff;border-color:rgba(21,199,201,.28);box-shadow:0 10px 28px rgba(0,0,0,.14)}
.nx26-nav a.active::before{content:"";position:absolute;left:-7px;top:11px;bottom:11px;width:3px;border-radius:99px;background:var(--nx26-cyan)}
.nx26-nav a.is-disabled{opacity:.56}.nx26-nav a em{margin-left:auto;font-style:normal;font-size:10px;color:#98afc8;border:1px solid rgba(255,255,255,.12);padding:2px 6px;border-radius:99px}.nx26-nav-ico{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;color:#9ed9ef}.nx26-nav-ico svg{width:18px;height:18px}.nx26-nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx26-trust-card{margin-top:auto;display:flex;gap:11px;align-items:center;border-radius:18px;padding:14px 13px;background:linear-gradient(135deg,rgba(21,199,201,.15),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.10);color:#fff}.nx26-trust-icon{width:38px;height:38px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:rgba(21,199,201,.22);border:1px solid rgba(21,199,201,.3);font-size:18px}.nx26-trust-card strong{display:block;font-size:13px}.nx26-trust-card span{display:block;font-size:11px;color:#a8bdd5;line-height:1.35;margin-top:2px;max-height:32px;overflow:hidden}
.nx26-topbar{position:fixed;left:var(--nx26-sidebar-w);right:0;top:0;height:var(--nx26-topbar-h);z-index:1050;background:rgba(248,251,255,.86);backdrop-filter:saturate(150%) blur(16px);border-bottom:1px solid rgba(216,226,239,.82);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 26px;box-shadow:0 8px 28px rgba(12,30,56,.055)}
.nx26-top-left,.nx26-top-actions{display:flex;align-items:center;gap:12px;min-width:0}.nx26-burger{display:none;width:42px;height:42px;border-radius:14px;border:1px solid var(--nx26-line);background:#fff;color:#0d1726;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--nx26-shadow-soft)}.nx26-burger svg{width:20px;height:20px}.nx26-breadcrumb{display:flex;flex-direction:column;min-width:0}.nx26-breadcrumb span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8b9bb0;font-weight:560}.nx26-breadcrumb strong{font-size:18px;font-weight:650;color:#0b1829;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
.nx26-primary{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 16px;border-radius:14px;background:linear-gradient(135deg,#12bfc2,#1674ce);color:#fff !important;font-weight:600;font-size:13px;text-decoration:none;box-shadow:0 12px 26px rgba(21,199,201,.20);white-space:nowrap}
.nx26-icon-action{position:relative;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;border:1px solid var(--nx26-line);background:#fff;color:#143052;box-shadow:var(--nx26-shadow-soft)}.nx26-icon-action svg{width:19px;height:19px}.nx26-icon-action span{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:99px;background:#ef4444;color:#fff;border:2px solid #fff;font-size:10px;display:none;align-items:center;justify-content:center;padding:0 5px;font-weight:650}.nx26-user-pill{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px 0 5px;border-radius:999px;border:1px solid var(--nx26-line);background:#fff;color:#0d1726;box-shadow:var(--nx26-shadow-soft);max-width:260px}.nx26-user-pill span{width:32px;height:32px;border-radius:13px;background:linear-gradient(135deg,#05162b,#1976d2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:650;flex:0 0 32px}.nx26-user-pill b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:560!important}
.nx26-mobile-backdrop{display:none;position:fixed;inset:0;background:rgba(3,11,23,.52);z-index:1090;backdrop-filter:blur(3px)}

/* ===== Main content reshape for landlord / tenant ===== */
body.nx26-app-body :where(.page,.container,.wrap,.nm-container,.content,.main-content){max-width:1280px !important;margin-left:auto !important;margin-right:auto !important;padding:24px 28px !important}
body.nx26-app-body :where(.page){padding-top:22px !important}
body.nx26-app-body :where(.card,.box,.panel,.tile,.stat,.summary-card,.kpi-card,section.card){
  background:rgba(255,255,255,.88) !important;
  border:1px solid rgba(216,226,239,.95) !important;
  border-radius:var(--nx26-radius) !important;
  box-shadow:var(--nx26-shadow-soft) !important;
  color:var(--nx26-ink) !important;
}
body.nx26-app-body :where(.card,section.card){padding:18px !important;margin-bottom:18px !important}
body.nx26-app-body .dash-hero{
  position:relative;overflow:hidden;border:0 !important;border-radius:24px !important;padding:28px !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(21,199,201,.32), transparent 18rem),
    linear-gradient(135deg,#041326 0%,#092442 54%,#0d4268 100%) !important;
  box-shadow:0 24px 60px rgba(5,22,43,.25) !important;
}
body.nx26-app-body .dash-hero::after{content:"";position:absolute;right:-85px;bottom:-120px;width:320px;height:320px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:radial-gradient(circle,rgba(255,255,255,.10),transparent 62%);pointer-events:none}.dash-hero>*{position:relative;z-index:1}
body.nx26-app-body .dash-hero__title{font-size:clamp(28px,3.2vw,44px) !important;font-weight:650 !important;line-height:1.06 !important;letter-spacing:-.055em !important;color:#fff !important;max-width:760px}.dash-hero__text{color:rgba(226,239,255,.84) !important}.dash-chip{background:rgba(255,255,255,.10) !important;border-color:rgba(255,255,255,.16) !important;color:#e8f6ff !important;font-weight:520 !important}.dash-hero__stat{border-radius:18px !important;background:rgba(255,255,255,.09) !important;border:1px solid rgba(255,255,255,.14) !important;box-shadow:none !important}.dash-hero__stat .k{font-weight:560 !important;color:rgba(226,239,255,.72) !important}.dash-hero__stat strong{font-weight:650 !important;color:#fff !important}
body.nx26-app-body .toolbar-panel{background:rgba(255,255,255,.75) !important;backdrop-filter:blur(14px)}
body.nx26-app-body .kpi-grid{gap:14px !important}.kpi-card{text-align:left !important;position:relative;overflow:hidden}.kpi-card::before{content:"";position:absolute;inset:auto 16px 0 16px;height:3px;border-radius:99px;background:linear-gradient(90deg,var(--nx26-cyan),rgba(25,118,210,.15))}.kpi-card .label{font-size:12px !important;text-transform:none !important;letter-spacing:0 !important}.kpi-card .val{font-size:clamp(22px,2vw,30px) !important;font-weight:650 !important;color:#0a1830 !important;margin:4px 0 8px !important}
body.nx26-app-body :where(.item,.prop){border-radius:16px !important;border:1px solid var(--nx26-line) !important;background:#fff !important;box-shadow:none !important;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}.item:hover,.prop:hover{transform:translateY(-2px) !important;box-shadow:0 16px 34px rgba(12,30,56,.085) !important;border-color:#cfe0f0 !important}
body.nx26-app-body :where(.btn,button.btn,a.btn,input[type=submit],button[type=submit]){border-radius:13px !important;font-weight:560 !important;border:1px solid transparent !important;box-shadow:none !important;letter-spacing:-.01em !important}.btn:not(.ghost):not(.small){background:linear-gradient(135deg,#12bfc2,#1976d2) !important;color:#fff !important}.btn.small{border-radius:11px !important}.btn.ghost{background:#f7fbff !important;color:#11304f !important;border-color:#dbe8f5 !important}.btn:hover{filter:brightness(.99) !important;transform:translateY(-1px)}
body.nx26-app-body :where(input,select,textarea){border-radius:13px !important;border:1px solid var(--nx26-line-strong) !important;background:#fff !important;box-shadow:0 1px 0 rgba(12,30,56,.02) !important;color:#0d1726 !important;font-weight:450 !important}body.nx26-app-body :where(input:focus,select:focus,textarea:focus){outline:3px solid rgba(21,199,201,.15) !important;border-color:#87dfe2 !important}
body.nx26-app-body table{border:0 !important;border-spacing:0 8px !important;border-collapse:separate !important;background:transparent !important;overflow:visible !important}body.nx26-app-body thead th{font-size:11px !important;text-transform:uppercase !important;letter-spacing:.06em !important;color:#7a899d !important;background:transparent !important;border:0 !important;font-weight:600 !important}body.nx26-app-body tbody td{background:#fff !important;border-top:1px solid var(--nx26-line) !important;border-bottom:1px solid var(--nx26-line) !important}body.nx26-app-body tbody td:first-child{border-left:1px solid var(--nx26-line) !important;border-radius:14px 0 0 14px}body.nx26-app-body tbody td:last-child{border-right:1px solid var(--nx26-line) !important;border-radius:0 14px 14px 0}body.nx26-app-body tr:hover td{background:#f9fcff !important}
body.nx26-app-body :where(.badge,.chip,.pill){border-radius:999px !important;font-weight:520 !important;letter-spacing:-.01em !important}.badge.ok,.chip.ok{background:#eafbf5 !important;border-color:#bcefe0 !important;color:#08795f !important}.badge.warn{background:#fff7e8 !important;border-color:#ffe0a3 !important;color:#9a5b00 !important}.badge.err{background:#fff0f0 !important;border-color:#ffc9c9 !important;color:#b42323 !important}.badge.info{background:#eef7ff !important;border-color:#cfe7ff !important;color:#125d9d !important}
body.nx26-app-body :where(.empty){border-radius:18px !important;background:linear-gradient(180deg,#fff,#f8fbff) !important;border:1px dashed #cddaea !important;color:#75849a !important}.alert{border-radius:18px !important;box-shadow:var(--nx26-shadow-soft) !important}
body.nx26-app-body :where(.section-title[style], .item [style*="font-weight:700"], .item [style*="font-weight: 700"], .row [style*="font-weight:700"], .row [style*="font-weight: 700"]){font-weight:560 !important}.meta b,.muted b{font-weight:560 !important}.title[style],.val[style]{font-weight:650 !important}

/* Tenant dashboard extra */
body.nx26-role-tenant .hero, body.nx26-role-tenant .tenant-hero{border-radius:24px !important;background:linear-gradient(135deg,#041326,#0a3458) !important;color:#fff !important;box-shadow:0 24px 60px rgba(5,22,43,.24) !important}body.nx26-role-tenant .hero :where(.muted,.meta), body.nx26-role-tenant .tenant-hero :where(.muted,.meta){color:rgba(232,246,255,.78) !important}

/* ===== Admin + BOK premium SaaS shell ===== */
body.nx-admin-page, body.nx-bok-shell{background:
  radial-gradient(circle at 20% -10%, rgba(21,199,201,.12), transparent 28rem),
  linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%) !important;color:var(--nx26-ink) !important;font-family:var(--nx26-font) !important}
.nx-admin-shell{background:transparent !important;min-height:100vh !important}.nx-sidebar{background:radial-gradient(circle at 20% 0%,rgba(21,199,201,.20),transparent 15rem),linear-gradient(180deg,#05162b 0%,#041121 100%) !important;color:#e5f1ff !important;border-right:0 !important;box-shadow:18px 0 45px rgba(4,17,33,.22) !important}.nx-brand{border-radius:18px !important;background:rgba(255,255,255,.05) !important;border:1px solid rgba(255,255,255,.09) !important;padding:12px !important;margin:4px 0 18px !important}.nx-brand-title{font-weight:650 !important;letter-spacing:.20em !important}.nx-brand-sub{color:#9fb3cc !important;font-weight:460 !important}.nx-nav a{border-radius:13px !important;color:#d8e6f6 !important;font-weight:470 !important;border:1px solid transparent !important;min-height:40px !important}.nx-nav a:hover{background:rgba(255,255,255,.07) !important;color:#fff !important}.nx-nav a.active{background:linear-gradient(135deg,rgba(21,199,201,.22),rgba(25,118,210,.15)) !important;border-color:rgba(21,199,201,.28) !important;color:#fff !important;box-shadow:0 10px 28px rgba(0,0,0,.14) !important}.nx-nav .nx-ico{color:#9ed9ef !important}.nx-admin-nav-section,.nx-menu-heading,.nx-sub{font-weight:560 !important;color:#8fa7c2 !important;letter-spacing:.08em !important}.nx-main{background:transparent !important}.nx-topbar{background:rgba(248,251,255,.86) !important;backdrop-filter:saturate(150%) blur(16px) !important;border-bottom:1px solid rgba(216,226,239,.86) !important;box-shadow:0 8px 28px rgba(12,30,56,.055) !important}.nx-content{max-width:1320px !important;padding:26px 28px !important}.nx-pagehead{background:transparent !important;border:0 !important;margin-bottom:18px !important}.nx-pagehead h1{font-size:26px !important;font-weight:650 !important;letter-spacing:-.045em !important;color:#0a1830 !important}.nx-pagehead p{color:var(--nx26-muted) !important}.nx-search{border-radius:16px !important;border:1px solid var(--nx26-line) !important;background:#fff !important;box-shadow:var(--nx26-shadow-soft) !important}.nx-search input{font-weight:450 !important}.nx-round,.nx-profile,.nx-admin-profile-btn,.nx-profile-trigger{border-radius:15px !important;border:1px solid var(--nx26-line) !important;background:#fff !important;box-shadow:var(--nx26-shadow-soft) !important;color:#10243d !important}.nx-avatar{background:linear-gradient(135deg,#05162b,#1976d2) !important;color:#fff !important}.nx-profile-dropdown,.nx-admin-profile-menu{border-radius:18px !important;border:1px solid var(--nx26-line) !important;box-shadow:var(--nx26-shadow) !important;overflow:hidden !important}.nx-content :where(.card,.box,.panel,.tile,.stat-card,.kpi,.metric,section){border-radius:var(--nx26-radius) !important;border-color:var(--nx26-line) !important;box-shadow:var(--nx26-shadow-soft) !important}.nx-content :where(.btn,a.btn,button.btn){border-radius:13px !important;font-weight:560 !important}.nx-content table{border-collapse:separate !important;border-spacing:0 8px !important;border:0 !important}.nx-content th{background:transparent !important;border:0 !important;font-size:11px !important;text-transform:uppercase !important;letter-spacing:.06em !important;color:#7a899d !important;font-weight:600 !important}.nx-content td{background:#fff !important;border-top:1px solid var(--nx26-line) !important;border-bottom:1px solid var(--nx26-line) !important}.nx-content td:first-child{border-left:1px solid var(--nx26-line) !important;border-radius:14px 0 0 14px}.nx-content td:last-child{border-right:1px solid var(--nx26-line) !important;border-radius:0 14px 14px 0}

/* BOK old generic wrap fallback */
body.bok :where(.card,.box,.panel,.tile){background:#fff !important;border:1px solid var(--nx26-line) !important;border-radius:18px !important;box-shadow:var(--nx26-shadow-soft) !important}body.bok :where(h1,h2,h3,.title){font-weight:650 !important;letter-spacing:-.04em !important}body.bok :where(.btn,button,a.btn){border-radius:13px !important;font-weight:560 !important}

/* Footer in dashboard layout */
body.nx26-app-body footer.simple-footer{left:auto !important;transform:none !important;width:auto !important;margin-left:28px !important;margin-right:28px !important;border-radius:22px 22px 0 0 !important;background:rgba(255,255,255,.62) !important;border:1px solid rgba(216,226,239,.82) !important;border-bottom:0 !important;box-shadow:var(--nx26-shadow-soft) !important}

@media (max-width:1180px){
  body.nx26-app-body{padding-left:0 !important}.nx26-sidebar{transform:translateX(-104%);transition:transform .22s ease}.nx26-topbar{left:0}.nx26-burger,.nx26-close{display:flex}.nx26-menu-open .nx26-sidebar{transform:translateX(0)}.nx26-menu-open .nx26-mobile-backdrop{display:block}.nx26-breadcrumb strong{max-width:54vw}.nx26-user-pill b{display:none}.nx26-primary{display:none}
}
@media (max-width:780px){
  :root{--nx26-topbar-h:66px}.nx26-topbar{padding:10px 14px}.nx26-top-actions{gap:8px}.nx26-icon-action{width:40px;height:40px}.nx26-user-pill{height:40px;padding-right:5px}.nx26-breadcrumb span{display:none}.nx26-breadcrumb strong{font-size:16px;max-width:44vw}body.nx26-app-body :where(.page,.container,.wrap,.nm-container,.content,.main-content),.nx-content{padding:16px 14px !important}.dash-hero{grid-template-columns:1fr !important;padding:22px !important}.dash-hero__title{font-size:28px !important}.kpi-grid{grid-template-columns:1fr !important}.grid{grid-template-columns:1fr !important}.toolbar-panel__grid{grid-template-columns:1fr !important}.toolbar-panel__actions{justify-content:flex-start !important}.item{grid-template-columns:1fr !important}.item>.dot{display:none}.item>div[style*="text-align:right"]{text-align:left !important}.props{grid-template-columns:1fr !important}body.nx26-app-body footer.simple-footer{margin-left:14px !important;margin-right:14px !important}
}
@media (max-width:520px){
  .nx26-sidebar{width:min(92vw,310px)}.nx26-topbar{gap:8px}.nx26-breadcrumb strong{max-width:38vw}.nx26-user-pill{display:none}.nx26-icon-action:nth-of-type(1){display:none}.btn,.btn.ghost,.btn.small{width:auto;max-width:100%;white-space:normal}.row{gap:8px !important}
}
