:root{--maroon:#7b1113;--maroon2:#9b1c1f;--gold:#d4af37;--ink:#21242a;--muted:#667085;--bg:#f6f7fb;--card:#fff;--line:#e9edf5;--green:#1f9d55;--red:#cf2e2e;--yellow:#e5a900;--blue:#2e77d0;--dark:#343a40}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:var(--maroon)}.container{width:min(1180px,94%);margin:auto}.topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.nav{height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:800;font-size:20px}.brand img{height:54px;max-width:150px;object-fit:contain}.menu{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.menu a{color:#333;font-weight:650;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;cursor:pointer;font-weight:750;background:var(--maroon);color:#fff;box-shadow:0 8px 20px rgba(123,17,19,.18)}.btn:hover{filter:brightness(.95)}.btn.secondary{background:#fff;color:var(--maroon);border:1px solid #ecd5d6;box-shadow:none}.btn.gold{background:var(--gold);color:#3a2500}.btn.small{padding:7px 10px;border-radius:9px;font-size:12px}.hero{background:linear-gradient(120deg,#fff 0%,#fff7f7 55%,#f5e8cf 100%);padding:58px 0;border-bottom:1px solid var(--line)}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}.eyebrow{display:inline-block;background:#fff3d0;border:1px solid #f1d98c;color:#6b5000;border-radius:999px;padding:6px 12px;font-weight:800;font-size:12px}.hero h1{font-size:44px;line-height:1.07;margin:16px 0;color:var(--maroon)}.hero p{font-size:17px;line-height:1.7;color:#4d5562}.hero-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 24px 60px rgba(44,42,42,.08)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat{background:#fbfcff;border:1px solid var(--line);border-radius:16px;padding:16px}.stat b{font-size:24px;color:var(--maroon)}.section{padding:42px 0}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px;gap:16px}.section-title h2{margin:0;font-size:28px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(17,24,39,.04)}.card h3{margin:0 0 9px}.muted{color:var(--muted)}.property-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.property{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.property-body{padding:16px}.pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;background:#eef2f7;color:#475467}.pill.Available,.pill.available{background:#dcfae6;color:#057647}.pill.Reserved,.pill.reserved{background:#fff6d9;color:#936a00}.pill.Payment,.pill.payment-verification{background:#dbeafe;color:#1d4ed8}.pill.Booked,.pill.booked{background:#dbeafe;color:#1d4ed8}.pill.Sold,.pill.sold{background:#ffe4e8;color:#b42318}.pill.Blocked,.pill.blocked{background:#e5e7eb;color:#374151}.inventory-map{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:10px;padding:14px;background:#f9fafb;border:1px solid var(--line);border-radius:18px}.unit{min-height:72px;border-radius:12px;padding:8px;border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;font-weight:800}.unit.available{background:var(--green)}.unit.reserved{background:var(--yellow);color:#241a00}.unit.payment-verification,.unit.booked{background:var(--blue)}.unit.sold{background:var(--red)}.unit.blocked{background:var(--dark)}.form-wrap{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 16px 50px rgba(17,24,39,.06)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.field label{display:block;font-weight:750;margin-bottom:7px;font-size:13px;color:#344054}.field input,.field select,.field textarea{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:12px;background:#fff;font-size:14px}.field textarea{min-height:86px}.span2{grid-column:span 2}.alert{padding:12px 16px;border-radius:12px;margin:12px 0;font-weight:650}.alert.error{background:#ffe4e8;color:#a11010}.alert.success{background:#dcfae6;color:#067647}.footer{background:#2b0a0b;color:#fff;padding:35px 0;margin-top:40px}.footer a{color:#fff}.app{display:grid;grid-template-columns:270px 1fr;min-height:100vh}.sidebar{background:#33090b;color:#fff;padding:22px;position:sticky;top:0;height:100vh;overflow:auto}.sidebar .brand{color:#fff;margin-bottom:24px}.sidebar img{height:46px;background:#fff;border-radius:10px}.side-menu{display:flex;flex-direction:column;gap:8px}.side-menu a{color:#fff;padding:12px 13px;border-radius:12px;font-weight:700}.side-menu a:hover,.side-menu a.active{background:rgba(255,255,255,.12)}.main{padding:24px}.topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.kpi b{font-size:27px;color:var(--maroon)}table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:top}th{background:#fff8f0;color:#4a1d1f;font-weight:850}.table-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;overflow:auto}.tree{display:flex;justify-content:center;overflow:auto}.node{text-align:center;margin:10px;min-width:150px}.node-card{background:#fff;border:2px solid #ecd5d6;border-radius:16px;padding:12px;box-shadow:0 8px 24px rgba(17,24,39,.06);cursor:pointer}.node-card:hover{border-color:var(--maroon)}.children{display:flex;justify-content:center;gap:12px;margin-top:18px}.badge{font-size:12px;border-radius:999px;padding:3px 8px;background:#fff0bf;color:#674800;font-weight:800}.detail-panel{position:fixed;right:20px;bottom:20px;width:330px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 50px rgba(0,0,0,.14);padding:18px;display:none;z-index:20}.close{float:right;cursor:pointer;font-size:20px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.filters select,.filters input{padding:10px;border:1px solid #d0d5dd;border-radius:10px}.legal-content{line-height:1.8}.price{font-size:24px;color:var(--maroon);font-weight:900}@media(max-width:900px){.hero-grid,.cards,.form-grid,.form-grid.three,.kpis{grid-template-columns:1fr}.app{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.menu{display:none}.span2{grid-column:span 1}.hero h1{font-size:34px}.children{flex-direction:column;align-items:center}.detail-panel{left:15px;right:15px;width:auto}}

/* Login/logout navbar + clean logo fix */
.brand img{height:46px;max-width:170px;width:auto;object-fit:contain;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;border-radius:0!important;}
.topbar .brand img{display:block;}
.menu a.btn,.menu a.btn:visited{color:#fff!important;background:var(--maroon)!important;min-width:58px;text-align:center;white-space:nowrap;}
.menu a.btn.secondary,.menu a.btn.secondary:visited{background:#fff!important;color:var(--maroon)!important;border:1px solid #ecd5d6!important;box-shadow:none!important;}
.menu{gap:16px;align-items:center;}
.nav{min-height:70px;}
.sidebar img{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;}
@media(max-width:900px){.menu{display:flex;gap:10px;justify-content:flex-end}.menu a{font-size:12px}.brand span{font-size:16px}.brand img{height:38px;max-width:130px}}


/* Relation Group uploaded logo + navbar visibility fix v2 */
.brand{gap:10px;min-width:max-content;}
.topbar .brand img{height:48px!important;max-width:250px!important;width:auto!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;border-radius:0!important;}
.sidebar .brand img{height:54px!important;max-width:210px!important;width:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;}
.menu a.btn,.menu a.btn:visited,.menu a.btn:active{display:inline-flex!important;opacity:1!important;visibility:visible!important;color:#fff!important;background:#7b1113!important;line-height:1!important;min-height:32px!important;min-width:62px!important;padding:9px 13px!important;font-weight:800!important;}
.menu a.btn.secondary,.menu a.btn.secondary:visited{background:#fff!important;color:#7b1113!important;}
@media(max-width:900px){.topbar .brand img{height:40px!important;max-width:190px!important}.nav{height:auto;min-height:70px;padding:10px 0}.menu{display:flex!important;gap:8px}.menu a:not(.btn){display:none}}


/* Responsive device-friendly upgrade v20260704responsive1 */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{overflow-x:hidden}img,svg,video,canvas{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 32px))}.topbar{backdrop-filter:saturate(160%) blur(12px)}.nav{position:relative}.nav-toggle{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}.nav-toggle span{width:20px;height:2px;background:var(--maroon);display:block;border-radius:4px}.topbar .brand{min-width:0}.topbar .brand img{max-height:54px;object-fit:contain}.menu a{white-space:nowrap}.app-menu-toggle{display:none;position:fixed;left:12px;top:12px;z-index:60;background:var(--maroon);color:#fff;border:0;border-radius:12px;width:44px;height:44px;font-size:22px;box-shadow:0 10px 26px rgba(0,0,0,.18)}.sidebar-overlay{display:none}.property,.card,.form-wrap,.table-card,.hero-card,.kpi,.stat{min-width:0}.table-card{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{min-width:720px}.inventory-map{grid-auto-flow:row}.unit{word-break:break-word}.filters{align-items:center}.filters>*{min-width:150px}.form-grid>*{min-width:0}.field input,.field select,.field textarea{min-height:44px}.btn{min-height:40px;text-align:center}.topline{gap:14px}.logo-note{font-size:12px;color:var(--muted)}
@media(max-width:1100px){.menu{gap:10px}.menu a{font-size:13px}.hero h1{font-size:38px}.cards{grid-template-columns:repeat(2,1fr)}.kpis{grid-template-columns:repeat(2,1fr)}.property-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.app{grid-template-columns:240px 1fr}.sidebar{padding:18px}.main{padding:20px}}
@media(max-width:860px){.container{width:min(100% - 24px,720px)}.nav{height:auto;min-height:66px;padding:8px 0;gap:10px;flex-wrap:wrap}.topbar .brand img{height:42px!important;max-width:190px!important}.nav-toggle{display:inline-flex;margin-left:auto}.menu{display:none!important;position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:0 0 18px 18px;box-shadow:0 18px 38px rgba(17,24,39,.12);padding:12px;z-index:40}.menu.open{display:grid!important;grid-template-columns:1fr;gap:6px}.menu.open a{display:flex!important;width:100%;padding:11px 12px;border-radius:10px}.menu.open a:not(.btn){background:#fafafa;color:#1f2937}.menu a.btn,.menu a.btn:visited{justify-content:center}.hero{padding:34px 0}.hero-grid{grid-template-columns:1fr;gap:22px}.hero h1{font-size:30px}.hero p{font-size:15px}.stat-grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.property-grid{grid-template-columns:1fr}.section{padding:28px 0}.section-title{align-items:flex-start;flex-direction:column}.form-grid,.form-grid.three{grid-template-columns:1fr!important}.span2{grid-column:span 1!important}.filters{display:grid;grid-template-columns:1fr}.filters>*{width:100%;min-width:0}.inventory-map{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;padding:10px}.unit{min-height:62px;font-size:12px;border-radius:10px}.app{display:block}.app-menu-toggle{display:block}.sidebar{position:fixed!important;left:0;top:0;bottom:0;width:min(82vw,300px);height:100vh!important;transform:translateX(-105%);transition:transform .25s ease;z-index:55;box-shadow:18px 0 38px rgba(0,0,0,.22)}.sidebar.open{transform:translateX(0)}.main{padding:70px 14px 20px}.topline{flex-direction:column;align-items:flex-start}.kpis{grid-template-columns:1fr}.children{flex-direction:column;align-items:center}.node{min-width:128px}.detail-panel{left:12px;right:12px;bottom:12px;width:auto;max-height:70vh;overflow:auto}.footer{padding:28px 0}.footer .container{font-size:14px}}
@media(max-width:480px){.container{width:calc(100% - 18px)}.topbar .brand img{height:36px!important;max-width:165px!important}.nav-toggle{width:38px;height:38px}.hero h1{font-size:26px}.hero-card,.form-wrap,.card,.table-card{border-radius:16px;padding:14px}.btn{width:100%;justify-content:center}.btn.small{width:auto}.hero .btn{width:100%}.price{font-size:20px}.property-body{padding:14px}.inventory-map{grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:6px}.unit{min-height:56px;font-size:11px;padding:6px}.main{padding-left:10px;padding-right:10px}th,td{padding:10px;font-size:13px}table{min-width:640px}.side-menu a{padding:11px}.sidebar .brand img{max-width:190px!important}.form-wrap h2,.table-card h2{font-size:20px}.section-title h2{font-size:23px}}
@media(min-width:861px){.menu{display:flex!important}.sidebar{transform:none!important}}
@media print{.topbar,.sidebar,.app-menu-toggle,.btn,.footer{display:none!important}.app{display:block}.main{padding:0}.table-card,.card,.form-wrap{box-shadow:none;border:1px solid #ddd}body{background:#fff}}

/* Legal & security module fixes */
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}.welcome-letter{background:#fff;border:1px solid var(--line);border-radius:18px;padding:38px;max-width:920px;margin:auto;color:#1f2937;line-height:1.6}.letter-head{text-align:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.letter-head img{max-height:70px;object-fit:contain}.letter-head h1{font-size:26px;margin:10px 0 0}.letter-meta{display:flex;justify-content:space-between;gap:20px;margin:20px 0}.letter-footer{background:#58adc2;text-align:center;color:#07313c;font-weight:800;padding:10px;margin-top:20px}.side-menu a{font-size:14px}.form-wrap input[readonly]{background:#f3f4f6;color:#6b7280}.table-card table input{padding:8px;border:1px solid #d0d5dd;border-radius:8px}@media(max-width:700px){.welcome-letter{padding:18px}.letter-meta{display:block}.letter-head h1{font-size:20px}}

/* Compliance, form validation, language and mobile footer fixes v20260704security2 */
.inline-field{display:flex;gap:8px;align-items:center}.inline-field input{flex:1}.email-otp-box{display:flex;gap:8px;margin-top:8px}.success-text{color:#087a36;font-weight:700}.error-text{color:#b42318;font-weight:700}.agree a{font-weight:800;text-decoration:underline}.language-select{border:1px solid #ead7d7;background:#fff;color:#4a1d1f;border-radius:10px;padding:8px 10px;font-weight:800;max-width:130px}.footer{background:#33080b;color:#fff}.footer a{color:#fff;text-decoration:none;overflow-wrap:anywhere}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:42px;align-items:start}.footer-col{min-width:0}.footer-col p{overflow-wrap:anywhere;word-break:normal;line-height:1.55}.footer-col h3{color:#fff;margin-top:0}.field small{display:block;margin-top:6px}.form-wrap select{background:#fff}.form-wrap .alert.success{border-left:4px solid #087a36}.form-wrap .alert.error{border-left:4px solid #b42318}
@media(max-width:760px){.footer{padding:30px 0}.footer-grid{grid-template-columns:1fr!important;gap:18px}.footer-col{width:100%}.footer-col p{font-size:14px}.inline-field,.email-otp-box{flex-direction:column;align-items:stretch}.language-select{width:100%;max-width:none}.menu.open .language-select{display:block!important}.topbar .brand img{height:40px!important;max-width:180px!important}}

/* Final feature pack: customer portal, receipt, cards and management dashboard */
.receipt-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;max-width:900px;margin:auto;box-shadow:0 18px 50px rgba(0,0,0,.06)}.receipt-head{text-align:center;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.receipt-head img{max-height:80px}.receipt-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.receipt-grid>div{background:#fafafa;border:1px solid var(--line);border-radius:12px;padding:12px}.profile-row{display:grid;grid-template-columns:220px 1fr;gap:20px}.profile-photo,.photo-placeholder{width:180px;height:210px;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-weight:800;color:#667085}.idcard-wrap{display:flex;gap:24px;flex-wrap:wrap}.id-card{width:320px;min-height:480px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;text-align:center;box-shadow:0 18px 45px rgba(0,0,0,.08);position:relative;overflow:hidden}.id-card:before{content:"";position:absolute;left:0;right:0;top:0;height:72px;background:linear-gradient(90deg,var(--maroon),#4a0709)}.id-card>*{position:relative}.card-logo{max-height:64px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}.card-title{margin:14px auto;color:#fff;background:var(--maroon);display:inline-block;padding:6px 12px;border-radius:999px;font-weight:800}.id-photo{width:120px;height:140px;object-fit:cover;border-radius:14px;border:3px solid #fff;box-shadow:0 8px 22px rgba(0,0,0,.18);background:#f3f4f6;margin-top:8px}.id-photo.empty{display:inline-flex;align-items:center;justify-content:center}.qr-box{border:1px dashed var(--maroon);border-radius:12px;padding:12px;margin-top:16px}.id-card.back{text-align:left}.visiting-card{max-width:760px;display:grid;grid-template-columns:1fr 1fr;gap:24px;background:#fff;border:1px solid var(--line);border-left:8px solid var(--maroon);border-radius:18px;padding:26px;box-shadow:0 18px 45px rgba(0,0,0,.08)}
@media(max-width:700px){.receipt-grid,.profile-row,.visiting-card{grid-template-columns:1fr}.receipt-card{padding:16px}.id-card{width:100%}}
@media print{.receipt-card,.id-card,.visiting-card{box-shadow:none}.idcard-wrap{display:flex}.receipt-card{max-width:100%}.app .topline{display:none!important}}
/* Visiting card professional designation update */
.enhanced-card .designation{font-size:1.15rem;font-weight:800;color:var(--maroon);margin:12px 0 2px}
.enhanced-card .department{font-weight:700;color:#344054;margin:0 0 14px}
.enhanced-card .vc-left,.enhanced-card .vc-right{min-width:0}
.enhanced-card p{word-break:break-word}
@media(max-width:700px){.enhanced-card{gap:14px}.enhanced-card .designation{font-size:1.05rem}}

/* Logo visibility fix v20260704logo2 */
.topbar .brand{
  display:flex!important;
  align-items:center!important;
  min-width:180px!important;
}
.topbar .brand img{
  height:62px!important;
  max-width:260px!important;
  width:auto!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}
.sidebar .brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:18px!important;
  padding:14px 12px!important;
  margin:0 0 24px!important;
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}
.sidebar .brand img{
  display:block!important;
  height:76px!important;
  max-width:245px!important;
  width:100%!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}
.card-logo,.letter-head img,.receipt-head img{
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  object-fit:contain!important;
}
@media(max-width:860px){
  .topbar .brand img{height:56px!important;max-width:230px!important;}
  .sidebar .brand img{height:70px!important;max-width:230px!important;}
}
@media(max-width:480px){
  .topbar .brand img{height:50px!important;max-width:200px!important;}
  .sidebar .brand{padding:12px!important;border-radius:16px!important;}
  .sidebar .brand img{height:64px!important;max-width:210px!important;}
}

/* Final UI corrections v20260704finalui */
.app{grid-template-columns:300px 1fr!important;}
.sidebar{width:300px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:20px!important;}
.sidebar .brand{width:100%!important;min-width:0!important;padding:12px 10px!important;border-radius:18px!important;margin-bottom:26px!important;}
.sidebar .brand img{width:100%!important;max-width:250px!important;height:auto!important;max-height:110px!important;object-fit:contain!important;}
.topbar .brand img{height:58px!important;max-width:260px!important;}
.card-logo{max-width:220px!important;width:auto!important;height:auto!important;max-height:80px!important;}
.id-card .card-logo{max-width:210px!important;max-height:70px!important;margin:0 auto 8px;display:block;}
.id-card.back{padding-top:30px!important;}
.id-card.back h3{margin-top:92px!important;text-align:center!important;color:#fff!important;background:var(--maroon)!important;border-radius:12px!important;padding:10px!important;font-size:18px!important;line-height:1.35!important;}
.id-card.back p{line-height:1.55!important;}
.kpi b,.price{color:var(--maroon)!important;}
.form-wrap input[readonly]{background:#f7f7f7!important;font-weight:800!important;color:#3a1a1a!important;}
@media(max-width:1024px){.app{grid-template-columns:280px 1fr!important}.sidebar{width:280px!important}.sidebar .brand img{max-width:230px!important}}
@media(max-width:860px){.app{display:block!important}.sidebar{width:min(86vw,300px)!important}.sidebar .brand img{max-width:230px!important}.topbar .brand img{height:50px!important;max-width:220px!important}}
@media(max-width:480px){.topbar .brand img{height:46px!important;max-width:200px!important}.sidebar .brand img{max-width:210px!important}.id-card.back h3{margin-top:82px!important}}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-form select,.inline-form input{border:1px solid #d0d5dd;border-radius:10px;padding:8px;background:#fff}.pill.Hold,.pill.hold{background:#eef4ff;color:#3538cd}.pill.Maintenance,.pill.maintenance{background:#f2f4f7;color:#344054}.unit.hold{background:#4e5ba6}.unit.maintenance{background:#667085}
.danger-text{color:#991b1b;font-weight:700}.alert.info{background:#eff6ff;color:#1e3a8a;border-left:4px solid #2563eb;padding:14px 18px;border-radius:14px}

.partner-strip{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #ead7d7;border-radius:18px;padding:14px 18px;margin:0 0 18px;box-shadow:0 10px 35px rgba(0,0,0,.04)}
.houssed-logo{height:38px;width:auto;object-fit:contain}
.table-card .filters{margin:0 0 18px;display:flex;gap:12px;flex-wrap:wrap}
.table-card .filters input{min-width:260px}
@media(max-width:700px){.partner-strip{align-items:flex-start}.houssed-logo{height:30px}.table-card .filters input,.table-card .filters select{width:100%;min-width:0}}
.amenity-list{columns:2; padding-left:22px; line-height:1.8; margin:0}
.check{display:flex; gap:8px; align-items:center; font-weight:600; color:#26344d}
@media(max-width:700px){.amenity-list{columns:1}}

/* Add-on calculation UI update */
.addon-list{display:grid;gap:10px;margin:12px 0 14px}
.addon-option{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid #ead7d7;border-radius:14px;padding:12px;background:#fff;cursor:pointer}
.addon-option:hover{box-shadow:0 8px 22px rgba(122,12,16,.10)}
.addon-option input{width:18px;height:18px;accent-color:var(--maroon)}
.addon-option span{display:grid;gap:2px}.addon-option small{color:#667085;font-weight:500}.addon-option strong{color:var(--maroon)}
.price-breakup{border-top:1px solid #d0d5dd;margin-top:14px;padding-top:12px;display:grid;gap:8px}
.price-breakup>div{display:flex;justify-content:space-between;gap:16px;align-items:center}
.price-breakup .final-row{border-top:1px dashed #d0d5dd;margin-top:6px;padding-top:10px;font-size:1.05rem;color:var(--maroon)}
.booking-price-box{background:#fff7f7;border:1px solid #ead7d7;border-radius:16px;padding:14px;margin:0 0 18px;max-width:620px}
@media(max-width:700px){.addon-option{grid-template-columns:auto 1fr}.addon-option strong{grid-column:2}.price-breakup>div{align-items:flex-start}.booking-price-box{max-width:100%}}


.deal-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.deal-form input{max-width:170px}.deal-form input[name=reason]{min-width:220px}
.table-scroll{overflow-x:auto;width:100%}.total-row td{background:#fff6d8;font-weight:800}.plan-hero h2{font-size:30px;text-align:center}.plan-hero .filters input{min-width:220px}.table-card table th,.table-card table td{vertical-align:middle}

/* Header alignment fix v20260709-header1 */
.topbar .nav{
  min-height:88px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding:10px 0!important;
}
.topbar .brand{
  flex:0 0 auto!important;
  min-width:250px!important;
  max-width:285px!important;
}
.topbar .brand img{
  height:76px!important;
  max-width:285px!important;
  width:auto!important;
  display:block!important;
  object-fit:contain!important;
}
.topbar .menu{
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:16px!important;
  flex-wrap:nowrap!important;
}
.topbar .menu a{
  white-space:nowrap!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:750!important;
}
.topbar .menu .language-select{
  flex:0 0 180px!important;
  width:180px!important;
  height:50px!important;
  padding:0 18px!important;
  border-radius:16px!important;
  font-weight:800!important;
  font-size:16px!important;
}
.topbar .menu a.btn.small{
  flex:0 0 auto!important;
  min-width:94px!important;
  height:48px!important;
  padding:0 22px!important;
  border-radius:14px!important;
  font-size:15px!important;
  margin-left:2px!important;
}
@media(max-width:1450px){
  .topbar .brand{min-width:220px!important;max-width:250px!important}
  .topbar .brand img{height:68px!important;max-width:250px!important}
  .topbar .menu{gap:11px!important}
  .topbar .menu a{font-size:14px!important}
  .topbar .menu .language-select{flex-basis:145px!important;width:145px!important;height:44px!important;font-size:14px!important;padding:0 12px!important}
  .topbar .menu a.btn.small{min-width:78px!important;height:42px!important;padding:0 16px!important;font-size:14px!important}
}
@media(max-width:1180px){
  .topbar .nav{min-height:78px!important}
  .topbar .brand{min-width:190px!important;max-width:210px!important}
  .topbar .brand img{height:58px!important;max-width:210px!important}
  .topbar .nav-toggle{display:flex!important;margin-left:auto!important}
  .topbar .menu{
    display:none!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:100%!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:0 0 18px 18px!important;
    box-shadow:0 18px 45px rgba(0,0,0,.10)!important;
    padding:14px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    z-index:100!important;
  }
  .topbar .menu.open{display:flex!important}
  .topbar .menu a{display:block!important;font-size:15px!important;padding:10px 12px!important;border-radius:10px!important}
  .topbar .menu .language-select{width:100%!important;flex-basis:auto!important;height:44px!important}
  .topbar .menu a.btn.small{width:100%!important;min-width:0!important;height:44px!important;margin-left:0!important}
}

/* Team tree vacant placement + searchable business placement */
.empty-node-link { display:block; text-decoration:none; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.empty-node-link:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(128,15,20,.16); color:#7b0d12; }
.empty-node-link small { display:block; margin-top:6px; color:#7b0d12; font-weight:700; }
.select-search { margin-bottom:8px; }
select[data-searchable-select] { min-height:178px; }
select[data-searchable-select] option { padding:8px; }


/* =========================================================
   RESPONSIVE DEVICE FRIENDLY FIX - 2026-07-18
   Keeps live backup data intact and improves portal usability
   ========================================================= */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
.main{min-width:0}
.topline{gap:12px;flex-wrap:wrap}
.card,.table-card,.panel{max-width:100%}

/* Public header - prevent logo/menu collision and make all devices friendly */
.nav{min-height:74px;height:auto;padding:10px 0}
.nav .brand{flex:0 0 auto;min-width:170px}
.nav .brand img{max-height:58px;width:auto;max-width:190px}
.menu{min-width:0;justify-content:flex-end}
.menu a{white-space:nowrap}
.language-select{max-width:180px}

/* General table responsiveness */
.table-card{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-card table, .main table{min-width:760px}
td,th{word-break:normal}

/* App shell responsive sidebar */
.app-menu-toggle{display:none;position:fixed;top:14px;left:14px;z-index:9999;background:var(--maroon);color:#fff;border:0;border-radius:12px;padding:10px 13px;font-weight:900;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.sidebar{transition:transform .25s ease}
.sidebar .brand img{height:auto;max-height:80px;width:100%;max-width:240px;object-fit:contain}

/* Team tree final layout fix */
.tree{
  width:100%;
  max-width:100%;
  display:block!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  padding:18px 12px 34px;
  background:linear-gradient(180deg,#fff,#f7f8fb);
  border:1px solid var(--line);
  border-radius:22px;
}
.tree > .node{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  min-width:max-content!important;
  width:max-content!important;
  margin:0 auto!important;
}
.tree .node{
  text-align:center;
  margin:0 14px!important;
  min-width:240px!important;
  width:240px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  flex:0 0 240px!important;
  position:relative;
}
.tree .node-card{
  width:240px!important;
  min-height:142px;
  max-width:240px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px;
  padding:14px 12px!important;
  overflow:hidden;
  white-space:normal;
}
.tree .node-card h4,
.tree .node-card p{
  margin:2px 0;
  max-width:100%;
  overflow-wrap:anywhere;
}
.tree .node-card small{line-height:1.35}
.tree-actions{margin-top:4px}
.tree-actions .btn.small{font-size:12px;padding:7px 10px;border-radius:9px}
.tree .empty-node-link{
  min-height:88px!important;
  height:88px!important;
  width:200px!important;
  max-width:200px!important;
  justify-content:center!important;
  border-style:dashed!important;
  background:#fff!important;
}
.tree .children{
  display:flex!important;
  flex-direction:row!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:34px!important;
  flex-wrap:nowrap!important;
  margin-top:34px!important;
  min-width:max-content!important;
  width:max-content!important;
  position:relative;
}
.tree .children:before{
  content:"";
  position:absolute;
  top:-17px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 240px);
  height:1px;
  background:#ecd5d6;
}
.tree .children > .node:before{
  content:"";
  position:absolute;
  top:-17px;
  left:50%;
  width:1px;
  height:17px;
  background:#ecd5d6;
}
.tree > .node:before{display:none}
.tree .badge{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.detail-panel{max-width:calc(100vw - 32px)}

/* Forms and search/select controls */
.form-grid{min-width:0}
input,select,textarea{max-width:100%}
select{background-color:#fff}
#placementSearch,.placement-search{width:100%}

/* Mobile and tablet */
@media(max-width:1100px){
  .nav .brand{min-width:150px}
  .menu{gap:10px}
  .menu a{font-size:13px}
  .btn.small{padding:10px 12px}
}
@media(max-width:900px){
  .app{display:block!important}
  .app-menu-toggle{display:inline-flex!important}
  .sidebar{
    position:fixed!important;
    top:0;left:0;bottom:0;
    width:min(84vw,320px)!important;
    height:100vh!important;
    z-index:9998;
    transform:translateX(-105%);
    box-shadow:18px 0 50px rgba(0,0,0,.22);
  }
  .sidebar.open{transform:translateX(0)}
  .main{padding:70px 14px 22px!important}
  .topline{align-items:flex-start}
  .kpis{grid-template-columns:1fr 1fr!important}
  .table-card{padding:12px}
  .tree{border-radius:16px;padding:12px 10px 26px}
  .tree .node{min-width:210px!important;width:210px!important;flex-basis:210px!important;margin:0 10px!important}
  .tree .node-card{width:210px!important;max-width:210px!important;min-height:132px}
  .tree .empty-node-link{width:180px!important;max-width:180px!important}
  .tree .children{gap:22px!important}
  .tree .children:before{width:calc(100% - 210px)}
}
@media(max-width:640px){
  .container{width:min(100% - 24px,1180px)}
  .hero h1{font-size:32px!important;line-height:1.15}
  .actions{display:flex;flex-direction:column;align-items:stretch}
  .actions .btn{width:100%}
  .kpis{grid-template-columns:1fr!important}
  .tree .node{min-width:190px!important;width:190px!important;flex-basis:190px!important}
  .tree .node-card{width:190px!important;max-width:190px!important;font-size:13px}
  .tree .empty-node-link{width:166px!important;max-width:166px!important}
  .tree .children{gap:18px!important}
  .tree .children:before{width:calc(100% - 190px)}
  .detail-panel{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important}
}

/* About page mobile/tablet responsive fix */
.about-hero{background:linear-gradient(120deg,#fff 0%,#fff7f7 58%,#f5e8cf 100%);padding:52px 0;border-bottom:1px solid var(--line)}
.about-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:28px;align-items:center}
.about-hero h1{font-size:42px;line-height:1.08;margin:16px 0;color:var(--maroon);letter-spacing:-.02em}
.about-hero p{font-size:16px;line-height:1.75;color:#4d5562;margin:0}
.about-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.about-info-card,.about-card,.about-details-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 46px rgba(17,24,39,.06)}
.about-info-card{padding:22px}
.about-info-card h3{margin:0 0 14px;color:var(--maroon)}
.about-mini-list{display:grid;gap:10px}
.about-mini-list div{background:#fbfcff;border:1px solid var(--line);border-radius:14px;padding:12px;min-width:0}
.about-mini-list span{display:block;font-size:12px;color:var(--muted);font-weight:750;margin-bottom:4px}
.about-mini-list strong{display:block;overflow-wrap:anywhere;color:#1f2937}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.about-grid.about-bottom-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.about-card{padding:22px;min-width:0}
.about-card h2,.about-card h3{margin-top:0;color:#1f2937}
.about-card p{line-height:1.75;color:#4d5562;margin-bottom:0}
.about-span{grid-column:span 2}
.about-details-card{padding:22px;margin:18px 0;overflow:hidden}
.compact-title{margin-bottom:12px}.compact-title p{margin:6px 0 0}
.about-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:16px;background:#fff}
.about-table{min-width:0!important;width:100%;border-radius:0}
.about-table th{width:260px;white-space:nowrap;background:#fff8f0}
.about-table td{overflow-wrap:anywhere;word-break:break-word}
.about-list{margin:0;padding-left:18px;color:#4d5562;line-height:1.8}
@media(max-width:1024px){.about-hero{padding:42px 0}.about-hero-grid{grid-template-columns:1fr}.about-hero h1{font-size:36px}.about-grid.about-bottom-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.about-hero{padding:30px 0}.about-hero h1{font-size:29px}.about-hero p{font-size:15px}.about-actions .btn{width:100%}.about-grid,.about-grid.about-bottom-grid{grid-template-columns:1fr}.about-span{grid-column:span 1}.about-card,.about-details-card,.about-info-card{border-radius:18px;padding:16px}.about-table-wrap{border:0;overflow:visible}.about-table,.about-table tbody,.about-table tr,.about-table th,.about-table td{display:block;width:100%!important;min-width:0!important}.about-table tr{border:1px solid var(--line);border-radius:14px;margin-bottom:10px;overflow:hidden;background:#fff}.about-table th{border-bottom:1px solid var(--line);white-space:normal;padding:10px 12px}.about-table td{border-bottom:0;padding:11px 12px}.compact-title{display:block}.about-section{padding-top:24px}}
@media(max-width:420px){.about-hero h1{font-size:25px}.about-mini-list div{padding:10px}.about-card h2{font-size:21px}.about-card h3{font-size:18px}}
