/* Lexora Advocacia brand touches inside the ORYKSA dashboard: burgundy + gold. */
.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: #F6E7E9; color: #7A1F2B; 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: #7A1F2B; 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 */
.ld-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 #7A1F2B; outline-offset: -2px; }
.clcard.sel, .hcard.sel { border-color: #7A1F2B; box-shadow: 0 0 0 3px rgba(122,31,43,.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: #7A1F2B; } .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; }

/* ---------- Lexora Advocacia ---------- */
.biz-mark { font-family: "Fraunces", Georgia, serif; }
.cnj { font: 600 12.5px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .01em; color: var(--fg); }
small.cnj, .lnk.cnj { font-size: 11.5px; color: var(--muted); }
tr.cs-row { cursor: pointer; } tr.cs-row:hover td { background: var(--hover); } tr.picked td { background: var(--indigo-soft); }
.tbl td.sm { font-size: 12.5px; color: var(--muted); } .tbl small.sub { display: block; font-size: 11.5px; color: var(--muted); }
.split.has-side .tbl tr > :nth-child(3), .split.has-side .tbl tr > :nth-child(4) { display: none; }
.dt-b { display: grid; justify-items: center; width: 42px; padding: 4px 0; border-radius: 10px; background: #F6E7E9; color: #7A1F2B; line-height: 1.1; } .dt-b b { font-size: 16px; } .dt-b small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; }
.dt-b.hot { background: #7A1F2B; color: #fff; }
.left-b { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .left-b.hot { color: var(--crit); }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.tg-conf { background: #FEF3C7; color: #92400E; }
.ld-board { grid-template-columns: repeat(var(--lanes, 4), minmax(0, 1fr)); } .ld-board > div, .ld-card, .ld-card .ord-h { min-width: 0; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.day-col { display: grid; gap: 8px; padding: 12px; align-content: start; min-width: 0; } .day-col.today { border-color: #7A1F2B; box-shadow: 0 0 0 3px rgba(122,31,43,.12); }
.day-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); } .day-h b { font-size: 13.5px; text-transform: capitalize; } .day-h small { color: var(--muted); font-size: 12px; }
.evt { position: relative; display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel)); font-size: 12.5px; min-width: 0; } .evt b { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; } .evt small { color: var(--muted); font-size: 11.5px; } .evt .lnk { justify-self: start; }
.evt-a { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity .15s; } .evt:hover .evt-a, .evt:focus-within .evt-a { opacity: 1; }
.lnk { background: none; border: 0; padding: 0; color: var(--biz); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.pill-conhecimento { background: #E0F2FE; color: #075985; } .pill-recurso { background: #EDE9FE; color: #5B21B6; } .pill-execucao { background: #FEF3C7; color: #92400E; } .pill-arquivado { background: #F1F5F9; color: #64748B; }
.pill-paid { 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); }
:root[data-theme="dark"] [class*="pill-"], :root[data-theme="dark"] .tg-conf { background: rgba(148,163,184,.16); color: var(--fg); }
:root[data-theme="dark"] .dt-b:not(.hot) { background: rgba(122,31,43,.35); color: #F0B9C1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [class*="pill-"], :root:not([data-theme="light"]) .tg-conf { background: rgba(148,163,184,.16); color: var(--fg); } :root:not([data-theme="light"]) .dt-b:not(.hot) { background: rgba(122,31,43,.35); color: #F0B9C1; } }
@media (max-width: 1180px) { .ld-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ld-board, .week { grid-template-columns: minmax(0, 1fr); } }
.ord-h .who.sm { flex: 1 1 auto; min-width: 0; } .ord-h small { font-size: 11px; }
.tbl .cnj, .sp-h h2.cnj { white-space: nowrap; } .sp-h h2.cnj { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; } .sp-h > div { min-width: 0; }
.side-panel .chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-panel .chk li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.side-panel .chk li > span { display: grid; gap: 1px; } .side-panel .chk small { color: var(--muted); font-size: 11.5px; } .side-panel .chk span.done b { color: var(--muted); text-decoration: line-through; }
.side-panel .chk .ck { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 8px; background: var(--panel); color: transparent; } .side-panel .chk .ck:hover { color: var(--muted); } .side-panel .chk .ck.on { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tl { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl li { position: relative; display: grid; gap: 1px; } .tl li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); border: 2px solid var(--panel); }
.tl li.now::before { background: #7A1F2B; box-shadow: 0 0 0 4px rgba(122,31,43,.18); } .tl b { font-size: 13px; font-weight: 600; } .tl small { font-size: 11.5px; color: var(--muted); }
.side-panel .hist li { grid-template-columns: minmax(0, 1fr) auto; } .side-panel .hist li b { grid-column: 1 / -1; font-weight: 600; }
.day-h b { text-transform: none; } .day-h b::first-letter { text-transform: uppercase; }
:root[data-theme="dark"] #main { --biz: #E58A96; } :root[data-theme="dark"] .tl li.now::before { background: #E58A96; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #main { --biz: #E58A96; } :root:not([data-theme="light"]) .tl li.now::before { background: #E58A96; } }
/* 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; }
