/* Lone Star Builders brand touches inside the ORYKSA dashboard: steel navy + star gold. */
.biz-mark { font-weight: 800; color: #D9A21B; }
.pill.ps-lead { background: var(--indigo-soft); color: var(--indigo); } .pill.ps-estimate { background: #FDF2D8; color: #92590B; } .pill.ps-awarded { background: var(--info-bg); color: var(--info); }
.pill.ps-progress { background: #E5EDF6; color: #1D4A7A; } .pill.ps-completed { background: var(--ok-bg); color: var(--ok); } .pill.ps-lost { background: var(--neutral-bg); color: var(--muted); }
.pill.ps-wait { background: var(--warn-bg); color: var(--warn); margin-left: 4px; } .pill.ps-permit { background: #F3E8FF; color: #7C3AED; margin-left: 4px; }
.pill-draft { background: var(--neutral-bg); color: var(--muted); } .pill-sent { background: #FDF2D8; color: #92590B; } .pill-accepted { background: var(--ok-bg); color: var(--ok); } .pill-declined { background: var(--crit-bg); color: var(--crit); }
:root[data-theme="dark"] .pill.ps-estimate, :root[data-theme="dark"] .pill-sent { background: rgba(217,162,27,.16); color: #F2C14E; }
:root[data-theme="dark"] .pill.ps-progress { background: rgba(96,145,201,.18); color: #9CC0EA; }
:root[data-theme="dark"] .pill.ps-permit { background: rgba(124,58,237,.2); color: #C4B5FD; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.ps-estimate, :root:not([data-theme="light"]) .pill-sent { background: rgba(217,162,27,.16); color: #F2C14E; } :root:not([data-theme="light"]) .pill.ps-progress { background: rgba(96,145,201,.18); color: #9CC0EA; } :root:not([data-theme="light"]) .pill.ps-permit { background: rgba(124,58,237,.2); color: #C4B5FD; } }

.pj-board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-h .col-v { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12px; }
.pj-card { position: relative; } .pj-card .pj-hit { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.pj-card .ord-f, .pj-card .ord-f * { position: relative; z-index: 1; } .pj-card.sel { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.pj-card .pill { justify-self: start; margin-left: 0; }
.pj-t { font-size: 13.5px; line-height: 1.3; }
.pj-card .ord-h { display: flex; align-items: center; gap: 8px; } .pj-card .ord-h small { white-space: nowrap; flex: none; }
.pj-type { flex: 1; font-size: 10.5px !important; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-type::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.pj-side-only { margin-top: 16px; grid-template-columns: minmax(0, 1fr) 400px; }
.prog { position: relative; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.prog > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #1D4A7A, #D9A21B); }
.prog.sm { display: block; width: 90px; height: 5px; margin-top: 6px; }
.prog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; } .prog-row .prog { height: 8px; }
.pj-cover { position: relative; margin: -4px -4px 4px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--panel-2); }
.pj-cover img { width: 100%; height: 100%; object-fit: cover; } .pj-cover .pill { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.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: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.row-link { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 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:first-child { min-width: 0; }
.hist li .num { font-variant-numeric: tabular-nums; }
.es-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #E5EDF6; color: #1D4A7A; flex: none; }
.o-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.o-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13px; } .o-items small { display: block; color: var(--muted); }
.es-add-line { display: grid; grid-template-columns: minmax(0, 1fr) 52px 70px 84px auto; gap: 6px; }
.es-add-line input, .es-add-line select { min-width: 0; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; }
.es-add-line input.bad { border-color: #DC2626; }
.o-tot { display: grid; gap: 4px; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); } .o-tot div { display: flex; justify-content: space-between; } .o-tot .g { font-size: 15px; }
.o-steps { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 10.5px; color: var(--muted); }
.o-steps li { display: grid; gap: 4px; text-align: center; } .o-steps i { height: 4px; border-radius: 2px; background: var(--line); } .o-steps li.on i { background: #1D4A7A; } .o-steps li.on { color: var(--fg); font-weight: 600; }
.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); }
.flow-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow-sum li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px 10px; align-items: center; font-size: 14px; }
.flow-sum i { width: 10px; height: 10px; border-radius: 50%; } .flow-sum b { font-size: 18px; }
.flow-sum .bar { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; } .flow-sum .bar span { display: block; height: 100%; border-radius: 3px; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; } .kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pill-done { background: var(--ok-bg); color: var(--ok); }
.tg-repeat { background: var(--ok-bg); color: var(--ok); } .tg-vip { background: #FDF2D8; color: #92590B; } .tg-commercial { background: var(--indigo-soft); color: var(--indigo); } .tg-insurance { background: var(--info-bg); color: var(--info); }
.crews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.crew { display: grid; gap: 12px; } .crew h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 0; }
.crew-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.crew-ms, .crew-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crew-ms li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.crew-ms small { display: block; color: var(--muted); font-size: 12px; } .crew-st { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.closed-blk { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: start center; padding-top: 12px; font-size: 12px; font-weight: 600; color: var(--faint); background: repeating-linear-gradient(45deg, var(--panel-2), var(--panel-2) 8px, transparent 8px, transparent 16px); pointer-events: none; }
@media (max-width: 1360px) { .pj-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .pj-side-only { grid-template-columns: minmax(0, 1fr); } .pj-side-only > div:first-child { display: none; } .crews { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .pj-board, .kpis.three { grid-template-columns: minmax(0, 1fr); } .crew-ms li { grid-template-columns: auto minmax(0, 1fr) auto auto; } .crew-st { grid-column: 2 / -1; justify-content: flex-start; order: 5; } .es-add-line { grid-template-columns: 1fr 1fr; } .es-add-line input[name="desc"] { grid-column: 1 / -1; } }
:root[data-theme="dark"] .es-ic { background: rgba(96,145,201,.18); color: #9CC0EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .es-ic { background: rgba(96,145,201,.18); color: #9CC0EA; } }
.pj-board > div, .pj-board .lane, .pj-card, .pj-card .ord-h, .pj-card .ord-meta { min-width: 0; }
.pj-card .pj-type { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-card .pj-type::before { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.pj-card .ord-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* clickable records */
.tbl tr[data-act] { cursor: pointer; } .tbl tr[data-act]:focus-visible, .rec-link:focus-visible { outline: 2px solid var(--indigo); outline-offset: -2px; }
.rec-link { cursor: pointer; border-radius: 10px; transition: background .12s; } .rec-link:hover { background: var(--hover); }
