:root{
  --navy:#0b1f3a;
  --navy-2:#102c50;
  --navy-3:#173c69;
  --blue:#246fdb;
  --blue-soft:#eaf2ff;
  --teal:#0f9f88;
  --green:#14a05a;
  --amber:#d99400;
  --red:#d83b35;
  --purple:#8d4ac7;
  --orange:#ed741f;
  --bg:#f3f6fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --text:#10213d;
  --muted:#6f7f98;
  --border:#dfe6ef;
  --border-2:#e8edf3;
  --shadow:0 10px 30px rgba(14,31,58,.065);
  --shadow-sm:0 5px 18px rgba(14,31,58,.045);
  --radius:16px;
  --radius-sm:11px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
a{transition:all .18s ease}.app-shell{display:flex;min-height:100vh}

/* Sidebar */
.sidebar{width:248px;background:linear-gradient(180deg,#0d2340 0%,#091a31 100%);color:#fff;position:fixed;inset:0 auto 0 0;z-index:1040;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.04);box-shadow:8px 0 28px rgba(9,26,49,.08)}
.brand{height:82px;display:flex;align-items:center;gap:12px;padding:16px 17px;border-bottom:1px solid rgba(255,255,255,.075);position:relative}
.brand-mark{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#fff,#e6effd);color:#102b4d;display:grid;place-items:center;font-weight:900;font-size:17px;box-shadow:0 8px 20px rgba(0,0,0,.12)}
.brand-copy{min-width:0}.brand-copy b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small,.user-chip small,.sidebar-user small{display:block;color:#aebed3;font-size:11px;margin-top:2px}
.sidebar-close{position:absolute;right:10px;top:12px;width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff}
.nav-caption{padding:17px 20px 6px;color:#6f87a8;font-size:10px;font-weight:800;letter-spacing:.12em}
.sidebar-nav{padding:0 10px;overflow-y:auto;flex:1}.sidebar-nav::-webkit-scrollbar{width:5px}.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:10px}
.sidebar-nav a{position:relative;display:flex;align-items:center;gap:11px;color:#d8e5f5;text-decoration:none;padding:10px 11px;border-radius:11px;margin:3px 0;font-size:14px;font-weight:550}
.sidebar-nav a:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(2px)}
.sidebar-nav a.active{background:linear-gradient(90deg,rgba(65,119,190,.38),rgba(55,99,160,.22));color:#fff;box-shadow:inset 3px 0 #65a8ff;border:1px solid rgba(255,255,255,.055)}
.nav-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.055);font-size:15px}.active .nav-icon{background:rgba(116,177,255,.16);color:#9fc9ff}
.nav-arrow{margin-left:auto;font-size:10px;color:#82b7f8}.sidebar-footer{padding:12px;border-top:1px solid rgba(255,255,255,.075)}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:8px}.sidebar-user-copy{min-width:0;flex:1}.sidebar-user b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.sidebar-logout{display:flex;align-items:center;justify-content:center;gap:8px;color:#dce8f7;text-decoration:none;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:9px;margin-top:4px;background:rgba(255,255,255,.035)}.sidebar-logout:hover{background:rgba(216,59,53,.17);border-color:rgba(255,129,124,.24);color:#fff}
.sidebar .avatar{background:linear-gradient(135deg,#eaf3ff,#c9ddfb);color:#174477}
.sidebar-backdrop{display:none}

/* Main/topbar */
.main{margin-left:248px;width:calc(100% - 248px);min-width:0}.topbar{height:72px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--border-2);display:flex;align-items:center;gap:18px;padding:0 24px;position:sticky;top:0;z-index:1020;box-shadow:0 2px 12px rgba(15,35,65,.025)}
.topbar-left{display:flex;align-items:center;gap:12px}.page-context{min-width:138px;line-height:1.1}.page-context small{display:block;color:#8a97aa;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.page-context b{display:block;margin-top:4px;font-size:13px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-toggle{width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--navy);font-size:20px}
.global-search{flex:1;max-width:520px;background:#f5f7fa;border:1px solid #e4e9f0;border-radius:12px;padding:9px 12px;display:flex;align-items:center;gap:9px;transition:.2s}.global-search:focus-within{background:#fff;border-color:#98bbea;box-shadow:0 0 0 3px rgba(36,111,219,.09)}.global-search i{color:#78869c}.global-search input{border:0;outline:0;background:transparent;width:100%;color:var(--text)}.global-search input::placeholder{color:#9ca8b9}.search-hint{font-size:10px;color:#8e9bad;border:1px solid #dde4ed;border-radius:6px;padding:2px 6px;background:#fff}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.date-chip{display:flex;align-items:center;gap:7px;font-size:12px;color:#66778f;background:#f7f9fc;border:1px solid var(--border-2);padding:8px 10px;border-radius:9px}.icon-btn{width:38px;height:38px;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;color:#344964;background:#fff;text-decoration:none}.icon-btn:hover{border-color:#a9c3e5;background:#f4f8fe;color:var(--blue)}
.user-chip{display:flex;gap:9px;align-items:center;padding-left:5px}.avatar{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#e8f1ff,#d3e3fb);color:#1d5ba9;display:grid;place-items:center;font-weight:850}.user-chip b{font-size:12px}.user-chip small{color:#8a98aa}
.content-wrap{padding:24px;max-width:1900px;margin:0 auto;width:100%}

/* Page headings */
.page-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.page-head h1{font-size:25px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.025em;color:#0d2342}.page-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.page-head .btn{box-shadow:var(--shadow-sm)}
.section-title{font-size:17px;font-weight:800;margin-bottom:14px;color:#163153}.text-muted{color:var(--muted)!important}

/* Cards */
.card,.legacy-panel,.expense-card{background:var(--surface);border:1px solid var(--border)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow-sm)!important;overflow:hidden}.card-header{background:#fff;border-bottom:1px solid var(--border-2);padding:15px 18px;font-weight:750}.card-body{padding:19px}.stat-card{position:relative;padding:18px;background:#fff;height:100%;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow-sm);transition:.18s}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.stat-card .icon{width:46px;height:46px;border-radius:12px;background:var(--blue-soft);display:grid;place-items:center;color:var(--blue);font-size:20px}.stat-card .label{color:var(--muted);font-size:12px}.stat-card .value{font-size:25px;font-weight:850;margin-top:4px;color:#0e2340}.metric{font-size:12px;color:var(--muted)}.metric strong{display:block;font-size:20px;color:#1e293b}.room-card{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fff;height:100%;box-shadow:0 4px 14px rgba(15,35,65,.035)}.room-card h5{margin:0}.room-card .status{font-size:11px;font-weight:800}

/* Forms */
label,.form-label{font-size:12px;font-weight:750;color:#29415f;margin-bottom:7px}.form-control,.form-select,.form-check-input{border-color:#d5dfeb}.form-control,.form-select{border-radius:10px;padding:.68rem .78rem;background:#fbfcfe;color:#122540;min-height:44px;transition:.18s}.form-control:hover,.form-select:hover{border-color:#b8c9dc}.form-control:focus,.form-select:focus{background:#fff;border-color:#7ba8e3;box-shadow:0 0 0 3px rgba(36,111,219,.10)}textarea.form-control{min-height:96px}.input-group-text{border-color:#d5dfeb;background:#f5f8fb;color:#657992}.form-check-input:checked{background-color:var(--blue);border-color:var(--blue)}

/* Buttons */
.btn{border-radius:10px;font-weight:700;font-size:13px;padding:.58rem .9rem;transition:.18s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,#2b74dc,#1f61c2);border-color:#2466c7;box-shadow:0 6px 14px rgba(36,111,219,.18)}.btn-success{background:#168b55;border-color:#168b55}.btn-danger{background:#d9433c;border-color:#d9433c}.btn-warning{color:#4e3700;background:#f8c75a;border-color:#f2bd42}.btn-outline-primary{border-color:#8ab2e8;color:#195fb8}.btn-outline-secondary{border-color:#c9d3df;color:#52657e}.btn-sm{border-radius:8px;padding:.43rem .7rem}.btn.is-loading{opacity:.72;pointer-events:none}.btn.is-loading:after{content:"";display:inline-block;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .6s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}

/* Tables */
.table-responsive{border-radius:13px;overflow:auto;border:1px solid var(--border);background:#fff}.table{margin-bottom:0;color:#182c49}.table>:not(caption)>*>*{padding:.78rem .8rem;border-bottom-color:#e6ebf1}.table thead th{font-size:10.5px;text-transform:uppercase;letter-spacing:.035em;color:#5b6e88;background:#f2f6fb;border-bottom:1px solid #dbe4ef;font-weight:850;white-space:nowrap}.table tbody tr{transition:.13s}.table tbody tr:hover{background:#f8fbff}.table td{vertical-align:middle;font-size:12.5px}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:#fbfcfe}.badge{font-size:10.5px;padding:.43em .62em;border-radius:7px}.pagination .page-link{color:#365c89;border-color:#dce4ed}.pagination .active>.page-link{background:var(--blue);border-color:var(--blue)}

/* Alerts/modal/dropdown */
.app-alert{border:0;border-radius:12px;box-shadow:var(--shadow-sm);padding:13px 45px 13px 15px}.alert-danger{background:#fff0f0;color:#9e2828;border-left:4px solid #dc4b46!important}.alert-success{background:#ebf9f0;color:#147440;border-left:4px solid #27a867!important}.alert-warning{background:#fff8e7;color:#795409;border-left:4px solid #e5a800!important}.dropdown-menu{border:1px solid var(--border);border-radius:11px;box-shadow:var(--shadow);padding:7px}.modal-content{border:1px solid var(--border);border-radius:17px;box-shadow:0 25px 70px rgba(8,28,55,.18)}.modal-header,.modal-footer{border-color:var(--border-2)}

/* Screenshot-driven operational forms */
.screenshot-form{overflow:hidden}.screenshot-form .field-row{min-height:84px;border-bottom:1px solid #e8edf3;padding:16px 20px;display:flex;align-items:center;gap:20px}.screenshot-form .field-row:nth-child(odd){border-right:1px solid #eef2f6}.screenshot-form .field-row>label{width:42%;min-width:190px;font-weight:750;font-size:12px;color:#24405f;margin:0}.screenshot-form .field-row>label i{color:#bf8420;margin-right:9px;font-size:16px}.screenshot-form label span,.expense-card label span{color:#d92d20}.screenshot-form .form-control,.screenshot-form .form-select{background:#f8fafc;border-color:#d8e2ef;min-height:48px}.radio-pills{display:flex;gap:8px;flex-wrap:wrap}.radio-pills label{border:1px solid #d7e1ec;border-radius:9px;background:#f9fbfd;padding:8px 11px;cursor:pointer;font-weight:650}.radio-pills label:hover{border-color:#9fbee5;background:#f3f8ff}.radio-pills input{accent-color:#b67a0b;margin-right:5px}.extra-guest{border-top:1px solid #edf1f5}
.legacy-panel{box-shadow:var(--shadow-sm)!important}.legacy-title,.expense-head{background:linear-gradient(135deg,#275f9f,#204e87);color:#fff;font-weight:800;padding:13px 18px}.legacy-panel .table thead th{background:#eaf1f9;color:#183e6b;border-color:#d3dfed}.legacy-panel .table td{border-color:#e0e7ef}.permanent-table{font-size:13px}.renter-thumb{width:52px;height:52px;object-fit:cover;border:1px solid #cbd8e8;border-radius:9px}.no-photo{display:grid;place-items:center;background:#eef3f9;color:#6f8097}.room-chip{display:inline-block;background:#2e64ad;color:#fff;font-weight:800;padding:5px 9px;border-radius:6px}.count-chip{display:inline-block;border:1px solid #abc5ea;background:#eff6ff;color:#0c458e;padding:3px 8px;font-weight:700;border-radius:6px}.upload-preview-box{border:1px dashed #aac4e8;background:#f9fbfe;padding:13px;display:flex;gap:14px;align-items:center;border-radius:11px}.upload-preview{width:66px;height:66px;object-fit:cover;background:#e7eef8;border:1px solid #bad0ec;border-radius:9px}.doc-preview{display:block;width:100%;max-height:350px;object-fit:contain;border:1px solid #d8e2ef;background:#f8fafc;border-radius:11px}.profile-photo{width:130px;height:150px;object-fit:cover;border-radius:12px;border:1px solid #dce4ef}
.rent-portal-head{margin:-24px -24px 0;background:linear-gradient(135deg,#255d9f,#1e4f89);color:#fff;padding:14px 18px;font-size:17px;font-weight:800}.rent-grid{background:#fff;border-top:1px solid #d9e3ef;border-bottom:1px solid #d9e3ef}.rent-avatar{width:78px;height:78px;object-fit:cover;border:1px solid #d5dfeb;border-radius:11px}.rent-facts small{display:block;text-transform:uppercase;color:#7a899c;font-size:9px;font-weight:800;letter-spacing:.04em}.rent-facts b{display:block;color:#102a52;font-size:12px}.concession-box{border:1px solid #e0bd73;background:#fffaf0;border-radius:10px;overflow:hidden}.concession-box summary{cursor:pointer;padding:11px 14px;font-weight:800;color:#8b630d}.expense-card{max-width:1100px}.expense-head{font-size:16px}.expense-head i{margin-right:12px}.expense-card label{font-weight:750;margin-bottom:6px}.mic-btn{width:52px;height:52px;flex:0 0 52px;border-radius:50%;border:1px solid #d9e3ef;background:#fff;font-size:19px}.mic-btn.listening{box-shadow:0 0 0 5px rgba(220,53,69,.12);color:#dc3545}

/* Front office dashboard */
.front-dashboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}.front-dashboard-head h1{font-weight:850;font-size:25px;margin:0;color:#0b2445;letter-spacing:-.025em}.front-dashboard-head h1 i{color:#d7352a;font-size:19px;margin-right:7px}.front-breadcrumb{color:#7483a5;font-size:12px;margin-top:5px}.front-breadcrumb i{color:#e04a3e}.front-actions{display:flex;gap:10px}.front-actions .btn{padding:9px 15px;font-weight:750;box-shadow:var(--shadow-sm)}.front-actions .btn-danger{background:#df4337;border-color:#df4337;box-shadow:0 8px 18px rgba(223,67,55,.22)}
.front-kpi{position:relative;display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:14px;padding:19px 18px;min-height:108px;overflow:hidden;box-shadow:var(--shadow-sm);transition:.18s}.front-kpi:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.front-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--kpi)}.kpi-icon{width:54px;height:54px;border-radius:13px;display:grid;place-items:center;background:var(--kpi-soft);color:var(--kpi);font-size:24px;flex:0 0 54px}.kpi-label{color:#7483a5;font-size:12px}.kpi-value{font-size:27px;line-height:1.1;color:#071a34;font-weight:850;margin:4px 0}.kpi-note{font-size:11px;color:#0fa245}.kpi-blue{--kpi:#238ac2;--kpi-soft:#e7f3fb}.kpi-green{--kpi:#21b56b;--kpi-soft:#eaf9f0}.kpi-purple{--kpi:#9c4dcc;--kpi-soft:#f4ebfa}.kpi-teal{--kpi:#19a98d;--kpi-soft:#e6f7f3}.kpi-amber{--kpi:#e8a400;--kpi-soft:#fff7e6}.kpi-red{--kpi:#d33b35;--kpi-soft:#fff0ee}.kpi-navy{--kpi:#0b1d38;--kpi-soft:#e9eef6}.kpi-orange{--kpi:#ef741b;--kpi-soft:#fff3e9}.returning-guest-note{font-size:11px;color:#16844d;margin-top:6px;font-weight:700}.rent-correction-card{max-width:980px}.rent-correction-card label,.card form label{font-weight:750;margin-bottom:6px}.quick-actions .btn{margin:3px}

/* Login */
.login-body{min-height:100vh;background:radial-gradient(circle at 20% 20%,#e5efff 0,transparent 35%),linear-gradient(135deg,#eef4ff,#f8fafc);display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#fff;border:1px solid #dfe6ef;border-radius:22px;padding:28px;box-shadow:0 28px 70px rgba(25,40,70,.14)}.login-logo{width:62px;height:62px;border-radius:18px;background:linear-gradient(145deg,#0e2747,#153e6d);color:#fff;display:grid;place-items:center;font-weight:850;font-size:22px;margin-bottom:18px;box-shadow:0 10px 24px rgba(11,31,58,.18)}

/* Responsive */
@media(max-width:1199px){.page-context{display:none!important}.global-search{max-width:none}}
@media(max-width:991px){
  body.menu-open{overflow:hidden}.sidebar{transform:translateX(-102%);transition:transform .24s ease}.sidebar.show{transform:translateX(0)}.sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(8,24,45,.48);backdrop-filter:blur(2px);z-index:1035;opacity:0;visibility:hidden;transition:.2s}.sidebar-backdrop.show{opacity:1;visibility:visible}.main{margin-left:0;width:100%}.topbar{padding:0 16px}.top-actions .date-chip{display:none}.content-wrap{padding:18px}.rent-portal-head{margin:-18px -18px 0}.rent-grid>.border-end{border-right:0!important;border-bottom:1px solid #d9e3ef}.screenshot-form .field-row{border-right:0!important}.screenshot-form .field-row>label{width:40%}
}
@media(max-width:767px){.front-dashboard-head{flex-direction:column}.front-actions{width:100%}.front-actions .btn{flex:1}.front-kpi{min-height:102px;padding:16px}.kpi-value{font-size:24px}.front-dashboard-head h1{font-size:22px}.page-head{align-items:flex-start;flex-direction:column}.page-head>div:last-child,.page-head .d-flex{width:100%}.page-head .d-flex .btn{flex:1 1 auto}.card-body{padding:15px}}
@media(max-width:640px){.topbar{height:64px;padding:0 11px}.global-search{display:none}.top-actions{gap:7px}.user-chip{display:none!important}.content-wrap{padding:11px}.page-head{margin-bottom:14px}.page-head h1{font-size:21px}.table-responsive{border-radius:10px}.stat-card .value{font-size:22px}.screenshot-form .field-row{display:block;padding:13px}.screenshot-form .field-row>label{display:block;width:100%;min-width:0;margin-bottom:8px}.radio-pills label{padding:7px 9px}.permanent-table{min-width:1500px}.expense-card{border-radius:12px!important}.rent-portal-head{margin:-11px -11px 0}.btn{font-size:12px}.front-actions{flex-wrap:wrap}}
