/* ============================================================================
   Board top: compact KPI strip (top-left) + team calendar, with the 3 info
   panels stacked in a right column.
   ========================================================================== */
.board-topgrid { display: grid; grid-template-columns: 1fr 310px; gap: 14px; align-items: stretch; }
.board-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.board-right { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1040px) { .board-topgrid { grid-template-columns: 1fr; } }

/* compact KPI strip */
.kpi-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kpis { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow); min-width: 0; }
.kpis__ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kpis__ic svg { width: 16px; height: 16px; }
.kpis__txt { line-height: 1.1; min-width: 0; }
.kpis__txt b { font-size: 20px; font-weight: 800; display: block; }
.kpis__txt span { font-size: 10px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.kpis--blue   .kpis__ic { color: #181818; background: color-mix(in srgb, #181818 15%, transparent); }
.kpis--amber  .kpis__ic { color: #d99a2b; background: color-mix(in srgb, #d99a2b 16%, transparent); }
.kpis--green  .kpis__ic { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.kpis--violet .kpis__ic { color: #ad9c82; background: color-mix(in srgb, #ad9c82 16%, transparent); }
.kpis--red    .kpis__ic { color: var(--danger); background: color-mix(in srgb, var(--danger) 15%, transparent); }
.kpis--red .kpis__txt b { color: var(--danger); }
@media (max-width: 640px) { .kpi-strip { grid-template-columns: repeat(3, 1fr); } }

/* calendar + events row — fills the remaining left-column height to match the right panels */
.calrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; flex: 1; min-height: 0; }
.cal-panel { display: flex; flex-direction: column; }
.cal-panel .panel__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
@media (max-width: 820px) { .calrow { grid-template-columns: 1fr; flex: none; } }

.cal-head2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.cal-title svg { width: 17px; height: 17px; color: var(--accent); }
.cal-nav { display: flex; align-items: center; gap: 5px; }
.cal-nav .icon-btn { font-size: 17px; width: 24px; height: 24px; line-height: 1; }
.cal-today { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 7px; padding: 4px 12px; font-weight: 600; font-size: 12px; cursor: pointer; }
.cal-today:hover { background: var(--surface-3); }
.cal-dow2 { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px 7px 0 0; }
.cal-dow2 span { text-align: center; padding: 5px 0; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); }
.cal-grid2 { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; flex: 1; min-height: 210px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 7px 7px; overflow: hidden; }
.cal-cell2 { position: relative; border-right: 1px solid var(--border); border-top: 1px solid var(--border); padding: 2px 5px; cursor: pointer; }
.cal-cell2:nth-child(7n) { border-right: none; }
.cal-cell2:hover:not(.is-out) { background: var(--surface-2); }
.cal-cell2.is-out { background: var(--surface-2); cursor: default; }
.cal-n { position: absolute; top: 3px; right: 6px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.cal-cell2.is-today { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 4px; }
.cal-cell2.is-today .cal-n { color: var(--accent); font-weight: 800; }
.cal-cell2.is-hol { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.cal-cell2.is-hol .cal-n { color: var(--danger); }
.cal-plus { position: absolute; top: 2px; left: 5px; color: var(--text-3); font-size: 12px; opacity: 0; }
.cal-cell2:hover .cal-plus { opacity: 1; }
.cal-evbar { position: absolute; left: 5px; bottom: 4px; display: flex; align-items: center; gap: 3px; max-width: calc(100% - 10px); }
.cal-chip--hol { font-size: 8px; font-weight: 800; color: #fff; background: var(--danger); border-radius: 3px; padding: 0 4px; white-space: nowrap; }
.cal-dot2 { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cal-dot2--meet { background: var(--accent); }

/* upcoming events list */
.ev-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.ev-row:last-child { border-bottom: none; }
.ev-date { text-align: center; min-width: 38px; line-height: 1.15; padding-top: 1px; }
.ev-date b { font-size: 13px; font-weight: 800; display: block; }
.ev-date span { font-size: 9.5px; color: var(--text-3); }
.ev-row--holiday .ev-date b { color: var(--danger); }
.ev-body { flex: 1; min-width: 0; }
.ev-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.ev-badge { font-size: 9.5px; font-weight: 800; border-radius: 4px; padding: 1px 6px; }
.ev-badge--holiday { color: #fff; background: var(--danger); }
.ev-badge--meeting { color: #fff; background: var(--accent); }
.ev-time { color: var(--accent); }
.ev-sub { font-size: 11px; color: var(--text-2); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.ev-sub svg { width: 12px; height: 12px; flex: none; }
.ev-detail { color: var(--text-3); }

/* the 3 info panels are narrower in the right column */
.board-right .slidebody { height: 128px; }
