.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:16px}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.card-h h2{font-size:15.5px;font-weight:700;color:var(--navy)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:16px}
.stat{padding:18px}
.stat .lb{font-size:12.5px;color:var(--muted);font-weight:500}
.stat .vl{font-size:23px;font-weight:800;margin-top:5px;color:var(--navy)}
.stat.gold .vl{color:var(--gold-2)}
.stat .sub{font-size:12px;color:var(--muted);margin-top:4px}
.grid2{display:grid;grid-template-columns:1.45fr 1fr;gap:16px}
.grid2>.card{margin-bottom:0}
.mb{margin-bottom:16px}

.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.grow{flex:1}
.search{max-width:280px}
input,select,textarea{font:inherit;font-weight:500;padding:9px 12px;border:1px solid #ddd8cb;border-radius:9px;background:#fbfaf7;color:var(--ink);width:100%}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(193,154,75,.18)}
textarea{resize:vertical}
select{cursor:pointer}

.btn{display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:9px 16px;border-radius:10px;font-size:13.5px;font-weight:600;border:1px solid transparent;cursor:pointer;transition:.15s;text-decoration:none}
.btn.gold{background:linear-gradient(135deg,#d3ab5c,#a8863a);color:#fff;box-shadow:0 4px 14px rgba(168,134,58,.32)}
.btn.dark{background:var(--navy);color:#fff}
.btn.ghost{background:#fff;border-color:var(--line);color:var(--ink)}
.btn.danger{background:#fff;border-color:#eecac3;color:var(--red)}
.btn:hover{filter:brightness(.97)}
.btn.sm{padding:5px 10px;font-size:12px;border-radius:8px}

.badge{display:inline-flex;align-items:center;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:99px;white-space:nowrap}
.bd-green{background:#e5f4ec;color:#177245}
.bd-blue{background:#e8effd;color:#2553c9}
.bd-gold{background:#f6efdc;color:#96702a}
.bd-navy{background:#e6e9f2;color:#233457}
.bd-gray{background:#eef0f4;color:#5c6577}
.bd-red{background:#fbe9e6;color:#bb4430}

.tbl-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:9px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.tbl td{padding:11px 12px;border-bottom:1px solid #f1eee6;vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr:hover td{background:#fbfaf6}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ac{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.sub-txt{font-size:12px;color:var(--muted)}
.empty{padding:30px;text-align:center;color:var(--muted);font-size:13.5px}
.mt{margin-top:14px}
.warn{color:var(--red);font-weight:700}

.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{width:54px;height:40px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;border:1px solid transparent}
.chip.free{background:#e5f4ec;color:#177245;border-color:#cdeada}
.chip.booked{background:#f6efdc;color:#96702a;border-color:#eadfc0}
.chip.stay{background:var(--navy);color:#f0d9a6}
.chip.maint{background:#fbe9e6;color:#bb4430;border-color:#f3d4cd}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-top:14px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:6px}

.cal-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.cal{min-width:760px}
.cal-row{display:grid;border-bottom:1px solid #f0ece1;position:relative}
.cal-row:last-child{border-bottom:none}
.cal-row>*{grid-row:1}
.cal-room{position:sticky;left:0;z-index:3;background:#fff;padding:7px 12px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--line);min-height:46px}
.cal-room b{font-size:13px;line-height:1.2}
.cal-room span{font-size:10.5px;color:var(--muted);white-space:nowrap}
.cal-day,.cal-cell{border-left:1px dashed #eee9de}
.cal-day{text-align:center;font-size:10.5px;font-weight:700;color:var(--muted);padding:7px 2px;line-height:1.35;background:#fff}
.cal-day.we{background:#faf7ef}
.cal-day.tdy{background:#fdf3d7;color:var(--gold-2)}
.cal-cell{min-height:46px;cursor:pointer;background:#fff}
.cal-cell.we{background:#fbf9f2}
.cal-cell.tdy{background:#fdf9ec}
.cal-cell:hover{background:#f6efdc}
.cal-bar{z-index:2;position:relative;margin:6px 3px;border-radius:8px;font-size:11px;font-weight:600;padding:0 8px;display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;border:1px solid transparent;height:34px;align-self:center}
.cal-bar.b-conf{background:#e8effd;color:#2553c9;border-color:#ccd9f6}
.cal-bar.b-in{background:#1e6f49;color:#eef8f1;border-color:#18603f}
.cal-bar.b-out{background:#eef0f4;color:#69707f;border-color:#dee2ea}
.cal-bar:hover{filter:brightness(.95)}

.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}
.tabs button{border:none;background:none;padding:10px 14px;font-weight:600;font-size:13.5px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs button.active{color:var(--navy);border-color:var(--gold)}
.tabs .cnt{background:#eef0f4;border-radius:99px;padding:1px 8px;font-size:11.5px;margin-left:6px}
.tabs button.active .cnt{background:#f6efdc;color:var(--gold-2)}

.bars{display:flex;align-items:flex-end;gap:5px;height:190px;padding:26px 4px 24px}
.bar{flex:1;background:linear-gradient(180deg,#d8b26a,#a8863a);border-radius:5px 5px 0 0;min-height:3px;position:relative;cursor:pointer}
.bar em{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-style:normal;font-size:10.5px;font-weight:600;color:var(--gold-2);background:#fdf8ec;padding:1px 6px;border-radius:6px;opacity:0;transition:.15s;white-space:nowrap;z-index:2}
.bar:hover em{opacity:1}
.bar u{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:9.5px;color:var(--muted);text-decoration:none;white-space:nowrap}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}
.full{grid-column:1/-1}
.sum{background:#faf7ef;border:1px dashed #e2d6ba;border-radius:10px;padding:12px 15px;display:flex;justify-content:space-between;gap:10px;font-weight:700;flex-wrap:wrap}

.ovl{position:fixed;inset:0;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;z-index:50;animation:fade .15s;padding:16px}
.modal{background:#fff;width:min(580px,96vw);max-height:92vh;border-radius:16px;display:flex;flex-direction:column;animation:up .18s;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.m-head{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line)}
.m-head h3{font-size:16.5px;font-weight:800;color:var(--navy)}
.x{border:none;background:none;font-size:24px;line-height:1;cursor:pointer;color:var(--muted)}
.m-body{padding:20px 22px;overflow:auto}
.m-foot{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
.cf{font-size:14px}
.bill div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed #eee7d8;font-size:13.5px}
.bill div:last-child{border:none;font-weight:800;font-size:15px;color:var(--gold-2)}

.toast-root{position:fixed;right:18px;bottom:18px;z-index:90;display:flex;flex-direction:column;gap:8px}
.toast{background:#111a2e;color:#f5ecd7;padding:11px 16px;border-radius:11px;font-size:13.5px;box-shadow:0 8px 24px rgba(0,0,0,.28);border:1px solid #2c3a5c;animation:up .2s;max-width:340px}

@keyframes up{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}

.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#141f38,#1b2846)}
.login-card{background:#fff;width:min(400px,92vw);border-radius:18px;padding:36px 30px;display:flex;flex-direction:column;gap:14px;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:up .25s}
.login-card h1{font-size:20px;color:var(--navy);text-align:center}
.login-card>p{font-size:13px;color:var(--muted);text-align:center;margin-top:-8px}
.login-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--ink)}
.login-card .btn{margin-top:6px;padding:11px;font-size:14.5px}
.logo.big{width:56px;height:56px;font-size:28px;border-radius:16px;margin:0 auto}

.foot-user{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#aab7d4;margin-bottom:8px}
.foot-user .dot{width:7px;height:7px;border-radius:99px;background:#2fbf71;flex:none;display:inline-block}
.foot-user .foot-mail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
.foot-user button{margin-left:auto;background:none;border:none;color:#8fa0c4;cursor:pointer;padding:4px;border-radius:6px;display:flex}
.foot-user button:hover{color:#fff;background:rgba(255,255,255,.08)}
.foot-user svg{width:15px;height:15px}
