@font-face { font-family: "Gilda Display"; src: url("../fonts/gilda-display.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/hind-siliguri.woff") format("woff"); font-weight: 400; font-display: swap; unicode-range: U+0980-09FF, U+200C-200D, U+25CC; }
:root {
    --deep: #0D2440; --deep-2: #163556; --water: #3FB6C6; --water-d: #1F8C9C; --water-soft: #E2F3F5;
    --bg: #F1F4F6; --white: #fff; --ink: #13202E; --ink-2: #566676; --line: #DCE3E8;
    --brass: #B98E3E; --danger: #B3322B; --ok: #1C7A55;
    --f: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--f); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--water-d); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }
.ico { flex: none; }

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sb { background: var(--deep); color: rgba(255,255,255,.8); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sb__brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff; text-decoration: none; font-family: "Gilda Display", "Figtree", serif; font-size: 22px; }
.sb__nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; }
.sb__nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; }
.sb__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb__nav a.is-on { background: rgba(63,182,198,.18); color: #fff; }
.sb__nav a.is-on .ico { color: var(--water); }
.sb__group { margin: 16px 12px 6px; font-size: 12.5px; color: rgba(255,255,255,.45); font-weight: 600; }
.pill { margin-left: auto; background: var(--brass); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.sb__foot { padding: 12px 10px 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 2px; }
.sb__foot a, .sb__foot button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: rgba(255,255,255,.7); text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; border-radius: 8px; }
.sb__foot a:hover, .sb__foot button:hover { color: #fff; background: rgba(255,255,255,.07); }

.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__menu { display: none; background: none; border: 0; cursor: pointer; padding: 4px; }
.top__title { font-size: 21px; margin-right: auto; }
.top__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content { padding: 24px 28px 60px; max-width: 1400px; }

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sb { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
    .sb.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
    .top__menu { display: inline-flex; }
    .top { padding: 12px 16px; flex-wrap: wrap; }
    .content { padding: 16px; }
}

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn--primary { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn--primary:hover { background: var(--deep-2); }
.btn--water { background: var(--water-d); border-color: var(--water-d); color: #fff; }
.btn--danger { color: var(--danger); border-color: #EAC7C4; }
.btn--danger:hover { background: #FBEDEC; border-color: var(--danger); }
.btn--wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn--sm { padding: 6px 10px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }
.inline { display: inline; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.flash ul { margin: 0; padding-left: 18px; }
.flash--ok { background: #DDF2E8; color: #0F5A3D; }
.flash--err { background: #F7E1DF; color: #7B1F1A; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__head h2 { font-size: 17px; }
.help { color: var(--ink-2); margin: -4px 0 18px; max-width: 80ch; }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.stat strong { display: block; font-size: 30px; line-height: 1.1; color: var(--deep); }
.stat span { color: var(--ink-2); font-size: 14px; }
.stat--alert { border-color: var(--brass); background: #FDF8EE; }
a.stat:hover { border-color: var(--water); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

.occ { display: grid; gap: 12px; }
.occ__row { display: grid; grid-template-columns: 130px 1fr 60px; gap: 12px; align-items: center; font-size: 14.5px; }
.occ__bar { height: 10px; background: var(--water-soft); border-radius: 99px; overflow: hidden; }
.occ__bar i { display: block; height: 100%; background: var(--water-d); border-radius: 99px; }

.tbl-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #F8FAFB; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FAFCFD; }
.tbl .thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.tbl a.rowlink { color: var(--ink); font-weight: 600; text-decoration: none; }
.tbl a.rowlink:hover { color: var(--water-d); }
.card .tbl-wrap { border: 0; border-radius: 0; margin: 0 -20px -20px; }

.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st--pending { background: #FBF0D9; color: #8A6417; }
.st--confirmed { background: #DDEBFA; color: #1D4F8A; }
.st--checked_in { background: #DDF2E8; color: var(--ok); }
.st--completed { background: #ECEFF2; color: #4A5A6B; }
.st--cancelled { background: #F7E1DF; color: var(--danger); }
.yes { color: var(--ok); font-weight: 700; } .no { color: #A0ACB8; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .f { display: flex; flex-direction: column; gap: 3px; }
.filters label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; }
.tabs a.is-on { background: var(--deep); color: #fff; border-color: var(--deep); }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=url], input[type=search], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); min-height: 40px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(63,182,198,.18); }
textarea { min-height: 100px; resize: vertical; }
textarea.lg { min-height: 220px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > label { font-weight: 600; font-size: 14px; }
.fld .hint { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--deep); }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.img-current { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.img-current img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preview img { width: 90px; height: 66px; object-fit: cover; border-radius: 6px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.icon-pick input:checked + span { border-color: var(--deep); background: var(--water-soft); color: var(--deep); }
.icon-pick input:focus-visible + span { outline: 2px solid var(--water); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photo { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo__body { padding: 8px 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.photo__meta { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-2); }
.photo__btns { display: flex; gap: 6px; margin-top: auto; }
.photo.is-cover { outline: 3px solid var(--brass); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: var(--water-soft); color: var(--deep); font-weight: 600; }

.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--ink-2); }
.dl dd { margin: 0; font-weight: 500; }

.cal-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.cal { border-collapse: collapse; font-size: 13px; min-width: 980px; width: 100%; }
.cal th, .cal td { border: 1px solid var(--line); padding: 0; height: 38px; text-align: center; }
.cal thead th { background: #F8FAFB; padding: 6px 4px; font-weight: 600; color: var(--ink-2); }
.cal thead th.is-today { background: var(--water-soft); color: var(--deep); }
.cal thead th small { display: block; font-weight: 400; }
.cal th.room { text-align: left; padding: 0 10px; white-space: nowrap; background: #fff; position: sticky; left: 0; z-index: 1; font-weight: 600; }
.cal tr.type th { background: var(--deep); color: #fff; text-align: left; padding: 6px 10px; height: auto; }
.cal td a { display: block; height: 100%; line-height: 36px; text-decoration: none; color: #fff; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; }
.cal td.b-confirmed { background: #3B78C2; }
.cal td.b-checked_in { background: var(--ok); }
.cal td.b-pending { background: #E6B24A; }
.cal td.free a { color: transparent; }
.cal td.free:hover { background: var(--water-soft); }
.cal td.free:hover a { color: var(--water-d); }
.cal tr.unassigned td { background: #FFF9EC; font-size: 12px; color: #8A6417; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__img { background: var(--deep) center / cover no-repeat; position: relative; }
.login__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,36,64,.2), rgba(13,36,64,.75)); }
.login__img p { position: absolute; left: 40px; bottom: 36px; z-index: 1; color: #fff; font-family: "Gilda Display", "Figtree", serif; font-size: 40px; margin: 0; line-height: 1.1; }
.login__form { display: grid; place-items: center; padding: 32px 20px; background: var(--white); }
.login__form form { width: 100%; max-width: 360px; display: grid; gap: 16px; }
.login__form h1 { font-family: "Gilda Display", "Figtree", serif; font-weight: 400; font-size: 32px; color: var(--deep); }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login__img { min-height: 200px; } .login__img p { font-size: 28px; left: 20px; bottom: 20px; } }

.pagination { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 0 0; }
.pagination a, .pagination span { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.pagination .active span { background: var(--deep); color: #fff; border-color: var(--deep); }
.pagination .disabled span { color: #B0BAC4; }
.msg-unread td { font-weight: 600; }
.empty { padding: 32px; text-align: center; color: var(--ink-2); }
.sb__brand img { height: 40px; width: auto; }
.login__logo { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(240px, 50%); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
