/* R13 hotel management – CH – channels and the sync log */

/* KPI tiles that open a filtered list */
.hc-kpi-link { display: block; color: inherit; text-decoration: none; text-align: start; font: inherit; cursor: pointer; border: 1px solid var(--border); }
.hc-kpi-link:hover, .hc-kpi-link:focus-visible { border-color: var(--primary); }
.hc-kpi-link.hc-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.kpis.hc-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.hc-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* empty state: pick a channel type */
.hc-empty h2 { margin-block: 0 .25rem; }
.hc-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-block-start: 1rem; }
.hc-kind { display: flex; flex-direction: column; gap: .35rem; text-align: start; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
           background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.hc-kind:hover:not(:disabled), .hc-kind:focus-visible { border-color: var(--primary); }
.hc-kind:disabled { cursor: default; opacity: .7; }

/* partner approvals */
.hc-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.hc-partner { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; border: 1px solid var(--row-line); border-radius: var(--radius-sm); }
.hc-partner p { margin: 0; }
.hc-partner a { display: inline-flex; align-items: center; gap: .3rem; }

/* mode switch Off / Test mode / Live */
.hc-modes { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.hc-mode { padding: .4rem .85rem; border: 0; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.hc-mode + .hc-mode { border-inline-start: 1px solid var(--border); }
.hc-mode:disabled { cursor: default; }
.hc-mode.on { font-weight: 600; }
.hc-mode.on.green { background: var(--green-bg); color: var(--green-fg); }
.hc-mode.on.amber { background: var(--amber-bg); color: var(--amber-fg); }
.hc-mode.on.gray { background: var(--gray-bg); color: var(--gray-fg); }

/* result of the last action */
.hc-run { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; margin-block: .5rem; border: 1px solid var(--border);
          border-radius: var(--radius-sm); background: var(--surface); }
.hc-run > span { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }

.hc-sub { font-size: 1rem; margin-block: 1.1rem .4rem; }
.hc-wide { grid-column: 1 / -1; }
.hc-pad { padding-inline: 1rem; }
.card-head.hc-pad { padding-block-start: .75rem; }
.hc-clip { max-width: 38rem; overflow-wrap: anywhere; }
.hc-row-actions { white-space: nowrap; text-align: end; }

.hc-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: .5rem 0 .75rem; font-size: .9rem; }
.hc-facts dt { color: var(--muted); }
.hc-facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; }

/* callback / feed addresses */
.hc-link { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding-block: .35rem; border-block-end: 1px solid var(--row-line); }
.hc-link code { font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }
@media (max-width: 640px) { .hc-link { grid-template-columns: 1fr; } }

/* log */
.hc-linkish { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
.hc-linkish:hover { text-decoration: underline; }
.hc-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block-end: .5rem; }
.hc-payload { max-height: 50vh; overflow: auto; margin: 0; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
              background: var(--surface); font-family: var(--mono); font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
