/* CPT — mirrors CPMP (kra.nhgheal.com) workspace look: navy sidebar, teal primary, soft cards */
:root {
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ink: #182a40; --paper: #f1f5fa; --surface: #fff; --surface-subtle: #eaf0f7;
  --line: #d9e3ee; --control-border: #bccbdc; --muted: #536780;
  --forest: #096c8b; --forest-2: #087594; --mint: #e0f2f7;
  --side: #0f1c2e; --side-2: #13243a; --side-text: #d3dceb;
  --positive-bg: #e2f2ea; --positive-text: #176047; --warning-bg: #fff0d2; --warning-text: #855000;
  --danger-bg: #fbe5e2; --danger-text: #9e372f; --neutral-bg: #e9eef4; --neutral-text: #506259;
  --shadow: 0 2px 3px #18324a05, 0 8px 28px #18324a0a; --focus-ring: 0 0 0 4px #159cbd26;
  --bs-body-font-family: var(--sans); --bs-body-color: var(--ink); --bs-border-color: var(--line);
  --bs-link-color: #0b5f78; --bs-link-color-rgb: 11,95,120;
}
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; }
.skip-link { position: absolute; left: -999px; } .skip-link:focus { left: 8px; top: 8px; z-index: 9; background: #fff; padding: 6px 10px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: 0 0 236px; background: var(--side); color: var(--side-text); padding: 16px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 16px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #1d3550; border: 1px solid #2c4a6b; color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand-name { color: #fff; font-weight: 700; letter-spacing: .12em; }
.brand-sub { color: #9fb0c8; font-size: .78rem; }
.cycle-panel { border: 1px solid #2a3f5a; border-radius: 10px; padding: 6px 10px; margin: 0 0 12px; background: var(--side-2); }
.cycle-panel .cycle-value { display: block; color: #fff; font-weight: 600; font-size: .9rem; }
.eyebrow { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sidebar .eyebrow { color: #8ea2bd; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; margin: 2px 0; color: var(--side-text); font-weight: 600; text-decoration: none; border-radius: 9px; border: 1px solid transparent; font-size: .93rem; }
.side-nav a > span { width: 18px; text-align: center; opacity: .8; }
.side-nav a:hover { background: #ffffff10; color: #fff; }
.side-nav a.active { background: #ffffff14; border-color: #3d5a7c; color: #fff; box-shadow: inset 3px 0 0 #3cc0dd; }
.nav-sep { margin: 14px 10px 6px; padding-top: 12px; border-top: 1px solid #263a54; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8ea2bd; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .scope strong { font-size: .9rem; }
.topsearch { margin-left: auto; } .topsearch input { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; width: 260px; font-size: .88rem; }
.model-pick { display: flex; flex-direction: column; } .model-pick select { min-width: 220px; font-size: .85rem; }
.pill-muted { background: var(--neutral-bg); color: var(--neutral-text); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.user-chip { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.page { padding: 18px 28px 40px; max-width: 1500px; width: 100%; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--ink); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title, h1.h3, h1.h4 { font-weight: 700; font-size: 1.75rem; letter-spacing: -.01em; margin: 0; }
.page-sub { color: var(--muted); font-size: .9rem; }
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 700; padding: .85rem 1.1rem; }
.card-body { padding: 1.1rem 1.25rem; }
.stat .card-body { padding: .9rem 1.1rem; } .stat .h3 { font-weight: 700; }
.job-card { padding: 1.4rem 1.5rem; } .job-card h2 { font-size: 1.25rem; font-weight: 700; margin: 2px 0 4px; }
.btn { border-radius: 9px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-hover-bg: #075a74; --bs-btn-hover-border-color: #075a74; --bs-btn-active-bg: #064e65; --bs-btn-disabled-bg: var(--forest); --bs-btn-disabled-border-color: var(--forest); }
.btn-outline-primary { --bs-btn-color: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-hover-bg: var(--forest); --bs-btn-hover-border-color: var(--forest); }
.btn-success { --bs-btn-bg: #1f7357; --bs-btn-border-color: #1f7357; --bs-btn-hover-bg: #176047; }
.btn-outline-success { --bs-btn-color: #1f7357; --bs-btn-border-color: #1f7357; --bs-btn-hover-bg: #1f7357; }
.btn-outline-dark, .btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--control-border); --bs-btn-hover-bg: var(--surface-subtle); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--control-border); background: #fff; }
.btn-dark { --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); }
.form-control, .form-select { border-color: var(--control-border); border-radius: 9px; }
.form-control:focus, .form-select:focus { box-shadow: var(--focus-ring); border-color: var(--forest-2); }
.form-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.table { --bs-table-bg: transparent; font-size: .9rem; }
.table thead th, .table-light th { background: var(--surface-subtle) !important; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding: .7rem .6rem; }
.table td { padding: .65rem .6rem; border-color: var(--line); }
.table-hover tbody tr:hover > * { background: #f6f9fc; }
.bg-white.border.rounded, .table-responsive.border { border-radius: 14px !important; border-color: var(--line) !important; box-shadow: var(--shadow); overflow: auto; }
.list-group-item { border-color: var(--line); }
.list-group-item-action:hover { background: var(--surface-subtle); }
.alert { border-radius: 12px; border: 1px solid transparent; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); }
.alert-success { background: var(--positive-bg); color: var(--positive-text); }
.alert-danger { background: var(--danger-bg); color: var(--danger-text); }
.alert-info { background: var(--mint); color: #0b4f63; }
.badge { font-weight: 600; border-radius: 999px; padding: .32em .7em; }
.badge.band { color: #fff; }
.badge.gap { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #f3d38f; font-weight: 600; white-space: normal; text-align: left; }
.text-bg-warning { background: var(--warning-bg) !important; color: var(--warning-text) !important; }
.badge.status-none { background: var(--neutral-bg); color: var(--neutral-text); }
.badge.status-draft { background: var(--mint); color: #0b4f63; }
.badge.status-edited { background: #ece6f8; color: #4b3585; }
.badge.status-accepted { background: var(--positive-bg); color: var(--positive-text); }
.btn-group .btn { border-radius: 8px !important; margin-left: 2px; }
tr.changed td:first-child { box-shadow: inset 3px 0 0 #3cc0dd; }
.progress-text { white-space: pre-line; color: #3b4d63; }
.kra-pick { max-height: 340px; overflow-y: auto; background: #fff; border-radius: 10px !important; }
details summary { color: var(--forest); font-weight: 600; cursor: pointer; }
.report-body { font-size: .98rem; line-height: 1.65; }
.report-body h2 { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.rpara { margin-bottom: .6rem; transition: opacity .15s; } .rpara.dim { opacity: .25; }
.rtext { padding: 1px 3px; border-radius: 3px; outline: none; }
.rtext[contenteditable]:focus { box-shadow: 0 0 0 2px #096c8b55; } .rtext.saved { box-shadow: 0 0 0 2px #1f735799; }
.kra-tag { display: inline-block; font-size: .72rem; background: var(--ink); color: #fff; border-radius: 10px; padding: 0 .5rem; margin-left: .25rem; text-decoration: none; }
.kra-tag:hover { background: var(--forest); color: #fff; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .4rem; vertical-align: middle; border: 1px solid #ccc; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, #0f1c2e 0 38%, var(--paper) 38%); }
.login-card { width: min(420px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 56px #0b203a24; }
@media (max-width: 900px) { .sidebar { display: none; } .topsearch input { width: 140px; } .page { padding: 14px; } }
/* dashboard */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(300px, 2fr); gap: 14px; }
.kpi-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s, transform .15s; }
a.kpi-card:hover { border-color: var(--forest-2); transform: translateY(-1px); color: var(--ink); }
.kpi-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.kpi-card.warn::before { background: #e0a21b; } .kpi-card.ok::before { background: #1f7357; } .kpi-card.info::before { background: var(--forest-2); } .kpi-card.bands::before { display: none; }
.kpi-card.on { border-color: var(--forest); box-shadow: var(--focus-ring); }
.kpi-num { font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-top: 4px; } .kpi-num small { font-size: 1rem; color: var(--muted); }
.kpi-card.warn .kpi-num { color: var(--warning-text); }
.kpi-foot { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.kpi-bar, .mini-bar { height: 6px; background: var(--surface-subtle); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.kpi-bar span, .mini-bar span { display: block; height: 100%; background: #1f7357; border-radius: 99px; }
.mini-bar { height: 4px; margin-top: 5px; }
.band-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 10px 0 10px; gap: 2px; }
.band-bar a { display: block; min-width: 4px; }
.band-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; }
.band-legend a { color: var(--ink); text-decoration: none; padding: 1px 4px; border-radius: 6px; } .band-legend a.on, .band-legend a:hover { background: var(--surface-subtle); }
.office-list { display: flex; flex-direction: column; }
.office-row { display: block; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .86rem; }
.office-row:first-child { border-top: 0; } .office-row:hover { background: #f6f9fc; color: var(--ink); }
.office-row.on { background: var(--mint); box-shadow: inset 3px 0 0 var(--forest); }
.office-name { line-height: 1.25; }
.gap-dot { display: inline-block; min-width: 22px; text-align: center; background: var(--warning-bg); color: var(--warning-text); border: 1px solid #f3d38f; border-radius: 99px; font-size: .75rem; font-weight: 700; padding: 0 6px; }
.filter-bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.search-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; }
.filter-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 14px; font-size: .85rem; color: var(--muted); background: #fafcfe; border-bottom: 1px solid var(--line); }
.chip { background: var(--mint); color: #0b4f63; border-radius: 99px; padding: 1px 10px; text-decoration: none; font-weight: 600; font-size: .8rem; }
.kra-table tbody tr { cursor: pointer; }
.kra-table tr.has-gap td:first-child { box-shadow: inset 3px 0 0 #e0a21b; }
.kra-table tr.changed td:first-child { box-shadow: inset 3px 0 0 #3cc0dd; }
.kra-link { color: var(--ink); font-weight: 600; text-decoration: none; } .kra-link:hover { color: var(--forest); text-decoration: underline; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-pill { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .kpi-card.bands { grid-column: 1 / -1; } }
/* report AI rewrite */
.ai-btn { border: 1px solid var(--control-border); background: #fff; color: var(--forest); font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 0 8px; margin-left: 4px; opacity: 0; transition: opacity .15s; }
.rpara:hover .ai-btn, .ai-btn:focus { opacity: 1; } .ai-btn:hover { background: var(--mint); }
.ai-target { background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; max-height: 180px; overflow: auto; }
.ai-new { background: var(--positive-bg); }
.modal-content { border-radius: 16px; border: 1px solid var(--line); }
/* timeline */
.upload-line { display: flex; gap: 0; overflow-x: auto; position: relative; padding-top: 6px; }
.upload-ev { min-width: 170px; padding: 0 16px 0 0; border-top: 2px solid var(--line); position: relative; padding-top: 14px; font-size: .85rem; }
.ev-dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--forest); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--forest); }
.tl-cell { position: relative; text-align: center; width: 11%; }
.tl-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--line); z-index: 0; }
.tl-point { position: relative; z-index: 1; text-decoration: none; display: inline-block; }
.tl-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl-dot.hollow { background: #fff; border: 2px dashed var(--control-border); box-shadow: none; }
.tl-dot.sm { width: 12px; height: 12px; border-width: 0; vertical-align: middle; } 
.tl-point:hover .tl-dot { transform: scale(1.15); }
.ev-sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--surface-subtle); border: 1px solid var(--line); margin-right: 3px; vertical-align: middle; }
.ev-sq.created { background: var(--forest); border-color: var(--forest); } .ev-sq.updated { background: #e0a21b; border-color: #e0a21b; } .ev-sq.removed { background: #9e372f; }
.legend-inline { display: flex; gap: 6px; align-items: center; font-size: .78rem; }
.job-toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px #0b203a40; font-size: .9rem; display: flex; align-items: center; }
/* readability pass: larger type, stronger contrast */
:root { --muted: #45576e; --bs-secondary-color: #45576e; }
html, body { font-size: 16px; line-height: 1.55; }
.text-muted { color: var(--muted) !important; }
small, .small { font-size: .9rem; }
.eyebrow { font-size: .74rem; color: #4d6078; }
.side-nav a { font-size: 1rem; min-height: 44px; }
.sidebar .eyebrow, .nav-sep, .brand-sub { color: #aebdd1; }
.side-nav a { color: #e3e9f2; }
.table { font-size: .95rem; }
.table thead th, .table-light th { font-size: .8rem; color: #3d4f66; }
.table td.small, .kra-table .small { font-size: .9rem; }
.kra-table td.text-muted { color: #3d4f66 !important; }
.form-control, .form-select, .btn { font-size: .95rem; }
.form-control-sm, .form-select-sm, .btn-sm { font-size: .9rem; }
.form-label { font-size: .76rem; color: #3d4f66; }
.badge { font-size: .8rem; }
.badge.gap { font-size: .8rem; }
.kpi-foot { font-size: .86rem; } .filter-meta { font-size: .9rem; color: #3d4f66; }
.office-row { font-size: .93rem; } .band-legend { font-size: .9rem; }
.page-sub { font-size: .98rem; }
.crumbs { font-size: .88rem; }
.report-body { font-size: 1.06rem; line-height: 1.75; color: #1d2f45; }
.kra-tag { font-size: .78rem; }
.legend .list-group-item { font-size: .92rem; }
.progress-text { color: #2c3e55; font-size: 1rem; }
.undo-btn { border: 1px solid #e0a21b; background: var(--warning-bg); color: var(--warning-text); font-size: .8rem; font-weight: 700; border-radius: 99px; padding: 1px 10px; margin-left: 6px; }
.rasset { margin: .4rem 0 1.1rem; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: 10px; background: #fff; }
.rasset img { max-height: 420px; display: block; margin: 0 auto 6px; }
.rasset figcaption { font-size: .95rem; color: #2c3e55; }
.asset-table { font-size: .9rem; } .asset-table th { background: var(--surface-subtle); }
.ref { background: var(--mint); color: #0b4f63; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.rasset.dim { opacity: .25; }
.legend .list-group-item { cursor: pointer; } .legend .list-group-item.locked { background: var(--mint); box-shadow: inset 3px 0 0 var(--forest); font-weight: 700; }
.lockbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--mint); color: #0b4f63; font-size: .9rem; border-bottom: 1px solid var(--line); }
.rpara.focus .rtext, .rasset.focus { outline: 2px solid #096c8b66; outline-offset: 2px; }
.rpara.just-added { animation: flash 1.6s; } @keyframes flash { from { background: var(--mint); } to { background: transparent; } }
.tl-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.tl-step { display: block; text-align: center; padding: 6px 4px; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.tl-step:hover { background: #f4f8fa; } .tl-step.cur { border-color: var(--forest); background: var(--mint); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); margin: 0 auto 4px; box-shadow: 0 0 0 3px #096c8b22; }
.tl-step .band-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #e5eaee; }
.owner-strip { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 12px; padding: 10px 12px; background: #f4f8fa; border-radius: 8px; }
.owner-strip .chip { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; margin: 2px 4px 2px 0; font-size: .82rem; }
.mdot { width: 10px; height: 10px; border-radius: 50%; background: #b8c2c9; flex-shrink: 0; box-shadow: 0 0 0 2px #fff; }
.mdot.up { background: #2e9e44; } .mdot.down { background: #c62828; }
.table-scroll { max-height: 64vh; overflow: auto; border-top: 1px solid var(--line); }
.table-scroll:focus { outline: 2px solid #096c8b55; outline-offset: -2px; }
.sticky-head thead th { position: sticky; top: 0; z-index: 2; background: #eef3f6; color: #233645; font-size: .86rem; font-weight: 700;
  text-transform: none; letter-spacing: 0; box-shadow: inset 0 -1px 0 var(--line); }
.pager-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .92rem; flex-wrap: wrap; }
.pager-bar .page-link { color: var(--forest); } .pager-bar .page-item.active .page-link { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ---- Home layout v2 (CPMP-style) ---- */
.page { font-size: 15px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 16px; }
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-grid .bands { grid-column: 1 / -1; } }
.kpi-card { padding: 18px 20px; border-radius: 12px; min-height: 128px; }
.kpi-num { font-size: 2.1rem; line-height: 1.1; margin: 6px 0 4px; }
.kpi-foot { font-size: .85rem; }
.job-card { padding: 18px 22px; } .job-card h2 { font-size: 1.15rem; margin: 2px 0 4px; }
.card-header { font-size: .95rem; font-weight: 700; padding: 12px 16px; background: #fff; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 14px; }
.office-grid .office-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: block; color: inherit; text-decoration: none; }
.office-grid .office-row:hover { border-color: var(--forest); background: #f6fafb; }
.office-grid .office-row.on { border-color: var(--forest); background: var(--mint); }
.office-grid .office-name { font-weight: 600; font-size: .92rem; }
.project-card .filter-bar { padding: 12px 16px; gap: 10px; border-bottom: 0; }
.project-card .filter-meta { padding: 0 16px 10px; }
.kra-table { font-size: .93rem; table-layout: fixed; width: 100%; min-width: 900px; }
.kra-table td, .kra-table th { padding: 12px 14px; vertical-align: top; }
.kra-table .col-num { width: 52px; } .kra-table .col-kpi { width: 26%; } .kra-table .col-cl { width: 70px; }
.kra-table .col-ci { width: 130px; } .kra-table .col-gaps { width: 210px; }
.kra-table .kra-link { font-weight: 600; line-height: 1.35; display: block; }
.kra-meta { margin-top: 4px; font-size: .82rem; color: #5b6b78; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kra-meta .office-tag { background: #eef3f6; border-radius: 10px; padding: 1px 8px; color: #233645; }
.kra-table .badge.gap { display: inline-block; white-space: normal; text-align: left; margin: 0 4px 4px 0; font-weight: 500; }
.table-scroll { max-height: 68vh; }
.tl-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recent-list { max-height: 260px; overflow: auto; } .card.h-100 .office-list { max-height: 260px; overflow: auto; }
.project-card .filter-bar { display: flex; flex-wrap: wrap; align-items: center; } .project-card .filter-bar > div:first-of-type { flex: 1 1 280px; } .project-card .filter-bar select { flex: 0 0 auto; width: auto; max-width: 240px; }
/* Projects page: wide, dense, readable */
.wide-table { min-width: 1500px; font-size: .88rem; }
.wide-table td, .wide-table th { padding: 10px 12px; }
.wide-table .col-kra { width: 300px; } .wide-table .w-l { width: 190px; } .wide-table .w-m { width: 150px; }
.wide-table .w-s { width: 105px; } .wide-table .w-xs { width: 80px; }
.wide-table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: inset -1px 0 0 var(--line); }
.wide-table thead th.sticky-col { z-index: 3; background: #eef3f6; }
.wide-table tr:hover .sticky-col { background: #f6fafb; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 14px; } .gap-tile { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: inherit; text-decoration: none; font-size: .92rem; } .gap-tile:hover { border-color: var(--forest); background: #f6fafb; }
.wide-table { min-width: 0; } .wide-table th, .wide-table td { min-width: 90px; } .wide-table .col-kra { min-width: 280px; }
.wide-table { table-layout: auto; min-width: 100%; } .wide-table .w-l { min-width: 190px; } .wide-table .w-m { min-width: 140px; } .wide-table .w-s { min-width: 100px; } .wide-table .col-kra { min-width: 300px; }
.ktl { list-style: none; padding: 0 0 0 22px; margin: 0; border-left: 2px solid #dbe3e8; }
.ktl-item { position: relative; padding: 0 0 18px 12px; } .ktl-item:last-child { padding-bottom: 0; }
.ktl-dot { position: absolute; left: -30px; top: 3px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.ktl-item.cur .ktl-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--forest); }
.ktl-title { font-weight: 700; color: #233645; text-decoration: none; } .ktl-item.cur .ktl-title { color: var(--forest); }
.ktl-item.empty .ktl-title { color: #8a99a5; }
.ktl-points { margin: 6px 0 4px; padding-left: 18px; font-size: .92rem; } .ktl-points li { margin-bottom: 2px; }

.gap-chip { display:inline-block; padding:1px 7px; border-radius:4px; font-size:.75rem; font-weight:700; background:var(--warning-bg); color:var(--warning-text); border:1px solid #f3d38f; cursor:help; white-space:nowrap; }
.note-chip { display:inline-block; margin-left:4px; padding:0 6px; border-radius:4px; font-size:.72rem; background:#eef1f5; color:#4a5568; cursor:help; }
.page.page-wide { max-width: none; }
.title-input { font-weight:700; font-size:1.25rem; border-color:transparent; background:transparent; padding:2px 6px; min-width:420px; }
.title-input:hover, .title-input:focus { border-color:#cfd6df; background:#fff; }
.track { display:inline-block; padding:1px 8px; border-radius:99px; font-size:.75rem; font-weight:700; white-space:nowrap; border:1px solid transparent; }
.track::before { content:"●"; margin-right:4px; font-size:.7em; vertical-align:1px; }
.track-on { background:#e6f4ea; color:#1e6b34; } .track-watch { background:#fff4d6; color:#8a5a00; }
.track-off { background:#fde8e8; color:#a12020; } .track-none { background:#eef1f5; color:#5a6472; }
.track-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; } .track-grid a { text-decoration:none; padding:10px; border-radius:8px; border:1px solid #e4e8ee; color:inherit; }
.track-grid .n { font-size:1.5rem; font-weight:800; } .risk-list li { padding:4px 0; border-bottom:1px solid #f0f2f5; }


.side-toggle { background:none; border:0; color:var(--side-text); font-size:1.1rem; padding:0 6px 0 0; cursor:pointer; line-height:1; }
.side-toggle:hover { color:#fff; }
.app-shell.side-collapsed .sidebar { width:64px !important; flex:0 0 64px !important; padding:16px 6px; overflow-x:hidden; }
.app-shell.side-collapsed .sidebar .brand > div, .app-shell.side-collapsed .sidebar .brand-mark,
.app-shell.side-collapsed .cycle-panel, .app-shell.side-collapsed .nav-sep { display:none; }
.app-shell.side-collapsed .side-nav a { font-size:0; justify-content:center; padding:10px 0; }
.app-shell.side-collapsed .side-nav a span { font-size:1.05rem; margin:0; }
.app-shell.side-collapsed .brand { justify-content:center; }

.kinfo { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:6px 18px; font-size:.85rem; }
.kinfo-item dt { font-weight:600; color:#5a6472; font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; margin:0; }
.kinfo-item dd { margin:0; }
.kinfo .clamp3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.kra-split .ktl-scroll { max-height:calc(100vh - 230px); overflow-y:auto; }
.kra-side { position:sticky; top:72px; max-height:calc(100vh - 90px); overflow-y:auto; }
.kra-side .notes-card .list-group { max-height:260px; overflow-y:auto; }
.kdeliv { border-left:3px solid #096c8b; background:#f4f8fa; padding:6px 10px; border-radius:4px; font-size:.9rem; }
.kdeliv-label { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#5a6472; }
.miss { color:#8a5a00; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
