@charset "UTF-8";
/* Panoramica (owner: SHELL) — venue Panoramica (reference render) and Master Panoramica. Shared parts come from styles.css. */

.ov-page { container: ov / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-page > .page-header { margin: 0 0 4px; }
.ov-greeting { font-size: 26px; line-height: 32px; letter-spacing: -.025em; }
.ov-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ov-bad { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--red); }
.ov-push { margin-left: auto; }

/* KPI strip: two columns until the content is wide enough, then one column per indicator. */
.ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-kpis > .kpi:nth-child(odd)::before { display: none; }
.ov-kpis > .kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.ov-kpis .kpi-value .skeleton { display: inline-block; vertical-align: middle; }
@container ov (min-width: 760px) {
  .ov-kpis { grid-template-columns: repeat(var(--ov-kpi-cols, 4), minmax(0, 1fr)); }
  .ov-kpis > .kpi:nth-child(odd)::before { display: block; }
  .ov-kpis > .kpi:nth-child(n+3) { border-top: 0; }
}

/* Dashboard grid: 12 columns; each panel declares --lg (wide) and --md (medium) spans. */
.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.ov-cell { grid-column: span 12; min-height: 0; }
@container ov (min-width: 640px) { .ov-cell { grid-column: span var(--md, 12); } }
@container ov (min-width: 940px) { .ov-cell { grid-column: span var(--lg, 12); } }

/* Prossimi arrivi */
.ov-arrivals { container: arr / inline-size; }
.ov-arr-list { margin: 0; padding: 4px 0; list-style: none; }
.ov-arr {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "time guest table" ". status status";
  align-items: center; column-gap: 12px; row-gap: 6px; min-height: 56px; padding: 9px 16px; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.ov-arr:hover { background: rgba(255, 255, 255, .025); }
.ov-arr + .ov-arr::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.ov-arr.is-pending { background: linear-gradient(90deg, rgba(232, 182, 90, .045), rgba(232, 182, 90, 0) 70%); }
.ov-arr.is-pending:hover { background-color: rgba(255, 255, 255, .02); }
.ov-arr.is-pending::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--amber); }
.ov-arr-time { grid-area: time; font-size: 14px; font-weight: 500; color: var(--text-1); }
.ov-arr-guest { grid-area: guest; display: flex; flex-direction: column; min-width: 0; }
.ov-arr-name { align-self: flex-start; max-width: 100%; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--text-1); font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-arr-name:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.ov-arr-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ov-arr-table { grid-area: table; justify-self: end; min-width: 0; }
.ov-arr-status { grid-area: status; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ov-arr-actions { display: flex; gap: 6px; margin-left: auto; }
/* Wide panel: one table — every row shares the columns (subgrid), the status column takes what pills and actions need. */
@container arr (min-width: 560px) {
  .ov-arr-list { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; column-gap: 16px; }
  .ov-arr { grid-column: 1 / -1; grid-template-columns: subgrid; grid-template-areas: none; padding: 0 16px; row-gap: 0; }
  .ov-arr > * { grid-area: auto; }
  .ov-arr-table { justify-self: start; }
  .ov-arr-status { flex-wrap: nowrap; min-width: 0; }
}
@container arr (min-width: 720px) { .ov-arr-status { min-width: 268px; } }

/* Sala in tempo reale: schematic floor (relative positions, legible at any width) */
.ov-floor-panel { container: floorpanel / inline-size; }
.ov-floor-panel .panel-header { gap: 10px; }
@container floorpanel (max-width: 340px) { .ov-floor-panel .panel-header > .panel-sub, .ov-floor-panel .ov-rooms { display: none; } }
.ov-rooms { flex: 0 1000 auto; min-width: 0; }
.ov-floor-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px 16px 0; }
.ov-floor {
  flex: 1; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: minmax(78px, 1fr); padding: 4px;
  border-radius: var(--r-md); background-color: #121417; box-shadow: inset 0 0 0 1px var(--line-soft);
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px); background-size: 12px 12px; background-position: 6px 6px;
}
.ov-cell-table { display: grid; place-items: center; min-width: 0; padding: 0; border: 0; border-radius: var(--r-md); background: none; cursor: pointer; }
.ov-cell-table:focus-visible { outline-offset: -2px; }
.ov-cell-table:hover .ov-table { filter: brightness(1.18); }
.ov-table { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: var(--r-md); transition: filter var(--t-fast) var(--ease); }
.ov-table.is-rect { width: 60px; height: 44px; }
.ov-table.is-long { width: 76px; height: 44px; }
.ov-table.is-round { width: 50px; height: 50px; border-radius: 50%; }
.ov-table-id { font-size: 12.5px; line-height: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ov-table-sub { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 14px; font-weight: 500; white-space: nowrap; }
/* More than 16 tables: five columns with compact glyphs. */
.ov-floor.is-dense { grid-auto-rows: minmax(66px, 1fr); }
.ov-floor.is-dense .ov-table.is-rect { width: 50px; height: 38px; }
.ov-floor.is-dense .ov-table.is-long { width: 60px; height: 38px; }
.ov-floor.is-dense .ov-table.is-round { width: 42px; height: 42px; }
.ov-floor.is-dense .ov-table-sub { font-size: 11px; }
.ov-chair { position: absolute; border-radius: 2px; background: rgba(255, 255, 255, .09); }
.ov-chair.is-h { width: 14px; height: 4px; margin-left: -7px; }
.ov-chair.is-v { width: 4px; height: 14px; margin-top: -7px; }
/* DESIGN-V6 table semantics: green libero, amber prenotato, red occupato, grey non disponibile (always with a legend). */
.ov-table.is-free { background: rgba(108, 212, 158, .03); box-shadow: inset 0 0 0 1px rgba(108, 212, 158, .34); }
.ov-table.is-free .ov-table-id { color: var(--text-2); }
.ov-table.is-free .ov-chair { background: rgba(108, 212, 158, .16); }
.ov-table.is-booked { background: rgba(232, 182, 90, .11); box-shadow: inset 0 0 0 1px rgba(232, 182, 90, .44); }
.ov-table.is-booked .ov-table-id { color: #F5DDAE; }
.ov-table.is-booked .ov-table-sub { color: var(--amber); }
.ov-table.is-booked .ov-chair { background: rgba(232, 182, 90, .3); }
.ov-table.is-busy { background: rgba(240, 145, 138, .12); box-shadow: inset 0 0 0 1px rgba(240, 145, 138, .44), 0 2px 6px rgba(0, 0, 0, .35); }
.ov-table.is-busy .ov-table-id { color: #F8D3CF; }
.ov-table.is-busy .ov-table-sub { color: var(--text-2); }
.ov-table.is-busy .ov-chair { background: rgba(240, 145, 138, .22); }
.ov-table.is-busy .ov-chair.is-lit { background: rgba(240, 145, 138, .72); }
.ov-table.is-off { background: transparent; box-shadow: inset 0 0 0 1px rgba(138, 144, 153, .28); }
.ov-table.is-off .ov-table-id { color: var(--text-3); }
.ov-table.is-off .ov-chair { background: rgba(138, 144, 153, .14); }
.ov-legend { min-height: 42px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; }
.ov-lg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ov-lg b { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
.ov-sw { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.ov-sw.is-free { background: rgba(108, 212, 158, .12); box-shadow: inset 0 0 0 1px var(--green); }
.ov-sw.is-booked { background: rgba(232, 182, 90, .35); box-shadow: inset 0 0 0 1px var(--amber); }
.ov-sw.is-busy { background: rgba(240, 145, 138, .35); box-shadow: inset 0 0 0 1px var(--red); }
.ov-sw.is-off { box-shadow: inset 0 0 0 1px var(--grey); }

/* Comande in corso */
.ov-orders { container: ord / inline-size; }
.ov-ord-list { margin: 0; padding: 4px 0; list-style: none; }
.ov-ord {
  position: relative; display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) 44px; align-items: center; column-gap: 10px;
  min-height: 46px; padding: 4px 16px; cursor: pointer; transition: background-color var(--t-fast) var(--ease);
}
.ov-ord:hover { background: rgba(255, 255, 255, .025); }
.ov-ord + .ov-ord::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.ov-ord-num { padding: 0; border: 0; border-radius: 4px; background: none; color: var(--text-1); font-size: 14px; font-weight: 500; text-align: left; }
.ov-ord .tchip { justify-self: start; }
.ov-ord-meta { display: none; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ov-ord-meta .icon { color: var(--text-3); }
.ov-ord .pill { justify-self: start; max-width: 100%; overflow: hidden; }
.ov-ord-time { font-size: 13px; color: var(--text-3); text-align: right; white-space: nowrap; }
@container ord (min-width: 470px) {
  .ov-ord { grid-template-columns: 48px 44px minmax(0, 1fr) 172px 48px; column-gap: 12px; }
  .ov-ord-meta { display: flex; }
}

/* Agente AI · oggi */
.ov-ai-mark { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--violet); background: rgba(179, 163, 247, .1); box-shadow: inset 0 0 0 1px rgba(179, 163, 247, .18); }
.ov-ai-stats { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 4px 0; list-style: none; }
.ov-ai-stat { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; }
.ov-ai-stat + .ov-ai-stat::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-soft); }
.ov-ai-num { min-width: 30px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.ov-ai-label { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.ov-ai-stat > .icon { color: var(--text-3); }

/* Incasso ultimi 7 giorni */
.ov-bars { position: relative; flex: 1; min-height: 172px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; padding: 12px 12px 14px; }
.ov-bars::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 37px; height: 1px; background: var(--line); }
.ov-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ov-bar-val { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.ov-bar { width: min(26px, 72%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #30343B, #272B31); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.ov-bar-day { margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.ov-bar-col.is-today .ov-bar { background: linear-gradient(180deg, #FF9455, #F2732E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.ov-bar-col.is-today .ov-bar-val, .ov-bar-col.is-today .ov-bar-day { color: var(--text-1); font-weight: 600; }
.ov-bars-note { margin: -4px 16px 14px; font-size: 12.5px; line-height: 18px; color: var(--text-3); }

/* Master Panoramica */
.ov-master .panel-list .row { min-height: 60px; }
.ov-draft { gap: 14px; }
.ov-draft-progress { display: flex; align-items: center; gap: 8px; width: 132px; flex: none; font-size: 13px; color: var(--text-2); }
.ov-draft-progress .progress { flex: 1; }
.ov-lead .pill, .ov-due .pill, .ov-venue-row .pill { flex: none; }
.ov-skeleton { padding: 6px 16px 10px; }
.ov-skeleton-row { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ov-skeleton-text { flex: 1; display: flex; flex-direction: column; }
@container ov (max-width: 560px) {
  .ov-greeting { font-size: 22px; line-height: 28px; }
  .ov-draft { flex-wrap: wrap; }
  .ov-draft .row-main { flex: 1 1 calc(100% - 44px); }
  .ov-draft-progress { order: 3; flex: 1 1 auto; width: auto; margin-left: 42px; }
  .ov-draft .btn { order: 4; }
  .ov-venue-row .pill { display: none; }
}
