* { box-sizing: border-box; }

:root {
    --kbr-blue: #1b3f94;
    --kbr-blue-dark: #142f70;
    --kbr-blue-light: #2b55b8;
    --accent: #2f7de1;
    --bg: #eef1f6;
    --surface: #ffffff;
    --text: #22293a;
    --text-muted: #6b7386;
    --border: #dde2ec;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--kbr-blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.25rem 1.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: block;
    padding: 0.65rem 1.25rem;
    color: #e8ecf7;
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 4px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover { background: var(--kbr-blue-light); }

.nav-item.active {
    background: var(--kbr-blue-dark);
    border-left-color: #fff;
    font-weight: 600;
}

.nav-item.disabled {
    color: #9dabd4;
    cursor: default;
}

.nav-item.disabled:hover { background: transparent; }

.nav-section {
    margin-top: 0.9rem;
    padding: 0.4rem 1.25rem 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9dabd4;
}

/* ---------- Main area ---------- */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.welcome {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.content {
    flex: 1;
    padding: 1.5rem;
}

/* ---------- Landing (no sidebar) ---------- */
.landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.landing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.kbr-logo {
    color: var(--kbr-blue);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.landing-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gear {
    color: var(--kbr-blue);
    font-size: 1.5rem;
    cursor: default;
}

.landing-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 1rem 2.5rem 4rem;
}

@media (max-width: 900px) {
    .landing-grid { grid-template-columns: 1fr; }
    .landing-right { display: flex; justify-content: center; }
}

.brand {
    color: var(--kbr-blue);
    font-size: 4.2rem;
    font-weight: 700;
    margin: 0 0 2rem;
}

.portfolio-row {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.portfolio-row select {
    flex: 1;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--kbr-blue);
    border-radius: 4px 4px 0 0;
    background: #f7f9fc;
    color: var(--text);
}

.portfolio-row select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.go-btn {
    width: 46px;
    border: none;
    border-radius: 4px;
    background: var(--kbr-blue);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.go-btn:hover:not(:disabled) { background: var(--kbr-blue-light); }

.go-btn:disabled {
    background: var(--border);
    color: #fff;
    cursor: default;
}

.process-circle {
    width: 100%;
    max-width: 470px;
    height: auto;
    display: block;
    margin-left: auto;
}

.process-node text {
    fill: #fff;
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.version-chip {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    background: var(--kbr-blue);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
}

/* ---------- Portfolio screen ---------- */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.portfolio-badge {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.screen-title {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.hint {
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

h1:focus { outline: none; } /* FocusOnNavigate targets h1 for screen readers; hide the visual ring */

/* ---------- Generic page bits ---------- */
.page-title {
    color: var(--kbr-blue);
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    overflow-x: auto;
}

.alert {
    background: #fdecec;
    border: 1px solid #f3b6b6;
    color: #8d2626;
    border-radius: 6px;
    padding: 0.8rem 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th, td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tbody tr:hover { background: #f5f8fd; }

/* ---------- Initiate PV: stepper ---------- */
.stepper {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 84px;
    text-align: center;
}

.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #cfd6e4;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.step.active .step-dot { background: var(--kbr-blue); }

.step-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.step.active .step-label { color: var(--kbr-blue); font-weight: 600; }

.step-line {
    flex: 1;
    min-width: 18px;
    height: 2px;
    background: var(--border);
    margin-top: 13px;
}

/* ---------- Initiate PV: form ---------- */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    /* stretch: cards in the same row always share the same height */
    align-items: stretch;
}

.pv-grid .pv-card {
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.pv-grid .pv-card .check-list,
.pv-grid .pv-card .impacted-list { flex: 1; }

.pv-card-span2 { grid-column: span 2; }
.pv-card-span2 > .k-card { height: 100%; }

@media (max-width: 1100px) {
    .pv-card-span2 { grid-column: auto; }
}

/* Telerik Card as our card */
.k-card.pv-card, .k-card.pv-grid-card, .k-card.stepper-card, .k-card.content-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: none;
}

.pv-card .k-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.stepper-card { margin-bottom: 1.25rem; }
.stepper-card .k-card-body { padding: 0.9rem 1.2rem; }

.k-card.pv-grid-card { margin-bottom: 1.25rem; }
.pv-grid-card .k-card-body { padding: 1.25rem; }

@media (max-width: 1100px) {
    .pv-grid { grid-template-columns: 1fr; }
}

.pv-card { overflow: visible; }

.pv-card-title {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.9rem;
}

.pv-card-note {
    float: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pv-info {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.pv-info dt { color: var(--text-muted); }
.pv-info dd { margin: 0; font-weight: 600; text-align: right; }

.pv-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
}

.pv-field > span { color: var(--text); font-weight: 600; }

.pv-field input,
.pv-field textarea,
.pv-field select {
    padding: 0.55rem 0.7rem;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #f7f9fc;
    color: var(--text);
    resize: vertical;
}

.pv-field input:focus,
.pv-field textarea:focus,
.pv-field select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.counter {
    align-self: flex-end;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.udf summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    cursor: pointer;
}

.check-item input { margin-top: 0.15rem; accent-color: var(--kbr-blue); }

.attachments-add {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    background: #f0f4fb;
    border-radius: 4px;
    color: var(--kbr-blue);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: not-allowed;
}

.attachments-add.attachments-enabled { cursor: pointer; align-self: flex-start; }
.attachments-add.attachments-enabled:hover { background: #dfe8f8; }

.attachment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.attachment-list { margin-top: 0.8rem; }
.attachment-list a { color: var(--kbr-blue); text-decoration: none; flex: 1; }
.attachment-list a:hover { text-decoration: underline; }
.attachment-size { color: var(--text-muted); font-size: 0.8rem; margin: 0 0.6rem; }

/* ---------- Initiate PV: footer bar ---------- */
.pv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    margin-top: 1.25rem;
}

.pv-number { font-size: 0.9rem; white-space: nowrap; }

.pv-footer-note { font-size: 0.82rem; color: #b05c15; text-align: center; flex: 1; }

.pv-error { color: #8d2626; font-weight: 600; }
.pv-success { color: #1e7d38; font-weight: 600; }

.pv-actions { display: flex; gap: 0.6rem; }

.btn-primary,
.btn-secondary {
    padding: 0.55rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--kbr-blue);
}

.btn-primary { background: var(--kbr-blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--kbr-blue-light); }

.btn-secondary { background: var(--surface); color: var(--kbr-blue); }
.btn-secondary:hover:not(:disabled) { background: #f0f4fb; }

.btn-primary:disabled,
.btn-secondary:disabled { opacity: 0.55; cursor: default; }

/* ---------- Telerik integration ---------- */
:root {
    /* Kendo default theme tokens → KBR blue instead of the stock red */
    --kendo-color-primary: #1b3f94;
    --kendo-color-primary-subtle: #e7ecf8;
    --kendo-color-primary-subtle-hover: #d6e0f5;
    --kendo-color-primary-hover: #2b55b8;
    --kendo-color-primary-active: #142f70;
    --kendo-color-primary-emphasis: #2b55b8;
    --kendo-color-primary-on-subtle: #142f70;
    --kendo-color-on-primary: #ffffff;
}
.pv-field .k-input,
.pv-field .k-picker,
.impacted-add-row .k-input,
.impacted-add-row .k-picker { background: #f7f9fc; width: 100%; }

.portfolio-row .k-input,
.portfolio-row .k-picker { flex: 1; background: #f7f9fc; }

.go-btn-telerik { width: 48px; font-size: 1.05rem; }

.step.clickable { cursor: pointer; }
.step.clickable:hover .step-dot { background: var(--kbr-blue-light); }

.step-hint {
    background: #fff8e6;
    border: 1px solid #f0dfae;
    color: #7a5c12;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.pv-warning { color: #b02a2a; font-size: 0.8rem; margin-top: 0.6rem; }

.impacted-add-row { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }

.impacted-list .impacted-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f4fb;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.impacted-remove {
    border: none;
    background: transparent;
    color: #8d2626;
    cursor: pointer;
    font-size: 0.85rem;
}

.pv-grid-card { margin-bottom: 1.25rem; }
.pv-grid-lower { margin-top: 0; }

.co-grid-toolbar { margin-bottom: 0.7rem; }
.co-grid .k-input, .co-grid .k-picker { width: 100%; }

.skip-wgl { white-space: nowrap; margin-right: 0.6rem; }

/* ---------- Steps 4-8 ---------- */
.pv-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.pv-stack .k-card.pv-card { min-height: 0; }

.stage-badge {
    display: inline-block;
    background: #e7ecf8;
    color: var(--kbr-blue-dark);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 0 1rem;
}

.decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.decision-comment { max-width: 480px; }

.summary-text { margin: 0 0 0.8rem; white-space: pre-wrap; }
.summary-list { margin: 0 0 1rem; padding-left: 1.2rem; font-size: 0.9rem; }
.summary-list li { margin-bottom: 0.25rem; }

/* ---------- Step 5: PCMT response ---------- */
.step5-layout {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .step5-layout { grid-template-columns: 1fr; }
}

.confirm-title { text-align: center; font-size: 1rem; font-weight: 700; margin: 0 0 1.1rem; line-height: 1.5; }
.confirm-instruction { text-align: center; font-size: 0.9rem; margin: 0 0 1.1rem; line-height: 1.5; }

.decision-tiles { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.1rem; }

.decision-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #f1f3f5;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
}

.decision-tile:hover:not(:disabled) { background: #e6eaef; }
.decision-tile:disabled { cursor: default; opacity: 0.7; }

.tile-chip {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tile-glyph {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyph-green { background: #2e9e44; }
.glyph-red { background: #d63a3a; }
.glyph-blue { background: #2f7de1; font-size: 0.7rem; letter-spacing: -2px; }
.glyph-navy { background: transparent; color: var(--kbr-blue); font-size: 1.2rem; }

.tile-text { display: flex; flex-direction: column; }
.tile-sub { color: var(--text-muted); font-size: 0.85rem; }

.tam-note { text-align: center; font-size: 0.85rem; font-weight: 600; margin: 0 0 1rem; line-height: 1.5; }
.kbr-link { color: var(--accent); text-decoration: underline; }

.full-width-btn { width: 100%; margin-bottom: 0.8rem; }

.confirm-buttons { display: flex; gap: 0.7rem; justify-content: center; margin-bottom: 0.8rem; }
.confirm-buttons .k-button { min-width: 130px; }

.signer-note { text-align: center; font-size: 0.88rem; margin: 0 0 1rem; }

.comment-area { width: 100%; }

.forward-field { margin-bottom: 0.4rem; }
.forward-buttons { display: flex; justify-content: space-between; margin-top: 1rem; }
.forward-buttons .k-button { min-width: 130px; }

/* Details panel (right side of step 5) */
.step5-layout { align-items: stretch; }
.step5-layout .k-card { height: 100%; }
.details-panel .k-tabstrip { width: 100%; }
.details-panel .k-tabstrip .k-tabstrip-content,
.details-panel .k-tabstrip > .k-content { border: 0; padding: 1rem 0.2rem; }

/* PV Info pairs: bold label on its own line, value below (per original design) */
.details-info { display: block; }
.details-info dt { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.details-info dd { margin: 0.15rem 0 1rem 0; text-align: left; font-weight: 400; color: var(--text); }

/* Step 5 refinements per design review */
.confirm-title { margin: 0.6rem 0 1.8rem; }
.confirm-instruction { margin-bottom: 1.8rem; }
.confirm-buttons { gap: 0.8rem; margin-bottom: 1.2rem; }
.confirm-buttons .k-button { flex: 1; min-width: 0; padding: 0.65rem 0.5rem; }
.tam-note { font-weight: 700; }

/* Comment textarea fills the remaining card height (approve/reject/hold/send-back states) */
.step5-layout .pv-card .k-card-body > .comment-area { flex: 1; display: flex; }
.step5-layout .pv-card .k-card-body > .comment-area .k-input-inner { height: 100%; min-height: 260px; }

.comment-area, .comment-area .k-input-inner {
    background: #eef1f4 !important;
    border: none;
    border-radius: 8px;
    resize: none;
}

/* Step 7 — Approved vs Current budget comparison (KBR blue / Client peach, like the original app) */
.budget-summary-row { display: flex; align-items: flex-start; gap: 2.2rem; margin: 1.4rem 0; flex-wrap: wrap; }
.budget-summary-info { color: var(--kbr-blue, #1b3f94); font-size: 1.15rem; margin-top: 0.3rem; cursor: help; }
.budget-summary { border-collapse: collapse; font-size: 0.85rem; }
.budget-summary th, .budget-summary td { border: 1px solid #c6d2dd; padding: 0.4rem 0.9rem; text-align: left; font-weight: 400; }
.budget-summary thead th { font-weight: 600; }
.budget-summary thead th.no-fill { background: transparent; border: none; }
.budget-summary tbody td { background: #f4f4f4; }
.budget-summary tfoot td { background: #ffffff; font-weight: 600; }
.kbr-summary thead th { background: #cfdfea; }
.client-summary thead th { background: #f9ddcc; border-color: #e8c8b4; }
.client-summary td { border-color: #e8c8b4; }

/* Forward-to-alternative-approver modal */
.forward-window { border-radius: 16px; border: 1px solid var(--kbr-blue); overflow: hidden; }
.k-window.forward-window .k-window-titlebar,
.forward-window .k-window-titlebar {
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 1.1rem;
}
.forward-window .k-window-title {
    justify-content: center;
    text-align: center;
    width: 100%;
    font-weight: 700;
}
.forward-field { display: flex; flex-direction: row; align-items: center; gap: 0.8rem; }
.forward-field > span { white-space: nowrap; font-weight: 700; }
.forward-field .k-combobox { flex: 1; }
.forward-counter { text-align: right; font-size: 0.74rem; color: var(--text-muted); margin: 0.4rem 0 0.15rem; }
.forward-buttons { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.forward-buttons .k-button { flex: 1; max-width: 42%; padding: 0.7rem 0.5rem; font-weight: 600; }

/* ---------- Maintain PV ---------- */
.k-card.filter-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: none;
    margin-bottom: 1.25rem;
    overflow: visible;
}

.filter-card .k-card-body { padding: 1rem 1.25rem; }

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 1.25rem;
    align-items: end;
}

@media (max-width: 1100px) {
    .filter-row { grid-template-columns: 1fr 1fr; }
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    min-width: 0;
}

.filter-field > span { color: var(--text); font-weight: 700; }

.filter-field .k-input,
.filter-field .k-picker { background: #fff; width: 100%; }

.filter-reset {
    width: 40px;
    height: 34px;
    font-size: 1.15rem;
    align-self: end;
}

.pv-maintain-grid { border-radius: 6px; }

.pv-maintain-grid .k-table-td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-link { color: var(--kbr-blue); font-weight: 600; }

.pv-lock { margin-left: 0.35rem; font-size: 0.8rem; }

.pending-link {
    color: var(--kbr-blue);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.pending-pv-ref { margin: 0 0 0.8rem; font-size: 0.9rem; }

.pending-list { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.pending-list li { margin-bottom: 0.3rem; }

.pending-email { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Manage Users ---------- */
.mu-form-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr auto auto;
    gap: 1.25rem;
    align-items: end;
}

@media (max-width: 1100px) {
    .mu-form-row { grid-template-columns: 1fr 1fr; }
}

.mu-submit { min-width: 110px; height: 34px; font-weight: 600; }

.mu-msg { margin: 0.8rem 0 0; font-size: 0.88rem; }

.mu-grid .k-table-td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mu-action {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--kbr-blue);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.mu-action:hover { background: #e7ecf8; }

.mu-action-delete { color: #8d2626; }
.mu-action-delete:hover { background: #fdecec; }

/* ---------- Admin area ---------- */
a.gear-link { cursor: pointer; text-decoration: none; }
a.gear-link:hover { color: var(--kbr-blue-light); }

.admin-box {
    display: flex;
    flex-direction: column;
    margin: 0.9rem 0 1.1rem;
}

.admin-box-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    text-align: left;
    padding: 0.4rem 1.25rem 0.6rem;
}

.admin-box-title:hover { color: #cfd9f2; }

.admin-chevron { font-size: 1.05rem; line-height: 1; }

.sidebar .nav-item.nav-sub {
    padding: 0.45rem 1rem 0.45rem 1.6rem;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-item.nav-sub.active { border-left-color: #fff; }

.admin-page-title { margin: 0 0 1.25rem; }

.sa-form-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr auto;
    gap: 1.25rem;
    align-items: end;
    max-width: 760px;
}

@media (max-width: 1100px) {
    .sa-form-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Maintain PV: progress bar + row actions ---------- */
.progress-track {
    width: 100%;
    max-width: 120px;
    height: 8px;
    border-radius: 4px;
    background: #dde4f0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--kbr-blue);
}

.pv-act { font-size: 1.02rem; padding: 0.1rem 0.3rem; }

.pv-act:disabled { opacity: 0.35; cursor: default; background: transparent; }

/* Uniform flat icon buttons; the arrow keeps its slot via visibility:hidden. */
.pv-act-row { display: flex; align-items: center; gap: 2px; }

.pv-act-btn.k-button {
    width: 30px;
    height: 28px;
    flex-shrink: 0;
    color: var(--kbr-blue);
}

.pv-act-btn.k-button:hover { background: #e7ecf8; }

.pv-act-btn.pv-act-hidden { visibility: hidden; }

.pv-act-btn.pv-act-danger { color: #b02a2a; }
.pv-act-btn.pv-act-danger:hover { background: #fdecec; }

/* ---------- Auth link (topbar) ---------- */
.auth-link {
    border: 1px solid var(--kbr-blue);
    background: transparent;
    color: var(--kbr-blue);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.9rem;
}

.auth-link:hover { background: #e7ecf8; }

/* ---------- Step 1: ROM estimate inputs on Potential Impact ---------- */
.check-list .check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
}

.check-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.impact-value { width: 110px; flex-shrink: 0; }

.impact-value .k-input {
    background: #f89072;
    width: 100%;
}

.impact-value .k-input .k-input-inner {
    text-align: right;
    color: #3a1608;
    font-weight: 600;
}

.impact-unit {
    width: 42px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ---------- Save/Send confirmation modal ---------- */
.confirm-window .k-window-content { padding: 1.4rem 1.5rem 1.25rem; }

.confirm-body {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.confirm-icon {
    font-size: 2rem;
    line-height: 1;
    background: #e7ecf8;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-text {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.confirm-actions .k-button { min-width: 96px; }
