/* R13 hotel management – SR – setup, rates, reports */

/* ---------- shared bits */
.hs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: var(--muted); }
.hs-empty h2 { margin: 0; font-size: 17px; color: var(--text); }
.hs-empty p { margin: 0; max-width: 560px; }
.hs-empty .icon { color: var(--primary); }
.hs-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--blue-bg); color: var(--blue-fg); margin-bottom: 16px; }
.hs-banner.warn { background: var(--amber-bg); color: var(--amber-fg); }
.hs-banner.good { background: var(--green-bg); color: var(--green-fg); }
.hs-banner > .grow { flex: 1 1 260px; }
.hs-banner .btn { margin-inline-start: auto; }
.hs-name { display: flex; flex-direction: column; gap: 2px; }
.hs-name .muted { font-size: 12px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.hs-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--sw, var(--muted)); vertical-align: -1px; margin-inline-end: 6px;
    border: 1px solid var(--border); }
.hs-form-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.hs-section-title { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; }
.hs-dialog-body { max-height: min(70vh, 720px); overflow-y: auto; padding-inline-end: 4px; }
.hs-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.hs-inline .field { min-width: 120px; }

/* amenity picker */
.hs-amen-group { margin-bottom: 10px; }
.hs-amen-group h4 { margin: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.hs-amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.hs-amen-grid label.check { font-size: 13px; }

/* set-up checklist */
.hs-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs-steps li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.hs-steps li a { font-weight: 600; }
.hs-steps .hs-step-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gray-bg); color: var(--gray-fg); font-size: 12px; font-weight: 700; }
.hs-steps li.done .hs-step-mark { background: var(--green-bg); color: var(--green-fg); }
.hs-steps .small { display: block; }

/* weekday toggles */
.hs-weekdays { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-weekdays button { min-width: 48px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font: inherit; font-size: 13px; cursor: pointer; }
.hs-weekdays button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.hs-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); max-height: 180px; overflow-y: auto; }
.hs-picklist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.hs-picklist-head .btn-sm { padding: 2px 8px; }

/* ---------- rate calendar */
.hs-cal-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 12px; }
.hs-cal-toolbar .field { margin: 0; }
.hs-cal-nav { display: inline-flex; align-items: center; gap: 4px; }
.hs-cal-month { min-width: 150px; text-align: center; font-weight: 600; }
.hs-plan-toggles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hs-plan-toggles button { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit;
    font-size: 12px; cursor: pointer; }
.hs-plan-toggles button[aria-pressed="true"] { color: var(--text); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.hs-cal-wrap { overflow: auto; max-height: calc(100vh - 260px); min-height: 240px; border-top: 1px solid var(--border); }
table.hs-cal { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
table.hs-cal th, table.hs-cal td { border-bottom: 1px solid var(--row-line); border-inline-end: 1px solid var(--row-line); padding: 0; text-align: center;
    white-space: nowrap; }
table.hs-cal thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 4px 2px; font-weight: 600; }
table.hs-cal thead tr.hs-season-row th { top: 38px; z-index: 3; padding: 0; height: 16px; }
table.hs-cal .hs-rowhead { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); text-align: start; padding: 4px 10px; min-width: 170px;
    max-width: 220px; white-space: normal; }
table.hs-cal thead .hs-rowhead { z-index: 4; }
.hs-day { min-width: 58px; line-height: 1.2; }
.hs-day .hs-dow { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.hs-day.we { background: var(--gray-bg) !important; }
.hs-day.today { box-shadow: inset 0 -3px 0 var(--primary); }
.hs-season { display: block; height: 100%; min-height: 14px; background: var(--sw, transparent); opacity: .55; }
.hs-type-row th.hs-rowhead { background: var(--gray-bg); }
.hs-type-row th.hs-rowhead strong { display: block; }
.hs-type-row td { background: var(--gray-bg); font-family: var(--mono); font-size: 12px; padding: 3px 2px; }
.hs-free.full { color: var(--amber-fg); background: var(--amber-bg) !important; font-weight: 700; }
.hs-free.over { color: var(--red-fg); background: var(--red-bg) !important; font-weight: 700; }
.hs-free .hs-ooo { display: block; font-size: 9px; color: var(--muted); font-family: inherit; }
.hs-plan-head { display: flex; align-items: center; gap: 6px; }
.hs-plan-head .mono { font-weight: 600; }
.hs-plan-head .hs-derived { font-size: 10px; color: var(--muted); }
.hs-cellbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; min-height: 40px; padding: 3px 2px; border: 0;
    background: transparent; color: var(--text); font: inherit; cursor: pointer; position: relative; }
.hs-cellbtn:hover:not(:disabled), .hs-cellbtn:focus-visible { background: var(--blue-bg); outline: none; box-shadow: inset 0 0 0 2px var(--primary); }
.hs-cellbtn:disabled { cursor: default; opacity: .55; }
.hs-cellbtn .hs-price { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.hs-cellbtn.derived .hs-price { font-weight: 400; color: var(--muted); }
.hs-cellbtn.ovr { background: var(--blue-bg); }
.hs-cellbtn.ovr .hs-price { color: var(--blue-fg); }
.hs-cellbtn.pl { background: var(--green-bg); }
.hs-cellbtn.stop { background: var(--red-bg); }
.hs-cellbtn.stop .hs-price { color: var(--red-fg); text-decoration: line-through; }
.hs-marks { display: flex; gap: 2px; justify-content: center; min-height: 12px; }
.hs-mark { font-size: 9px; line-height: 12px; padding: 0 3px; border-radius: 3px; background: var(--gray-bg); color: var(--gray-fg); font-weight: 700; }
.hs-mark.min { background: var(--amber-bg); color: var(--amber-fg); }
.hs-mark.cta, .hs-mark.ctd { background: var(--amber-bg); color: var(--amber-fg); }
.hs-mark.stop { background: var(--red-fg); color: #fff; }
.hs-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.hs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hs-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); }
.hs-legend i.ovr { background: var(--blue-bg); } .hs-legend i.pl { background: var(--green-bg); } .hs-legend i.stop { background: var(--red-bg); }
.hs-legend i.full { background: var(--amber-bg); }
.hs-cell-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 12px; }
.hs-cell-head strong { font-size: 15px; }
.hs-computed { font-family: var(--mono); }

/* ---------- reports */
.hs-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hs-kpi-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-kpi-row.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.hs-kpi-link { color: inherit; text-decoration: none; }
a.hs-kpi-link:hover .kpi-value { color: var(--primary); }
.hs-delta { font-size: 12px; font-weight: 600; }
.hs-delta.up { color: var(--green-fg); } .hs-delta.down { color: var(--red-fg); }
.hs-meter { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--gray-bg); vertical-align: middle; margin-inline-end: 6px; overflow: hidden; }
.hs-meter > span { display: block; height: 100%; background: var(--series-1); }
.hs-meter.s2 > span { background: var(--series-2); }
table.grid tr.hs-total td, table.grid tr.hs-total th { font-weight: 700; border-top: 2px solid var(--border); }
table.grid tr.hs-subtotal td { font-weight: 600; background: var(--gray-bg); }
.hs-pl td:first-child { padding-inline-start: 20px; }
.hs-pl tr.hs-head td { padding-inline-start: 10px; font-weight: 600; color: var(--muted); background: transparent; }
.hs-acc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; padding: 4px; }
.hs-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.hs-print-only { display: none; }
@media print {
    .hs-cal-wrap { max-height: none; overflow: visible; }
    .hs-print-only { display: block; }
    .hs-no-print { display: none !important; }
}

@media (max-width: 1100px) {
    .hs-kpi-row, .hs-kpi-row.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .hs-kpi-row, .hs-kpi-row.cols-3, .hs-kpi-row.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    table.hs-cal .hs-rowhead { min-width: 110px; max-width: 130px; padding: 4px 6px; }
    .hs-day { min-width: 52px; }
    .hs-cal-wrap { max-height: calc(100vh - 200px); }
    .hs-cal-month { min-width: 110px; }
}

/* hotel settings: set-up shortcuts */
.hs-setup-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.hs-setup-links a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; background: var(--surface); }
.hs-setup-links a:hover, .hs-setup-links a:focus-visible { border-color: var(--primary); }
.hs-setup-links .grow { flex: 1; min-width: 0; }
.hs-setup-warn { margin: 12px 0 0; padding-inline-start: 20px; color: var(--amber-fg); }
.hs-setup-warn a { color: inherit; }
