/* =============================================================================
   NEW HOTEL INVENTORY (HMS) - module stylesheet, "Horizon" enterprise theme
   Builds on the Invento tokens (--iv-*) and re-points them for this module only:
   SAP-style brand blue, a slate shell bar, compact controls and flat cards.
   Everything is scoped to html.prod-hms / .hms; rules that must beat the legacy
   section-13 repairs carry form#form1, because an id outranks any number of classes.
   One component, one definition - do not restyle these classes from a page.
   ============================================================================= */

/* ------------------------------------------------------------- tokens */
.prod-hms {
    --iv-p: #0A6ED1; --iv-p-d: #0854A0; --iv-p-l: #EBF5FE; --iv-p-g1: #9CC9F5; --iv-p-g2: #CFE4FA;
    --iv-ink: #1D2D3E; --iv-ink-2: #1D2D3E; --iv-ink-3: #32363A; --iv-muted: #6A6D70; --iv-faint: #8C9196;
    --iv-line: #D9DDE1; --iv-line-2: #EBEEF0; --iv-surface-2: #F7F8F9; --iv-bg: #F5F6F7;
    --iv-ok: #107E3E; --iv-ok-l: #F1FDF6; --iv-warn: #B44F00; --iv-warn-l: #FEF7F1; --iv-err: #BB0000; --iv-err-l: #FFEBEB;
    --iv-info: #0854A0; --iv-info-l: #F0F7FE;
    --iv-r-xs: 3px; --iv-r-sm: 4px; --iv-r-md: 6px; --iv-r-lg: 8px; --iv-r-xl: 8px;
    --iv-sh-1: 0 0 0 1px rgba(29,45,62,.07), 0 1px 3px rgba(29,45,62,.09);
    --iv-sh-2: 0 0 0 1px rgba(29,45,62,.07), 0 4px 12px rgba(29,45,62,.12);
    --iv-sh-3: 0 10px 30px rgba(29,45,62,.20);
    --iv-sh-4: 0 20px 60px rgba(29,45,62,.28);
    --hx-shell: #354A5F; --hx-shell-d: #283848; --hx-shell-l: #4A627A; --hx-shell-t: #E3ECF4;
    --hx-label: #556B82; --hx-hover: #F2F5F8; --hx-sel: #E5F0FA; --hx-field: #A9B4BE;
    --hx-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html.prod-hms body { background: var(--iv-bg); }
/* full width on the module's pages only: the shared header stops centring at 1680px */
html.prod-hms .ims-header { width: auto; max-width: none; padding: 4px 16px; }
html.prod-hms .iv-foot-in { max-width: none; }

.hms { --h-gap: 14px; font-family: var(--hx-font); font-size: 13.5px; color: var(--iv-ink-3); padding: 16px 20px 40px; flex: 1 1 auto; min-width: 0; }
.hms *, .hms *::before, .hms *::after { box-sizing: border-box; }
.hms a { color: var(--iv-p); }
.hms h1, .hms h2, .hms h3, .hms h4, .hms-md h3 { font-family: var(--hx-font) !important; }   /* theme-custom forces Roboto on every heading with !important */

/* ------------------------------------------------------------- application shell */
.hx-app { font-family: var(--hx-font); }
.hx-shell { position: sticky; top: 0; z-index: 860; height: 44px; display: flex; align-items: center; gap: 12px; background: var(--hx-shell);
            color: #fff; padding-right: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
form#form1 .hx-shell button.hx-burger, .hx-burger { flex: 0 0 56px; width: 56px; height: 44px; min-height: 44px; border: 0; border-radius: 0; background: transparent;
            color: #fff; font-size: 18px; cursor: pointer; padding: 0; }
form#form1 .hx-shell button.hx-burger:hover, .hx-burger:hover, .hx-app.nav-open .hx-burger { background: var(--hx-shell-d); }
.hx-prod { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; white-space: nowrap; }
.hx-prod .lg { width: 28px; height: 28px; border-radius: 4px; background: var(--iv-p); display: grid; place-items: center; font-size: 14px; color: #fff; }
.hx-prod b { font-size: 15px; font-weight: 600; letter-spacing: .1px; }
.hx-prod small { font-size: 12.5px; color: var(--hx-shell-t); font-weight: 400; }
.hx-vsep { width: 1px; height: 22px; background: rgba(255,255,255,.22); flex: 0 0 auto; }
.hx-find { position: relative; width: min(420px, 38vw); }
/* only the magnifier: ".hx-find i" also caught the icon of every result, stacking them all over the first row */
.hx-find > i { position: absolute; left: 10px; top: 9px; color: #A9B8C6; font-size: 13px; pointer-events: none; }
form#form1 .hx-shell .hx-find input[type=search], .hx-find input { width: 100%; min-height: 30px; height: 30px; padding: 4px 10px 4px 30px; border-radius: 4px; border: 1px solid #5B7189;
            background: #2B3D4F; color: #fff; font-size: 13px; font-family: var(--hx-font); box-shadow: none; }
form#form1 .hx-shell .hx-find input[type=search]::placeholder { color: #A9B8C6; }
form#form1 .hx-shell .hx-find input[type=search]:focus { background: #fff; color: #1D2D3E; border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.hx-find .res { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border-radius: 6px; box-shadow: var(--iv-sh-3);
            max-height: 360px; overflow: auto; padding: 4px; z-index: 900; }
.hx-find.open .res { display: block; }
.hx-find .res a { display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 4px; color: #32363A !important; text-decoration: none; font-size: 13px; }
.hx-find .res a:hover, .hx-find .res a.on { background: var(--hx-sel); }
.hx-find .res a .c { font-family: Consolas, Menlo, monospace; font-size: 11.5px; color: #6A6D70; }
.hx-find .res a .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-find .res a .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hx-find .res a .t small { display: block; font-size: 11.5px; color: #6A6D70; overflow: hidden; text-overflow: ellipsis; }
.hx-find .res a .hms-thumb { width: 46px; height: 34px; flex: 0 0 46px; font-size: 15px; }
.hx-find .res a .bdg { flex: 0 0 auto; }
/* the search sits outside .hms, so it carries its own copy of the status colours */
.hx-find .res .bdg { display: inline-flex; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 1px 7px; border-radius: 4px; border: 1px solid #D9DDE1; background: #F2F4F6; color: #556B82; }
.hx-find .res .bdg.ACTIVE { background: var(--iv-ok-l, #EAF6EE); color: var(--iv-ok, #107E3E); border-color: #A7DDBC; }
.hx-find .res .bdg.PENDING { background: var(--iv-warn-l, #FEF3E6); color: var(--iv-warn, #B84B00); border-color: #F0C49C; }
.hx-find .res .bdg.INACTIVE, .hx-find .res .bdg.REJECTED { background: var(--iv-err-l, #FDEDED); color: var(--iv-err, #BB0000); border-color: #F1A8A8; }
.hx-find .res .none { padding: 10px; color: #6A6D70; font-size: 13px; }
.hx-right { margin-left: auto; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hx-role { font-size: 12px; color: var(--hx-shell-t); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 3px 9px; }
.hx-role b { color: #fff; font-weight: 600; }
.hx-ico { color: #fff !important; width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; text-decoration: none !important; }
.hx-ico:hover { background: var(--hx-shell-d); }

.hx-body { display: flex; align-items: stretch; min-height: calc(100vh - 44px); }
.hx-side { flex: 0 0 56px; width: 56px; position: sticky; top: 44px; height: calc(100vh - 44px); z-index: 840; }
.hx-nav { position: absolute; left: 0; top: 0; bottom: 0; width: 56px; background: #fff; border-right: 1px solid var(--iv-line);
          overflow-x: hidden; overflow-y: auto; transition: width .16s ease, box-shadow .16s ease; scrollbar-width: thin; padding: 6px 0 16px; }
.hx-app.nav-open .hx-nav { width: 280px; box-shadow: 6px 0 18px rgba(29,45,62,.18); }
.hx-nav a { display: flex; align-items: center; height: 38px; padding: 0 12px 0 18px; color: #32363A !important; text-decoration: none !important; font-size: 13.5px;
            white-space: nowrap; position: relative; }
.hx-nav a i { flex: 0 0 20px; width: 20px; text-align: center; font-size: 15px; color: var(--hx-label); }
.hx-nav a span { margin-left: 14px; opacity: 0; transition: opacity .12s; overflow: hidden; text-overflow: ellipsis; }
.hx-app.nav-open .hx-nav a span { opacity: 1; }
.hx-nav a:hover { background: var(--hx-hover); }
.hx-nav a.on { background: var(--hx-sel); color: var(--iv-p-d) !important; font-weight: 600; }
.hx-nav a.on::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--iv-p); border-radius: 0 2px 2px 0; }
.hx-nav a.on i { color: var(--iv-p); }
.hx-nav a.off { opacity: .38; pointer-events: none; }
.hx-nav .grp { display: flex; align-items: center; height: 30px; margin-top: 6px; padding: 0 12px 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .6px;
               text-transform: uppercase; color: var(--iv-muted); white-space: nowrap; overflow: hidden; }
.hx-app:not(.nav-open) .hx-nav .grp { font-size: 0; height: 13px; }
.hx-app:not(.nav-open) .hx-nav .grp::after { content: ""; display: block; width: 24px; height: 1px; background: var(--iv-line); }
.hx-nav .grp em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--iv-ink); font-weight: 600; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; }
.hx-app:not(.nav-open) .hx-nav .grp em { display: none; }
.hx-nav .hint { display: none; margin: 0 14px 4px 18px; font-size: 12px; color: var(--iv-muted); white-space: normal; }
.hx-app.nav-open .hx-nav .hint { display: block; }
.hx-scrim { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 830; background: rgba(29,45,62,.10); }
.hx-app.nav-pin .hx-scrim { display: block; }   /* a hover-opened menu needs no backdrop */
@media (max-width: 760px) {
    .hx-side { flex-basis: 0; width: 0; }
    .hx-nav { width: 0; border-right: 0; }
    .hx-find, .hx-prod small, .hx-role, .hx-vsep { display: none; }
}

/* ------------------------------------------------------------- hotel setup flow (next-step navigation) */
.hx-flow { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1);
           padding: 8px 12px; margin-bottom: 14px; }
/* the steps keep their natural width; when the row is too narrow the buttons drop below instead of the steps scrolling */
.hx-flow ol { list-style: none; margin: 0; padding: 2px 0; display: flex; align-items: center; flex: 1 0 auto; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.hx-flow li { display: flex; align-items: center; flex: 0 0 auto; }
.hx-flow li + li::before { content: ""; width: 14px; height: 2px; background: var(--iv-line); margin: 0 3px; flex: 0 0 auto; }
.hx-flow li.done + li::before { background: #7DBF97; }
.hx-flow .s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 16px; color: var(--iv-ink-3) !important;
              text-decoration: none !important; font-size: 13px; white-space: nowrap; }
.hx-flow a.s:hover { background: var(--hx-hover); }
.hx-flow .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700;
              border: 1.5px solid #A9B4BE; color: #556B82; background: #fff; flex: 0 0 auto; }
.hx-flow .n i { font-size: 11px; }
.hx-flow li.done .n { background: var(--iv-ok); border-color: var(--iv-ok); color: #fff; }
.hx-flow li.cur .s { background: var(--iv-p-l); color: var(--iv-p-d) !important; font-weight: 600; }
.hx-flow li.cur .n { background: var(--iv-p); border-color: var(--iv-p); color: #fff; }
.hx-flow li.off .s { opacity: .45; }
.hx-flow li.opt:not(.done):not(.cur) .n { border-style: dashed; }   /* optional step */
.hx-flow .go { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.hx-flow .hint { font-size: 12.5px; color: var(--iv-muted); }
.hx-next { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; background: #fff;
           border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); border-left: 4px solid var(--iv-p); }
.hx-next .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--iv-muted); }
.hx-next b { display: block; font-size: 16px; font-weight: 600; color: var(--iv-ink); margin-top: 1px; }
.hx-next .d { display: block; font-size: 13px; color: var(--iv-muted); }
.hx-next .go { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .hx-flow .go, .hx-next .go { width: 100%; } .hx-flow .go .hb, .hx-next .go .hb { flex: 1 1 auto; } }

/* ------------------------------------------------------------- page header */
.hms-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.hms-crumb { font-size: 12.5px; color: var(--iv-muted); margin-bottom: 3px; }
.hms-crumb a { color: var(--iv-p); text-decoration: none; }
.hms-crumb a:hover { text-decoration: underline; }
.hms-title { font-size: 21px; font-weight: 600; color: var(--iv-ink); margin: 0; letter-spacing: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hms-sub { font-size: 13px; color: var(--iv-muted); margin: 3px 0 0; }
.hms-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* the horizontal tab bar is replaced by the side navigation */
.hms-tabs, #hmsTabs { display: none !important; }

/* hotel object header */
.hms-ctx { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--iv-r-lg); padding: 10px 16px; margin-bottom: 12px;
           box-shadow: var(--iv-sh-1); flex-wrap: wrap; border-left: 4px solid var(--iv-p); }
.hms-ctx .ic { width: 44px; height: 44px; border-radius: 4px; background: var(--iv-p-l); color: var(--iv-p); display: grid; place-items: center; font-size: 19px;
               flex: 0 0 auto; background-size: cover; background-position: center; }
.hms-ctx .nm { font-size: 17px; font-weight: 600; color: var(--iv-ink); }
.hms-ctx .meta { font-size: 12.5px; color: var(--iv-muted); margin-top: 1px; }
.hms-ctx .sp { flex: 1; }
form#form1 .hms .hms-ctx select { width: auto; flex: 0 1 380px; min-width: 240px; }

/* ------------------------------------------------------------- message strips */
.hms-notice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: var(--iv-r-sm); margin-bottom: 10px; font-size: 13px; font-weight: 500; border: 1px solid; }
.hms-notice i { margin-top: 2px; }
.hms-notice.warn { background: var(--iv-warn-l); border-color: #F0C49C; color: #8A3C00; }
.hms-notice.danger { background: var(--iv-err-l); border-color: #F1A8A8; color: #9A0000; }
.hms-notice.info { background: var(--iv-info-l); border-color: #A9CFF2; color: var(--iv-info); }
.hms-notice .x { margin-left: auto; cursor: pointer; opacity: .7; }

/* ------------------------------------------------------------- cards / sections */
.hms-card { background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); margin-bottom: var(--h-gap); }
.hms-card > .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; min-height: 46px; border-bottom: 1px solid var(--iv-line-2); flex-wrap: wrap; }
form#form1 .hms-card > .hd h3, .hms-card > .hd h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--iv-ink); display: flex; align-items: center; gap: 9px; }
.hms-card > .hd h3 i { color: var(--hx-label); }
.hms-card > .hd .hint { font-size: 12.5px; color: var(--iv-muted); font-weight: 400; }
.hms-card > .bd { padding: 14px 16px; }
.hms-card > .ft { padding: 10px 16px; border-top: 1px solid var(--iv-line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: var(--iv-surface-2);
                  border-radius: 0 0 var(--iv-r-lg) var(--iv-r-lg); }
.hms-card.collapsible > .hd { cursor: pointer; }
.hms-card.collapsed > .bd, .hms-card.collapsed > .ft { display: none; }

/* ------------------------------------------------------------- form grid */
.hms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px 16px; }
.hms-grid.g2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.hms-grid .span2 { grid-column: span 2; }
.hms-grid .full { grid-column: 1 / -1; }
.hms-f { display: flex; flex-direction: column; min-width: 0; }
form#form1 .hms label.lb, .hms label.lb { display: block; font-size: 12.5px; font-weight: 600; color: var(--hx-label); margin: 0 0 4px; }
.hms label.lb .req { color: var(--iv-err); margin-left: 2px; }
.hms label.lb .tip { color: var(--iv-faint); margin-left: 4px; cursor: help; font-weight: 400; }
form#form1 .hms input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
form#form1 .hms select, form#form1 .hms textarea {
    width: 100%; max-width: none; min-height: 32px; padding: 5px 9px; font-family: var(--hx-font); font-size: 13.5px; color: #1D2D3E;
    border: 1px solid var(--hx-field); border-radius: 4px; background-color: #fff; box-shadow: none; }
form#form1 .hms textarea { min-height: 72px; }
form#form1 .hms input:not([type=checkbox]):not([type=radio]):hover, form#form1 .hms select:hover, form#form1 .hms textarea:hover { border-color: var(--iv-p); }
form#form1 .hms input:not([type=checkbox]):not([type=radio]):focus, form#form1 .hms select:focus, form#form1 .hms textarea:focus {
    border-color: var(--iv-p); box-shadow: 0 0 0 2px rgba(10,110,209,.22); outline: none; }
form#form1 .hms input[type=color] { width: 100%; min-height: 32px; padding: 2px; border: 1px solid var(--hx-field); border-radius: 4px; background: #fff; }
form#form1 .hms input[readonly], form#form1 .hms select[disabled] { background: var(--iv-surface-2); color: var(--iv-muted); }
/* a cell that does not apply (e.g. "Triple" for a 2-adult room) must not look like an empty field */
form#form1 .hms input:disabled:not([type=checkbox]):not([type=radio]) {
    background: repeating-linear-gradient(135deg, #F4F6F8, #F4F6F8 5px, #ECEFF2 5px, #ECEFF2 10px) !important;
    border-style: dashed !important; border-color: #C7CED5 !important; color: var(--iv-faint) !important; cursor: not-allowed; }
.hms .help { font-size: 12px; color: var(--iv-muted); margin-top: 4px; }
.hms .err-msg { font-size: 12px; color: var(--iv-err); margin-top: 4px; display: none; }
form#form1 .hms .has-err input, form#form1 .hms .has-err select, form#form1 .hms .has-err textarea { border-color: var(--iv-err) !important; background: #FFF8F8; }
.hms .has-err .err-msg { display: block; }
.hms .inline { display: flex; gap: 8px; align-items: center; }
.hms .inline > * { flex: 1; min-width: 0; }
.hms .inline > .fx { flex: 0 0 auto; }

/* checkbox / radio / switch */
form#form1 .hms label.f-chk, .hms label.f-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; color: var(--iv-ink-3); cursor: pointer; margin: 0; }
.hms label.f-chk input { width: 16px; height: 16px; accent-color: var(--iv-p); margin: 0; }
form#form1 .hms label.switch, .hms .switch { position: relative; display: inline-flex; margin: 0; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
/* theme-custom has its own .switch (a 75px pill with "Yes"/"No" pseudo-labels) - neutralise it inside the module */
.hms .switch { width: auto; height: auto; background: none; border-radius: 0; box-shadow: none; padding: 0; border: 0; }
.hms .switch::before, .hms .switch::after { content: none !important; display: none !important; }
.hms .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.hms .switch .tr { display: inline-block; width: 36px; height: 20px; border-radius: 20px; background: #A9B4BE; position: relative; transition: background .15s; flex: 0 0 auto; }
.hms .switch .tr::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hms .switch input:checked + .tr { background: var(--iv-p); }
.hms .switch input:checked + .tr::after { left: 19px; }
.hms .switch input:focus-visible + .tr { box-shadow: 0 0 0 3px rgba(10,110,209,.3); }

/* checklists (facilities) */
.hms-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.hms-checks .grp { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--hx-label); margin-top: 8px; border-bottom: 1px solid var(--iv-line-2); padding-bottom: 4px; }
.hms-search { position: relative; max-width: 340px; }
.hms-search i { position: absolute; left: 10px; top: 10px; color: var(--iv-faint); }
form#form1 .hms .hms-search input { padding-left: 30px !important; }   /* beats the generic field padding */

/* chips multi-select */
.hms-ms { position: relative; }
.hms-ms .box { min-height: 32px; border: 1px solid var(--hx-field); border-radius: 4px; background: #fff; padding: 3px 28px 3px 5px; display: flex; flex-wrap: wrap; gap: 4px; cursor: pointer; align-items: center; }
.hms-ms .box:hover { border-color: var(--iv-p); }
.hms-ms .box::after { content: "\f107"; font-family: FontAwesome; position: absolute; right: 10px; top: 7px; color: var(--iv-muted); }
.hms-ms .box .ph { color: var(--iv-faint); font-size: 13.5px; padding: 2px 5px; }
.hms-ms .chip { display: inline-flex; align-items: center; gap: 5px; background: #EFF2F4; border: 1px solid #D9DDE1; color: #32363A; font-size: 12.5px; font-weight: 500; border-radius: 4px; padding: 1px 7px; }
.hms-ms .chip b { cursor: pointer; font-weight: 700; color: var(--iv-muted); }
.hms-ms .dd { display: none; position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 3px); background: #fff; border-radius: 6px; box-shadow: var(--iv-sh-3); max-height: 280px; overflow: auto; padding: 4px; }
.hms-ms.open .dd { display: block; }
.hms-ms .dd .opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13.5px; }
.hms-ms .dd .q { display: block; width: 100%; box-sizing: border-box; margin: 2px 0 6px; padding: 6px 8px; border: 1px solid var(--hx-field); border-radius: 4px; font-size: 13px; position: sticky; top: 0; background: #fff; }
.hms-ms .dd .opt:hover { background: var(--hx-hover); }
.hms-ms .dd .opt input { accent-color: var(--iv-p); }
.hms-ms .dd .tools { display: flex; gap: 12px; padding: 4px 8px 7px; border-bottom: 1px solid var(--iv-line-2); margin-bottom: 4px; font-size: 12.5px; }
.hms-ms .dd .tools a { cursor: pointer; font-weight: 600; }

/* ------------------------------------------------------------- buttons */
form#form1 .hms .hb, .hms .hb { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 5px 13px;
    border-radius: 4px; font-family: var(--hx-font); font-size: 13.5px; font-weight: 600; border: 1px solid #BCC3CA; background: #fff; color: var(--iv-p);
    cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: background .12s, border-color .12s; box-shadow: none; }
form#form1 .hms .hb:hover, .hms .hb:hover { background: #EAF2FB; border-color: var(--iv-p); color: var(--iv-p-d); }
form#form1 .hms .hb:active, .hms .hb:active { background: var(--iv-p); color: #fff; }
form#form1 .hms .hb.pri, .hms .hb.pri { background: var(--iv-p); border-color: var(--iv-p); color: #fff; }
form#form1 .hms .hb.pri:hover, .hms .hb.pri:hover { background: var(--iv-p-d); border-color: var(--iv-p-d); color: #fff; }
form#form1 .hms .hb.dan, .hms .hb.dan { color: var(--iv-err); border-color: #E6A1A1; }
form#form1 .hms .hb.dan:hover, .hms .hb.dan:hover { background: var(--iv-err); color: #fff; border-color: var(--iv-err); }
form#form1 .hms .hb.ghost, .hms .hb.ghost { border-color: transparent; background: transparent; }
form#form1 .hms .hb.ghost:hover, .hms .hb.ghost:hover { background: #EAF2FB; border-color: transparent; }
form#form1 .hms .hb.sm, .hms .hb.sm { min-height: 26px; padding: 2px 9px; font-size: 12.5px; }
form#form1 .hms .hb[disabled], .hms .hb[disabled] { opacity: .5; pointer-events: none; }
form#form1 .hms .ib, .hms .ib { display: inline-grid; place-items: center; width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 4px; border: 1px solid transparent;
    background: transparent; color: var(--iv-p); cursor: pointer; font-size: 14px; }
form#form1 .hms .ib:hover, .hms .ib:hover { background: #EAF2FB; color: var(--iv-p-d); }
form#form1 .hms .ib.dan, .hms .ib.dan { color: #8C3B3B; }
form#form1 .hms .ib.dan:hover, .hms .ib.dan:hover { background: var(--iv-err-l); color: var(--iv-err); }
.hms .busy { position: relative; color: transparent !important; pointer-events: none; }
.hms .busy::after { content: ""; position: absolute; width: 15px; height: 15px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: hmsspin .7s linear infinite; }
.hms .hb:not(.pri).busy::after { border-color: var(--iv-p); border-right-color: transparent; }
@keyframes hmsspin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- object status */
.hms .bdg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 1px 7px; border-radius: 4px;
            text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; line-height: 17px; }
.hms .bdg.ACTIVE, .hms .bdg.ok, .hms .bdg.CONFIRMED { background: var(--iv-ok-l); color: var(--iv-ok); border-color: #A7DDBC; }
.hms .bdg.PENDING, .hms .bdg.warn, .hms .bdg.WARN { background: var(--iv-warn-l); color: var(--iv-warn); border-color: #F0C49C; }
.hms .bdg.DRAFT, .hms .bdg.muted, .hms .bdg.INFO { background: #F2F4F6; color: #556B82; border-color: #D9DDE1; }
.hms .bdg.INACTIVE, .hms .bdg.REJECTED, .hms .bdg.CANCELLED, .hms .bdg.err, .hms .bdg.ERROR { background: var(--iv-err-l); color: var(--iv-err); border-color: #F1A8A8; }
.hms .bdg.p { background: var(--iv-p-l); color: var(--iv-p-d); border-color: #B8D9F7; }
.hms .stars { color: #D08014; letter-spacing: 1px; font-size: 13px; }
.hms .meter { width: 90px; height: 6px; border-radius: 3px; background: #E5E8EB; overflow: hidden; display: inline-block; vertical-align: middle; }
.hms .meter > span { display: block; height: 100%; background: var(--iv-p); border-radius: 3px; }
.hms .meter.low > span { background: #E9730C; }
.hms .meter.bad > span { background: var(--iv-err); }

/* ------------------------------------------------------------- tables */
.hms-tw { overflow-x: auto; border: 1px solid var(--iv-line); border-radius: var(--iv-r-sm); background: #fff; }
.hms-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.hms-t th { position: sticky; top: 0; background: #F5F6F7; color: var(--hx-label); font-size: 12.5px; font-weight: 600; text-align: left; padding: 8px 10px;
            border-bottom: 1px solid var(--iv-line); white-space: nowrap; letter-spacing: 0; z-index: 2; }
/* number headers are short words: letting them wrap ("Max adult / with child") leaves the width to the content */
.hms-t th.num { white-space: normal; }
.hms-t thead th { vertical-align: bottom; }
.hms-t td { padding: 7px 10px; border-bottom: 1px solid var(--iv-line-2); vertical-align: middle; color: var(--iv-ink-3); }
.hms-t tbody tr:last-child td { border-bottom: none; }
.hms-t tbody tr:hover td { background: #F5F8FB; }
.hms-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.hms-t td.num { white-space: nowrap; }
.hms-t .act { white-space: nowrap; width: 1%; }
/* wide tables: the browser squeezes wrappable text first - keep names readable and short values on one line */
.hms-t .w-name { min-width: 280px; } .hms-t .w-loc { min-width: 130px; } .hms-t .nw { white-space: nowrap; }
.hms-t.compact th, .hms-t.compact td { padding-left: 8px; padding-right: 8px; }
.hms-t .nm { font-weight: 600; color: var(--iv-ink); }
/* the entity name that opens a row (room, rate plan, promotion...) keeps a readable width: browsers squeeze
   wrappable text first, which put "Deluxe King - Garden View" on four lines beside half-empty number columns */
.hms-t td > a.nm:first-child { display: inline-block; min-width: 180px; }
.hms-t .sm { font-size: 12px; color: var(--iv-muted); }
.hms-t .empty td { text-align: center; padding: 30px 12px; color: var(--iv-muted); }
.hms-t .empty td i { display: block; font-size: 26px; color: #B7C0C8; margin-bottom: 8px; }
.hms-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 0; font-size: 13px; color: var(--iv-muted); flex-wrap: wrap; }
.hms-pager .pg { display: flex; gap: 4px; }

/* ------------------------------------------------------------- KPI tiles */
.hms-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: var(--h-gap); }
/* fixed tile counts get fixed grids, so no tile is left alone on a row */
.hms-kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hms-kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1180px) { .hms-kpis.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hms-kpis.k4, .hms-kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hms-kpi { background: #fff; border-radius: var(--iv-r-lg); padding: 12px 14px 11px; box-shadow: var(--iv-sh-1); text-decoration: none !important; display: flex; flex-direction: column;
           min-height: 112px; transition: box-shadow .12s; border-top: 3px solid transparent; }
.hms-kpi:hover { box-shadow: 0 0 0 1px var(--iv-p), 0 4px 12px rgba(10,110,209,.14); }
.hms-kpi .k { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--iv-ink); line-height: 1.3; }
.hms-kpi .v { display: block; font-size: 30px; font-weight: 300; color: var(--iv-ink); margin-top: auto; padding-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hms-kpi .m { display: block; font-size: 12px; color: var(--iv-muted); margin-top: 3px; }
.hms-kpi.accent { border-top-color: var(--iv-p); }
.hms-kpi.accent .v { color: var(--iv-p); }
.hms-kpi .delta { font-weight: 700; }
.hms-kpi .delta.up { color: var(--iv-ok); } .hms-kpi .delta.down { color: var(--iv-err); }
.hms-kpi .meter { width: 100%; margin-top: 8px; }
.hms-chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--iv-muted); font-size: 13px; text-align: center;
                   border: 1px dashed var(--iv-line); border-radius: var(--iv-r-md); background: var(--iv-surface-2); }
.hms-chart-empty i { font-size: 22px; color: #B7C0C8; }

/* ------------------------------------------------------------- dialog */
.hms-ov { position: fixed; inset: 0; background: rgba(29,45,62,.45); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.hms-ov.show { display: flex; }
.hms-md { background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-4); width: 100%; max-width: 760px; animation: hmsin .14s ease-out; font-family: var(--hx-font); }
.hms-md.wide { max-width: 1100px; }
.hms-md.narrow { max-width: 480px; }
.hms-md > .hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--iv-line-2); }
form#form1 .hms-md > .hd h3, .hms-md > .hd h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--iv-ink); }
.hms-md > .bd { padding: 16px 18px; max-height: calc(100vh - 220px); overflow-y: auto; }
.hms-md > .ft { padding: 10px 18px; border-top: 1px solid var(--iv-line-2); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; background: var(--iv-surface-2); border-radius: 0 0 var(--iv-r-lg) var(--iv-r-lg); }
@keyframes hmsin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------- message toast */
.hms-toasts { position: fixed; right: 18px; top: 104px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.hms-toast { min-width: 260px; max-width: 440px; background: #2B3D4F; color: #fff; padding: 10px 14px; border-radius: 4px; box-shadow: var(--iv-sh-3); font-size: 13.5px;
             display: flex; gap: 10px; align-items: flex-start; animation: hmsin .14s ease-out; border-left: 4px solid #8FB8E3; font-family: var(--hx-font); }
.hms-toast.ok { border-left-color: #5DC08A; }
.hms-toast.ok i { color: #7FD4A2; }
.hms-toast.err { background: #9A0000; border-left-color: #FFB3B3; }
.hms-toast i { margin-top: 2px; }
/* a 440px toast pinned 18px from the right ran off the left edge of a phone, and a long unbroken
   token (a reference, a URL) never wrapped - cap both to the viewport */
.hms-toasts { max-width: calc(100vw - 36px); }
.hms-toast { min-width: 0; max-width: 100%; max-height: 50vh; overflow-y: auto; overflow-wrap: anywhere; }
@media (min-width: 480px) { .hms-toast { min-width: 260px; max-width: 440px; } }

/* ------------------------------------------------------------- sticky save bar (footer toolbar) */
.hms-savebar { position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); border-top: 1px solid var(--iv-line);
               border-radius: var(--iv-r-lg); padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; box-shadow: 0 -2px 10px rgba(29,45,62,.10); margin-top: 6px; }
.hms-savebar .msg { font-size: 13px; color: var(--iv-muted); flex: 1; }
.hms-savebar .msg.dirty { color: var(--iv-warn); font-weight: 600; }

/* ------------------------------------------------------------- section nav (long forms) */
.hms-split { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.hms-snav { position: sticky; top: 56px; background: #fff; border-radius: var(--iv-r-lg); padding: 6px; box-shadow: var(--iv-sh-1); }
.hms-snav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--iv-ink-3); text-decoration: none; }
.hms-snav a:hover { background: var(--hx-hover); }
.hms-snav a.on { background: var(--hx-sel); color: var(--iv-p-d); font-weight: 600; }
.hms-snav a i { width: 16px; text-align: center; color: var(--hx-label); }
.hms-snav .score { margin: 4px 4px 8px; padding: 10px; border-radius: 4px; background: var(--iv-surface-2); font-size: 12px; color: var(--iv-muted); }
.hms-snav .score b { display: block; font-size: 22px; font-weight: 300; color: var(--iv-p); }
@media (max-width: 1000px) { .hms-split { grid-template-columns: minmax(0, 1fr); } .hms-snav { position: static; } }

/* ------------------------------------------------------------- images */
.hms-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.hms-img { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--iv-line); background: var(--iv-surface-2); aspect-ratio: 4 / 3; cursor: grab; }
.hms-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hms-img .cv { position: absolute; left: 8px; top: 8px; background: var(--iv-p); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 3px; }
.hms-img .tools { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.hms-img:hover .tools { opacity: 1; }
.hms-img .tools button { width: 28px; height: 28px; min-height: 28px !important; padding: 0 !important; border-radius: 4px; border: none; background: rgba(255,255,255,.96); color: #32363A; cursor: pointer; }
.hms-img .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.hms-img.drag { opacity: .4; }
/* a photo whose file is missing on the server: say so, so the supplier deletes and re-uploads it */
.hms-img.broken { display: grid; place-items: center; background: #FFF8F0; border-color: #F0C49C; }
.hms-img .miss { padding: 10px; text-align: center; font-size: 12px; line-height: 1.4; color: #8A3C00; }
.hms-img .miss i { display: block; font-size: 20px; margin-bottom: 6px; }
.hms-img.broken .tools { opacity: 1; }
#heroImg.photo-missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#heroImg .miss { display: block; max-width: 80%; text-align: center; font-size: 12.5px; font-weight: 500; line-height: 1.45; color: rgba(255,255,255,.9); }
.hms-drop { border: 1px dashed #A9B4BE; border-radius: 6px; padding: 20px; text-align: center; color: var(--iv-muted); font-size: 13.5px; cursor: pointer; background: var(--iv-surface-2); }
.hms-drop.over { border-color: var(--iv-p); background: var(--iv-p-l); color: var(--iv-p-d); }
.hms-drop i { font-size: 24px; display: block; margin-bottom: 6px; color: var(--iv-p); }

/* ------------------------------------------------------------- repeater rows */
.hms-rep { display: flex; flex-direction: column; gap: 8px; }
.hms-rep .row { display: grid; gap: 8px; align-items: end; background: var(--iv-surface-2); border: 1px solid var(--iv-line-2); border-radius: 6px; padding: 10px; }
.hms-rep .row .lb { font-size: 11.5px !important; }

/* ------------------------------------------------------------- inventory grid */
.hms-ari { overflow: auto; max-height: calc(100vh - 250px); border: 1px solid var(--iv-line); border-radius: var(--iv-r-sm); background: #fff; }
.hms-ari table { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.hms-ari th { position: sticky; top: 0; z-index: 3; background: #F5F6F7; font-size: 12px; font-weight: 600; color: var(--hx-label); padding: 7px 6px; border-bottom: 1px solid var(--iv-line); white-space: nowrap; text-align: left; }
.hms-ari th .fill { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.hms-ari th .fill button { width: 20px; height: 20px; min-height: 20px !important; padding: 0 !important; border-radius: 3px; border: 1px solid var(--iv-line); background: #fff; color: var(--iv-p); font-size: 10px; cursor: pointer; }
.hms-ari td { padding: 3px 4px; border-bottom: 1px solid var(--iv-line-2); white-space: nowrap; }
.hms-ari td.d, .hms-ari th.d { position: sticky; left: 0; background: #fff; z-index: 2; padding-left: 10px; min-width: 128px; }
.hms-ari th.d { z-index: 4; background: #F5F6F7; }
.hms-ari tr.we td { background: #FBF8F3; }
.hms-ari tr.we td.d { background: #FBF8F3; }
.hms-ari tr.past td { opacity: .45; }
.hms-ari .dw { display: inline-block; width: 34px; font-size: 11px; font-weight: 600; color: #fff; background: #556B82; border-radius: 3px; text-align: center; padding: 2px 0; margin-right: 6px; }
.hms-ari tr.we .dw { background: #B44F00; }
form#form1 .hms-ari input:not([type=checkbox]):not([type=radio]) { width: 74px !important; min-height: 28px !important; padding: 3px 6px !important; font-size: 13px !important; text-align: right; border-radius: 3px !important; }
form#form1 .hms-ari input.w-s { width: 52px !important; }
form#form1 .hms-ari input.chg { background: #FFF8E1 !important; border-color: #E9A23B !important; }
form#form1 .hms-ari input.inh { color: var(--iv-faint); }
.hms-ari .fax { display: inline-flex; border: 1px solid var(--iv-line); border-radius: 4px; overflow: hidden; }
.hms-ari .fax label { margin: 0 !important; padding: 0; }
.hms-ari .fax input { display: none; }
.hms-ari .fax span { display: inline-block; width: 26px; text-align: center; font-weight: 700; font-size: 12px; padding: 4px 0; cursor: pointer; color: var(--iv-muted); background: #fff; }
.hms-ari .fax input:checked + span.F { background: var(--iv-p); color: #fff; }
.hms-ari .fax input:checked + span.A { background: #C35500; color: #fff; }
.hms-ari .fax input:checked + span.X { background: var(--iv-err); color: #fff; }
.hms-ari .sold { font-size: 11.5px; color: var(--iv-muted); }
.hms-ari .left0 { color: var(--iv-err); font-weight: 700; }

/* ------------------------------------------------------------- calendar strip */
.hms-cal { overflow-x: auto; }
.hms-cal table { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; min-width: 100%; }
.hms-cal th.l, .hms-cal td.l { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; min-width: 170px; padding: 4px 8px; font-weight: 600; color: var(--iv-ink-3); white-space: nowrap; }
.hms-cal th.dh { min-width: 62px; text-align: center; font-size: 11px; color: var(--iv-muted); font-weight: 600; padding: 4px 2px; border-radius: 3px; background: #F2F4F6; }
.hms-cal th.dh b { display: block; font-size: 15px; font-weight: 600; color: var(--iv-ink); }
.hms-cal th.dh.we { background: #FBF1E6; }
.hms-cal th.dh.today { outline: 2px solid var(--iv-p); }
.hms-cal td.c { text-align: center; background: #F2F4F6; border-radius: 3px; padding: 6px 2px; cursor: pointer; font-variant-numeric: tabular-nums; }
.hms-cal td.c:hover { outline: 2px solid var(--iv-p); }
.hms-cal td.c.open { background: #E3F2E9; color: #0B5E2E; font-weight: 600; }
.hms-cal td.c.low { background: #FDEBD7; color: #8A3C00; font-weight: 600; }
.hms-cal td.c.closed { background: #FBDDDD; color: var(--iv-err); font-weight: 700; }
.hms-cal td.c.none { background: #F2F4F6; color: var(--iv-faint); }
.hms-cal td.c.ss { background: repeating-linear-gradient(45deg, #FBDDDD, #FBDDDD 4px, #fff 4px, #fff 8px); color: var(--iv-err); }
.hms-cal tr.room td.l { font-size: 14px; color: var(--iv-ink); padding-top: 14px; }
.hms-cal tr.plan td.l { font-weight: 500; padding-left: 18px; }
.hms-cal tr.attr td.l { font-weight: 400; font-size: 12px; color: var(--iv-muted); padding-left: 30px; }
.hms-cal tr.attr td.c { background: transparent; color: var(--iv-muted); cursor: default; padding: 2px; }
.hms-cal .mk { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; margin: 0 1px; }
.hms-cal .mk.P { background: var(--iv-p); } .hms-cal .mk.S { background: #A93E6B; } .hms-cal .mk.V { background: #6C4CB0; }
.hms-cal i.inh { font-size: 9px; color: var(--iv-faint); }

.hms-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--iv-muted); align-items: center; }
.hms-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hms-legend s { display: inline-block; width: 14px; height: 14px; border-radius: 3px; text-decoration: none; }

/* ------------------------------------------------------------- per-hotel menu */
.hms-menu { position: relative; display: inline-block; }
.hms-menu-dd { display: none; position: absolute; right: 0; top: calc(100% + 3px); z-index: 80; background: #fff; border-radius: 6px; box-shadow: var(--iv-sh-3);
               min-width: 230px; padding: 4px; max-height: min(640px, calc(100vh - 16px)); overflow: auto; }
/* a frozen cell is its own layer: lift the one whose menu is open above the other rows' frozen cells */
.hms-t td:has(.hms-menu.open) { z-index: 6 !important; }
.hms-menu.open .hms-menu-dd { display: block; }
.hms-menu-dd a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 400; color: var(--iv-ink-3) !important; text-decoration: none; white-space: nowrap; }
.hms-menu-dd a:hover { background: var(--hx-sel); color: var(--iv-p-d) !important; }
.hms-menu-dd a i { width: 16px; text-align: center; color: var(--hx-label); }
.hms-menu-dd .sep { height: 1px; background: var(--iv-line-2); margin: 4px 2px; }
.hms-menu-dd a.dan, .hms-menu-dd a.dan i { color: var(--iv-err, #BB0000) !important; }
.hms-menu-dd a.dan:hover { background: var(--iv-err-l, #FFEBEB); }

/* ------------------------------------------------------------- charts */
.hms-tip { display: none; position: absolute; z-index: 10; pointer-events: none; background: #1D2D3E; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 4px; white-space: nowrap; }
.hms .hms-bar:hover path { opacity: .82; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- overview page header */
.hms-ovh { background: #fff; color: var(--iv-ink-3); border-radius: var(--iv-r-lg); padding: 16px 20px; margin-bottom: 14px; box-shadow: var(--iv-sh-1);
           display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; border-left: 4px solid var(--iv-p); }
.hms-ovh h1 { margin: 0; font-size: 22px; font-weight: 600; color: var(--iv-ink); letter-spacing: 0; }
.hms-ovh p { margin: 4px 0 0; color: var(--iv-muted); font-size: 13.5px; max-width: 820px; }
.hms-ovh .scope { display: inline-flex; gap: 6px; align-items: center; background: var(--iv-p-l); border: 1px solid #B8D9F7; color: var(--iv-p-d); border-radius: 4px;
                  padding: 2px 9px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.hms-ovh .badge { background: #C35500; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 17px; }
.hms-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.hms-chart { min-height: 200px; }
.hms-feed { list-style: none; margin: 0; padding: 0; }
.hms-feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--iv-line-2); font-size: 13px; }
.hms-feed li:last-child { border-bottom: none; }
.hms-feed .dot { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 4px; display: grid; place-items: center; background: var(--iv-p-l); color: var(--iv-p); font-size: 13px; }
.hms-feed .t { color: var(--iv-ink); font-weight: 600; }
.hms-feed .s { color: var(--iv-muted); font-size: 12px; }
.hms-chips { display: flex; gap: 0; flex-wrap: wrap; }
/* segmented button */
form#form1 .hms .hms-chips button, .hms .hms-chips button { min-height: 30px; padding: 3px 12px; border-radius: 0; border: 1px solid #BCC3CA; margin-left: -1px; background: #fff;
    font-size: 12.5px; font-weight: 600; color: var(--iv-p); cursor: pointer; }
form#form1 .hms .hms-chips button:first-child, .hms .hms-chips button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
form#form1 .hms .hms-chips button:last-child, .hms .hms-chips button:last-child { border-radius: 0 4px 4px 0; }
form#form1 .hms .hms-chips button:hover, .hms .hms-chips button:hover { background: #EAF2FB; }
form#form1 .hms .hms-chips button.on, .hms .hms-chips button.on { background: var(--iv-p); border-color: var(--iv-p); color: #fff; position: relative; z-index: 1; }
.hms-thumb { width: 52px; height: 38px; border-radius: 4px; object-fit: cover; background: var(--iv-p-l); display: inline-grid; place-items: center; color: var(--iv-p); flex: 0 0 auto; }
.hms-hcell { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.hms-check { list-style: none; margin: 0; padding: 0; }
.hms-check li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--iv-line-2); font-size: 13.5px; }
.hms-check li:last-child { border-bottom: none; }
.hms-check li i.ok { color: var(--iv-ok); } .hms-check li i.no { color: #B7C0C8; }
.hms-check li a { margin-left: auto; font-size: 12.5px; font-weight: 600; }
/* a finished checklist (no "Do it" links left) packs into two columns */
.hms-check.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.hms-check.two li { padding: 6px 0; font-size: 13px; }
.hms-check.two li:nth-last-child(2):nth-child(odd) { border-bottom: none; }
@media (max-width: 700px) { .hms-check.two { grid-template-columns: 1fr; } }
.hms-heat { display: grid; gap: 3px; overflow-x: auto; }
.hms-heat .r { display: grid; grid-template-columns: minmax(150px, 210px) repeat(30, minmax(12px, 1fr)); gap: 3px; align-items: center; min-width: 600px; }
.hms-heat .r .n { font-size: 12.5px; font-weight: 600; color: var(--iv-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hms-heat .c { height: 22px; border-radius: 3px; background: #E5E8EB; }
.hms-heat .c.open { background: #7DBF97; } .hms-heat .c.low { background: #F0AC5C; } .hms-heat .c.closed { background: #E58A8A; }
.hms-heat .hd { font-size: 10px; color: var(--iv-muted); text-align: center; }

/* ------------------------------------------------------------- tariff sheet */
.hms-tariff th, .hms-tariff td { white-space: nowrap; }
.hms-tariff tr.season td { background: var(--iv-p-l) !important; font-weight: 600; color: var(--iv-p-d); }
form#form1 .hms-tariff input[type=number] { width: 80px; min-height: 28px; padding: 3px 6px; font-size: 13px; text-align: right; border-radius: 3px; }
form#form1 .hms-tariff input.chg { background: #FFF8E1; border-color: #E9A23B; }

/* ------------------------------------------------------------- misc */
.hms .muted { color: var(--iv-muted); }
.hms .mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }
.hms .right { text-align: right; }
.hms .gap { height: 12px; }
/* icon tab bar (section switcher inside a page) */
.hms .pill-tabs { display: inline-flex; border-bottom: 1px solid var(--iv-line); gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.hms .pill-tabs button { flex: 0 0 auto; white-space: nowrap; }
form#form1 .hms .pill-tabs button, .hms .pill-tabs button { min-height: 36px; padding: 6px 14px; border: none; border-bottom: 3px solid transparent; background: transparent; border-radius: 0;
    font-size: 13.5px; font-weight: 600; color: var(--iv-muted); cursor: pointer; margin-bottom: -1px; }
form#form1 .hms .pill-tabs button:hover, .hms .pill-tabs button:hover { color: var(--iv-p-d); background: var(--hx-hover); }
form#form1 .hms .pill-tabs button.on, .hms .pill-tabs button.on { color: var(--iv-p); border-bottom-color: var(--iv-p); }
.hms .wd { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.hms .wd label { margin: 0 !important; }
.hms .wd input { display: none; }
.hms .wd span { display: inline-block; min-width: 40px; text-align: center; padding: 5px 4px; border-radius: 4px; border: 1px solid #BCC3CA; font-size: 12px; font-weight: 600; color: var(--iv-muted); cursor: pointer; background: #fff; }
.hms .wd input:checked + span { background: var(--iv-p); border-color: var(--iv-p); color: #fff; }
.hms .langs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
form#form1 .hms .langs button, .hms .langs button { min-height: 30px; padding: 3px 12px; border-radius: 4px; border: 1px solid #BCC3CA; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--iv-p); cursor: pointer; }
form#form1 .hms .langs button.on, .hms .langs button.on { background: var(--iv-p); color: #fff; border-color: var(--iv-p); }
.hms .langs button .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--iv-ok); margin-left: 6px; }
.hms .q-opt { border: 1px solid var(--iv-line); border-radius: var(--iv-r-md); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.hms .q-opt.no { background: var(--iv-surface-2); }
.hms .q-opt .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.hms .q-opt .price { font-size: 20px; font-weight: 600; color: var(--iv-ink); }
.hms .q-opt .why { color: var(--iv-err); font-weight: 600; font-size: 13px; }
.hms .q-opt details { margin-top: 8px; font-size: 12.5px; }
.hms .q-opt summary { cursor: pointer; color: var(--iv-p); font-weight: 600; }
.hms .kv { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; font-size: 13px; }
.hms .kv dt { color: var(--hx-label); font-weight: 600; }
.hms .kv dd { margin: 0; color: var(--iv-ink-3); }
/* two-panel layouts with fixed minimums stack before they would overflow */
@media (max-width: 1100px) { .hms .hms-stack { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 720px) { .hms { padding: 12px; } .hms-grid .span2 { grid-column: auto; } .hms-title { font-size: 19px; } .hms .kv { grid-template-columns: 120px minmax(0, 1fr); }
  .hms-savebar .msg { flex-basis: 100%; } .hms-savebar .hb { flex: 1 1 auto; justify-content: center; } }


/* ------------------------------------------------------------- suggestions on text boxes (HMS.suggest) */
/* a chevron tells the user the box offers a list; it stays a free-text box */
form#form1 .hms input.hms-sug-in, .hms input.hms-sug-in {
    padding-right: 30px !important; background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 12px 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236A6D70' stroke-width='1.6'/%3E%3C/svg%3E") !important; }
.hms-sug { display: none; position: fixed; z-index: 4000; background: #fff; border: 1px solid var(--iv-line, #D9DEE5); border-radius: 6px;
           box-shadow: 0 10px 28px rgba(29,45,62,.18); max-height: 300px; overflow-y: auto; padding: 4px; font-family: var(--hx-font); }
.hms-sug .hd { padding: 6px 9px 5px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #6A6D70; }
.hms-sug .it { display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border-radius: 4px; cursor: pointer; font-size: 13.5px; color: #1D2D3E; }
.hms-sug .it:hover, .hms-sug .it.on { background: var(--hx-sel, #EAF2FB); }
.hms-sug .it .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hms-sug .it .m { font-size: 11.5px; color: #6A6D70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hms-sug mark { background: #FFE89A; color: inherit; padding: 0; border-radius: 2px; }
.hms-sug .none { padding: 8px 9px 9px; font-size: 12.5px; color: #6A6D70; }

/* ------------------------------------------------------------- list tables (HMS.grid) */
.hms-gbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.hms-gbar .q { position: relative; flex: 0 1 340px; min-width: 200px; margin: 0; }
.hms-gbar .q i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #8A97A6; font-size: 13px; pointer-events: none; }
form#form1 .hms .hms-gbar .q input, .hms-gbar .q input { width: 100%; height: 34px; min-height: 34px; padding: 5px 10px 5px 30px !important; border: 1px solid var(--iv-line, #D9DEE5);
    border-radius: 4px; font-size: 13.5px; background: #fff; }
.hms-gbar .cnt { font-size: 12.5px; color: var(--iv-muted, #6A6D70); }
.hms-gfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px 0; font-size: 13px; color: var(--iv-muted, #6A6D70); flex-wrap: wrap; }
.hms-gfoot .pg { display: flex; gap: 6px; align-items: center; }
.hms-gfoot .pg .at { padding: 0 6px; }
.hms-t th.g-sort { cursor: pointer; user-select: none; }
.hms-t th.g-sort:hover, .hms-t th.g-sort:focus-visible { color: var(--iv-p-d, #0854A0); }
.hms-t th.g-sort:focus-visible { outline: 2px solid var(--iv-p, #0A6ED1); outline-offset: -2px; }
.hms-t th .g-ar { margin-left: 5px; font-size: 11px; opacity: .35; }
.hms-t th .g-ar.on { opacity: 1; color: var(--iv-p, #0A6ED1); }
/* natural width: no squeezing into the screen - the wrapper scrolls sideways; at least as wide as the wrapper */
.hms-t.g-fit { width: max-content; min-width: 100%; }
.hms-t tr.g-hide { display: none; }
.hms-t tr.g-none td { text-align: center; padding: 26px 12px; color: var(--iv-muted, #6A6D70); }

/* dashboard (admin): Hotel Booking inventory switch */
#bkSrc { margin-bottom: 14px; }
.bk-src { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.bk-opt { flex: 1 1 260px; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--iv-line, #d9dee3);
          border-radius: 10px; cursor: pointer; background: #fff; }
.hms .bk-opt { display: flex; }
.bk-opt input[type=radio] { width: auto; height: auto; flex: 0 0 auto; margin: 3px 0 0; }
.bk-opt b { display: block; color: var(--iv-ink, #1d2d3e); }
.bk-opt small { display: block; color: var(--iv-ink-3, #556b82); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.bk-opt:has(input:checked) { border-color: #0a6ed1; background: #eef6ff; box-shadow: 0 0 0 1px #0a6ed1 inset; }
.bk-src .hb { align-self: center; }

/* ------------------------------------------------------------- distribution API: credentials (ApiClients.aspx) and documentation (ApiDocs.aspx) */
.hms code { font-family: Consolas, Menlo, "Courier New", monospace; font-size: 12px; background: #F2F4F6; border: 1px solid #E1E5E9; border-radius: 3px; padding: 0 5px; color: #1D2D3E; word-break: normal; overflow-wrap: break-word; }
.hms .sub { font-size: 12px; color: var(--iv-muted); font-weight: 400; }
.api-env { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--h-gap); }
.api-env-c { display: flex; gap: 14px; background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); padding: 14px 16px; border-left: 4px solid var(--iv-p); min-width: 0; }
.api-env-c.live { border-left-color: #8C9196; }
.api-env-c .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; display: grid; place-items: center; font-size: 18px; background: var(--iv-p-l); color: var(--iv-p); }
.api-env-c.live .ic { background: #F2F4F6; color: #556B82; }
.api-env-c .tx { min-width: 0; flex: 1; }
.api-env-c .tx > b { font-size: 15px; color: var(--iv-ink); }
.api-env-c p { margin: 4px 0 8px; font-size: 13px; color: var(--iv-muted); }
.api-env-c .kv { grid-template-columns: 110px minmax(0, 1fr); }
.api-url { font-size: 12.5px; }
form#form1 .hms #logClient, .hms #logClient { width: auto; min-width: 240px; }
.hms-card > .hd .hms-actions { flex-wrap: nowrap; }
.api-key { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.api-cred { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 12px; margin: 12px 0; align-items: center; }
.api-cred dt { color: var(--hx-label); font-weight: 600; font-size: 13px; }
.api-cred dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.api-cred code { font-size: 13px; padding: 4px 8px; flex: 1 1 auto; }
.api-cred code.secret { background: #FFF8E6; border-color: #F0C49C; font-weight: 600; }

.api-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--iv-line); margin-bottom: var(--h-gap); overflow-x: auto; }
form#form1 .hms .api-tabs button, .api-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 9px 14px; min-height: 40px;
    font: 600 13.5px var(--hx-font); color: var(--hx-label); cursor: pointer; white-space: nowrap; box-shadow: none; width: auto; }
form#form1 .hms .api-tabs button:hover, .api-tabs button:hover { color: var(--iv-p-d); background: var(--hx-hover); }
form#form1 .hms .api-tabs button.on, .api-tabs button.on { color: var(--iv-p); border-bottom-color: var(--iv-p); }
.api-panel { display: none; }
.api-panel.on { display: block; }
.api-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; margin-bottom: var(--h-gap); }
.api-hero-l, .api-hero-r { background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); padding: 16px 18px; min-width: 0; }
.api-hero-l { border-top: 3px solid var(--iv-p); }
.api-hero h2 { font-size: 13px; font-weight: 700; color: var(--hx-label); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 8px; }
.api-hero p { margin: 10px 0; color: var(--iv-ink-3); }
.api-base { display: flex; align-items: center; gap: 6px; }
.hms .api-base code { font-size: 15px; padding: 6px 10px; background: #1D2D3E; color: #fff; border-color: #1D2D3E; flex: 1 1 auto; }
.api-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.api-facts li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.api-facts i { color: var(--iv-p); margin-top: 3px; width: 14px; text-align: center; }
.api-facts b { display: block; color: var(--iv-ink); }
.api-steps-mini { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.api-steps-mini li { counter-increment: s; position: relative; padding: 0 0 12px 36px; }
.api-steps-mini li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--iv-p); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.api-steps-mini b { display: block; color: var(--iv-ink); }
.api-steps-mini span { font-size: 13px; color: var(--iv-muted); }
.api-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.api-flow li { position: relative; min-width: 0; }
.api-flow li + li::before { content: "\f105"; font-family: FontAwesome; position: absolute; left: -10px; top: 46%; color: var(--iv-faint); font-size: 16px; }
.api-flow a { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 12px; border: 1px solid var(--iv-line); border-radius: 6px; text-decoration: none !important; color: var(--iv-ink-3) !important; background: #fff; transition: box-shadow .12s, border-color .12s; }
.api-flow a:hover { border-color: var(--iv-p); box-shadow: 0 4px 12px rgba(10,110,209,.14); }
.api-flow .n { width: 22px; height: 22px; border-radius: 50%; background: var(--iv-p-l); color: var(--iv-p-d); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.api-flow code { align-self: flex-start; font-size: 12.5px; }
.api-flow b { color: var(--iv-ink); font-size: 13.5px; }
.api-flow small { font-size: 12px; color: var(--iv-muted); line-height: 1.45; }
.hms .m { display: inline-block; min-width: 44px; text-align: center; font: 700 11px Consolas, Menlo, monospace; letter-spacing: .3px; padding: 2px 6px; border-radius: 3px; color: #fff; align-self: flex-start; }
.hms .m.get { background: #107E3E; } .hms .m.post { background: #0A6ED1; } .hms .m.delete { background: #BB0000; }
.api-note { margin: 12px 0 0; font-size: 13px; color: var(--iv-muted); }
.api-note i { color: var(--iv-p); margin-right: 4px; }
.api-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.api-2col > .hms-card { min-width: 0; }
.api-mini { width: 100%; }
.api-mini td, .api-mini th { vertical-align: top; }
.api-mini td:first-child code, .api-flow code { white-space: nowrap; }
.api-list { margin: 10px 0 0; padding-left: 18px; }
.api-list li { margin-bottom: 5px; }
.api-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.api-dl dt { font-weight: 600; color: var(--hx-label); }
.api-dl dd { margin: 0; }
.api-formula { font: 600 14px Consolas, Menlo, monospace; background: #F7F8F9; border: 1px solid var(--iv-line-2); border-radius: 6px; padding: 10px 12px; color: var(--iv-ink); }
.api-formula span { color: var(--iv-p-d); }
.api-check { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.api-check li { margin-bottom: 6px; break-inside: avoid; }
.api-code { border: 1px solid #2B3D4F; border-radius: 6px; overflow: hidden; margin: 10px 0; background: #1D2D3E; }
.api-code .ch { display: flex; justify-content: space-between; align-items: center; padding: 3px 4px 3px 12px; background: #283848; color: #C9D6E2; font-size: 12px; font-weight: 600; min-height: 32px; }
form#form1 .hms .api-code .ch .ib, .api-code .ch .ib { color: #C9D6E2; width: 26px; height: 26px; min-height: 26px; }
form#form1 .hms .api-code .ch .ib:hover, .api-code .ch .ib:hover { background: #3A5068; color: #fff; }
.hms .api-code pre { margin: 0; padding: 10px 12px; color: #E3ECF4; font: 12.5px/1.5 Consolas, Menlo, monospace; white-space: pre; overflow: auto; max-height: 420px; background: transparent; border: 0; border-radius: 0; }
.api-ref { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; align-items: start; }
.api-idx { position: sticky; top: 56px; background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); padding: 8px; max-height: calc(100vh - 72px); overflow: auto; }
.api-idx .g { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--hx-label); padding: 8px 8px 4px; }
.api-idx a { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 4px; text-decoration: none !important; color: var(--iv-ink-3) !important; }
.api-idx a:hover { background: var(--hx-sel); }
.api-idx .t { font: 600 12.5px Consolas, Menlo, monospace; min-width: 0; word-break: break-all; }
.api-idx small { display: block; font: 400 11.5px var(--hx-font); color: var(--iv-muted); margin-top: 1px; word-break: normal; }
.api-idx .m { min-width: 38px; font-size: 10px; }
.api-loading { padding: 12px; color: var(--iv-muted); }
.api-op { scroll-margin-top: 64px; }
.api-op > .hd h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin: 0; }
.api-op .api-n { width: 22px; height: 22px; border-radius: 50%; background: var(--iv-p-l); color: var(--iv-p-d); font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; }
.hms .api-op .api-p { font-size: 14px; font-weight: 700; background: transparent; border: 0; padding: 0; }
.api-op .api-sum { font-weight: 400; color: var(--iv-muted); font-size: 13.5px; }
.api-desc-l { margin: 0 0 8px; max-width: 1000px; }
.api-url-l code { font-size: 12.5px; }
.api-h4 { font-size: 13.5px; font-weight: 700; color: var(--iv-ink); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.api-h4 .hint { font-weight: 400; color: var(--iv-muted); font-size: 12.5px; }
.api-sub { font-weight: 600; color: var(--hx-label); margin: 10px 0 6px; font-size: 13px; }
.api-sub .hint { font-weight: 400; color: var(--iv-muted); }
.api-none { color: var(--iv-muted); font-style: italic; margin: 4px 0; }
.api-fields { width: 100%; }
.api-fields td { vertical-align: top; font-size: 12.5px; }
.api-fields .api-path { font-family: Consolas, Menlo, monospace; white-space: nowrap; }
.api-fields .api-path .pre { color: var(--iv-faint); }
.api-fields .api-path b { color: var(--iv-ink); }
.api-fields .api-type { white-space: nowrap; color: #6F2DA8; font-family: Consolas, Menlo, monospace; }
.api-fields .api-len { white-space: nowrap; font-family: Consolas, Menlo, monospace; color: var(--iv-ink-3); }
.api-fields .api-desc { min-width: 300px; max-width: 540px; white-space: normal; }
.api-fields .api-ex code { white-space: nowrap; word-break: normal; }
.api-nul { font: 400 10.5px var(--hx-font); color: var(--iv-muted); border: 1px solid var(--iv-line); border-radius: 3px; padding: 0 4px; }
.api-enum, .api-pat { display: block; margin-top: 3px; color: var(--iv-muted); }
.api-enum code, .api-pat code { margin: 1px 2px 1px 0; display: inline-block; }
.api-console { background: #fff; border-radius: var(--iv-r-lg); box-shadow: var(--iv-sh-1); overflow: hidden; }
.api-console iframe { width: 100%; height: calc(100vh - 210px); min-height: 560px; border: 0; display: block; }
@media (max-width: 1180px) { .api-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } .api-flow li:nth-child(4)::before { display: none; } }
@media (max-width: 960px) {
    .api-env, .api-hero, .api-2col { grid-template-columns: minmax(0, 1fr); }
    .api-ref { grid-template-columns: minmax(0, 1fr); }
    .api-idx { position: static; max-height: none; }
    .api-check { columns: 1; }
}
@media (max-width: 600px) {
    .api-flow { grid-template-columns: minmax(0, 1fr); }
    .api-flow li::before { display: none; }
    .api-facts { grid-template-columns: minmax(0, 1fr); }
    .api-cred, .api-dl { grid-template-columns: minmax(0, 1fr); }
    .api-env-c .kv { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .hx-shell, .hx-side, .ims-header, .iv-foot, .api-tabs, .hms-actions, #tab-console, .api-idx, .ib { display: none !important; }
    .api-panel { display: block !important; }
    .api-ref { grid-template-columns: minmax(0, 1fr); }
    .api-op, .hms-card { box-shadow: none; border: 1px solid #D9DDE1; }
    .api-code { background: #fff; border-color: #999; } .hms .api-code pre { color: #000; max-height: none; white-space: pre-wrap; } .api-code .ch { background: #eee; color: #000; }
    .hms .api-base code { background: #fff; color: #000; }
}
