/* Via Barcelona brand touches inside the ORYKSA dashboard: terracotta + trencadís blue. */
.biz-mark { font-size: 14px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-b { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.crit-t { color: var(--crit); font-weight: 600; }
.pill-paid, .pill-done { background: var(--ok-bg); color: var(--ok); } .pill-due { background: var(--warn-bg); color: var(--warn); } .pill-overdue { background: var(--crit-bg); color: var(--crit); }
.pill-done { background: var(--neutral-bg); color: var(--muted); }
.tg-risk { background: var(--crit-bg); color: var(--crit); }
.lv-b { display: inline-grid; place-items: center; min-width: 28px; padding: 1px 6px; border-radius: 6px; background: #FDEDE3; color: #9A3412; font-weight: 800; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lv-b.big { min-width: 42px; height: 42px; border-radius: 12px; font-size: 15px; } .lv-b.huge { min-width: 56px; height: 56px; border-radius: 16px; font-size: 19px; flex: none; }
.ck-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; } .ck-inline input { accent-color: #C2410C; width: 16px; height: 16px; }
.warn-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--crit-bg); color: var(--crit); font-size: 13px; font-weight: 600; }

/* enquiries board */
.eq-board { grid-template-columns: repeat(var(--lanes, 4), minmax(0, 1fr)); }
.eq-board > div, .eq-card, .eq-card .ord-h, .eq-card .who.sm { min-width: 0; }
.col-h .col-v { margin-left: 4px; font-weight: 600; color: var(--muted); font-size: 12px; }
.who.sm { display: inline-flex; align-items: center; gap: 6px; } .who.sm b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-h small { white-space: nowrap; flex: none; font-family: inherit; }
.eq-c { display: grid; gap: 2px; } .eq-c b { font-size: 13.5px; line-height: 1.3; } .eq-c span { font-size: 12px; color: var(--muted); }
.eq-card .ord-meta span { display: inline-flex; align-items: center; gap: 4px; }
.eq-note { margin: 0; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); font-size: 12px; color: var(--muted); line-height: 1.4; }
.eq-card .src { color: var(--muted); display: inline-flex; }
.eq-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.eq-acts .btn.xs { white-space: nowrap; }

/* attendance bar */
.attb { display: block; width: 72px; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; } .attb i { display: block; height: 100%; border-radius: 3px; background: #16A34A; }
.attb.warn i { background: #D97706; } .attb.bad i { background: #DC2626; }

/* side panels */
.side-panel { grid-template-columns: minmax(0, 1fr); } .side-panel > * { min-width: 0; } .side-panel .sp-f { display: flex; flex-wrap: wrap; gap: 6px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .kv > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); min-width: 0; } .kv span { font-size: 11.5px; color: var(--muted); } .kv b { font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.row-link { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.row-link:hover { background: var(--hover); } .row-link small { display: block; color: var(--muted); } .row-link > span { min-width: 0; }
.veh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .veh-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; } .veh-list small { display: block; color: var(--muted); }
.hist li { min-width: 0; } .hist .tg, .hist .pill { justify-self: end; }

/* classes */
.cl-wrap { display: grid; gap: 10px; align-content: start; min-width: 0; }
.slot-h { display: flex; align-items: baseline; gap: 10px; margin: 6px 4px 0; } .slot-h b { font-size: 14px; } .slot-h span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.clcard, .hcard { position: relative; display: grid; gap: 10px; padding: 14px; }
.clcard > .hit, .hcard > .hit { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; z-index: 0; border-radius: inherit; cursor: pointer; }
.clcard > .hit:focus, .hcard > .hit:focus { outline: none; } .clcard > .hit:focus-visible, .hcard > .hit:focus-visible { outline: 2px solid #C2410C; outline-offset: -2px; }
.clcard.sel, .hcard.sel { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,.18); }
.cl-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; } .cl-h b { display: block; font-size: 14px; line-height: 1.3; } .cl-h small { color: var(--muted); font-size: 12px; }
.cl-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cl-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } .cl-cap small { color: var(--muted); font-size: 12px; }
.hbar { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; } .hbar > span { display: block; height: 100%; border-radius: 3px; background: #C2410C; } .hbar.warn > span { background: #D97706; } .hbar.over > span { background: #DC2626; }
.cl-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.reg { display: grid; gap: 10px; } .reg-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reg-l label { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 13px; } .reg-l label:hover { background: var(--hover); }
.reg-l input { accent-color: #16A34A; width: 17px; height: 17px; margin: 0; } .reg-l small { display: block; color: var(--muted); font-size: 11.5px; } .reg-l b { display: block; }
.reg-l input:not(:checked) ~ span b { color: var(--crit); text-decoration: line-through; }
.reg .btn { justify-self: start; }

/* homestay */
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-content: start; min-width: 0; }
.hc-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; } .hc-h b { display: block; font-size: 15px; } .hc-h small { display: block; color: var(--muted); font-size: 12.5px; } .stars.sm { font-size: 12px; color: #D97706; font-weight: 700; }
.rooms { display: grid; gap: 6px; } .room { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); min-height: 46px; font-size: 13px; }
.room.full { border-style: solid; background: var(--panel-2); } .room small { display: block; color: var(--muted); font-size: 11.5px; } .room b { display: block; }
.hc-f { display: flex; gap: 4px; flex-wrap: wrap; }

/* teachers */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tcard { display: grid; gap: 12px; padding: 16px; align-content: start; }
.tc-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; } .tc-h b { display: block; font-size: 15px; } .tc-h small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .tc-stats div { display: grid; padding: 8px; border-radius: 10px; background: var(--panel-2); text-align: center; } .tc-stats b { font-size: 17px; } .tc-stats span { font-size: 11px; color: var(--muted); }
.tc-cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .tc-cl li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; } .tc-cl .lnk { display: inline-flex; align-items: center; gap: 6px; text-align: left; } .tc-cl small { color: var(--muted); white-space: nowrap; }
.tc-f { display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); } .tc-f small { margin-right: auto; }

:root[data-theme="dark"] .lv-b { background: rgba(194,65,12,.3); color: #FDBA74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv-b { background: rgba(194,65,12,.3); color: #FDBA74; } }
@media (max-width: 1180px) { .eq-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis.three, .eq-board { grid-template-columns: minmax(0, 1fr); } .cl-grid, .host-grid, .team-grid { grid-template-columns: minmax(0, 1fr); } }
.biz-mark { font: 400 20px/1 "Young Serif", Georgia, serif; color: #fff; }
.cls-list li { padding-top: 6px; padding-bottom: 6px; } .cls-list .top-n b, .cls-list .top-n small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .cls-list .top-n { min-width: 0; }
.sec-t { font-size: 15px; margin: 22px 4px 10px; color: var(--muted); font-weight: 650; }

.pill-completed { background: var(--neutral-bg); color: var(--muted); }
.ok-t { color: var(--ok); font-weight: 600; } .warn-t { color: var(--warn); font-weight: 600; } .note-t { color: #B45309; }
.srcb { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.tbl tr.dim td { opacity: .55; } .tbl tr.tot-row td { background: var(--panel-2); }
.pt-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #FDEDE3; color: #C2410C; flex: none; } .pt-ic.d { background: var(--info-bg); color: var(--info); }
/* today mini departures */
.dep-mini li { padding: 0; } .dm { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.dm:hover .top-n b { color: #C2410C; } .dm .top-n b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; } .dm .cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 4px; } .dm .cap small { font-size: 11.5px; color: var(--muted); }
/* departures */
.dep-list { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dep { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px auto; gap: 14px; align-items: center; padding: 12px 14px; border-left: 4px solid var(--c); }
.dep > .hit { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; z-index: 0; border-radius: inherit; cursor: pointer; }
.dep > .hit:focus { outline: none; } .dep > .hit:focus-visible { outline: 2px solid #C2410C; outline-offset: -2px; }
.dep.picked { box-shadow: 0 0 0 3px rgba(194,65,12,.18); border-color: #C2410C; } .dep.off { opacity: .6; } .dep.off .dep-b b { text-decoration: line-through; }
.dep-t b { display: block; font-size: 16px; } .dep-t small { color: var(--muted); font-size: 12px; }
.dep-b { display: grid; gap: 3px; min-width: 0; } .dep-b b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-m { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.dep-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #B45309; font-weight: 600; }
.dep-cap { display: grid; gap: 4px; } .dep-cap small { font-size: 12px; color: var(--muted); }
.pill.dps-open { background: var(--ok-bg); color: var(--ok); } .pill.dps-full { background: var(--warn-bg); color: var(--warn); } .pill.dps-done { background: var(--neutral-bg); color: var(--muted); } .pill.dps-cancelled { background: var(--crit-bg); color: var(--crit); }
.dep-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.manifest { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.manifest li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; } .manifest small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .manifest li > span { min-width: 0; }
.ck { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--panel); color: transparent; display: grid; place-items: center; cursor: pointer; } .ck.on { background: #16A34A; border-color: #16A34A; color: #fff; } .ck:disabled { opacity: .4; cursor: not-allowed; }
/* guides week */
.gd-tbl th.c, .gd-tbl td.c { text-align: center; padding-left: 4px; padding-right: 4px; }
.slot { min-width: 72px; min-height: 44px; display: grid; place-items: center; gap: 0; padding: 4px 6px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; font: inherit; cursor: pointer; color: var(--fg); }
.slot.busy { border-style: solid; background: #FDEDE3; border-color: #F8C9A8; } .slot.busy b { font-size: 15px; color: #9A3412; } .slot small { font-size: 10.5px; } .slot.off { border-style: solid; background: var(--neutral-bg); color: var(--muted); font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .slot.busy, :root[data-theme="dark"] .pt-ic { background: rgba(194,65,12,.22); border-color: rgba(194,65,12,.4); } :root[data-theme="dark"] .slot.busy b { color: #FDBA74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slot.busy, :root:not([data-theme="light"]) .pt-ic { background: rgba(194,65,12,.22); border-color: rgba(194,65,12,.4); } :root:not([data-theme="light"]) .slot.busy b { color: #FDBA74; } }
@media (max-width: 760px) { .dep { grid-template-columns: 56px minmax(0, 1fr); } .dep-cap, .dep .pill { grid-column: 2; } }
.dep-mini li { display: block; padding: 0; } .dep-mini .dm .top-n { min-width: 0; display: block; }
/* clickable records (rows, cards, list items open their sheet) */
.tbl tr[data-act] { cursor: pointer; } .tbl tr[data-act]:hover td { background: var(--hover); } .tbl tr[data-act]:focus-visible { outline: 2px solid var(--indigo); outline-offset: -2px; }
.rec-link { cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; } li.rec-link { border-radius: 10px; } li.rec-link:hover { background: var(--hover); }
article.rec-link:hover { border-color: var(--indigo-line, var(--line)); box-shadow: 0 6px 18px rgba(0,0,0,.07); } .rec-link:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.item-img.rec-link:hover img { opacity: .92; }
