/* Ko'k Gumbaz — the reception's panel. Sits on webapp/app.css (the same palette, buttons, chips and sheets); works at
   phone width inside Telegram and wide on a desk. Everything stays inside .a-root. */
.a-root { background: #eef1f6; container-type: inline-size; }
.a-app { height: 100%; display: flex; flex-direction: column; }
.a-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--deep); color: #fff; flex: none; flex-wrap: wrap; }
.a-brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.a-brand b { font: 600 17px var(--serif); } .a-role { font-size: 11px; opacity: .7; }
.a-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.a-tab { border: 0; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); border-radius: 10px; padding: 7px 12px; font-size: 13.5px; white-space: nowrap; flex: 1; }
.a-tab.on { background: #fff; color: var(--deep); font-weight: 650; }
.a-body { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.a-page { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.a-card { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 3px rgba(16, 40, 79, .08); }
.a-card h2, .a-today h3 { font: 600 17px var(--serif); }
.a-bar-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-months { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.a-pager { display: flex; gap: 4px; }
.a-pager button { border: 1px solid #d6dce8; background: #fff; border-radius: 9px; min-width: 34px; height: 34px; font-size: 17px; color: var(--blue); }
.a-pager .wide { font-size: 13px; padding: 0 12px; font-weight: 600; }

.a-todays { display: grid; grid-template-columns: 1fr; gap: 12px; }
.a-today { background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--blue); box-shadow: 0 1px 3px rgba(16, 40, 79, .08); }
.a-today.departures { border-top-color: var(--ok); }
.a-today h3 { display: flex; align-items: center; gap: 8px; }
.a-today h3 em { font: 700 12px system-ui, sans-serif; font-style: normal; background: #e8eef7; color: var(--blue); border-radius: 999px; padding: 2px 8px; }
.a-today-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eef1f6; }
.a-link { flex: 1; min-width: 0; border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; }
.a-link span { font-size: 12.5px; color: var(--muted); }

.a-grid-wrap { overflow-x: auto; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px 2px; }
.a-grid { display: grid; grid-auto-rows: 40px; gap: 3px; min-width: 700px; position: relative; }
.a-gh { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; border-radius: 8px; grid-row: 1; }
.a-gh small { font-size: 10.5px; color: var(--muted); } .a-gh b { font-size: 14px; }
.a-gh.we small { color: var(--gold); font-weight: 700; }
.a-gh.today { background: var(--deep); color: #fff; } .a-gh.today small { color: rgba(255, 255, 255, .75); }
.a-gh.corner { grid-column: 1; align-items: flex-start; font-size: 11.5px; color: var(--muted); padding-left: 4px; position: sticky; left: 0; background: #fff; z-index: 3; border-radius: 0; }
.a-room { grid-column: 1; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; padding-left: 4px; position: sticky; left: 0; background: #fff; z-index: 3; }
.a-room b { font-size: 15px; } .a-room small { font-size: 10.5px; color: var(--muted); }
.a-cell { border: 0; background: #f1f4f8; border-radius: 7px; padding: 0; }
.a-cell.today { background: #e1e9f5; } .a-cell.past { background: #f7f8fa; cursor: default; }
.a-cell:not(:disabled):hover { background: #d7e6ee; }
.a-bar { z-index: 2; border: 0; border-radius: 9px; margin: 3px 2px; padding: 0 8px; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; font-size: 12.5px; color: #fff; background: var(--blue); text-align: left; min-width: 0; box-shadow: 0 1px 2px rgba(16, 40, 79, .25); transition: background-color .5s; }
.a-bar b { overflow: hidden; text-overflow: ellipsis; font-weight: 650; } .a-bar span { opacity: .8; font-size: 11px; }
.a-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; } .a-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.a-bar.s-held, .a-legend .s-held { background: repeating-linear-gradient(-45deg, #f2c14e 0 7px, #f7d57e 7px 14px); color: #5c3d00; }
.a-bar.s-confirmed, .a-legend .s-confirmed { background: #2f66c4; }
.a-bar.s-checked_in, .a-legend .s-checked_in { background: #1c8f62; }
.a-bar.s-checked_out, .a-legend .s-checked_out { background: #b4bac6; }
.a-bar.s-block, .a-legend .s-block { background: repeating-linear-gradient(-45deg, #8d5a4a 0 7px, #a06a58 7px 14px); }
.a-bar.new { animation: a-pop .6s; }
.a-occ { display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.a-occ.today { color: var(--deep); }
.a-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.a-legend span { display: inline-flex; align-items: center; gap: 5px; } .a-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.a-legend .free { background: #f1f4f8; box-shadow: inset 0 0 0 1px #d6dce8; } .a-legend .rev { background: var(--gold); }

.a-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.a-field input, .a-field select, .a-search, .a-price { font: inherit; color: var(--ink); border: 1.5px solid #d6dce8; border-radius: 10px; padding: 9px 11px; background: #fff; min-width: 0; }
.a-search { flex: 1; min-width: 140px; max-width: 280px; margin-left: auto; padding: 7px 11px; }
.a-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .a-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.a-terms { font-size: 13.5px; font-weight: 600; } .a-stars { color: var(--gold); font-size: 20px; letter-spacing: 2px; }
.a-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .a-sheet-head small { color: var(--muted); }
.a-nights summary { cursor: pointer; font-size: 13.5px; color: var(--blue); font-weight: 600; padding: 4px 0; }
.a-root .g-sheet-box { gap: 12px; }
.a-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.a-chipbtn { border: 1.5px solid #d6dce8; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; color: var(--ink); }
.a-chipbtn.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 650; }
.a-list { display: flex; flex-direction: column; }
.a-rowb { border: 0; border-top: 1px solid #eef1f6; background: none; text-align: left; padding: 9px 2px; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "no guest status" "no room total" "no dates dates"; gap: 1px 8px; align-items: center; font-size: 13.5px; }
.a-rowb:hover { background: #f6f8fb; }
.c-no { grid-area: no; color: var(--muted); font-variant-numeric: tabular-nums; } .c-guest { grid-area: guest; font-size: 14.5px; } .c-room { grid-area: room; color: var(--muted); }
.c-dates { grid-area: dates; color: var(--muted); font-size: 12.5px; } .c-total { grid-area: total; text-align: right; font-variant-numeric: tabular-nums; } .a-rowb .g-chip { grid-area: status; justify-self: end; }
.a-none { padding: 14px 0; text-align: center; }
.a-rates { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13.5px; }
.a-rates th { text-align: left; padding: 6px 6px; font-weight: 650; } .a-rates thead th { color: var(--muted); font-size: 12px; font-weight: 600; } .a-rates th.sub { font-weight: 500; }
.a-rates td { padding: 4px; } .a-price { width: 100%; text-align: right; font-variant-numeric: tabular-nums; padding: 8px 9px; }

.a-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.a-kpi { background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 1px 3px rgba(16, 40, 79, .08); min-width: 0; }
.a-kpi span { font-size: 12px; color: var(--muted); } .a-kpi b { font-size: 19px; line-height: 1.25; font-variant-numeric: tabular-nums; } .a-kpi small { font-size: 11.5px; color: var(--muted); }
.a-kpi:first-child { background: var(--deep); color: #fff; } .a-kpi:first-child span, .a-kpi:first-child small { color: rgba(255, 255, 255, .72); }
.a-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(26px, 1fr); gap: 4px; height: 190px; min-width: 620px; }
.a-col { border: 0; background: none; padding: 0; display: grid; grid-template-rows: 14px 1fr 16px 14px; grid-template-columns: 1fr 1fr; gap: 2px; align-items: end; justify-items: center; border-radius: 8px; }
.a-col em { grid-column: 1 / 3; font-style: normal; font-size: 10px; color: var(--muted); }
.a-col-track, .a-col-rev { height: 100%; width: 100%; display: flex; align-items: flex-end; background: #f1f4f8; border-radius: 5px 5px 2px 2px; overflow: hidden; }
.a-col-track i { width: 100%; background: #2f66c4; border-radius: 5px 5px 0 0; display: block; } .a-col-rev i { width: 100%; background: var(--gold); border-radius: 5px 5px 0 0; display: block; }
.a-col.ahead .a-col-track i { background: #9db8e6; } .a-col.ahead .a-col-rev i { background: #ecd29f; }
.a-col b { grid-column: 1 / 3; font-size: 12px; } .a-col small { grid-column: 1 / 3; font-size: 9.5px; color: var(--muted); }
.a-col.today b { background: var(--deep); color: #fff; border-radius: 6px; padding: 0 5px; } .a-col.on { background: #eef3fb; }
.a-chart-cap { font-size: 14px; font-weight: 600; }
@keyframes a-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }

@container (min-width: 720px) {
  .a-nav { order: 0; width: auto; margin-right: 8px; } .a-brand { margin-right: 18px; } .a-tab { flex: none; } .a-head { flex-wrap: nowrap; } .a-head .g-lang { margin-left: auto; }
  .a-page { padding: 16px; } .a-todays { grid-template-columns: 1fr 1fr; } .a-kpis { grid-template-columns: repeat(4, 1fr); }
  .a-root .g-sheet { align-items: center; justify-content: center; } .a-root .g-sheet-box { max-width: 460px; border-radius: 20px; }
  .a-rowb { grid-template-columns: 52px 1.3fr 1fr 1.6fr auto 130px; grid-template-areas: "no guest room dates total status"; padding: 10px 6px; }
}
