/* ViglAI Hub · Settings → Ξενοδοχείο → «Περίοδοι λειτουργίας» (channels.js seasonSettings, docs/ANALYSIS-REDESIGN.md §6.4).
   The year night by night like a lookout's log: a row per month, a mark per night. Calm when the declaration and the stays agree;
   amber (smoke) only where they do not - never red: nothing has to be acted on today, the hotel only looks again. Tokens from app.css. */

.ssn { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); max-width: 760px; }
.ssn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ssn-head h3 { margin: 0; color: var(--ink); font-size: 14px; }
.ssn-yr { display: inline-flex; align-items: center; gap: 6px; }
.ssn-yr b { font-size: 18px; min-width: 3.2ch; text-align: center; }
.ssn-yr .step { padding: 2px 10px; font-size: 16px; line-height: 1.2; }
.ssn-basis { font-size: 12.5px; color: var(--sea); margin: 0 0 8px; }
.ssn .notice { margin-bottom: 14px; }
.ssn .notice p { margin: 0 0 4px; }
.ssn-ok { color: var(--ok); font-weight: 550; margin: 0 0 12px; }
.ssn-warn { list-style: none; margin: 0 0 14px; padding: 0; }
.ssn-warn li { border-left: 3px solid var(--smoke); background: var(--smoke-bg); padding: 6px 12px; margin-bottom: 4px; border-radius: var(--radius); font-size: 13.5px; }

/* the year: month label + 31 nights; a short month simply ends */
.ssn-year { display: grid; gap: 3px; margin: 4px 0 10px; }
.ssn-m { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px; }
.ssn-ml { font-size: 11.5px; color: var(--muted); }
.ssn-days { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 2px; }
.ssn i.c { display: block; height: 14px; border-radius: 1px; background: var(--sunken); }
.ssn i.c.open { background: var(--sea); }
.ssn i.c.open.ahead { background: var(--sea); opacity: .42; }
.ssn i.c.closed { background: var(--sunken); }
.ssn i.c.unknown { background: repeating-linear-gradient(135deg, var(--rule) 0 2px, transparent 2px 5px); }
.ssn i.c.w-empty { background: var(--smoke-bg); box-shadow: inset 0 0 0 1.5px var(--smoke); }
.ssn i.c.w-stay { background: var(--smoke); }
.ssn i.c.today { outline: 2px solid var(--ink); outline-offset: 0; }

.ssn-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.ssn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ssn-legend i.c { width: 12px; height: 12px; }

@media (max-width: 520px) {
  .ssn-m { grid-template-columns: 28px minmax(0, 1fr); gap: 4px; }
  .ssn-days { gap: 1px; }
  .ssn i.c { height: 10px; }
}
@media print { .ssn-yr .step { display: none; } }
