:root{--bg: #f6f8fc;--surface: #fff;--surface2: #eef2f8;--border: #e3e8ef;--text: #1f2430;--muted: #5f6c7b;--primary: #1a73e8;--primary-dk: #1765cc;--primary-soft: #e8f0fe;--green: #1e8e3e;--green-soft: #e6f4ea;--orange: #e8710a;--orange-soft: #fef3e0;--red: #d93025;--red-soft: #fce8e6;--purple: #7c4dff;--teal: #00897b;--gray: #80868b;--brown: #8d6e63;--day-w: 46px;font-size:14px}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:Google Sans,Roboto,system-ui,sans-serif;background:var(--bg);color:var(--text);overflow:hidden}button{font-family:inherit}.app{height:100vh;display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:center;gap:14px;padding:10px 20px}.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px}.logo .mark{width:34px;height:34px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:16px}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:24px;padding:8px 18px;font-size:14px;font-weight:500;cursor:pointer;transition:.15s}.btn:hover{box-shadow:0 1px 6px #20212426}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn.primary:hover{background:var(--primary-dk)}.btn.danger{color:var(--red);border-color:var(--red)}.iconbtn{width:36px;height:36px;border-radius:50%;border:none;background:transparent;display:grid;place-items:center;cursor:pointer;font-size:17px;color:var(--muted)}.iconbtn:hover{background:#e9edf3}.month-title{font-size:20px;font-weight:500}.search{flex:1;max-width:400px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:9px 16px;color:var(--muted)}.search input{border:none;outline:none;flex:1;font-family:inherit;font-size:14px;background:transparent;color:var(--text)}.search-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 24px #2021242e;z-index:40;overflow:hidden;max-height:280px;overflow-y:auto}.search-result{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:9px 14px;border:none;background:none;cursor:pointer;font-family:inherit}.search-result:hover{background:var(--primary-soft)}.search-result b{font-size:13px;color:var(--text)}.search-result span{font-size:11.5px;color:var(--muted)}.spacer{flex:1}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#1a73e8,#7c4dff);color:#fff;display:grid;place-items:center;font-weight:700}.sync{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:6px 13px}.sync .dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.sync.offline .dot{background:var(--red)}.sync.loading .dot{background:var(--orange)}.layout{display:flex;flex:1;gap:14px;padding:0 14px 14px;min-height:0}.sidebar{width:246px;flex-shrink:0;display:flex;flex-direction:column;gap:14px;overflow-y:auto}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px}.side-card{padding:16px}.mini-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:500}.mini-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:12px}.mini-grid .dow{color:var(--muted);padding:4px 0;font-weight:500}.mini-grid .d{padding:6px 0;border-radius:50%;cursor:pointer;border:none;background:none;font-family:inherit;font-size:12px;color:var(--text)}.mini-grid .d:hover{background:var(--primary-soft)}.mini-grid .d.today{background:var(--primary);color:#fff;font-weight:700}.mini-grid .d.empty{cursor:default}.mini-grid .d.empty:hover{background:none}.side-title{font-weight:500;font-size:12px;color:var(--muted);margin-bottom:10px;letter-spacing:.5px}.filter{display:flex;align-items:center;gap:10px;padding:7px 4px;border-radius:8px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:13.5px;border:none;background:none;width:100%;text-align:left}.filter:hover{background:#f1f4f9}.cbox{width:17px;height:17px;border-radius:5px;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:700;flex-shrink:0}.filter small{margin-left:auto;color:var(--muted)}.assign-item{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:12px;background:var(--red-soft);margin-bottom:8px;cursor:pointer;border:1px solid transparent;transition:.15s;width:100%;text-align:left}.assign-item:hover{border-color:var(--red)}.assign-item b{font-size:13px}.assign-item span{font-size:11.5px;color:var(--muted)}.assign-item .tag{align-self:flex-start;font-size:10.5px;font-weight:700;color:var(--red);background:#fff;border-radius:8px;padding:1px 8px;margin-top:3px}.pay-badge{align-self:flex-start;font-size:10.5px;font-weight:600;border-radius:8px;padding:1px 8px}.pay-badge.paid{color:var(--green);background:#fff}.pay-badge.unpaid{color:var(--orange);background:#fff}.empty-note{font-size:12px;color:var(--muted);padding:4px}.main{flex:1;display:flex;gap:14px;min-width:0}.sched-wrap{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden;position:relative}.sched{flex:1;overflow:auto}.sched table{border-collapse:separate;border-spacing:0;width:max-content}.sched th,.sched td{border-right:1px solid #eef1f6;border-bottom:1px solid #eef1f6;padding:0}.sched thead th{position:sticky;top:0;background:var(--surface);z-index:3;font-weight:500;font-size:11px;color:var(--muted);min-width:var(--day-w);height:52px}.sched thead th.roomcol{left:0;z-index:4;min-width:148px}.sched thead th .dnum{font-size:15px;color:var(--text);font-weight:500;display:block;margin-top:1px}.sched thead th.weekend .dnum{color:var(--primary)}.sched thead th.today-col{background:var(--primary-soft)}.sched thead th.today-col .dnum{background:var(--primary);color:#fff;width:26px;height:26px;line-height:26px;border-radius:50%;margin:1px auto 0}.roomcell{position:sticky;left:0;background:var(--surface);z-index:2;min-width:148px;padding:0 12px!important;font-weight:500;font-size:13px;height:38px;white-space:nowrap;border:none;cursor:pointer;display:flex;align-items:center;gap:7px}.roomcell .st{margin-right:0}.floor-row td{background:var(--surface2)!important;font-size:10.5px;font-weight:700;color:var(--primary);letter-spacing:1px;padding:5px 12px!important;position:sticky;left:0}.daycell{min-width:var(--day-w);height:38px;position:relative}.daycell.weekend{background:#fafbfe}.daycell.today-col{background:var(--primary-soft)}.st{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;vertical-align:1px}.st.VR{background:var(--green)}.st.VD{background:var(--orange)}.st.OC,.st.OD{background:var(--primary)}.st.OOO,.st.OOS{background:var(--gray)}.chip{position:absolute;top:5px;left:3px;height:28px;border-radius:8px;font-size:11.5px;font-weight:500;display:flex;align-items:center;padding:0 8px;overflow:hidden;white-space:nowrap;cursor:pointer;z-index:1;box-shadow:0 1px 2px #2021241f;transition:.12s;color:#fff;border:none}.chip:hover{filter:brightness(.95);box-shadow:0 2px 8px #20212440;z-index:2}.chip.oyo-lunas,.chip.ota{background:var(--primary)}.chip.oyo-pah{background:var(--teal)}.chip.walkin,.chip.pah{background:var(--green)}.chip.longstay{background:var(--orange)}.chip.owner{background:var(--purple)}.chip.unassigned{background:#fff;color:var(--red);border:1.5px dashed var(--red)}.chip.cancelled{background:var(--brown);text-decoration:line-through}.chip.checked-out,.chip.overdue{background:var(--red)}.chip.ooo{background:repeating-linear-gradient(45deg,#eceff4,#eceff4 8px,#e2e7ee 8px,#e2e7ee 16px);color:#5f6c7b;border:1px solid #d5dbe4;font-weight:500;cursor:default;box-shadow:none}.chip-wrap{position:absolute;top:5px;left:3px;height:28px;z-index:1}.chip-wrap:hover{z-index:2}.chip-wrap .chip{position:static;width:100%;height:100%}.chip-wrap.dragging .chip{opacity:.3}.chip-resize-handle{position:absolute;right:0;top:0;width:7px;height:100%;cursor:ew-resize;z-index:3}.chip-resize-handle:hover{background:#ffffff59;border-radius:0 8px 8px 0}.drag-overlay-chip{cursor:grabbing;box-shadow:0 6px 18px #20212459;opacity:.95;pointer-events:none}tr.drop-target .daycell{background:var(--primary-soft)}.insights{width:262px;flex-shrink:0;padding:18px;overflow-y:auto}.insights h3{font-size:16px;margin-bottom:2px}.insights .sub{font-size:12px;color:var(--muted);margin-bottom:16px}.kpi-row{display:flex;gap:10px;margin-bottom:16px}.kpi{flex:1;background:var(--primary-soft);border-radius:14px;padding:12px}.kpi.green{background:var(--green-soft)}.kpi b{font-size:19px;display:block}.kpi span{font-size:11px;color:var(--muted)}.bar-row{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:12px}.bar-row label{width:64px;color:var(--muted)}.bar-track{flex:1;height:14px;border-radius:7px;background:#e8eaf1;overflow:hidden}.bar-fill{height:100%;border-radius:7px;background:var(--primary)}.bar-row b{width:34px;text-align:right}.legend{display:flex;flex-direction:column;gap:8px;margin-top:16px;font-size:12.5px}.legend div{display:flex;align-items:center;gap:8px}.legend i{width:13px;height:13px;border-radius:4px}hr{border:none;border-top:1px solid var(--border);margin:16px 0}.pop{position:fixed;z-index:50;width:300px;background:var(--surface);border-radius:18px;box-shadow:0 8px 30px #20212447;padding:18px}.pop .src{font-size:11px;font-weight:700;letter-spacing:.5px;border-radius:8px;padding:2px 9px;display:inline-block;margin-bottom:8px}.pop h4{font-size:16px;margin-bottom:4px}.pop p{font-size:12.5px;color:var(--muted);margin:3px 0}.pop .warn{font-size:12px;color:var(--orange);background:var(--orange-soft);border-radius:8px;padding:6px 9px;margin-top:8px}.pop .actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.pop .actions .btn{padding:7px 14px;font-size:13px;flex:1;text-align:center}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f141e59;display:flex;align-items:center;justify-content:center;z-index:60}.modal{width:420px;max-width:calc(100vw - 32px);max-height:calc(100vh - 64px);overflow-y:auto;background:var(--surface);border-radius:20px;padding:22px;box-shadow:0 12px 40px #2021244d}.modal h3{font-size:17px;margin-bottom:14px}.form-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin:-8px 0 14px}.field{margin-bottom:12px;display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;color:var(--muted);font-weight:500}.field input,.field select,.field textarea{border:1px solid var(--border);border-radius:10px;padding:9px 11px;font-size:13.5px;font-family:inherit;background:var(--bg);color:var(--text)}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--primary-soft);border-color:var(--primary)}.field-row{display:flex;gap:10px}.field-row .field{flex:1}.modal .actions{display:flex;gap:10px;margin-top:18px;justify-content:flex-end}.error-box{font-size:12.5px;color:var(--red);background:var(--red-soft);border-radius:10px;padding:8px 11px;margin-bottom:10px}.warn-box{font-size:12.5px;color:var(--orange);background:var(--orange-soft);border-radius:10px;padding:8px 11px;margin-bottom:10px}.log-modal{width:720px;max-width:calc(100vw - 32px)}.log-filters{display:flex;gap:10px;margin-bottom:14px}.log-filters select,.log-filters input{border:1px solid var(--border);border-radius:10px;padding:8px 11px;font-size:13px;font-family:inherit;background:var(--bg);color:var(--text)}.log-filters input{flex:1}.log-table-wrap{max-height:60vh;overflow-y:auto;border:1px solid var(--border);border-radius:12px}.log-table{width:100%;border-collapse:collapse;font-size:12.5px}.log-table th{position:sticky;top:0;background:var(--surface2);text-align:left;padding:8px 10px;font-weight:600;font-size:11px;color:var(--muted)}.log-table td{padding:8px 10px;border-top:1px solid #eef1f6;vertical-align:top}.log-table .log-at{white-space:nowrap;color:var(--muted);font-size:11.5px}.chip-badge{display:inline-block;padding:2px 9px;border-radius:8px;font-size:11px;font-weight:600;color:#fff;white-space:nowrap}.chip-badge.oyo,.chip-badge.ota{background:var(--primary)}.chip-badge.walkin,.chip-badge.pah{background:var(--green)}.chip-badge.longstay{background:var(--orange)}.chip-badge.cancelled{background:var(--red)}.chip-badge-compact{padding:1px 6px;font-size:10px}.master-modal{width:640px;max-width:calc(100vw - 32px)}.master-table-wrap{max-height:50vh;overflow-y:auto;border:1px solid var(--border);border-radius:12px}.master-table{width:100%;border-collapse:collapse;font-size:12.5px}.master-table th{position:sticky;top:0;background:var(--surface2);text-align:left;padding:8px 10px;font-weight:600;font-size:11px;color:var(--muted)}.master-table td{padding:6px 10px;border-top:1px solid #eef1f6;vertical-align:middle}.master-table td .btn{padding:4px 12px;font-size:12px}.master-edit-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.master-edit-form h4{font-size:14px;margin-bottom:10px}.billing-modal{width:560px;max-width:calc(100vw - 32px)}.group-confirm-modal{width:640px;max-width:calc(100vw - 32px)}.group-confirm-table{width:100%;border-collapse:collapse;margin-bottom:16px}.group-confirm-table th{text-align:left;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;padding:0 8px 8px}.group-confirm-table td{padding:6px 8px;vertical-align:middle}.group-confirm-table td:first-child{color:var(--muted);font-size:12.5px;width:40px}.group-confirm-table select,.group-confirm-table input{width:100%;border:1px solid var(--border);border-radius:10px;padding:8px 10px;font-size:13.5px;font-family:inherit;background:var(--bg);color:var(--text)}.group-confirm-table td:nth-child(3) input{max-width:130px}.billing-summary{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:13px}.billing-summary>div{display:flex;justify-content:space-between;align-items:center;padding:4px 0}.billing-line button{border:none;background:none;color:var(--muted);cursor:pointer;font-size:12px}.billing-total{border-top:1px solid var(--border);margin-top:6px;padding-top:8px!important;font-weight:600}.billing-balance{font-weight:700}.billing-balance.due{color:var(--red)}.billing-add-form{display:flex;gap:8px;margin-bottom:10px;align-items:center}.billing-add-form select,.billing-add-form input{border:1px solid var(--border);border-radius:10px;padding:7px 10px;font-size:12.5px;font-family:inherit;background:var(--bg);color:var(--text)}.billing-add-form input[type=number]{width:100px}.billing-deposit{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);margin-top:10px;padding-top:12px;font-size:13px}.receipt-modal{width:340px;max-width:calc(100vw - 32px)}.receipt-row{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:13px}.receipt-total{font-size:16px;margin:6px 0}@media print{body *{visibility:hidden}.receipt-paper,.receipt-paper *{visibility:visible}.receipt-paper{position:fixed;top:0;left:0;width:100%;padding:24px}}.reports-modal{width:96vw;max-width:none;height:92vh;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}.reports-tabs{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.reports-tab{border:none;background:none;padding:8px 14px;font-size:13px;font-family:inherit;color:var(--muted);cursor:pointer;border-radius:10px 10px 0 0;border-bottom:2px solid transparent}.reports-tab:hover{background:var(--surface2)}.reports-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.reports-filters{display:flex;gap:10px;margin-bottom:14px;align-items:center}.reports-filters input{border:1px solid var(--border);border-radius:10px;padding:8px 11px;font-size:13px;font-family:inherit;background:var(--bg);color:var(--text)}.reports-table-wrap{flex:1;overflow-y:auto;overflow-x:auto;border:1px solid var(--border);border-radius:12px}.reports-table{border-collapse:collapse;font-size:12.5px;table-layout:fixed}.reports-table th{position:sticky;top:0;background:var(--surface2);text-align:left;padding:8px 10px;font-weight:600;font-size:11px;color:var(--muted)}.reports-table td{padding:7px 10px;border-top:1px solid #eef1f6;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reports-table tbody tr:nth-child(2n){background:#00000009}.reports-table tfoot td{font-weight:600;border-top:2px solid var(--border);background:var(--surface2);white-space:normal}.col-resize-handle{position:absolute;right:0;top:0;width:6px;height:100%;cursor:col-resize}.col-resize-handle:hover{background:#00000014}
