:root {
    --bg: #eef3f8;
    --panel: #ffffff;
    --ink: #17324d;
    --muted: #6b7c8f;
    --brand: #155eef;
    --brand-dark: #0f3f9f;
    --warn: #d97706;
    --danger: #b42318;
    --info: #155eef;
}

@font-face {
    font-family: "Blackrush";
    src:
        url("/static/fonts/Blackrush.ttf") format("truetype"),
        url("../fonts/Blackrush.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.45), transparent 24%),
        radial-gradient(circle at 20% 80%, rgba(21, 94, 239, 0.04), transparent 18%),
        linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
    color: var(--ink);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
}

body::before {
    opacity: 0.65;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='white' stroke-opacity='.85' stroke-width='1.4'%3E%3Cpath d='M-40 170 C 180 40, 430 40, 700 170 S 1210 300, 1640 120'/%3E%3Cpath d='M-40 185 C 180 55, 430 55, 700 185 S 1210 315, 1640 135'/%3E%3Cpath d='M-40 200 C 180 70, 430 70, 700 200 S 1210 330, 1640 150'/%3E%3Cpath d='M-40 215 C 180 85, 430 85, 700 215 S 1210 345, 1640 165'/%3E%3Cpath d='M-40 230 C 180 100, 430 100, 700 230 S 1210 360, 1640 180'/%3E%3Cpath d='M-40 245 C 180 115, 430 115, 700 245 S 1210 375, 1640 195'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,.34)'%3E%3Cpath d='M-20 0 C 230 130, 420 140, 700 40 C 950 -40, 1180 -10, 1620 110 L 1620 0 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-position: center top;
    background-size: cover;
}

body::after {
    opacity: 0.55;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='white' stroke-opacity='.78' stroke-width='1.4'%3E%3Cpath d='M-20 690 C 220 560, 450 560, 730 700 S 1220 840, 1620 640'/%3E%3Cpath d='M-20 705 C 220 575, 450 575, 730 715 S 1220 855, 1620 655'/%3E%3Cpath d='M-20 720 C 220 590, 450 590, 730 730 S 1220 870, 1620 670'/%3E%3Cpath d='M-20 735 C 220 605, 450 605, 730 745 S 1220 885, 1620 685'/%3E%3Cpath d='M-20 750 C 220 620, 450 620, 730 760 S 1220 900, 1620 700'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,.22)'%3E%3Cpath d='M-20 900 L-20 760 C 230 640, 480 620, 770 760 C 1020 880, 1270 860, 1620 740 L 1620 900 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-position: center bottom;
    background-size: cover;
}

main.container-fluid {
    position: relative;
    z-index: 1;
}

main.container-fluid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 94, 239, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12));
    opacity: 0.9;
}

main.container-fluid > * {
    position: relative;
    z-index: 1;
}

.app-navbar {
    position: relative;
    z-index: 10;
    background:
        linear-gradient(180deg, rgba(24, 30, 36, 0.98), rgba(24, 30, 36, 0.94)),
        radial-gradient(circle at top, rgba(21, 94, 239, 0.24), transparent 40%);
    box-shadow: 0 18px 40px rgba(3, 12, 22, 0.18);
}

.app-navbar-brand {
    margin-right: 1.5rem;
    color: #f7fbff;
    font-weight: 400 !important;
}

.app-navbar-brand-mark {
    display: inline-block;
    font-family: "Blackrush", "Segoe UI Variable Display", "Trebuchet MS", sans-serif !important;
    font-size: 1.85rem;
    font-weight: 400 !important;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #f7fbff;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.app-navbar .navbar-collapse {
    align-items: flex-start;
    gap: 1.25rem;
}

.app-navbar-primary,
.app-navbar-secondary {
    gap: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.app-navbar-primary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    width: 100%;
}

.app-navbar-group {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 30px rgba(0, 0, 0, 0.18);
    min-width: 0;
    overflow: hidden;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.app-navbar-group:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 166, 255, 0.24);
}

.app-navbar-group[open] {
    border-color: rgba(88, 166, 255, 0.3);
    background:
        linear-gradient(180deg, rgba(21, 94, 239, 0.2), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 36px rgba(0, 0, 0, 0.22);
}

.app-navbar-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.app-navbar-group-label::-webkit-details-marker {
    display: none;
}

.app-navbar-group-title {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
}

.app-navbar-group-title::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #58a6ff, #155eef);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.12);
}

.app-navbar-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
}

.app-navbar-group-label::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-left: auto;
    border-right: 2px solid rgba(255, 255, 255, 0.56);
    border-bottom: 2px solid rgba(255, 255, 255, 0.56);
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.app-navbar-group[open] .app-navbar-group-label::after {
    transform: rotate(225deg);
}

.app-navbar-group-static .app-navbar-group-label {
    cursor: default;
}

.app-navbar-group-static .app-navbar-group-label::after {
    display: none;
}

.app-navbar-group-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
    padding: 0 0.5rem 0.6rem;
}

.app-navbar-group-links.navbar-nav {
    flex-direction: column;
    align-items: flex-start;
}

.app-navbar .nav-link {
    width: 100%;
    padding: 0.58rem 0.75rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.app-navbar .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(21, 94, 239, 0.68), rgba(88, 166, 255, 0.32));
    box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.22);
}

.app-navbar-user {
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .app-navbar .navbar-collapse {
        align-items: flex-start;
    }

    .app-navbar-secondary {
        flex: 0 0 auto;
        align-items: stretch;
        margin-left: 1rem;
        padding: 0.5rem 0 0.5rem 1rem;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (min-width: 1400px) and (max-width: 1700px) {
    .app-navbar-brand-mark {
        font-size: 1.62rem;
    }

    .app-navbar-primary,
    .app-navbar-secondary {
        font-size: 0.85rem;
    }
}

@media (max-width: 1399.98px) {
    .app-navbar .navbar-collapse {
        padding-top: 0.9rem;
    }

    .app-navbar-primary,
    .app-navbar-secondary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .app-navbar-group-links {
        flex-direction: column;
        align-items: stretch;
    }

    .app-navbar-group-links.navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .app-navbar .nav-link {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .app-navbar-secondary {
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
    }

    .app-navbar-user {
        white-space: normal;
    }
}

.app-footer {
    padding: 0 1.5rem 1rem;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-alert-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7db 0%, #ffe08a 100%);
    color: #6c4a00;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.18);
}

.dashboard-alert-toggle:hover {
    background: linear-gradient(135deg, #fff2c2 0%, #ffd45b 100%);
}

.dashboard-alert-toggle-danger {
    background: linear-gradient(135deg, #fff0f2 0%, #ff5a7a 52%, #ff0033 100%);
    color: #7a0018;
    box-shadow:
        0 0 0 1px rgba(255, 0, 51, 0.18),
        0 0 22px rgba(255, 0, 51, 0.34),
        0 12px 30px rgba(255, 0, 51, 0.26);
}

.dashboard-alert-toggle-danger:hover {
    background: linear-gradient(135deg, #ffe2e8 0%, #ff4168 52%, #ff0033 100%);
}

.dashboard-alert-toggle-success {
    background: linear-gradient(135deg, #eefdf3 0%, #8de5aa 52%, #2fbf71 100%);
    color: #0f5a33;
    box-shadow:
        0 0 0 1px rgba(47, 191, 113, 0.18),
        0 0 22px rgba(47, 191, 113, 0.22),
        0 12px 30px rgba(47, 191, 113, 0.2);
}

.dashboard-alert-toggle-success:hover {
    background: linear-gradient(135deg, #e1faea 0%, #70d794 52%, #22a45f 100%);
}

.dashboard-alert-toggle-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #8fd0ff 52%, #3b82f6 100%);
    color: #0f3f91;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.16),
        0 0 22px rgba(59, 130, 246, 0.2),
        0 12px 30px rgba(59, 130, 246, 0.18);
}

.dashboard-alert-toggle-info:hover {
    background: linear-gradient(135deg, #e2f0ff 0%, #74beff 52%, #2563eb 100%);
}

.corporate-panel-shell {
    --corporate-deep: #10233b;
    --corporate-electric: #1f6fff;
    --corporate-cyan: #45c4ff;
    --corporate-teal: #2fd18a;
    --corporate-amber: #f59e0b;
    --corporate-ink: #273444;
    --corporate-muted: #6f7e91;
    --corporate-soft: #f4f7fb;
    --corporate-line: rgba(114, 132, 154, 0.18);
    --corporate-glass: rgba(255, 255, 255, 0.72);
    position: relative;
    padding: 1.1rem;
    border-radius: 34px;
    overflow: hidden;
    font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
}

.corporate-panel-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(69, 196, 255, 0.16), transparent 18%),
        radial-gradient(circle at 18% 22%, rgba(31, 111, 255, 0.13), transparent 22%),
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(236, 243, 251, 0.96) 42%, rgba(229, 239, 250, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 80px rgba(15, 39, 66, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.corporate-panel-shell > *:not(.corporate-panel-backdrop) {
    position: relative;
    z-index: 1;
}

.corporate-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(31, 111, 255, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(69, 196, 255, 0.12), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(31, 111, 255, 0.09), transparent 25%),
        linear-gradient(135deg, #f0f7ff, #e8f2fe 60%, #ddeeff);
    color: #10233b;
    backdrop-filter: none;
    box-shadow:
        0 16px 48px rgba(15, 39, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.corporate-panel-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #10233b;
}

.corporate-panel-subtitle {
    max-width: 58rem;
    margin: 0.85rem 0 0;
    color: rgba(16, 35, 59, 0.68);
    font-size: 1rem;
    line-height: 1.7;
}

.corporate-panel-header-badges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.corporate-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a3566;
    background: rgba(31, 111, 255, 0.08);
    border: 1px solid rgba(31, 111, 255, 0.18);
}

.corporate-panel-hero-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    min-width: 290px;
}

.corporate-panel-hero-card {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 111, 255, 0.12);
    box-shadow: 0 4px 16px rgba(15, 39, 66, 0.06);
}

.corporate-panel-hero-card strong,
.corporate-panel-hero-card small,
.corporate-panel-hero-label {
    display: block;
}

.corporate-panel-hero-label {
    margin-bottom: 0.3rem;
    color: rgba(16, 35, 59, 0.58);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
}

.corporate-panel-hero-card strong {
    font-size: 1.7rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #10233b;
}

.corporate-panel-hero-card small {
    margin-top: 0.2rem;
    color: rgba(16, 35, 59, 0.62);
    font-size: 0.84rem;
}

.corporate-panel-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.corporate-panel-actions .btn {
    border-radius: 14px;
    min-height: 44px;
}

.corporate-panel-actions .btn-outline-secondary {
    border-color: rgba(16, 35, 59, 0.22);
    color: #10233b;
    background: rgba(255, 255, 255, 0.72);
}

.corporate-panel-actions .btn-outline-secondary:hover {
    background: rgba(16, 35, 59, 0.06);
    color: #10233b;
}

.corporate-panel-actions .btn-primary {
    background: linear-gradient(135deg, #1f6fff, #45c4ff);
    border: 0;
    box-shadow: 0 10px 28px rgba(31, 111, 255, 0.32);
}

.corporate-panel-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1rem;
}

.corporate-panel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.corporate-panel-sidebar-card,
.corporate-panel-lane {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.58)),
        var(--corporate-glass);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(15, 39, 66, 0.08);
}

.corporate-panel-sidebar-card {
    padding: 1.15rem;
}

.corporate-panel-sidebar-card-accent {
    background:
        linear-gradient(135deg, rgba(16, 35, 59, 0.96), rgba(23, 51, 86, 0.92)),
        rgba(16, 35, 59, 0.92);
    color: #edf6ff;
}

.corporate-panel-sidebar-card-accent .corporate-panel-sidebar-title,
.corporate-panel-sidebar-copy strong {
    color: #8bdcff;
}

.corporate-panel-sidebar-copy {
    color: rgba(239, 247, 255, 0.78);
    line-height: 1.7;
    font-size: 0.92rem;
}

.corporate-panel-sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--corporate-electric);
    font-weight: 700;
    margin-bottom: 1rem;
}

.corporate-panel-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.corporate-panel-kpi-card {
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 252, 0.78));
    border: 1px solid rgba(220, 230, 241, 0.95);
}

.corporate-panel-kpi-card span {
    display: block;
    color: var(--corporate-muted);
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
}

.corporate-panel-kpi-card strong {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    color: var(--corporate-deep);
}

.corporate-panel-lane-index {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.corporate-panel-lane-index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--corporate-ink);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--corporate-line);
}

.corporate-panel-lane-index-item:hover {
    color: var(--corporate-electric);
    border-color: rgba(31, 111, 255, 0.28);
}

.corporate-panel-main {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 254, 0.62)),
        rgba(255, 255, 255, 0.62);
    padding: 1rem;
    backdrop-filter: blur(14px);
}

.corporate-panel-main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.25rem 0.85rem;
}

.corporate-panel-board-title {
    color: var(--corporate-deep);
    font-weight: 700;
    font-size: 1.05rem;
}

.corporate-panel-board-subtitle {
    color: var(--corporate-muted);
    font-size: 0.88rem;
}

.corporate-panel-board-stats {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.corporate-panel-board-stats span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    color: var(--corporate-deep);
    background: rgba(31, 111, 255, 0.08);
    border: 1px solid rgba(31, 111, 255, 0.14);
}

.corporate-panel-toolbar {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.corporate-panel-toolbar-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(219, 228, 238, 0.95);
    color: var(--corporate-ink);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 39, 66, 0.05);
}

.corporate-panel-toolbar-pill-qa {
    background: linear-gradient(135deg, rgba(16, 35, 59, 0.96), rgba(31, 111, 255, 0.9));
    border-color: rgba(69, 196, 255, 0.18);
    color: #edf7ff;
}

.corporate-panel-lanes {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.15rem 0.45rem;
    scroll-snap-type: x proximity;
}

.corporate-panel-lane {
    flex: 0 0 360px;
    max-width: 360px;
    min-height: 620px;
    padding: 1.15rem;
    min-width: 0;
    scroll-snap-align: start;
    position: relative;
}

.corporate-panel-lane-planning {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 254, 0.72)),
        rgba(255, 255, 255, 0.68);
}

.corporate-panel-lane-planning::before,
.corporate-panel-lane-qa::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    border-radius: 28px 28px 0 0;
}

.corporate-panel-lane-planning::before {
    background: linear-gradient(90deg, rgba(31, 111, 255, 0.9), rgba(69, 196, 255, 0.55));
}

.corporate-panel-lane-qa {
    background:
        linear-gradient(180deg, rgba(16, 35, 59, 0.96), rgba(23, 51, 86, 0.9)),
        rgba(16, 35, 59, 0.92);
    color: #eef6ff;
}

.corporate-panel-lane-qa::before {
    background: linear-gradient(90deg, rgba(69, 196, 255, 0.95), rgba(47, 209, 138, 0.72));
}

.corporate-panel-lane-qa .corporate-panel-lane-title,
.corporate-panel-lane-qa .corporate-panel-lane-kicker,
.corporate-panel-lane-qa .corporate-panel-lane-count {
    color: #eef6ff;
}

.corporate-panel-lane-qa .corporate-panel-lane-count {
    background: rgba(69, 196, 255, 0.16);
    border: 1px solid rgba(69, 196, 255, 0.18);
}

.corporate-panel-lane-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.corporate-panel-lane-kicker {
    margin: 0 0 0.35rem;
    color: var(--corporate-electric);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.corporate-panel-lane-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--corporate-deep);
}

.corporate-panel-lane-rule {
    margin-top: 0.45rem;
    color: var(--corporate-muted);
    font-size: 0.8rem;
}

.corporate-panel-lane-qa .corporate-panel-lane-rule {
    color: rgba(236, 246, 255, 0.76);
}

.corporate-panel-lane-count {
    min-width: 2.3rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 111, 255, 0.1);
    color: var(--corporate-electric);
    font-weight: 700;
    text-align: center;
}

.corporate-panel-card-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.corporate-project-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1rem 0.95rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 235, 245, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.82));
    box-shadow:
        0 14px 34px rgba(15, 39, 66, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.corporate-project-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(31, 111, 255, 0.16), transparent 68%);
    transform: translate(35%, -35%);
    pointer-events: none;
}

.corporate-panel-lane-qa .corporate-project-card {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.06);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.corporate-project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 111, 255, 0.28);
    box-shadow:
        0 20px 38px rgba(15, 39, 66, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.corporate-panel-lane-qa .corporate-project-card:hover {
    border-color: rgba(69, 196, 255, 0.22);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.corporate-project-card-top,
.corporate-project-meta,
.corporate-project-card-footer,
.corporate-project-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.corporate-project-chip,
.corporate-project-provider {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.corporate-project-chip {
    background: rgba(15, 39, 66, 0.08);
    color: var(--corporate-deep);
}

.corporate-project-provider {
    background: rgba(47, 209, 138, 0.14);
    color: #0d8c60;
}

.corporate-panel-lane-qa .corporate-project-chip {
    background: rgba(69, 196, 255, 0.12);
    color: #b9ecff;
}

.corporate-panel-lane-qa .corporate-project-provider {
    background: rgba(47, 209, 138, 0.14);
    color: #bff5d7;
}

.corporate-project-card-body {
    margin: 0.9rem 0;
}

.corporate-project-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--corporate-muted);
}

.corporate-project-card-meta-qa,
.corporate-project-card-meta-jp {
    opacity: 0.85;
}

.corporate-project-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--corporate-deep);
}

.corporate-project-card p,
.corporate-project-meta,
.corporate-project-card-footer {
    color: var(--corporate-muted);
    font-size: 0.85rem;
}

.corporate-panel-lane-qa .corporate-project-card h3,
.corporate-panel-lane-qa .corporate-project-card p,
.corporate-panel-lane-qa .corporate-project-meta,
.corporate-panel-lane-qa .corporate-project-card-footer,
.corporate-panel-lane-qa .corporate-project-progress-label,
.corporate-panel-lane-qa .corporate-project-signal {
    color: rgba(236, 246, 255, 0.88);
}

.corporate-project-signal {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    color: var(--corporate-muted);
    font-size: 0.8rem;
}

.corporate-project-signal-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--corporate-electric), var(--corporate-cyan));
    box-shadow: 0 0 0 5px rgba(31, 111, 255, 0.08);
}

.corporate-project-progress {
    margin: 1rem 0;
}

.corporate-project-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(201, 213, 226, 0.55);
}

.corporate-project-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f2742 0%, #1f6fff 48%, #2fd18a 100%);
    box-shadow: 0 0 20px rgba(31, 111, 255, 0.24);
}

.corporate-panel-lane-qa .corporate-project-progress-bar {
    background: rgba(255, 255, 255, 0.12);
}

.corporate-panel-empty {
    padding: 1rem;
    border-radius: 20px;
    border: 1px dashed rgba(126, 143, 165, 0.34);
    background: rgba(255, 255, 255, 0.5);
    color: var(--corporate-muted);
    text-align: center;
}

.corporate-panel-lanes::-webkit-scrollbar {
    height: 12px;
}

.corporate-panel-lanes::-webkit-scrollbar-track {
    background: rgba(180, 194, 212, 0.24);
    border-radius: 999px;
}

.corporate-panel-lanes::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(15, 39, 66, 0.72), rgba(31, 111, 255, 0.72));
    border-radius: 999px;
}

@media (max-width: 1199.98px) {
    .corporate-panel-layout {
        grid-template-columns: 1fr;
    }

    .corporate-panel-header {
        flex-direction: column;
    }

    .corporate-panel-hero-rail {
        min-width: 0;
        width: 100%;
    }

    .corporate-panel-main-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .corporate-panel-kpi-grid {
        grid-template-columns: 1fr;
    }

    .corporate-panel-actions {
        justify-content: stretch;
    }

    .corporate-panel-actions .btn {
        width: 100%;
    }

    .corporate-panel-lanes {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .corporate-panel-lane {
        max-width: none;
        min-height: auto;
        flex: initial;
    }
}

.dashboard-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-alert-toggle-danger .dashboard-alert-icon {
    background: rgba(255, 255, 255, 0.92);
    color: #ff0033;
    box-shadow: 0 0 18px rgba(255, 0, 51, 0.4);
}

.dashboard-alert-toggle-success .dashboard-alert-icon {
    background: rgba(255, 255, 255, 0.92);
    color: #1f9d5b;
    box-shadow: 0 0 18px rgba(47, 191, 113, 0.28);
}

.dashboard-alert-toggle-info .dashboard-alert-icon {
    background: rgba(255, 255, 255, 0.92);
    color: #2563eb;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}

.dashboard-alert-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.dashboard-alert-copy {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.dashboard-alert-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-alert-count {
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-alert-toggle-danger .dashboard-alert-count {
    color: #8f0021;
}

.dashboard-alert-toggle-success .dashboard-alert-count {
    color: #0f7a43;
}

.dashboard-alert-toggle-info .dashboard-alert-count {
    color: #1d4ed8;
}

.dashboard-alert-panel {
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fffaf0 0%, #fff4d6 100%);
    border: 1px solid #f3d08b;
    box-shadow: 0 14px 30px rgba(23, 50, 77, 0.08);
}

.dashboard-alert-panel-danger {
    background: linear-gradient(180deg, #fff3f5 0%, #ffd9e0 100%);
    border-color: #ff7b96;
    box-shadow:
        0 0 0 1px rgba(255, 0, 51, 0.08),
        0 14px 34px rgba(255, 0, 51, 0.12);
}

.dashboard-alert-panel-success {
    background: linear-gradient(180deg, #f4fdf7 0%, #ddf7e7 100%);
    border-color: #8ad6a7;
    box-shadow:
        0 0 0 1px rgba(47, 191, 113, 0.06),
        0 14px 34px rgba(47, 191, 113, 0.1);
}

.dashboard-alert-panel-info {
    background: linear-gradient(180deg, #f4f9ff 0%, #deefff 100%);
    border-color: #9bc2ff;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.06),
        0 14px 34px rgba(59, 130, 246, 0.1);
}

.dashboard-alert-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.dashboard-alert-total {
    min-width: 2.2rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    color: #8a5a00;
    font-weight: 700;
    text-align: center;
}

.dashboard-alert-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    text-decoration: none;
}

.dashboard-alert-item:hover {
    background: #fff;
}

.dashboard-alert-item-label {
    color: var(--muted);
}

.dashboard-course-project-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.dashboard-course-project-copy {
    display: grid;
    min-width: 0;
    gap: 0.28rem;
}

.dashboard-course-project-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-course-project-title {
    color: #16345f;
    font-size: 0.96rem;
    line-height: 1.25;
}

.dashboard-course-kind-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.dashboard-course-kind-project {
    background: #e2e8f0;
    color: #475569;
}

.dashboard-course-parent,
.dashboard-course-meta {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-course-parent span {
    color: #2563eb;
    font-weight: 750;
}

.dashboard-course-subproject-item {
    position: relative;
    padding-left: 1.25rem;
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.88), rgba(255, 255, 255, 0.88) 42%);
    box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.08);
}

.dashboard-course-subproject-item::before {
    position: absolute;
    inset: 0.55rem auto 0.55rem 0.42rem;
    width: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #38bdf8);
    content: "";
}

.dashboard-course-info-button,
.dashboard-course-view-button {
    white-space: nowrap;
}

.dashboard-course-modal-header {
    border-bottom-color: rgba(37, 99, 235, 0.14);
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.dashboard-course-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.dashboard-course-detail-grid > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid #dbe6f5;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.dashboard-course-detail-grid span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.dashboard-course-detail-grid strong {
    color: #16345f;
}

.dashboard-course-detail-grid small {
    color: #64748b;
}

.dashboard-course-detail-wide {
    grid-column: 1 / -1;
}

.dashboard-course-progress {
    display: block;
    width: clamp(7rem, 12vw, 11rem);
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.dashboard-course-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    box-shadow: 0 0 0.7rem rgba(37, 99, 235, 0.28);
}

.dashboard-course-progress-value {
    min-width: 3.25rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    .dashboard-course-project-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-course-project-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .dashboard-course-progress {
        flex: 1 1 auto;
        width: auto;
    }

    .dashboard-course-project-actions strong {
        margin-left: auto;
    }

    .dashboard-course-parent,
    .dashboard-course-meta {
        white-space: normal;
    }

    .dashboard-course-detail-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-course-detail-wide {
        grid-column: auto;
    }
}

.dashboard-alert-item-danger {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 0, 51, 0.18);
}

.dashboard-alert-item-danger:hover {
    background: #fff5f7;
}

.dashboard-alert-item-danger strong {
    color: #b00020;
}

.dashboard-alert-item-success {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(47, 191, 113, 0.2);
}

.dashboard-alert-item-success:hover {
    background: #f2fcf6;
}

.dashboard-alert-item-success strong {
    color: #15824b;
}

.dashboard-alert-item-info {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.dashboard-alert-item-info:hover {
    background: #f3f8ff;
}

.dashboard-alert-item-info strong {
    color: #1d4ed8;
}

.metric-card {
    background: var(--panel);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(23, 50, 77, 0.08);
    height: 100%;
}

.metric-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.metric-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.metric-card strong {
    font-size: 2rem;
    line-height: 1;
}

.metric-card-detail-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.metric-card-detail-panel {
    margin-top: 0.9rem;
}

.metric-card-detail-card {
    padding-top: 0.9rem;
    border-top: 1px solid #e6edf5;
}

.metric-card-detail-item + .metric-card-detail-item {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dce7f1;
}

.metric-card-detail-link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.metric-card-detail-link:hover,
.metric-card-detail-link:focus {
    color: var(--info);
    text-decoration: underline;
}

.tone-warn { border-top: 4px solid var(--warn); }
.tone-danger { border-top: 4px solid var(--danger); }
.tone-info { border-top: 4px solid var(--info); }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(440px, calc(100vw - 2rem));
    border-radius: 1.25rem;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-brand-logo {
    width: 6.5rem;
    height: 6.5rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.16));
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.table > :not(caption) > * > * {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.project-notes-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.65rem;
    border: 1px solid #e7be56;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe58f 0%, #ffd24d 100%);
    color: #6f4b00;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.18);
}

.project-notes-toggle:hover,
.project-notes-toggle:focus {
    background: linear-gradient(180deg, #ffe08a 0%, #ffc62f 100%);
    color: #5a3c00;
}

.project-notes-toggle-icon {
    display: inline-flex;
    width: 0.95rem;
    height: 0.95rem;
}

.project-notes-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.project-notes-toggle-count {
    min-width: 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.project-note-list {
    display: grid;
    gap: 0.75rem;
}

.project-note-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e7edf4;
    border-radius: 0.9rem;
    background: #fffdf7;
}

.project-note-item.is-completed {
    background: #f6f8fa;
}

.project-note-check {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #d8b347;
    border-radius: 0.35rem;
    background: #fff7cf;
    color: #6c4a00;
    font-weight: 700;
    line-height: 1;
}

.project-note-item.is-completed .project-note-check {
    background: #ffd24d;
}

.project-note-copy {
    min-width: 0;
}

.project-note-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.project-note-item.is-completed .project-note-body {
    color: #6b7c8f;
    text-decoration: line-through;
}

.project-note-meta {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.task-resolution-detail-list {
    display: grid;
    gap: 0.85rem;
    max-height: min(60vh, 34rem);
    overflow-y: auto;
    padding-right: 0.35rem;
}

.task-resolution-detail-item {
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.9rem;
    background: #f8fbff;
}

.executive-compact-grid {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.executive-panel-card {
    min-height: 100%;
}

.executive-panel-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.3rem;
}

.executive-panel-list-auto {
    overflow-y: visible;
}

.executive-compact-card {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #e5edf6;
}

.executive-compact-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.executive-compact-card .min-w-0 > span.text-secondary.small:not(.d-block) {
    display: none;
}

.executive-compact-card .min-w-0 > span.text-secondary.small.d-block:not(.text-truncate):not(.executive-status-meta) {
    display: none;
}

.executive-status-list {
    display: grid;
    gap: 1rem;
}

.executive-status-item {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #e5edf6;
}

.executive-status-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.executive-status-item .min-w-0 > span.text-secondary.small:not(.d-block) {
    display: none;
}

.executive-status-progress {
    height: 0.45rem;
    border-radius: 999px;
    background: #dce6f2;
    overflow: hidden;
}

@media (min-width: 992px) {
    .executive-panel-card .card-body,
    .executive-panel-card-auto .card-body {
        min-height: auto;
    }
}

.chart-progress {
    height: 0.5rem;
    background: #dfe8f1;
}

.chart-progress-lg {
    height: 0.7rem;
}

.dedication-bar {
    background: linear-gradient(90deg, #155eef 0%, #58a6ff 100%);
}

.status-bar {
    background: linear-gradient(90deg, #1d5fd1 0%, #5aa2ff 100%);
}

.error-bar {
    background: linear-gradient(90deg, #1f4f8c 0%, #4f8fe8 100%);
}

.qa-cases-bar {
    background: linear-gradient(90deg, #1650c8 0%, #3c86ff 100%);
}

.pm-cases-bar {
    background: linear-gradient(90deg, #0f5bd7 0%, #57a3ff 100%);
}

.quarter-trend-bar {
    background: linear-gradient(90deg, #244f93 0%, #5c97ee 100%);
}

.qa-dedication-bar {
    background: linear-gradient(90deg, #1d5fd1 0%, #7bbcff 100%);
}

.progress-project-bar {
    background: linear-gradient(90deg, #d97706 0%, #155eef 100%);
}

.progress-subproject-list {
    margin-top: 0.9rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #d7e4f4;
    display: grid;
    gap: 0.85rem;
}

.progress-subproject-item {
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    background: #f3f8fe;
}

.progress-subproject-title {
    color: #164572;
}

.progress-subproject-bar {
    background: linear-gradient(90deg, #155eef 0%, #38bdf8 100%);
}

.qa-dedication-detail-panel {
    margin-top: 0.85rem;
}

.qa-dedication-detail-card {
    padding: 0.9rem 1rem;
    border: 1px solid #d6e0eb;
    border-radius: 0.9rem;
    background: #f8fbff;
    display: grid;
    gap: 0.85rem;
}

.qa-dedication-detail-item {
    display: grid;
    gap: 0.2rem;
}

.qa-dedication-detail-item-rejected,
.qa-dedication-detail-item-rejected .text-secondary,
.qa-dedication-detail-item-rejected .small {
    color: #9f1239 !important;
}

.qa-dedication-detail-item-rejected .qa-dedication-detail-link,
.qa-dedication-detail-item-rejected .qa-dedication-detail-value {
    color: #be123c !important;
}

.qa-dedication-detail-item-rejected .qa-dedication-detail-link:hover,
.qa-dedication-detail-item-rejected .qa-dedication-detail-link:focus {
    color: #881337 !important;
}

.qa-dedication-detail-item-active-under-rejected-parent,
.qa-dedication-detail-item-active-under-rejected-parent .text-secondary,
.qa-dedication-detail-item-active-under-rejected-parent .small {
    color: #9a3412 !important;
}

.qa-dedication-detail-item-active-under-rejected-parent .qa-dedication-detail-link,
.qa-dedication-detail-item-active-under-rejected-parent .qa-dedication-detail-value {
    color: #c2410c !important;
}

.qa-dedication-detail-item-active-under-rejected-parent .qa-dedication-detail-link:hover,
.qa-dedication-detail-item-active-under-rejected-parent .qa-dedication-detail-link:focus {
    color: #9a3412 !important;
}

.qa-dedication-detail-link {
    color: #155eef;
    font-weight: 600;
    text-decoration: none;
}

.qa-dedication-detail-link:hover,
.qa-dedication-detail-link:focus {
    color: #0b4fd6;
    text-decoration: underline;
}

.qa-dedication-detail-value {
    margin-left: 0.35rem;
    color: #1f2937;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 1rem;
    align-items: end;
    min-height: 260px;
}

.trend-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.trend-bar-wrap {
    height: 180px;
    width: 100%;
    max-width: 52px;
    display: flex;
    align-items: end;
    background: linear-gradient(180deg, #edf3f8 0%, #dce7f1 100%);
    border-radius: 0.9rem;
    overflow: hidden;
}

.trend-bar {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, #155eef 0%, #0f3f9f 100%);
    border-radius: 0.9rem;
}

.trend-value {
    font-size: 0.9rem;
}

.trend-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.year-line-chart {
    display: grid;
    gap: 0.85rem;
}

.year-line-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.year-line-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #526071;
    font-size: 0.78rem;
    font-weight: 600;
}

.year-line-chart-legend-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
}

.year-line-chart-frame {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem 0.8rem 0.55rem;
    border-radius: 1rem;
    background: #fbfdff;
    border: 1px solid #d9e2ec;
    box-shadow: none;
}

.year-line-chart-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    color: #738195;
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.2rem 0 1.45rem;
}

.year-line-chart-canvas {
    display: grid;
    gap: 0.3rem;
}

.year-line-chart-plot {
    position: relative;
}

.year-line-chart-svg {
    display: block;
    width: 100%;
    height: 220px;
}

.year-line-chart-axis {
    stroke: #a8b6c7;
    stroke-width: 0.24;
    shape-rendering: crispEdges;
}

.year-line-chart-grid {
    stroke: #edf2f7;
    stroke-width: 0.16;
    shape-rendering: crispEdges;
}

.year-line-chart-grid-horizontal {
    stroke: #dde6ef;
    stroke-width: 0.22;
}

.year-line-chart-line {
    fill: none;
    stroke-width: 0.41;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.96;
    filter: drop-shadow(0 0 0.45px rgba(31, 79, 140, 0.45))
        drop-shadow(0 0 1px rgba(31, 79, 140, 0.18));
}

.year-line-chart-trend {
    fill: none;
    display: none;
}

.year-line-chart-point {
    display: none;
}

.year-line-chart-point-marker {
    fill: #1f4f8c;
    stroke: #ffffff;
    stroke-width: 0.45;
}

.year-line-chart-label-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.year-line-chart-point-label {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #738195;
    font-size: 10px;
    font-weight: 500;
    font-style: normal;
    font-family: Arial, sans-serif;
    line-height: 1;
    white-space: nowrap;
    padding: 0 2px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 4px;
}

.year-line-chart-xaxis {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.15rem;
    color: #738195;
    font-size: 0.62rem;
    font-weight: 500;
    text-align: center;
    align-items: start;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown summary {
    list-style: none;
    min-width: 180px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-dropdown[open] summary {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 20;
    width: 260px;
    max-height: 260px;
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid #dce7f1;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 50, 77, 0.12);
}

.filter-option {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.filter-option-all {
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #e6edf5;
}

.filter-option-list {
    max-height: 180px;
    overflow: auto;
}

.permission-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #dce7f1;
    border-radius: 1rem;
    background: #f9fbfd;
    cursor: pointer;
}

.permission-card input[type="checkbox"] {
    margin-bottom: 0.25rem;
}

.permission-card-title {
    font-weight: 700;
}

.permission-card-key {
    color: var(--muted);
    font-size: 0.85rem;
}

.task-summary {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.4rem 0.9rem;
}

.task-summary dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    min-width: 0;
}

.task-summary dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.task-summary .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}

.task-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-comment {
    padding: 1rem;
    border: 1px solid #dce7f1;
    border-radius: 0.9rem;
    background: #f9fbfd;
}

.task-event {
    background: #f8fbff;
}

.task-chat-message {
    background: #ffffff;
    border-color: #cfe0f4;
}

.project-link-btn {
    min-width: 3.4rem;
    font-weight: 600;
}

.project-link-btn-active {
    border: 1px solid #bfdbfe;
    background: #dbeafe;
    color: #1d4ed8;
}

.project-link-btn-active:hover,
.project-link-btn-active:focus {
    border-color: #93c5fd;
    background: #bfdbfe;
    color: #1e40af;
}

.project-link-btn-empty {
    border: 1px solid #dce7f1;
    background: #ffffff;
    color: #9aa8b7;
}

.provider-pie-layout {
    display: flex;
    justify-content: center;
}

.provider-pie-chart-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.provider-pie-chart {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
}

.provider-pie-total-label {
    fill: #738195;
    font-size: 4px;
    font-weight: 600;
}

.provider-pie-total-value {
    fill: #1f2937;
    font-size: 6.6px;
    font-weight: 700;
}

.provider-pie-connector {
    fill: none;
    stroke-width: 0.45;
    stroke-dasharray: 0.9 1.6;
    stroke-linecap: round;
    opacity: 0.7;
}

.provider-pie-label {
    fill: #243041;
    font-size: 2.35px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .provider-pie-chart {
        max-width: 560px;
    }
}

/* Dashboard refresh: dense, calm, decision-first UI. */
.dashboard-shell {
    --dash-border: #d9e3ee;
    --dash-soft: #f6f9fc;
    --dash-ink: #172033;
    --dash-muted: #637186;
    --dash-green: #155eef;
    --dash-blue: #215fd6;
    --dash-amber: #c86b05;
    --dash-red: #b42318;
    display: grid;
    gap: 1rem;
}

.dashboard-shell .dashboard-hero {
    padding: 1rem;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(19, 35, 55, 0.08);
    backdrop-filter: blur(12px);
}

.dashboard-shell .dashboard-hero h1 {
    color: var(--dash-ink);
    font-weight: 760;
    letter-spacing: 0;
}

.dashboard-shell .dashboard-hero > div:last-child,
.dashboard-shell .dashboard-hero form {
    flex-wrap: wrap;
}

.dashboard-shell .form-select,
.dashboard-shell .form-control {
    border-color: #cfd9e5;
    border-radius: 8px;
    color: #223047;
    font-size: 0.9rem;
    box-shadow: none;
}

.dashboard-shell .form-select:focus,
.dashboard-shell .form-control:focus {
    border-color: #8db4f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 95, 214, 0.14);
}

.dashboard-shell .btn {
    border-radius: 8px;
    font-weight: 650;
}

.dashboard-metric-strip > [class*="col"] {
    min-width: 0;
}

.dashboard-shell .metric-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(19, 35, 55, 0.07);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-shell .metric-card:hover {
    transform: translateY(-2px);
    border-color: #b9cadc;
    box-shadow: 0 16px 34px rgba(19, 35, 55, 0.11);
}

.dashboard-shell .metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--dash-green);
    opacity: 0.92;
}

.dashboard-shell .metric-card span {
    color: var(--dash-muted);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-shell .metric-card strong {
    color: var(--dash-ink);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 780;
    letter-spacing: 0;
}

.dashboard-shell .tone-warn {
    border-top: 0;
}

.dashboard-shell .tone-warn::before {
    background: var(--dash-amber);
}

.dashboard-shell .tone-danger {
    border-top: 0;
}

.dashboard-shell .tone-danger::before {
    background: var(--dash-red);
}

.dashboard-shell .tone-info {
    border-top: 0;
}

.dashboard-shell .tone-info::before {
    background: var(--dash-blue);
}

.dashboard-shell .tone-success {
    border-top: 0;
}

.dashboard-shell .tone-success::before {
    background: #15824b;
}

.dashboard-shell .card {
    border: 1px solid var(--dash-border) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(19, 35, 55, 0.07) !important;
}

.dashboard-shell .card-body {
    padding: 1.15rem;
}

.dashboard-shell h2.h5,
.dashboard-shell h3.h6 {
    color: var(--dash-ink);
    font-weight: 760;
    letter-spacing: 0;
}

.dashboard-shell .text-secondary {
    color: var(--dash-muted) !important;
}

.dashboard-shell .list-group-item {
    border-color: #e2e9f1;
    background: transparent;
}

.dashboard-shell .list-group-item + .list-group-item {
    margin-top: 0.1rem;
}

.dashboard-shell .progress {
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf5;
}

.dashboard-shell .chart-progress {
    height: 0.55rem;
}

.dashboard-shell .chart-progress-lg {
    height: 0.72rem;
}

.dashboard-shell .progress-bar {
    border-radius: 999px;
}

.dashboard-shell .dedication-bar,
.dashboard-shell .qa-dedication-bar {
    background: linear-gradient(90deg, #155eef 0%, #58a6ff 100%);
}

.dashboard-shell .status-bar,
.dashboard-shell .qa-cases-bar,
.dashboard-shell .pm-cases-bar,
.dashboard-shell .quarter-trend-bar {
    background: linear-gradient(90deg, #215fd6 0%, #58a6ff 100%);
}

.dashboard-shell .error-bar {
    background: linear-gradient(90deg, #b42318 0%, #f97316 100%);
}

.dashboard-shell .progress-project-bar {
    background: linear-gradient(90deg, #c86b05 0%, #215fd6 100%);
}

.dashboard-alert-toggle {
    border-radius: 8px;
}

.dashboard-shell .dashboard-alert-toggle-danger {
    background: #fff5f6;
    color: #8f1720;
    border: 1px solid #ffc5cc;
    box-shadow: 0 8px 20px rgba(180, 35, 24, 0.12);
}

.dashboard-shell .dashboard-alert-toggle-danger:hover {
    background: #ffe9ec;
}

.dashboard-shell .dashboard-alert-toggle-success {
    background: #effcf3;
    color: #166534;
    border: 1px solid #b7e4c7;
    box-shadow: 0 8px 20px rgba(21, 128, 75, 0.1);
}

.dashboard-shell .dashboard-alert-toggle-success:hover {
    background: #e2f8ea;
}

.dashboard-shell .dashboard-alert-toggle-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.dashboard-shell .dashboard-alert-toggle-info:hover {
    background: #dbeafe;
}

.dashboard-shell .dashboard-alert-icon,
.dashboard-shell .dashboard-alert-toggle-danger .dashboard-alert-icon {
    width: 2rem;
    height: 2rem;
    box-shadow: none;
}

.dashboard-shell .dashboard-alert-panel,
.dashboard-shell .dashboard-alert-item,
.dashboard-shell .executive-compact-card,
.dashboard-shell .qa-dedication-detail-card,
.dashboard-shell .progress-subproject-item,
.dashboard-shell .year-line-chart-frame {
    border-radius: 8px;
}

.dashboard-shell .dashboard-alert-panel-danger {
    background: #fff7f8;
    border-color: #ffc5cc;
    box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
}

.dashboard-shell .dashboard-alert-panel-success {
    background: #f5fcf7;
    border-color: #b7e4c7;
    box-shadow: 0 10px 24px rgba(21, 128, 75, 0.08);
}

.dashboard-shell .dashboard-alert-panel-info {
    background: #f5f9ff;
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.dashboard-shell .executive-compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.dashboard-shell .executive-compact-card,
.dashboard-shell .executive-status-item {
    border: 1px solid #e2e9f1;
    background: #fbfdff;
}

.dashboard-shell .executive-compact-card strong,
.dashboard-shell .executive-status-item strong {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-shell .executive-compact-card:hover,
.dashboard-shell .executive-status-item:hover {
    border-color: #c4d2e2;
    background: #ffffff;
}

.dashboard-shell .executive-hero-panel {
    position: relative;
    overflow: hidden;
}

.dashboard-shell .executive-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 55%, #bfdbfe 100%);
}

.dashboard-shell .executive-section-head {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e6edf5;
}

.dashboard-shell .executive-section-copy {
    max-width: 42rem;
}

.dashboard-shell .executive-panel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d6e2f0;
    background: #f8fbff;
    color: #38506f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-shell .executive-panel-pill-muted {
    background: #eef4fb;
    border-color: #d7e3f1;
    color: #51667f;
}

.dashboard-shell .executive-planning-list,
.dashboard-shell .executive-progress-grid {
    gap: 0.9rem;
}

.dashboard-shell .executive-planning-card,
.dashboard-shell .executive-progress-card {
    padding: 1rem 1.05rem;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-shell .executive-planning-card:hover,
.dashboard-shell .executive-progress-card:hover {
    transform: translateY(-2px);
    border-color: #bfd2e8;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.dashboard-shell .executive-card-kicker {
    margin-bottom: 0.45rem;
    color: #5f7491;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-shell .executive-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.dashboard-shell .executive-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #40546f;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-shell .executive-soft-button {
    border-color: #b9c8da;
    background: #fff;
    color: #40546f;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.dashboard-shell .executive-soft-button:hover,
.dashboard-shell .executive-soft-button:focus {
    border-color: #8ca6c3;
    background: #f8fbff;
    color: #1f3552;
}

.dashboard-shell .executive-progress-side {
    min-width: 4.75rem;
}

.dashboard-shell .executive-progress-value {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1f2a44;
}

.dashboard-shell .executive-progress-bar-shell {
    height: 0.55rem;
    border-radius: 999px;
    background: #dde8f5;
    overflow: hidden;
}

.dashboard-shell .executive-progress-card > .d-flex > .min-w-0 > span.text-secondary.small:last-of-type {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #eef4fb;
    color: #40546f !important;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-shell .executive-empty-state {
    padding: 1rem 1.1rem;
    border: 1px dashed #cfdae7;
    border-radius: 14px;
    background: #f8fbff;
    color: #64748b;
}

.dashboard-shell .executive-tail-grid {
    padding-top: 0.25rem;
}

.dashboard-shell .executive-tail-panel {
    border: 1px solid #dbe6f2 !important;
    background:
        linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(243, 248, 253, 0.98) 100%);
}

.dashboard-shell .executive-tail-item {
    padding: 1rem 1.05rem;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.dashboard-shell .executive-tail-item:last-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dbe6f2;
}

.dashboard-shell .filter-dropdown summary {
    border-radius: 8px;
    border-color: #cfd9e5;
    background: #ffffff;
}

.dashboard-shell .filter-dropdown-menu {
    border-radius: 8px;
    border-color: #d6e0eb;
    box-shadow: 0 16px 36px rgba(19, 35, 55, 0.16);
}

.dashboard-shell .badge {
    font-weight: 650;
}

.dashboard-shell .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #e2e9f1;
}

.dashboard-shell .incomplete-preview-table {
    border: 1px solid #e2e9f1;
    border-radius: 8px;
}

.dashboard-shell .incomplete-preview-table th {
    color: #18283a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-shell .incomplete-preview-table td {
    vertical-align: middle;
}

.dashboard-shell .incomplete-preview-table td:first-child {
    min-width: 14rem;
}

.dashboard-shell .incomplete-preview-table td:nth-child(3) {
    min-width: 16rem;
}

@media (min-width: 1200px) {
    .dashboard-shell-main .dashboard-metric-strip:first-of-type > .col-md-3 {
        width: 25%;
    }
}

@media (max-width: 991.98px) {
    .dashboard-shell .dashboard-hero {
        align-items: stretch !important;
        flex-direction: column;
    }

    .dashboard-shell .dashboard-hero > div:last-child,
    .dashboard-shell .dashboard-hero form {
        width: 100%;
    }

    .dashboard-shell .dashboard-hero .btn,
    .dashboard-shell .dashboard-hero .form-select {
        min-height: 2.45rem;
    }
}

@media (max-width: 575.98px) {
    main.container-fluid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .dashboard-shell .dashboard-hero,
    .dashboard-shell .card-body,
    .dashboard-shell .metric-card {
        padding: 0.9rem;
    }

    .dashboard-shell .dashboard-alert-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
    }

    .dashboard-shell .dashboard-alert-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-shell .metric-card strong {
        font-size: 1.55rem;
    }
}

/* Restored navbar treatment from the previous workstation build. */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 4.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #0b1220 0%, #101827 100%) !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.app-navbar > .container-fluid {
    position: relative;
    gap: 1.25rem;
    padding-inline: 1.5rem !important;
}

.app-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0.5rem;
}

.app-navbar-brand-logo {
    display: block;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.24));
}

.app-navbar-brand-mark {
    font-family: "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1.08rem;
    font-weight: 760 !important;
    letter-spacing: 0;
    text-shadow: none;
}

.app-navbar .navbar-collapse {
    align-items: center;
}

.app-user-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    box-shadow: none;
}

.app-user-menu-trigger::after {
    display: none;
}

.app-user-menu-trigger:hover,
.app-user-menu-trigger:focus {
    border-color: rgba(147, 197, 253, 0.36);
    background: rgba(37, 99, 235, 0.12);
    color: #ffffff;
}

.app-user-menu-trigger:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
}

.app-user-menu-trigger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    width: 1rem;
}

.app-user-menu-trigger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.app-user-menu-dropdown-panel {
    width: min(430px, calc(100vw - 1rem));
    margin-top: 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.995), rgba(17, 24, 39, 0.995));
    color: #f8fafc;
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.36);
}

.app-user-menu-header {
    align-items: flex-start;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.app-user-menu-eyebrow {
    color: rgba(147, 197, 253, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-user-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.9rem 1rem 1rem;
    max-height: min(75vh, 42rem);
    overflow-y: auto;
}

.app-navbar-primary {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.app-navbar-secondary {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    gap: 0.35rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.app-navbar-group {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    overflow: visible;
}

.app-navbar-group:hover,
.app-navbar-group[open] {
    transform: none;
    border-color: rgba(147, 197, 253, 0.38);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: none;
}

.app-navbar-group-label {
    min-height: 2.5rem;
    padding: 0.58rem 0.78rem;
    gap: 0.55rem;
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.04em;
}

.app-navbar-group-title::before {
    width: 0.45rem;
    height: 0.45rem;
    background: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.app-navbar-group-count {
    min-width: 1.45rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.28);
    font-size: 0.66rem;
}

.app-navbar-group-links {
    min-width: 100%;
    padding: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.5rem;
    background: #111827;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.app-navbar-group:not([open]) .app-navbar-group-links {
    display: none;
}

.app-navbar .nav-link {
    min-height: 2.15rem;
    padding: 0.46rem 0.62rem;
    border-radius: 0.375rem;
    color: rgba(226, 232, 240, 0.78);
    font-weight: 600;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.16);
    transform: none;
}

.app-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.72);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.2);
}

.app-navbar-user {
    color: rgba(203, 213, 225, 0.78) !important;
}

@media (max-width: 1399.98px) {
    .app-user-menu-dropdown {
        position: static;
    }

    .app-user-menu-dropdown-panel {
        width: calc(100vw - 1.7rem);
        margin-left: 0.85rem;
        margin-right: 0.85rem;
    }

}

@media (max-width: 767.98px) {
    .app-navbar {
        min-height: 4.4rem;
    }

    .app-navbar > .container-fluid {
        justify-content: center;
        padding-inline: 1rem !important;
    }

    .app-navbar-brand {
        display: none;
    }

    .app-navbar-brand-logo {
        width: 2.6rem;
        height: 2.6rem;
    }

    .app-user-menu-dropdown {
        margin-inline: auto;
    }

    .app-user-menu-trigger {
        width: 2.6rem;
        height: 2.6rem;
        border-color: rgba(148, 163, 184, 0.24);
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

.app-user-menu-dropdown-panel {
        width: calc(100vw - 1rem);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Planning list: visual-only button hierarchy refresh. */
.planning-list-page .planning-toolbar-cta {
    min-height: 2.55rem;
    padding-inline: 1.1rem;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
    font-weight: 700;
}

.planning-list-page .planning-filter-actions .btn,
.planning-list-page .planning-filter-actions a {
    min-height: 2.55rem;
    border-radius: 0.7rem;
    font-weight: 600;
}

.planning-list-page .planning-filter-submit {
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.18);
}

.planning-list-page .planning-filter-reset {
    border: 1px solid #d7e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: #44556b;
}

.planning-list-page .planning-filter-reset:hover,
.planning-list-page .planning-filter-reset:focus {
    border-color: #c4d0dc;
    background: #ffffff;
    color: #223247;
}

.planning-list-page .planning-actions-cell {
    min-width: 23rem;
    white-space: nowrap;
}

.planning-list-page .planning-actions {
    display: inline-grid;
    grid-template-columns: 3.1rem 4rem 4.3rem 4.3rem 5.2rem 5.1rem;
    justify-content: end;
    align-items: center;
    gap: 0.35rem;
}

.planning-list-page .planning-actions form {
    margin: 0;
}

.planning-list-page .planning-action-btn {
    min-height: 2.1rem;
    padding: 0.34rem 0.58rem;
    border-radius: 0.65rem;
    border: 1px solid #d8e1eb;
    background: #ffffff;
    color: #506176;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}

.planning-list-page .planning-action-btn:hover,
.planning-list-page .planning-action-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.planning-list-page .planning-action-view {
    min-width: 3rem;
    border-color: #cfd9e4;
    color: #24364a;
}

.planning-list-page .planning-action-view:hover,
.planning-list-page .planning-action-view:focus {
    border-color: #b8c8d9;
    background: #f8fbff;
    color: #14293f;
}

.planning-list-page .planning-action-edit {
    min-width: 4rem;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(21, 94, 239, 0.18);
}

.planning-list-page .planning-action-edit:hover,
.planning-list-page .planning-action-edit:focus {
    background: linear-gradient(135deg, #1f57d4 0%, #114cd3 100%);
    color: #ffffff;
}

.planning-list-page .planning-action-secondary,
.planning-list-page .planning-action-log {
    min-width: 100%;
    border-color: #d7e0ea;
    background: #fbfcfe;
    color: #596c80;
}

.planning-list-page .planning-action-secondary:hover,
.planning-list-page .planning-action-secondary:focus,
.planning-list-page .planning-action-log:hover,
.planning-list-page .planning-action-log:focus {
    border-color: #c2d0de;
    background: #f5f8fc;
    color: #2f4257;
}

.planning-list-page .planning-action-accent {
    min-width: 100%;
    border-color: #ffe08a;
    background: #fff9e8;
    color: #a05a00;
}

.planning-list-page .planning-action-accent:hover,
.planning-list-page .planning-action-accent:focus {
    border-color: #ffd05a;
    background: #fff3cf;
    color: #7f4700;
}

.planning-list-page .planning-action-danger {
    min-width: 100%;
    border-color: #f9c7cc;
    background: #fff7f8;
    color: #c0102f;
}

.planning-list-page .planning-action-danger:hover,
.planning-list-page .planning-action-danger:focus {
    border-color: #f4a8b0;
    background: #ffeff1;
    color: #a30d28;
}

@media (max-width: 1199.98px) {
    .planning-list-page .planning-actions-cell {
        min-width: 22rem;
    }
}

@media (max-width: 767.98px) {
    .planning-list-page .planning-toolbar-cta {
        width: 100%;
        justify-content: center;
    }

    .planning-list-page .planning-filter-actions {
        flex-direction: column;
    }

    .planning-list-page .planning-actions-cell {
        min-width: 16rem;
    }

    .planning-list-page .planning-actions {
        width: auto;
        justify-content: end;
    }
}

/* Projects and ProjectsJP: shared action styling refresh. */
.project-list-page .project-toolbar-primary,
.project-jp-list-page .project-toolbar-primary {
    min-height: 2.55rem;
    padding-inline: 1.1rem;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
    font-weight: 700;
}

.project-list-page .project-toolbar-secondary,
.project-jp-list-page .project-toolbar-secondary {
    min-height: 2.55rem;
    border-radius: 0.7rem;
    border: 1px solid #d7e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: #44556b;
    font-weight: 600;
}

.project-list-page .project-filter-actions,
.project-jp-list-page .project-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.project-list-page .project-filter-actions .btn,
.project-list-page .project-filter-actions a,
.project-jp-list-page .project-filter-actions .btn,
.project-jp-list-page .project-filter-actions a {
    min-height: 2.45rem;
    min-width: 8.5rem;
    flex: 0 0 auto;
    width: auto !important;
    border-radius: 0.7rem;
    font-weight: 600;
}

.project-list-page .project-filter-submit,
.project-jp-list-page .project-filter-submit {
    border: 0;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.18);
}

.project-list-page .project-filter-reset,
.project-jp-list-page .project-filter-reset {
    border: 1px solid #d7e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: #44556b;
}

.project-list-page .project-filter-card-shell .card-body {
    padding: 1rem 1.25rem 1.15rem;
}

.project-list-page .project-filter-grid {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
    align-items: start;
}

.project-list-page .project-filter-toggles {
    display: grid;
    gap: 0.8rem;
    padding: 0.15rem 0 0.1rem;
}

.project-list-page .project-filter-switch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.7rem;
    row-gap: 0.2rem;
    align-items: start;
}

.project-list-page .project-filter-switch .form-check-input {
    margin-top: 0.22rem;
}

.project-list-page .project-filter-switch .form-check-label,
.project-list-page .project-filter-switch .form-text {
    grid-column: 2;
}

.project-list-page .project-filter-toggles .project-filter-switch:not(.project-filter-switch-cca) {
    padding: 0 0.95rem;
}

.project-list-page .project-filter-toggles .project-filter-switch.project-filter-switch-cca {
    padding: 0.55rem 0.95rem;
    box-shadow: -3px 0 0 rgba(79, 107, 237, 0.35);
    background: transparent;
}

.project-list-page .project-actions-cell,
.project-jp-list-page .project-actions-cell {
    min-width: 0;
    white-space: nowrap;
    text-align: right;
}

.project-list-page .project-actions,
.project-jp-list-page .project-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    min-width: max-content;
    margin-left: auto;
}

.project-list-page .project-actions form,
.project-jp-list-page .project-actions form {
    display: inline-flex;
    margin: 0;
}

.project-list-page .project-action-btn,
.project-jp-list-page .project-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    min-width: auto;
    width: auto;
    padding: 0.22rem 0.52rem;
    border-radius: 0.65rem;
    border: 1px solid #d8e1eb;
    background: #ffffff;
    color: #506176;
    font-size: 0.69rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}

.project-list-page .project-action-subprojects,
.project-jp-list-page .project-action-subprojects {
    margin-right: 0.15rem;
}

.project-list-page .project-action-btn:hover,
.project-list-page .project-action-btn:focus,
.project-jp-list-page .project-action-btn:hover,
.project-jp-list-page .project-action-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.project-list-page .project-action-view,
.project-jp-list-page .project-action-view {
    border-color: #cfd9e4;
    color: #24364a;
}

.project-list-page .project-action-edit,
.project-jp-list-page .project-action-edit {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #155eef 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(21, 94, 239, 0.18);
}

.project-list-page .project-action-secondary,
.project-jp-list-page .project-action-secondary {
    border-color: #d7e0ea;
    background: #fbfcfe;
    color: #596c80;
}

.project-list-page .project-action-link-active,
.project-jp-list-page .project-action-link-active {
    border-color: #c6dcfb;
    background: #dbeafe;
    color: #1d4ed8;
}

.project-list-page .project-action-link-production,
.project-jp-list-page .project-action-link-production {
    border-color: #b7e4c7;
    background: #dcfce7;
    color: #15803d;
}

.project-list-page .project-action-link-empty,
.project-jp-list-page .project-action-link-empty {
    border-color: #d8e1eb;
    background: #ffffff;
    color: #8a99aa;
    box-shadow: none;
    opacity: 1;
}

.project-list-page .project-action-accent,
.project-jp-list-page .project-action-accent {
    border-color: #ffe08a;
    background: #fff9e8;
    color: #a05a00;
}

.project-list-page .project-action-danger,
.project-jp-list-page .project-action-danger {
    border-color: #f9c7cc;
    background: #fff7f8;
    color: #c0102f;
}

.project-list-page .app-list-card {
    overflow-x: auto;
}

.project-list-page .project-table-hint {
    padding: 0.8rem 1.2rem 0;
    color: #64748b;
    font-size: 0.8rem;
}

.project-list-page .app-list-card .table-responsive {
    overflow-x: auto;
    width: 100%;
    scrollbar-gutter: stable both-edges;
}

.project-list-page .app-list-card .table-responsive::-webkit-scrollbar {
    height: 12px;
}

.project-list-page .app-list-card .table-responsive::-webkit-scrollbar-track {
    background: #edf3fb;
    border-radius: 999px;
}

.project-list-page .app-list-card .table-responsive::-webkit-scrollbar-thumb {
    background: #c4d4ea;
    border-radius: 999px;
}

.project-list-page .app-data-table {
    min-width: 1420px;
}

.project-list-page .app-data-table tbody td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    vertical-align: top;
}

.project-list-page .project-col-code {
    width: 14rem;
}

.project-list-page .project-col-folio {
    width: 5rem;
}

.project-list-page .project-col-description {
    width: 17rem;
}

.project-list-page .project-col-client {
    width: 6rem;
}

.project-list-page .project-col-status {
    width: 7rem;
}

.project-list-page .project-col-qa {
    width: 9rem;
}

.project-list-page .project-col-progress {
    width: 5rem;
}

.project-list-page .project-col-hh {
    width: 6rem;
}

.project-list-page .project-col-actions {
    width: 20rem;
}

.project-list-page .project-cell-folio,
.project-list-page .project-cell-client,
.project-list-page .project-cell-status,
.project-list-page .project-cell-progress,
.project-list-page .project-cell-hh {
    white-space: nowrap;
}

.project-list-page .app-cell-code {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.project-list-page .project-cell-description,
.project-list-page .project-cell-qa {
    min-width: 0;
}

.project-list-page .project-cell-description .app-cell-title {
    margin-bottom: 0.18rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-list-page .project-cell-inline-meta,
.project-jp-list-page .project-cell-inline-meta {
    display: none;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    margin-bottom: 0.22rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.3;
}

.project-list-page .project-cell-inline-meta span,
.project-jp-list-page .project-cell-inline-meta span {
    white-space: nowrap;
}

.project-list-page .project-cell-meta {
    display: grid;
    gap: 0.16rem;
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-list-page .project-subprojects-panel-cell {
    padding: 0 !important;
    background: linear-gradient(180deg, rgba(232, 239, 248, 0.98), rgba(244, 247, 252, 0.98));
    border-top: 1px solid rgba(23, 50, 77, 0.08);
}

.project-list-page .project-subprojects-panel {
    color: var(--ink);
}

.project-list-page .project-subprojects-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: rgba(23, 50, 77, 0.12);
}

.project-list-page .project-subprojects-table thead th {
    color: #48627d;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom-color: rgba(23, 50, 77, 0.14);
}

.project-list-page .project-subprojects-table tbody td {
    color: var(--ink);
    background: transparent;
}

.project-list-page .project-cell-qa {
    color: #556980;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-jp-list-page .project-actions-cell {
    min-width: 16rem;
}

@media (max-width: 767.98px) {
    .project-list-page .project-filter-actions,
    .project-jp-list-page .project-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-list-page .project-actions-cell,
    .project-jp-list-page .project-actions-cell {
        min-width: 0;
    }

    .project-list-page .app-data-table {
        min-width: 1260px;
    }
}

@media (min-width: 992px) and (max-width: 1535.98px) {
    .app-shell-coreui {
        grid-template-columns: 196px minmax(0, 1fr);
    }

    .app-shell-coreui .app-sidebar {
        padding: 0.9rem 0.8rem;
    }

    .app-shell-coreui .app-sidebar-brand-copy strong {
        font-size: 1.34rem;
    }

    .app-shell-coreui .app-topbar-center {
        display: none;
    }

    .app-shell-coreui .app-page-inner {
        padding-inline: 1.15rem;
    }
}

@media (max-width: 1535.98px) {
    .project-list-page .app-page-hero {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.9rem;
    }

    .project-list-page .app-page-hero-actions {
        flex-wrap: wrap;
    }

    .project-list-page .project-filter-card-shell .card-body {
        padding: 0.95rem 1rem 1rem;
    }

    .project-list-page .app-data-table {
        min-width: 1100px;
    }

    .project-list-page .project-col-code {
        width: 11rem;
    }

    .project-list-page .project-col-description {
        width: 15rem;
    }

    .project-list-page .project-col-qa {
        width: 8rem;
    }

    .project-list-page .project-col-actions {
        width: 17rem;
    }

    .project-list-page .project-th-folio,
    .project-list-page .project-col-folio,
    .project-list-page .project-cell-folio,
    .project-list-page .project-th-hh,
    .project-list-page .project-col-hh,
    .project-list-page .project-cell-hh {
        display: none;
    }

    .project-list-page .project-cell-inline-meta {
        display: flex;
    }

    .project-list-page .project-actions,
    .project-jp-list-page .project-actions {
        gap: 0.32rem;
    }

    .project-list-page .project-action-btn,
    .project-jp-list-page .project-action-btn {
        min-height: 1.8rem;
        padding: 0.2rem 0.44rem;
        font-size: 0.66rem;
    }
}

@media (max-width: 1199.98px) {
    .project-list-page .app-data-table {
        min-width: 880px;
    }

    .project-list-page .project-th-client,
    .project-list-page .project-col-client,
    .project-list-page .project-cell-client {
        display: none;
    }

    .project-list-page .project-actions-cell,
    .project-jp-list-page .project-actions-cell {
        min-width: 10.5rem;
    }

    .project-list-page .project-actions,
    .project-jp-list-page .project-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
        min-width: 0;
    }
}

/* Enterprise shell refresh: visual-only overrides for navigation, pages and shared controls. */
:root {
    --app-bg: #f3f6fb;
    --app-bg-alt: #e8eef8;
    --app-surface: rgba(255, 255, 255, 0.82);
    --app-surface-strong: #ffffff;
    --app-panel: #0f172a;
    --app-panel-soft: #162033;
    --app-border: #dbe3ef;
    --app-border-strong: #c7d4e4;
    --app-ink-strong: #122033;
    --app-ink: #31445d;
    --app-ink-soft: #64748b;
    --app-brand: #2563eb;
    --app-brand-strong: #1d4ed8;
    --app-brand-soft: #dbeafe;
    --app-success: #0f9f6e;
    --app-warning: #d97706;
    --app-danger: #dc2626;
    --app-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --app-shadow-md: 0 14px 32px rgba(15, 23, 42, 0.08);
    --app-radius-xl: 28px;
    --app-radius-lg: 20px;
    --app-radius-md: 16px;
    --app-radius-sm: 12px;
}

body {
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.08), transparent 24%),
        radial-gradient(circle at 100% 18%, rgba(14, 165, 233, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
    color: var(--app-ink);
    font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

body::before,
body::after,
main.container-fluid::before {
    display: none;
}

.app-shell {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 180ms ease;
}

.app-shell[data-sidebar-state="collapsed"] {
    grid-template-columns: 110px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100vh;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(9, 14, 26, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 24px 0 60px rgba(2, 6, 23, 0.16);
    transition: transform 180ms ease, opacity 180ms ease;
    z-index: 20;
}

.app-sidebar-head,
.app-topbar,
.app-sidebar-brand,
.app-sidebar-section-label,
.app-sidebar-link,
.app-topbar-start,
.app-topbar-end,
.app-topbar-chip,
.app-topbar-user,
.metric-card-head,
.dashboard-alert-copy {
    display: flex;
    align-items: center;
}

.app-sidebar-head,
.app-topbar,
.app-sidebar-section-label,
.app-sidebar-link,
.app-topbar-start,
.app-topbar-end,
.metric-card-head,
.dashboard-alert-copy {
    justify-content: space-between;
}

.app-sidebar-brand {
    gap: 1.05rem;
    text-decoration: none;
    color: #f8fbff;
}

.app-sidebar-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-sidebar-brand-logo {
    width: 2.85rem;
    height: 2.85rem;
    object-fit: contain;
}

.app-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.app-sidebar-brand-copy strong {
    font-size: 1.62rem;
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.app-sidebar-brand-kicker {
    display: none;
}

.app-sidebar-collapse-btn,
.app-topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.app-sidebar-collapse-btn span,
.app-topbar-toggle span {
    display: block;
    border-radius: 999px;
    background: currentColor;
}

.app-sidebar-collapse-btn span {
    width: 0.75rem;
    height: 2px;
}

.app-topbar-toggle {
    display: none;
    flex-direction: column;
}

.app-topbar-toggle span {
    width: 1rem;
    height: 2px;
}

.app-sidebar-search .form-control {
    min-height: 2.75rem;
    padding-inline: 0.95rem;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.app-sidebar-search .form-control::placeholder {
    color: rgba(226, 232, 240, 0.48);
}

.app-sidebar-nav {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.app-sidebar-section,
.app-sidebar-section-static {
    padding: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.app-sidebar-section.is-active,
.app-sidebar-section-static.is-active {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(255, 255, 255, 0.04));
}

.app-sidebar-section-label {
    gap: 0.75rem;
    margin: 0;
    list-style: none;
    color: rgba(248, 250, 252, 0.88);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar-section-label::-webkit-details-marker {
    display: none;
}

.app-sidebar-section-label small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(248, 250, 252, 0.88);
    font-size: 0.68rem;
}

.app-sidebar-section-links {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.app-sidebar-link {
    gap: 0.75rem;
    min-height: 2.55rem;
    padding: 0.62rem 0.75rem;
    border-radius: 0.9rem;
    color: rgba(226, 232, 240, 0.82);
    text-decoration: none;
    font-weight: 600;
    transition:
        transform 140ms ease,
        background-color 140ms ease,
        color 140ms ease,
        border-color 140ms ease;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.16);
}

.app-sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.74), rgba(59, 130, 246, 0.92));
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.24);
}

.app-sidebar-link-indicator {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.3);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.08);
    flex-shrink: 0;
}

.app-sidebar-link.active .app-sidebar-link-indicator {
    background: #ffffff;
}

.app-sidebar-link-short {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.14);
    color: #dbeafe;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar {
    padding-inline: 0.7rem;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-head {
    justify-items: center;
    justify-content: center;
    gap: 0.75rem;
    display: grid;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-collapse-btn {
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 50%;
    bottom: 8.25rem;
    margin-top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand-copy,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-search,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label span,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label small,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-title,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-count,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-copy,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-foot {
    display: none;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-head,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link {
    justify-content: center;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand {
    width: 100%;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-static {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-links {
    margin-top: 0;
    gap: 0.45rem;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link {
    width: 3rem;
    min-height: 3rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    margin-inline: auto;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link:hover,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link:focus {
    background: rgba(37, 99, 235, 0.16);
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.96));
    box-shadow:
        inset 0 0 0 1px rgba(191, 219, 254, 0.24),
        0 10px 20px rgba(37, 99, 235, 0.18);
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-indicator {
    display: none;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-short {
    display: inline-flex;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section,
.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-static {
    display: grid;
    justify-items: center;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label {
    display: none;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-links {
    display: grid;
    justify-items: center;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-short {
    min-width: 1.6rem;
    height: 1.6rem;
    background: rgba(255, 255, 255, 0.1);
    color: #eff6ff;
}

.app-shell[data-sidebar-state="collapsed"] .app-sidebar-link.active .app-sidebar-link-short {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.app-sidebar-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.app-sidebar-foot .btn {
    min-height: 2.75rem;
    border-radius: 0.9rem;
}

.app-shell-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.9rem 1.35rem;
    border-bottom: 1px solid rgba(219, 227, 239, 0.72);
    backdrop-filter: blur(18px);
    background: rgba(243, 246, 251, 0.78);
}

.app-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.app-topbar-start {
    flex: 1 1 22rem;
    gap: 0.9rem;
    min-width: 0;
}

.app-breadcrumbs span,
.app-breadcrumbs strong {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.app-breadcrumbs span {
    color: var(--app-ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-breadcrumbs span::after {
    content: "/";
    margin-left: 0.55rem;
    color: #a3b2c5;
}

.app-breadcrumbs strong {
    color: var(--app-ink-strong);
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-center {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-left: 0;
    min-width: 0;
}

.app-topbar-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 2.25rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--app-ink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-topbar-chip:hover,
.app-topbar-chip:focus {
    border-color: #bfd4fb;
    background: #ffffff;
    color: var(--app-brand-strong);
}

.app-topbar-end {
    flex: 0 1 auto;
    gap: 0.55rem;
    min-width: 0;
}

.app-topbar-user {
    flex: 0 1 12rem;
    flex-direction: column;
    align-items: flex-end;
    min-width: 10.5rem;
    max-width: min(16rem, 26vw);
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.app-topbar-user small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--app-ink-soft);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-topbar-user strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--app-ink-strong);
    font-size: 0.88rem;
}

.app-page {
    padding: 1.15rem 1.35rem 1.5rem;
}

.app-page-inner {
    max-width: 1680px;
}

.app-footer {
    padding: 0 1.5rem 1.25rem;
    color: var(--app-ink-soft);
}

.app-page-hero {
    align-items: flex-end !important;
}

.app-page-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-page-hero-meta {
    color: var(--app-ink-soft);
    font-size: 0.92rem;
}

.app-page-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.app-filter-card {
    border-color: #c5d2e1 !important;
}

.app-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #e5edf6;
}

.app-section-title {
    color: var(--app-ink-strong);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.app-section-copy {
    color: var(--app-ink-soft);
    font-size: 0.88rem;
}

.app-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.app-list-card {
    overflow: hidden;
}

.app-data-table thead th:first-child,
.app-data-table tbody td:first-child {
    padding-left: 1.1rem;
}

.app-data-table thead th:last-child,
.app-data-table tbody td:last-child {
    padding-right: 1.1rem;
}

.app-cell-code {
    color: var(--app-ink-strong);
    font-weight: 700;
    white-space: nowrap;
}

.app-cell-title {
    color: var(--app-ink-strong);
    font-weight: 700;
    line-height: 1.35;
}

.app-data-table tbody td {
    font-size: 0.98rem;
}

.card,
.metric-card,
.dashboard-alert-panel,
.modal-content,
.project-note-item,
.task-resolution-detail-item,
.qa-dedication-detail-card,
.metric-card-detail-card {
    border-radius: var(--app-radius-lg) !important;
}

.card,
.modal-content {
    border: 1px solid rgba(219, 227, 239, 0.92) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: var(--app-shadow-md) !important;
    overflow: hidden;
}

.card-body,
.modal-body {
    padding: 1.2rem 1.35rem;
}

.card-footer,
.modal-header {
    padding: 0.9rem 1.35rem;
    border-color: var(--app-border) !important;
    background: rgba(248, 250, 252, 0.82);
}

.dashboard-shell .dashboard-hero,
.project-list-page > .d-flex:first-child,
.planning-list-page > .d-flex:first-child,
body:not(.login-page) form.card + .card,
body:not(.login-page) .card.border-0.shadow-sm:first-of-type {
    position: relative;
}

.dashboard-shell .dashboard-hero,
.project-list-page > .d-flex:first-child,
.planning-list-page > .d-flex:first-child,
div.d-flex.justify-content-between.align-items-center.mb-4:first-child {
    margin-bottom: 1.5rem !important;
    padding: 1.3rem 1.45rem;
    border: 1px solid rgba(219, 227, 239, 0.96);
    border-radius: var(--app-radius-xl);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 254, 0.98));
    box-shadow: var(--app-shadow-md);
}

h1.h3,
.h3.mb-0 {
    color: var(--app-ink-strong);
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.eyebrow {
    color: var(--app-brand);
    letter-spacing: 0.14em;
}

.metric-card {
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(219, 227, 239, 0.96);
    border-radius: var(--app-radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.metric-card > span,
.metric-card-head span:first-child {
    color: var(--app-ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--app-ink-strong);
    font-size: clamp(1.9rem, 2vw, 2.4rem);
    letter-spacing: -0.05em;
}

.tone-info,
.tone-success,
.tone-warn,
.tone-danger {
    position: relative;
    overflow: hidden;
}

.tone-info::before,
.tone-success::before,
.tone-warn::before,
.tone-danger::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.tone-info::before {
    background: var(--app-brand);
}

.tone-success::before {
    background: var(--app-success);
}

.tone-warn::before {
    background: var(--app-warning);
}

.tone-danger::before {
    background: var(--app-danger);
}

.dashboard-alert-toggle {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    background: #fff7db;
    box-shadow: none;
}

.dashboard-alert-toggle-danger,
.dashboard-alert-panel-danger,
.dashboard-alert-item-danger {
    border-color: rgba(220, 38, 38, 0.14);
}

.dashboard-alert-panel {
    padding: 1.1rem;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--app-shadow-md);
}

.dashboard-alert-item {
    border-radius: 1rem;
    border: 1px solid var(--app-border);
    background: #f8fbff;
}

.form-control,
.form-select {
    min-height: 2.8rem;
    border: 1px solid var(--app-border-strong);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--app-ink-strong);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.form-check-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--app-ink-strong);
    font-weight: 700;
}

.form-text {
    color: var(--app-ink-soft);
}

.form-check-input {
    border-color: var(--app-border-strong);
}

.btn {
    min-height: 2.7rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--app-brand) 0%, var(--app-brand-strong) 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.btn-outline-secondary,
.btn-light {
    border-color: var(--app-border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--app-ink);
}

.table-responsive {
    border-radius: 0 0 var(--app-radius-lg) var(--app-radius-lg);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #e4ebf4;
    margin-bottom: 0;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-top: 0.92rem;
    padding-bottom: 0.92rem;
    border-bottom-width: 1px;
    background: #f7fafe !important;
    color: var(--app-ink-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table tbody td {
    padding-top: 0.92rem;
    padding-bottom: 0.92rem;
    color: var(--app-ink);
}

.table-hover > tbody > tr:hover > * {
    background: rgba(219, 234, 254, 0.28);
}

.badge {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.project-note-item,
.task-resolution-detail-item,
.qa-dedication-detail-item,
.metric-card-detail-item {
    border: 1px solid var(--app-border);
    background: #f8fbff;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(135deg, #09111f 0%, #10203b 52%, #0f172a 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 460px);
    gap: 1.5rem;
    width: min(1120px, 100%);
}

.login-showcase,
.login-card {
    min-height: 680px;
}

.login-showcase {
    padding: 2rem;
}

.login-showcase-panel {
    height: 100%;
    padding: 1.8rem 2.25rem 2rem;
    border: 1px solid rgba(191, 219, 254, 0.16);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), transparent 24%),
        linear-gradient(180deg, rgba(14, 24, 42, 0.9), rgba(11, 18, 32, 0.92));
    color: #f8fbff;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.3);
}

.login-partner-brand {
    position: relative;
    width: min(250px, 62%);
    aspect-ratio: 1.7 / 1;
    margin: -0.3rem 0 1.35rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    isolation: auto;
}

.login-partner-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    display: none;
}

.login-partner-brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: normal;
}

.login-showcase-title {
    max-width: 14ch;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 3.4vw, 3.3rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.login-showcase-copy {
    max-width: 42rem;
    color: rgba(226, 232, 240, 0.76);
    font-size: 1rem;
    line-height: 1.8;
}

.login-showcase-metrics {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.login-showcase-metric {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.05);
}

.login-showcase-metric strong,
.login-showcase-metric span {
    display: block;
}

.login-showcase-metric strong {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.login-showcase-metric span {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.88rem;
}

.login-card {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.96) !important;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
}

.login-divider {
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg, transparent, #dbe3ef, transparent);
}

/* ── Dark mode ──────────────────────────────────────────────── */
html[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] body {
    --bg: #0b1525;
    --panel: #111827;
    --ink: #c8d8f0;
    --muted: #7a90b0;
    --app-bg: #0a1120;
    --app-bg-alt: #0f1a2e;
    --app-surface: rgba(15, 25, 45, 0.92);
    --app-surface-strong: #141f35;
    --app-panel: #e8f0fc;
    --app-panel-soft: #b8ccf0;
    --app-border: #1e3050;
    --app-border-strong: #2a4066;
    --app-ink-strong: #f1f5ff;
    --app-ink: #c8d8f0;
    --app-ink-soft: #7a90b0;
    --app-brand-soft: rgba(37, 99, 235, 0.2);
    --app-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --app-shadow-md: 0 14px 32px rgba(0, 0, 0, 0.35);
    --dash-border: #1e3050;
    --dash-soft: #0f1a2e;
    --dash-ink: #c8d8f0;
    --dash-muted: #7a90b0;
    --dash-title: #e2ecff;
    --dash-copy: #7a90b0;
    --dash-surface: rgba(20, 31, 53, 0.98);
    --dash-surface-soft: rgba(15, 26, 46, 0.98);
    --dash-line: #1e3050;
    background: linear-gradient(180deg, #06091a 0%, #0a1120 100%);
    color: var(--app-ink);
}

[data-theme="dark"] .app-topbar {
    background: rgba(10, 17, 32, 0.92);
    border-bottom-color: rgba(30, 48, 80, 0.9);
}

[data-theme="dark"] .app-topbar-user {
    background: rgba(20, 31, 53, 0.8);
    border-color: var(--app-border);
}

[data-theme="dark"] .app-topbar-chip {
    background: rgba(20, 31, 53, 0.7);
    border-color: var(--app-border);
    color: var(--app-ink);
}

[data-theme="dark"] .app-topbar-chip:hover,
[data-theme="dark"] .app-topbar-chip:focus {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

[data-theme="dark"] .card,
[data-theme="dark"] .modal-content {
    background: linear-gradient(180deg, #19253d 0%, #141f35 100%) !important;
    border-color: var(--app-border) !important;
    color: var(--app-ink);
}

[data-theme="dark"] .card-footer,
[data-theme="dark"] .modal-header {
    background: rgba(10, 18, 34, 0.6) !important;
    border-color: var(--app-border) !important;
}

[data-theme="dark"] .metric-card {
    background: linear-gradient(180deg, #19253d 0%, #141f35 100%) !important;
    border-color: var(--app-border) !important;
}

[data-theme="dark"] .dashboard-shell .dashboard-hero,
[data-theme="dark"] .project-list-page > .d-flex:first-child,
[data-theme="dark"] .planning-list-page > .d-flex:first-child,
[data-theme="dark"] div.d-flex.justify-content-between.align-items-center.mb-4:first-child {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, #19253d, #141f35) !important;
    border-color: var(--app-border) !important;
}

[data-theme="dark"] .shadow-sm {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top {
    border-color: var(--app-border) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: var(--app-ink-soft) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #0f1a2e;
    border-color: var(--app-border);
    color: var(--app-ink);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #0f1a2e;
    border-color: var(--app-brand);
    color: var(--app-ink);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

[data-theme="dark"] .form-label {
    color: var(--app-ink);
}

[data-theme="dark"] .form-text {
    color: var(--app-ink-soft);
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--app-border);
    --bs-table-striped-bg: rgba(30, 48, 80, 0.35);
    --bs-table-hover-bg: rgba(37, 99, 235, 0.1);
    color: var(--app-ink);
}

[data-theme="dark"] .table thead th {
    border-color: var(--app-border);
    color: var(--app-ink-soft);
}

[data-theme="dark"] .modal-content {
    background-color: var(--app-surface-strong);
    border-color: var(--app-border);
    color: var(--app-ink);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--app-border);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--app-surface-strong);
    border-color: var(--app-border);
}

[data-theme="dark"] .dropdown-item {
    color: var(--app-ink);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(37, 99, 235, 0.15);
    color: var(--app-ink-strong);
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--app-border-strong);
    color: var(--app-ink);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--app-border);
    border-color: var(--app-border-strong);
    color: var(--app-ink-strong);
}

[data-theme="dark"] .btn-light {
    background-color: var(--app-surface-strong);
    border-color: var(--app-border);
    color: var(--app-ink);
}

[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light.active {
    background-color: rgba(37, 99, 235, 0.15);
    color: var(--app-ink-strong);
}

[data-theme="dark"] hr {
    border-color: var(--app-border);
    opacity: 1;
}

[data-theme="dark"] .app-footer {
    color: var(--app-ink-soft);
}

[data-theme="dark"] .app-breadcrumbs strong {
    color: var(--app-ink-strong);
}

.app-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: transparent;
    color: var(--app-ink-soft);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms, color 140ms, border-color 140ms;
}

.app-theme-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--app-brand);
    border-color: rgba(37, 99, 235, 0.3);
}

.app-theme-toggle-sun { display: none; }
.app-theme-toggle-moon { display: inline; }

[data-theme="dark"] .app-theme-toggle-sun { display: inline; }
[data-theme="dark"] .app-theme-toggle-moon { display: none; }

@media (max-width: 991.98px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-shell[data-sidebar-state="collapsed"] {
        grid-template-columns: 1fr;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] {
        grid-template-columns: 1fr !important;
    }

    .app-shell::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(12, 18, 28, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 19;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: min(88vw, 320px);
        transition: transform 180ms ease;
        z-index: 20;
    }

    .app-shell.is-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-collapse-btn {
        display: none !important;
    }

    .app-shell.is-sidebar-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar {
        width: min(88vw, 320px);
        padding-inline: 0;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar {
        width: min(88vw, 320px) !important;
        padding-inline: 0 !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-head {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-head {
        display: flex !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        padding: 0.8rem 0.85rem !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand-copy,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-search,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-title,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-copy,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-foot {
        display: initial;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-brand-copy {
        display: flex !important;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-search,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-title,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-copy {
        display: block !important;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-foot {
        display: grid !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label {
        display: grid;
        justify-content: initial;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-label {
        display: grid !important;
        justify-content: initial !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-links {
        display: grid;
        justify-items: stretch;
        margin-top: 0.1rem;
        margin-left: 0.35rem;
        padding-left: 0.65rem;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-links {
        display: grid !important;
        justify-items: stretch !important;
        margin-top: 0.1rem !important;
        margin-left: 0.35rem !important;
        padding-left: 0.65rem !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link {
        width: auto;
        min-height: 32px;
        padding: 0.42rem 0.62rem;
        margin-inline: 0;
        border: 0;
        border-radius: 0.82rem;
        background: transparent;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link {
        width: auto !important;
        min-height: 32px !important;
        padding: 0.42rem 0.62rem !important;
        margin-inline: 0 !important;
        border: 0 !important;
        border-radius: 0.82rem !important;
        background: transparent !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-short,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-indicator,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-count,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label small,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label::after {
        display: none;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-short,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-indicator,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-count,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-label small,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-label::after {
        display: none !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-head,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link {
        justify-content: initial;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-brand,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-head,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link {
        justify-content: initial !important;
    }

    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-static {
        display: block !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .app-topbar {
        padding-inline: 1rem;
    }

    .app-topbar-toggle {
        display: inline-flex;
    }

    .app-topbar-center {
        display: none;
    }

    .app-page {
        padding: 1rem;
    }

    .app-page-hero {
        align-items: stretch !important;
        flex-direction: column;
    }

    .app-page-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .app-topbar {
        align-items: center;
        flex-direction: row;
        min-height: 3.8rem;
        padding-block: 0.6rem;
    }

    .app-topbar-start {
        width: 100%;
        min-width: 0;
    }

    .app-topbar-end {
        display: none;
    }

    .app-breadcrumbs {
        min-width: 0;
    }

    .app-breadcrumbs strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-shell .dashboard-hero,
    .project-list-page > .d-flex:first-child,
    .planning-list-page > .d-flex:first-child,
    div.d-flex.justify-content-between.align-items-center.mb-4:first-child,
    .card-body,
    .modal-body {
        padding: 1rem;
    }

    .app-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-filter-actions,
    .app-page-hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .app-filter-actions .btn,
    .app-page-hero-actions .btn {
        width: 100%;
    }

    .app-sidebar-foot {
        grid-template-columns: 1fr;
    }
}

/* Dashboard typography and visualization uplift. */
.dashboard-shell {
    --dash-title: #0f1f38;
    --dash-copy: #5f7088;
    --dash-surface: rgba(255, 255, 255, 0.96);
    --dash-surface-soft: rgba(247, 250, 255, 0.98);
    --dash-line: #d8e2ee;
    --dash-blue-strong: #1d4ed8;
    --dash-blue-soft: #60a5fa;
    --dash-green-strong: #15803d;
    --dash-amber-strong: #b45309;
    --dash-red-strong: #b91c1c;
    color: var(--dash-title);
}

.dashboard-shell h1,
.dashboard-shell h2,
.dashboard-shell h3,
.dashboard-shell .h3,
.dashboard-shell .h5,
.dashboard-shell .h6 {
    font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
    color: var(--dash-title);
    letter-spacing: -0.035em;
}

.dashboard-shell .dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.5rem;
    border: 1px solid #dce7f3;
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98) 58%, rgba(234, 243, 252, 0.95));
    box-shadow:
        0 24px 50px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-shell .dashboard-hero::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -4rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.26), transparent 68%);
    pointer-events: none;
}

.dashboard-shell .dashboard-hero h1 {
    font-size: clamp(2.05rem, 3vw, 3rem);
    font-weight: 790;
    line-height: 0.98;
}

.dashboard-shell .dashboard-hero .eyebrow {
    margin-bottom: 0.55rem !important;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
}

.dashboard-shell .dashboard-hero .text-secondary {
    color: var(--dash-copy) !important;
    font-size: 0.96rem;
}

.dashboard-shell .dashboard-alert-toggle {
    position: relative;
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.72rem 0.95rem;
    border-radius: 1.15rem;
    border: 1px solid #dce8f5;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.92));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-shell .dashboard-alert-toggle .dashboard-alert-copy {
    gap: 0.45rem;
}

.dashboard-shell .dashboard-alert-label {
    color: var(--dash-copy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.dashboard-shell .dashboard-alert-count {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-shell .dashboard-alert-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #ffffff, #eef4fb);
    color: var(--dash-blue-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-shell .dashboard-alert-toggle-success {
    border-color: #cbe8d5;
    background: linear-gradient(180deg, #f7fdf8, #effaf2);
}

.dashboard-shell .dashboard-alert-toggle-success .dashboard-alert-icon,
.dashboard-shell .dashboard-alert-toggle-success .dashboard-alert-count {
    color: var(--dash-green-strong);
}

.dashboard-shell .dashboard-alert-toggle-danger {
    border-color: #ffd4d8;
    background: linear-gradient(180deg, #fff7f8, #fff1f2);
}

.dashboard-shell .dashboard-alert-toggle-danger .dashboard-alert-icon,
.dashboard-shell .dashboard-alert-toggle-danger .dashboard-alert-count {
    color: var(--dash-red-strong);
}

.dashboard-shell .metric-card {
    padding: 1.25rem 1.35rem;
    border: 1px solid #dbe6f2;
    border-radius: 1.55rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-shell .metric-card::before {
    width: 5px;
    border-radius: 999px;
}

.dashboard-shell .metric-card > span,
.dashboard-shell .metric-card-head span:first-child {
    display: block;
    margin-bottom: 0.65rem;
    color: #667892;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.dashboard-shell .metric-card strong {
    display: block;
    font-size: clamp(2.15rem, 3.4vw, 3rem);
    font-weight: 820;
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
}

.dashboard-shell .metric-card .small,
.dashboard-shell .metric-card .text-secondary {
    color: #60728c !important;
    font-size: 0.92rem;
    line-height: 1.45;
}

.dashboard-shell .dashboard-metric-strip-secondary .metric-card {
    min-height: 148px;
}

.dashboard-shell .dashboard-metric-strip-secondary .metric-card button.btn {
    color: inherit;
}

.dashboard-shell .card {
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
    box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.dashboard-shell .card-body {
    padding: 1.35rem 1.4rem;
}

.dashboard-shell h2.h5 {
    font-size: 1.55rem;
    font-weight: 790;
}

.dashboard-shell h3.h6 {
    font-size: 1rem;
    font-weight: 760;
}

.dashboard-shell .list-group-item {
    padding-block: 0.95rem;
    border-color: #e7eef6;
}

.dashboard-shell .list-group-item > .d-flex span:first-child,
.dashboard-shell .list-group-item > .d-flex > div:first-child span:first-child {
    color: var(--dash-title);
    font-weight: 640;
}

.dashboard-shell .list-group-item strong {
    font-variant-numeric: tabular-nums;
}

.dashboard-shell .chart-progress,
.dashboard-shell .chart-progress-lg {
    height: 0.78rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #e7eef7, #dfe8f2);
}

.dashboard-shell .progress-bar {
    position: relative;
    overflow: hidden;
}

.dashboard-shell .progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 36%, rgba(255, 255, 255, 0.18));
}

.dashboard-shell .dedication-bar,
.dashboard-shell .qa-dedication-bar {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 48%, #7dd3fc 100%);
}

.dashboard-shell .quarter-trend-bar,
.dashboard-shell .status-bar,
.dashboard-shell .qa-cases-bar,
.dashboard-shell .pm-cases-bar {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.dashboard-shell .error-bar,
.dashboard-shell .tone-danger .progress-bar {
    background: linear-gradient(90deg, #dc2626 0%, #fb7185 100%);
}

.dashboard-shell .progress-project-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #2563eb 100%);
}

.dashboard-shell .dashboard-alert-panel {
    padding: 1.2rem;
    border-radius: 1.35rem;
}

.dashboard-shell .dashboard-alert-panel-head {
    margin-bottom: 0.95rem;
}

.dashboard-shell .dashboard-alert-total {
    min-width: 2.4rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.dashboard-shell .dashboard-alert-list {
    gap: 0.65rem;
}

.dashboard-shell .dashboard-alert-item {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e0e9f3;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.dashboard-shell .dashboard-alert-item-label {
    color: #44566f;
    line-height: 1.45;
}

.dashboard-shell .qa-dedication-detail-card,
.dashboard-shell .metric-card-detail-card {
    margin-top: 0.9rem;
    padding: 0.9rem;
    border: 1px solid #deE8f3;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #fbfdff, #f4f8fd);
}

.dashboard-shell .qa-dedication-detail-item,
.dashboard-shell .metric-card-detail-item {
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid #e4edf6;
    background: rgba(255, 255, 255, 0.84);
}

.dashboard-shell .trend-grid {
    gap: 1.15rem;
    min-height: 300px;
}

.dashboard-shell .trend-column {
    gap: 0.55rem;
}

.dashboard-shell .trend-bar-wrap {
    max-width: 62px;
    height: 200px;
    padding: 0.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #eef4fb, #dfe8f2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-shell .trend-bar {
    border-radius: 1rem;
    background: linear-gradient(180deg, #1d4ed8 0%, #60a5fa 52%, #8b5cf6 100%);
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.18);
}

.dashboard-shell .trend-value {
    color: var(--dash-title);
    font-size: 1rem;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.dashboard-shell .trend-label {
    color: var(--dash-copy);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-shell .year-line-chart-frame {
    grid-template-columns: 46px 1fr;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.8rem;
    border-radius: 1.35rem;
    border: 1px solid #dce7f3;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfdff, #f5f9ff);
}

.dashboard-shell .year-line-chart-yaxis {
    color: #64758c;
    font-size: 0.72rem;
    font-weight: 700;
    padding-bottom: 1.7rem;
}

.dashboard-shell .year-line-chart-svg {
    height: 250px;
}

.dashboard-shell .year-line-chart-axis {
    stroke: #b7c7d8;
    stroke-width: 0.32;
}

.dashboard-shell .year-line-chart-grid-horizontal {
    stroke: #d9e5f1;
    stroke-width: 0.26;
}

.dashboard-shell .year-line-chart-line {
    stroke-width: 0.56;
    filter: drop-shadow(0 1px 1px rgba(29, 78, 216, 0.18))
        drop-shadow(0 8px 14px rgba(37, 99, 235, 0.14));
}

.dashboard-shell .year-line-chart-point-marker {
    fill: #1d4ed8;
    stroke: #ffffff;
    stroke-width: 0.7;
}

.dashboard-shell .year-line-chart-point-label {
    padding: 0.2rem 0.35rem;
    border: 1px solid #d9e6f4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #51657f;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-shell .year-line-chart-xaxis {
    color: #64758c;
    font-size: 0.68rem;
    font-weight: 700;
}

.dashboard-shell .provider-pie-chart-wrap {
    padding: 1rem;
    border: 1px solid #dce7f3;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 20%),
        linear-gradient(180deg, #fcfdff, #f6f9ff);
}

.dashboard-shell .provider-pie-total-label {
    fill: #6b7f97;
    font-size: 4.5px;
    font-weight: 700;
}

.dashboard-shell .provider-pie-total-value {
    fill: var(--dash-title);
    font-size: 7.2px;
    font-weight: 800;
}

.dashboard-shell .provider-pie-label {
    fill: #29405f;
    font-size: 2.55px;
    font-weight: 700;
}

.dashboard-shell .incomplete-preview-table {
    border-radius: 1.2rem;
    overflow: hidden;
}

.dashboard-shell .incomplete-preview-table th {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.dashboard-shell .incomplete-preview-table td {
    padding-block: 1rem;
}

.dashboard-shell .badge {
    border-radius: 999px;
    font-weight: 760;
}

.dashboard-shell .btn-outline-secondary,
.dashboard-shell .btn-outline-primary {
    font-weight: 700;
}

.dashboard-shell .text-secondary.small,
.dashboard-shell .small.text-secondary {
    color: var(--dash-copy) !important;
}

@media (max-width: 991.98px) {
    .dashboard-shell .dashboard-hero {
        padding: 1.1rem;
    }

    .dashboard-shell .dashboard-hero h1 {
        font-size: 1.85rem;
    }

    .dashboard-shell .metric-card {
        padding: 1rem 1.05rem;
    }

    .dashboard-shell .metric-card strong {
        font-size: 2rem;
    }

    .dashboard-shell .trend-grid {
        min-height: 240px;
    }
}

/* Dashboard rebalance: calmer hierarchy, smaller figures, less visual noise. */
.dashboard-shell .dashboard-hero {
    padding: 1.1rem 1.25rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dashboard-shell .dashboard-hero::after {
    display: none;
}

.dashboard-shell .dashboard-hero h1 {
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1.02;
}

.dashboard-shell .dashboard-hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.dashboard-shell .dashboard-hero .text-secondary {
    font-size: 0.9rem;
}

.dashboard-shell .dashboard-alert-toggle {
    min-height: 2.8rem;
    padding: 0.58rem 0.8rem;
    border-radius: 0.95rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-shell .dashboard-alert-count {
    font-size: 1.2rem;
}

.dashboard-shell .dashboard-alert-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.8rem;
}

.dashboard-shell .metric-card {
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-shell .metric-card::before {
    width: 4px;
}

.dashboard-shell .metric-card > span,
.dashboard-shell .metric-card-head span:first-child {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
}

.dashboard-shell .metric-card strong {
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
    line-height: 0.98;
}

.dashboard-shell .metric-card .small,
.dashboard-shell .metric-card .text-secondary {
    font-size: 0.86rem;
    line-height: 1.38;
}

.dashboard-shell .dashboard-metric-strip-secondary .metric-card {
    min-height: 126px;
}

.dashboard-shell .card {
    border-radius: 1.25rem;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.dashboard-shell .card-body {
    padding: 1.15rem 1.2rem;
}

.dashboard-shell h2.h5 {
    font-size: 1.28rem;
    letter-spacing: -0.025em;
}

.dashboard-shell h3.h6 {
    font-size: 0.92rem;
}

.dashboard-shell .list-group-item {
    padding-block: 0.8rem;
}

.dashboard-shell .chart-progress,
.dashboard-shell .chart-progress-lg {
    height: 0.62rem;
}

.dashboard-shell .dashboard-alert-panel {
    padding: 1rem;
    border-radius: 1.05rem;
}

.dashboard-shell .dashboard-alert-item {
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
}

.dashboard-shell .qa-dedication-detail-card,
.dashboard-shell .metric-card-detail-card {
    padding: 0.75rem;
    border-radius: 0.95rem;
}

.dashboard-shell .qa-dedication-detail-item,
.dashboard-shell .metric-card-detail-item {
    padding: 0.72rem 0.8rem;
    border-radius: 0.8rem;
}

.dashboard-shell .trend-grid {
    gap: 0.9rem;
    min-height: 230px;
}

.dashboard-shell .trend-bar-wrap {
    max-width: 50px;
    height: 150px;
    padding: 0.25rem;
    border-radius: 0.95rem;
}

.dashboard-shell .trend-bar {
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(29, 78, 216, 0.12);
}

.dashboard-shell .trend-value {
    font-size: 0.9rem;
}

.dashboard-shell .trend-label {
    font-size: 0.74rem;
}

.dashboard-shell .year-line-chart-frame {
    grid-template-columns: 38px 1fr;
    gap: 0.55rem;
    padding: 0.85rem 0.85rem 0.9rem 0.65rem;
    border-radius: 1.05rem;
}

.dashboard-shell .year-line-chart-svg {
    height: 210px;
}

.dashboard-shell .year-line-chart-point-label {
    padding: 0.12rem 0.28rem;
    font-size: 9px;
}

.dashboard-shell .year-line-chart-xaxis {
    font-size: 0.62rem;
}

.dashboard-shell .provider-pie-chart-wrap {
    padding: 0.75rem;
    border-radius: 1.05rem;
}

.dashboard-shell .provider-pie-total-value {
    font-size: 6.5px;
}

.dashboard-shell .provider-pie-label {
    font-size: 2.2px;
}

.dashboard-shell .incomplete-preview-table {
    border-radius: 0.95rem;
}

@media (max-width: 991.98px) {
    .dashboard-shell .dashboard-hero h1 {
        font-size: 1.65rem;
    }

    .dashboard-shell .metric-card strong {
        font-size: 1.85rem;
    }
}

/* Global typography, density and view system refresh. */
:root {
    --app-font-display: clamp(1.65rem, 1.55rem + 0.8vw, 2.25rem);
    --app-font-title: 1.25rem;
    --app-font-section: 1rem;
    --app-font-body: 0.94rem;
    --app-font-meta: 0.8rem;
    --app-font-micro: 0.72rem;
}

html {
    font-size: 15px;
}

body,
.form-control,
.form-select,
.btn,
.table,
.list-group-item {
    font-size: var(--app-font-body);
}

.eyebrow {
    font-size: var(--app-font-micro);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-view-header {
    gap: 1rem;
    padding-bottom: 0.35rem;
}

.app-view-heading,
.app-page-hero .display-5,
.app-page-hero h1,
.dashboard-shell .dashboard-hero h1 {
    color: var(--app-ink-strong);
    font-size: var(--app-font-display);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.app-view-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-page-hero {
    padding: 1.05rem 1.25rem;
    border: 1px solid rgba(216, 226, 238, 0.95);
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.app-page-hero-copy {
    gap: 0.28rem;
}

.app-page-hero-meta,
.app-section-copy,
.form-text,
.text-secondary.small,
.small.text-secondary {
    font-size: var(--app-font-meta);
    line-height: 1.45;
}

.app-filter-card,
.app-list-card,
.app-detail-card,
.app-form-card {
    border-color: rgba(216, 226, 238, 0.96) !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.app-filter-card .card-body,
.app-list-card .card-body,
.app-detail-card .card-body,
.app-form-card .card-body {
    padding: 1.1rem 1.2rem;
}

.app-section-title,
.app-form-section-title,
.app-detail-title {
    color: var(--app-ink-strong);
    font-size: var(--app-font-title);
    font-weight: 760;
    letter-spacing: -0.03em;
}

.app-form-section-copy {
    color: var(--app-ink-soft);
    font-size: var(--app-font-meta);
    line-height: 1.5;
    max-width: 68ch;
}

.app-filter-head,
.app-form-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.app-form-shell {
    display: grid;
    gap: 1.1rem;
}

.app-form-grid {
    --bs-gutter-x: 0.95rem;
    --bs-gutter-y: 0.95rem;
}

.app-form-actions {
    padding: 0.95rem 1.2rem;
    border-top: 1px solid #e6edf6 !important;
    background: rgba(255, 255, 255, 0.84) !important;
}

.subproject-panel {
    border-color: #d9e5f2 !important;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.form-label {
    margin-bottom: 0.42rem;
    color: #42546d;
    font-size: var(--app-font-meta);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-control,
.form-select {
    min-height: 2.85rem;
    border-color: #cad8e7;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.98);
    color: var(--app-ink-strong);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

.form-control::placeholder {
    color: #8ba0b7;
}

.form-control:focus,
.form-select:focus {
    border-color: #84aef8;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    min-height: 7rem;
}

.btn {
    min-height: 2.7rem;
    padding: 0.58rem 1rem;
    border-radius: 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.btn-sm {
    min-height: 2.2rem;
    padding: 0.42rem 0.78rem;
    border-radius: 0.85rem;
    font-size: 0.83rem;
}

.btn-light,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-primary,
.btn-outline-warning,
.btn-outline-danger {
    color: #36506d;
    background-color: rgba(255, 255, 255, 0.92);
}

.btn-light:hover,
.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    color: var(--app-ink-strong);
}

.app-data-table thead th,
.app-detail-table thead th,
.table thead th {
    color: #41556f;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-data-table tbody td,
.app-detail-table tbody td,
.table tbody td {
    vertical-align: middle;
    color: #24354d;
    font-size: 0.9rem;
    line-height: 1.42;
}

.app-detail-list dt,
.task-summary dt {
    color: #61748d;
    font-size: var(--app-font-meta);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-detail-list dd,
.task-summary dd {
    color: var(--app-ink-strong);
    font-size: 0.92rem;
    line-height: 1.45;
}

.app-detail-metric-list dd {
    font-weight: 700;
}

.project-detail-page,
.project-detail-page .app-detail-grid > [class*="col-"],
.project-detail-page .app-detail-list dd {
    min-width: 0;
}

.project-detail-page .app-view-heading,
.project-detail-page .app-detail-list dd,
.project-detail-page .app-detail-list dd a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-detail-page .table-responsive {
    max-width: 100%;
}

.app-timeline .list-group-item,
.app-timeline-shell .task-comment {
    padding-block: 0.85rem;
}

.app-timeline-shell .task-comment {
    border: 1px solid #e4ebf4;
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.82);
    padding: 0.9rem 1rem;
}

.app-activity-card .list-group-item {
    border-color: #e6edf6;
}

.app-action-card .card-body {
    display: grid;
    gap: 0.9rem;
}

.dashboard-shell .dashboard-hero,
.dashboard-shell .metric-card,
.dashboard-shell .card,
.dashboard-shell .dashboard-alert-panel {
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.dashboard-shell .dashboard-hero h1 {
    font-size: clamp(1.55rem, 1.4rem + 1vw, 2.05rem);
}

.dashboard-shell .metric-card > span,
.dashboard-shell .metric-card-head span:first-child {
    font-size: 0.7rem;
}

.dashboard-shell .metric-card strong {
    font-size: clamp(1.45rem, 1.2rem + 0.95vw, 1.95rem);
}

.dashboard-shell .card-body {
    padding: 1rem 1.1rem;
}

.dashboard-shell h2.h5 {
    font-size: 1.08rem;
    font-weight: 760;
}

.dashboard-shell .trend-value {
    font-size: 0.84rem;
}

.dashboard-shell .provider-pie-total-value {
    font-size: 5.9px;
}

.dashboard-shell .provider-pie-label {
    font-size: 2px;
}

@media (max-width: 991.98px) {
    .app-view-header,
    .app-filter-head,
    .app-form-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-page {
        padding: 1rem;
    }

    .app-page-hero,
    .app-filter-card .card-body,
    .app-list-card .card-body,
    .app-detail-card .card-body,
    .app-form-card .card-body {
        padding: 1rem;
    }

    .app-view-heading,
    .app-page-hero h1,
    .dashboard-shell .dashboard-hero h1 {
        font-size: 1.55rem;
    }

    .dashboard-shell .metric-card strong {
        font-size: 1.6rem;
    }

    .project-detail-page .app-view-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .project-detail-page .app-view-actions > *,
    .project-detail-page .app-view-actions > form .btn {
        width: 100%;
    }

    .project-detail-page .app-detail-list dt,
    .project-detail-page .app-detail-list dd {
        width: 100%;
    }

    .project-detail-page .app-detail-list dt {
        margin-bottom: 0.2rem;
    }

    .project-detail-page .app-detail-list dd {
        margin-bottom: 0.85rem;
    }
}

/* Corporate PMO header compaction. */
.corporate-panel-header {
    grid-template-columns: minmax(0, 1.6fr) minmax(380px, 0.82fr);
    gap: 0.9rem;
    padding: 0.95rem 1rem 0.9rem;
    align-items: start;
}

.corporate-panel-title {
    font-size: clamp(1.55rem, 1.4vw, 2rem);
    line-height: 1;
    max-width: none;
}

.corporate-panel-subtitle {
    max-width: 40rem;
    margin-top: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.42;
}

.corporate-panel-hero-rail {
    gap: 0.55rem;
}

.corporate-panel-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.corporate-panel-hero-card {
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
}

.corporate-panel-hero-label {
    font-size: 0.62rem;
}

.corporate-panel-hero-card strong {
    font-size: 1.02rem;
}

.corporate-panel-hero-card small {
    font-size: 0.73rem;
}

.corporate-panel-filter-card {
    padding: 0.8rem;
    border-radius: 16px;
}

.corporate-panel-filter-card-head {
    margin-bottom: 0.6rem;
}

.corporate-panel-filter-form {
    gap: 0.55rem;
}

.corporate-panel-filter-field label {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.corporate-panel-filter-form .form-select {
    min-height: 2.45rem;
    font-size: 0.84rem;
}

.corporate-panel-filter-form select[multiple] {
    min-height: 5.1rem;
}

.corporate-panel-filter-actions {
    margin-top: 0.1rem;
}

.corporate-panel-nav-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.corporate-panel-nav-actions .btn,
.corporate-panel-filter-actions .btn {
    min-height: 2.25rem;
    font-size: 0.8rem;
}

@media (max-width: 1199.98px) {
    .corporate-panel-header {
        grid-template-columns: 1fr;
    }

    .corporate-panel-hero-metrics,
    .corporate-panel-nav-actions {
        grid-template-columns: 1fr;
    }
}

/* CoreUI-inspired pilot theme for the authenticated shell and executive dashboard. */
.app-surface-coreui {
    --coreui-sidebar: #212631;
    --coreui-sidebar-strong: #1a1f29;
    --coreui-sidebar-line: rgba(255, 255, 255, 0.08);
    --coreui-sidebar-copy: #c6d0df;
    --coreui-sidebar-muted: #7f8b9d;
    --coreui-accent: #4f6bed;
    --coreui-accent-soft: rgba(79, 107, 237, 0.18);
    --coreui-page: #f3f5fb;
    --coreui-panel: #ffffff;
    --coreui-panel-line: #d9e1ee;
    --coreui-title: #1f2a3d;
    --coreui-copy: #6d7890;
    --coreui-shadow: 0 18px 40px rgba(18, 28, 45, 0.08);
    background:
        linear-gradient(180deg, #f7f8fc 0%, #edf2f9 100%);
}

.app-surface-coreui::before,
.app-surface-coreui::after {
    display: none;
}

.app-shell-coreui {
    gap: 0;
    background: transparent;
    grid-template-columns: 232px minmax(0, 1fr);
}

.app-shell-coreui[data-sidebar-state="collapsed"] {
    grid-template-columns: 84px minmax(0, 1fr);
}

.app-shell-coreui .app-sidebar {
    width: 232px;
    padding: 0;
    border-right: 1px solid var(--coreui-sidebar-line);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 14%),
        linear-gradient(180deg, var(--coreui-sidebar) 0%, var(--coreui-sidebar-strong) 100%);
    box-shadow: none;
}

.app-shell-coreui .app-sidebar-head {
    min-height: 60px;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid var(--coreui-sidebar-line);
}

.app-shell-coreui .app-sidebar-brand {
    gap: 0.7rem;
    color: #fff;
}

.app-shell-coreui .app-sidebar-brand-badge {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell-coreui .app-sidebar-brand-copy strong {
    color: #fff;
    font-size: 0.93rem;
    letter-spacing: -0.03em;
}

.app-shell-coreui .app-sidebar-brand-kicker {
    color: var(--coreui-sidebar-muted);
    letter-spacing: 0.12em;
}

.app-shell-coreui .app-sidebar-collapse-btn,
.app-shell-coreui .app-topbar-toggle {
    color: var(--coreui-sidebar-copy);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.app-shell-coreui .app-sidebar-collapse-btn span,
.app-shell-coreui .app-topbar-toggle span {
    background: currentcolor;
}

.app-shell-coreui .app-sidebar-search {
    padding: 0.7rem 0.75rem 0.5rem;
}

.app-shell-coreui .app-sidebar-search .form-control {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.app-shell-coreui .app-sidebar-search .form-control::placeholder {
    color: var(--coreui-sidebar-muted);
}

.app-shell-coreui .app-sidebar-nav {
    padding: 0.25rem 0.5rem 0.75rem;
}

.app-shell-coreui .app-sidebar-section,
.app-shell-coreui .app-sidebar-section-static {
    margin-bottom: 0.55rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.app-shell-coreui .app-sidebar-section-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.24rem 0.7rem 0.34rem;
    color: #8d99ac;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-shell-coreui .app-sidebar-section-title {
    display: block;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.app-shell-coreui .app-sidebar-section-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: #d7e0ee;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.64rem;
    font-weight: 700;
}

.app-shell-coreui .app-sidebar-section.is-active .app-sidebar-section-label,
.app-shell-coreui .app-sidebar-section-static.is-active .app-sidebar-section-label {
    color: #dbe5f7;
}

.app-shell-coreui .app-sidebar-section-links {
    display: grid;
    gap: 0.08rem;
    margin-left: 0.35rem;
    padding: 0.08rem 0 0.08rem 0.65rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell-coreui .app-sidebar-link {
    min-height: 34px;
    padding: 0.46rem 0.68rem;
    border-radius: 0.82rem;
    color: var(--coreui-sidebar-copy);
    font-size: 0.82rem;
    font-weight: 560;
    line-height: 1.22;
    box-shadow: none;
}

.app-shell-coreui .app-sidebar-link:hover,
.app-shell-coreui .app-sidebar-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.app-shell-coreui .app-sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 3px 0 0 var(--coreui-accent),
        0 8px 18px rgba(0, 0, 0, 0.14);
}

.app-shell-coreui .app-sidebar-link-indicator,
.app-shell-coreui .app-sidebar-link-short {
    display: none;
}

.app-shell-coreui .app-sidebar-section-label::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-left: auto;
    border-right: 2px solid rgba(173, 184, 201, 0.7);
    border-bottom: 2px solid rgba(173, 184, 201, 0.7);
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.app-shell-coreui .app-sidebar-section[open] .app-sidebar-section-label::after {
    transform: rotate(225deg);
}

.app-shell-coreui .app-sidebar-section-static .app-sidebar-section-label::after {
    display: none;
}

.app-shell-coreui .app-sidebar-foot {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid var(--coreui-sidebar-line);
    background: rgba(0, 0, 0, 0.08);
}

.app-shell-coreui .app-sidebar-foot .btn-outline-secondary {
    color: #e7edf8;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.app-shell-coreui .app-sidebar-foot .btn-primary {
    border-color: var(--coreui-accent);
    background: var(--coreui-accent);
}

.app-shell-coreui .app-shell-main {
    background: transparent;
}

.app-shell-coreui .app-topbar {
    min-height: 64px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--coreui-panel-line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 18px rgba(18, 28, 45, 0.05);
    backdrop-filter: blur(10px);
}

.app-shell-coreui .app-topbar-start {
    flex: 1 1 24rem;
    min-width: 0;
}

.app-shell-coreui .app-breadcrumbs span:first-child {
    color: var(--coreui-accent);
}

.app-shell-coreui .app-breadcrumbs span,
.app-shell-coreui .app-breadcrumbs strong {
    color: var(--coreui-title);
}

.app-shell-coreui .app-topbar-center {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    min-width: 0;
}

.app-shell-coreui .app-topbar-chip {
    border-radius: 999px;
    border: 1px solid var(--coreui-panel-line);
    background: #f6f8fc;
    color: var(--coreui-copy);
    box-shadow: none;
}

.app-shell-coreui .app-topbar-chip:hover,
.app-shell-coreui .app-topbar-chip:focus {
    color: var(--coreui-accent);
    border-color: rgba(79, 107, 237, 0.24);
    background: #fff;
}

.app-shell-coreui .app-topbar-user {
    flex: 0 1 13rem;
    min-width: 9.75rem;
    max-width: min(15rem, 24vw);
    padding: 0.35rem 0.85rem;
    border-left: 1px solid var(--coreui-panel-line);
    border-radius: 0;
    background: transparent;
}

.app-shell-coreui .app-topbar-user small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--coreui-copy);
}

.app-shell-coreui .app-topbar-user strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--coreui-title);
}

.app-shell-coreui .app-page {
    background: transparent;
}

.app-shell-coreui .app-page-inner {
    max-width: none;
    padding: 1.2rem 1rem 1.35rem;
}

.app-topbar-hidden-for-pmo {
    display: none;
}

.app-shell-coreui .app-topbar-hidden-for-pmo + .app-page .app-page-inner {
    padding-top: 0.75rem;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-hero {
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 254, 0.98));
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-hero h1 {
    font-size: clamp(1.65rem, 2.1vw, 2.2rem);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .eyebrow {
    color: var(--coreui-accent);
    letter-spacing: 0.16em;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-alert-toggle {
    min-height: 72px;
    border-radius: 0.85rem;
    border: 1px solid var(--coreui-panel-line);
    background: #fff;
    box-shadow: none;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-alert-icon {
    border-radius: 0.7rem;
    background: #f3f6fe;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-alert-count {
    font-size: 1.45rem;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .card {
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background: var(--coreui-panel);
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card {
    padding: 1.15rem 1.2rem;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card::before {
    width: 4px;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card > span,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card-head span:first-child {
    margin-bottom: 0.4rem;
    color: #6e7b91;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card strong {
    color: var(--coreui-title);
    font-size: clamp(1.8rem, 2.3vw, 2.35rem);
    line-height: 1;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .card-body {
    padding: 1.2rem 1.25rem;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive h2.h5 {
    font-size: 1.1rem;
    font-weight: 760;
    color: var(--coreui-title);
    letter-spacing: -0.03em;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .text-secondary,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .small.text-secondary,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .text-secondary.small {
    color: var(--coreui-copy) !important;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .list-group-item {
    border-color: #ebf0f7;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .chart-progress,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .chart-progress-lg {
    height: 0.6rem;
    background: #edf1f7;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-alert-panel {
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-alert-item {
    border-radius: 0.75rem;
    background: #f9fbfe;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-secondary,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-primary {
    border-color: #ccd6e5;
    color: #40516a;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-secondary:hover,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-secondary:focus,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-primary:hover,
.app-shell-coreui .dashboard-shell.dashboard-shell-executive .btn-outline-primary:focus {
    border-color: var(--coreui-accent);
    background: var(--coreui-accent);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .app-shell-coreui .app-sidebar {
        width: 280px;
    }

    .app-shell-coreui .app-topbar {
        flex-wrap: wrap;
        padding-inline: 1rem;
    }

    .app-shell-coreui .app-topbar-center {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }

    .app-shell-coreui .app-topbar-end {
        flex: 0 1 auto;
        min-width: 0;
    }

    .app-shell-coreui .app-topbar-user {
        max-width: min(14rem, 32vw);
    }

    .app-shell-coreui .app-page-inner {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-hero {
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card,
    .app-shell-coreui .dashboard-shell.dashboard-shell-executive .card {
        border-radius: 0.85rem;
    }
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-hero {
    padding: 1.45rem 1.55rem;
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-hero h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    font-weight: 770;
    color: var(--coreui-title);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-hero .text-secondary {
    color: var(--coreui-copy) !important;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .metric-card,
.app-shell-coreui .dashboard-shell.dashboard-shell-main .card {
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background: var(--coreui-panel);
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .metric-card {
    padding: 1.1rem 1.15rem;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .metric-card strong {
    color: var(--coreui-title);
    font-size: clamp(1.85rem, 2.5vw, 2.5rem);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-alert-toggle {
    min-height: 70px;
    border-radius: 0.85rem;
    border: 1px solid var(--coreui-panel-line);
    background: #fff;
    box-shadow: none;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-alert-icon {
    border-radius: 0.7rem;
    background: #f3f6fe;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-alert-panel {
    border: 1px solid var(--coreui-panel-line);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: var(--coreui-shadow);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-alert-item {
    border-radius: 0.75rem;
    background: #f9fbfe;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .chart-progress,
.app-shell-coreui .dashboard-shell.dashboard-shell-main .chart-progress-lg {
    height: 0.6rem;
    background: #edf1f7;
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .trend-bar-wrap {
    background: #eef2f8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-shell-coreui .dashboard-shell.dashboard-shell-main .provider-pie-chart-wrap,
.app-shell-coreui .dashboard-shell.dashboard-shell-main .year-line-chart-frame,
.app-shell-coreui .dashboard-shell.dashboard-shell-main .qa-dedication-detail-card,
.app-shell-coreui .dashboard-shell.dashboard-shell-main .metric-card-detail-card {
    border: 1px solid #e2e8f2;
    border-radius: 0.9rem;
    background: #f9fbfe;
    box-shadow: none;
}

.app-shell-coreui .app-filter-card,
.app-shell-coreui form.card.border-0.shadow-sm,
.app-shell-coreui .card.border-0.shadow-sm.mb-4:first-child {
    border: 1px solid var(--coreui-panel-line) !important;
    border-radius: 0.95rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(246, 249, 253, 0.97)) !important;
    box-shadow: var(--coreui-shadow) !important;
}

.app-shell-coreui .app-filter-head,
.app-shell-coreui .card .border-bottom,
.app-shell-coreui .card-header {
    border-color: #e6edf6 !important;
}

.app-shell-coreui .app-section-title,
.app-shell-coreui .card h1,
.app-shell-coreui .card h2,
.app-shell-coreui .card h3 {
    color: var(--coreui-title);
}

.app-shell-coreui .app-section-copy {
    color: var(--coreui-copy);
}

.app-shell-coreui .form-control,
.app-shell-coreui .form-select,
.app-shell-coreui textarea.form-control {
    min-height: 2.7rem;
    border: 1px solid #cfd8e6;
    border-radius: 0.8rem;
    background: #fff;
    color: var(--coreui-title);
    box-shadow: none;
}

.app-shell-coreui textarea.form-control {
    min-height: auto;
}

.app-shell-coreui .form-control::placeholder {
    color: #8a95a8;
}

.app-shell-coreui .form-control:focus,
.app-shell-coreui .form-select:focus,
.app-shell-coreui .btn:focus-visible {
    border-color: rgba(79, 107, 237, 0.42);
    box-shadow: 0 0 0 0.22rem rgba(79, 107, 237, 0.12);
}

.app-shell-coreui .form-label,
.app-shell-coreui .form-check-label {
    color: #314058;
    font-weight: 700;
}

.app-shell-coreui .form-text,
.app-shell-coreui .text-muted {
    color: var(--coreui-copy) !important;
}

.app-shell-coreui .btn {
    min-height: 2.55rem;
    border-radius: 0.8rem;
    font-weight: 700;
    box-shadow: none;
}

.app-shell-coreui .btn-primary {
    border-color: var(--coreui-accent);
    background: var(--coreui-accent);
}

.app-shell-coreui .btn-primary:hover,
.app-shell-coreui .btn-primary:focus {
    border-color: #3f59d8;
    background: #3f59d8;
}

.app-shell-coreui .btn-outline-secondary,
.app-shell-coreui .btn-light {
    border-color: #ccd6e5;
    background: #fff;
    color: #43526a;
}

.app-shell-coreui .btn-outline-secondary:hover,
.app-shell-coreui .btn-outline-secondary:focus,
.app-shell-coreui .btn-light:hover,
.app-shell-coreui .btn-light:focus {
    border-color: var(--coreui-accent);
    background: #f4f7ff;
    color: var(--coreui-accent);
}

.app-shell-coreui .app-list-card,
.app-shell-coreui .table-responsive {
    border-radius: 0.95rem;
}

.app-shell-coreui .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f7f9fc;
    --bs-table-hover-bg: #f5f8fd;
    --bs-table-color: #42506a;
    margin-bottom: 0;
}

.app-shell-coreui .table thead,
.app-shell-coreui .table-light {
    --bs-table-bg: #f4f7fb;
    --bs-table-color: #5d6a80;
}

.app-shell-coreui .table thead th {
    padding-block: 0.9rem;
    border-bottom-width: 1px;
    border-color: #e5ecf5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-shell-coreui .table tbody td {
    padding-block: 0.9rem;
    border-color: #ebf0f7;
    vertical-align: middle;
}

.app-shell-coreui .table-hover > tbody > tr:hover > * {
    color: #33445f;
}

.app-shell-coreui .badge {
    border-radius: 999px;
    font-weight: 700;
}

.app-shell-coreui .modal-content {
    border: 1px solid var(--coreui-panel-line) !important;
    border-radius: 1rem !important;
    background: #fff !important;
    box-shadow: 0 22px 54px rgba(19, 30, 46, 0.18) !important;
}

.app-shell-coreui .modal-header,
.app-shell-coreui .modal-footer {
    border-color: #e6edf6;
    background: #f8fafd;
}

.app-shell-coreui .app-footer {
    color: #7c8798;
}

@media (max-width: 991.98px) {
    .app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-hero,
    .app-shell-coreui .dashboard-shell.dashboard-shell-executive .dashboard-hero {
        padding: 1rem;
    }

    .app-shell-coreui .dashboard-shell.dashboard-shell-main .metric-card,
    .app-shell-coreui .dashboard-shell.dashboard-shell-executive .metric-card {
        padding: 1rem;
    }
}

.project-search-page {
    display: grid;
    gap: 1.25rem;
}

.project-search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.project-search-hero-copy,
.project-search-hero-panel,
.project-search-shell,
.project-search-stat-card,
.project-result-card,
.project-search-empty {
    border: 1px solid rgba(151, 174, 206, 0.26);
    box-shadow: 0 20px 40px rgba(20, 38, 74, 0.07);
}

.project-search-hero-copy,
.project-search-hero-panel {
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(77, 152, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.project-search-hero-copy {
    padding: 1.75rem 1.85rem;
}

.project-search-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #1f3354;
}

.project-search-subtitle {
    max-width: 54rem;
    color: #617799;
    font-size: 1rem;
    line-height: 1.7;
}

.project-search-hero-panel {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.project-search-hero-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2f65f5;
}

.project-search-hero-panel strong {
    font-size: 1.15rem;
    color: #203453;
}

.project-search-hero-panel small {
    color: #667d9d;
    font-size: 0.88rem;
    line-height: 1.6;
}

.project-search-shell {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.96));
}

.project-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4rem;
    padding: 0.95rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(166, 186, 215, 0.34);
    background: rgba(246, 249, 255, 0.95);
}

.project-search-input-wrap:focus-within {
    border-color: rgba(47, 101, 245, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 101, 245, 0.08);
}

.project-search-input-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: #466b96;
    flex: 0 0 auto;
}

.project-search-input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.project-search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #19304e;
    font-size: 1rem;
    font-weight: 600;
}

.project-search-input::placeholder {
    color: #7990b0;
    font-weight: 500;
}

.project-search-actions {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.project-search-submit,
.project-search-reset {
    min-width: 9.5rem;
    min-height: 3.5rem;
    border-radius: 18px;
    font-weight: 700;
}

.project-search-hints,
.project-search-results-head,
.project-search-term-list,
.project-search-results-grid,
.project-result-meta,
.project-result-badges,
.project-result-dates,
.project-result-actions,
.project-search-stats {
    display: flex;
    flex-wrap: wrap;
}

.project-search-hints {
    gap: 0.6rem;
    align-items: center;
}

.project-search-hint {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7f9d;
}

.project-search-chip,
.project-search-term {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 186, 215, 0.34);
    background: rgba(248, 250, 255, 0.95);
    color: #355076;
    font-size: 0.82rem;
    font-weight: 600;
}

.project-search-stats {
    gap: 0.9rem;
}

.project-search-stat-card {
    flex: 1 1 180px;
    min-height: 8rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
}

.project-search-stat-card span {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7185a4;
}

.project-search-stat-card strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #1e3455;
}

.project-search-results-head {
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-end;
}

.project-search-results-copy {
    color: #667d9d;
}

.project-search-term-list {
    gap: 0.5rem;
}

.project-search-results-grid {
    gap: 1rem;
}

.project-result-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 320px;
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.97));
}

.project-result-card.is-detained {
    background:
        linear-gradient(180deg, rgba(255, 249, 249, 0.99), rgba(255, 244, 244, 0.96)),
        linear-gradient(135deg, rgba(212, 61, 61, 0.08), rgba(255, 255, 255, 0));
    border-color: rgba(214, 110, 110, 0.28);
}

.project-result-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.project-result-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.45rem;
}

.project-result-code {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d65f5;
}

.project-result-folio {
    font-size: 0.82rem;
    color: #6b809f;
}

.project-result-title {
    margin: 0;
    color: #1d3352;
    font-size: 1.18rem;
    line-height: 1.25;
}

.project-result-badges {
    gap: 0.45rem;
    justify-content: flex-end;
}

.project-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.95rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(47, 101, 245, 0.1);
    color: #244fbe;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-result-badge.status {
    background: rgba(26, 43, 78, 0.08);
    color: #32486c;
}

.project-result-meta {
    gap: 0.55rem;
}

.project-result-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    border-radius: 14px;
    background: rgba(244, 247, 252, 0.96);
    color: #516987;
    font-size: 0.84rem;
}

.project-result-progress {
    display: grid;
    gap: 0.5rem;
}

.project-result-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    color: #28405f;
    font-size: 0.88rem;
    font-weight: 700;
}

.project-result-progress-track {
    height: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(209, 220, 238, 0.56);
}

.project-result-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #275cf4, #42b8ee);
}

.project-result-alert {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 239, 239, 0.96);
    border: 1px solid rgba(225, 129, 129, 0.26);
    color: #7b4242;
}

.project-result-alert-head {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.project-result-alert p,
.project-result-alert small {
    color: inherit;
}

.project-result-dates {
    gap: 0.8rem;
}

.project-result-date-item {
    flex: 1 1 155px;
    padding: 0.82rem 0.9rem;
    border-radius: 16px;
    background: rgba(247, 249, 253, 0.98);
}

.project-result-date-item span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8daa;
}

.project-result-date-item strong {
    color: #27405f;
    font-size: 0.88rem;
}

.project-result-actions {
    gap: 0.75rem;
}

.project-result-actions .btn {
    min-width: 9rem;
    min-height: 2.8rem;
    border-radius: 16px;
    font-weight: 700;
}

.project-search-empty {
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.96));
    text-align: center;
}

.project-search-empty strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #1d3352;
    font-size: 1.08rem;
}

.project-search-empty p {
    color: #667d9d;
    max-width: 42rem;
    margin-inline: auto;
}

@media (max-width: 991.98px) {
    .project-search-hero {
        grid-template-columns: 1fr;
    }

    .project-search-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .project-search-actions {
        width: 100%;
    }

    .project-search-submit,
    .project-search-reset {
        flex: 1 1 0;
        min-width: 0;
    }

    .project-result-card {
        min-width: 0;
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    .project-search-hero-copy,
    .project-search-hero-panel,
    .project-search-shell,
    .project-result-card,
    .project-search-empty {
        border-radius: 20px;
    }

    .project-search-title {
        font-size: 1.7rem;
    }

    .project-search-input-wrap {
        min-height: 3.5rem;
        padding: 0.78rem 0.95rem;
    }

    .project-result-card-head,
    .project-search-results-head {
        flex-direction: column;
        align-items: stretch;
    }

    .project-result-badges,
    .project-search-actions,
    .project-result-actions {
        width: 100%;
    }

    .project-result-actions .btn {
        flex: 1 1 100%;
    }
}

/* Corporate PMO panel refresh: cleaner hierarchy, lighter controls, board-first layout. */
.corporate-panel-shell {
    padding: 0.35rem 0 0.85rem;
    border-radius: 28px;
}

.corporate-panel-backdrop {
    border-radius: 28px;
    box-shadow:
        0 18px 48px rgba(15, 39, 66, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.corporate-panel-header {
    display: grid;
    gap: 0.7rem;
    align-items: start;
    padding: 0.95rem;
    margin-bottom: 0.7rem;
    border-radius: 24px;
}

.corporate-panel-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 0.85rem;
    align-items: stretch;
    min-width: 0;
}

.corporate-panel-header-copy {
    max-width: 44rem;
}

.corporate-panel-title {
    font-size: clamp(1.8rem, 2vw, 2.7rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 10ch;
}

.corporate-panel-subtitle {
    max-width: 44rem;
    margin-top: 0.26rem;
    font-size: 0.79rem;
    line-height: 1.42;
    color: rgba(239, 247, 255, 0.8);
}

.corporate-panel-header-badges {
    gap: 0.45rem;
    margin-top: 0.38rem;
}

.corporate-header-badge {
    padding: 0.34rem 0.72rem;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
}

.corporate-panel-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.corporate-panel-summary-card {
    display: grid;
    gap: 0.18rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.corporate-panel-summary-card span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(239, 247, 255, 0.72);
    font-weight: 700;
}

.corporate-panel-summary-card strong {
    font-size: 1.24rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #fff;
}

.corporate-panel-summary-card small {
    font-size: 0.71rem;
    color: rgba(239, 247, 255, 0.74);
}

.corporate-panel-controls {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.corporate-panel-controls summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    list-style: none;
    cursor: pointer;
}

.corporate-panel-controls summary::-webkit-details-marker {
    display: none;
}

.corporate-panel-controls-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fbff;
}

.corporate-panel-controls-copy {
    margin-top: 0.16rem;
    font-size: 0.8rem;
    color: rgba(239, 247, 255, 0.72);
}

.corporate-panel-controls-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.4rem;
    min-height: 2.25rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f7fbff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.corporate-panel-controls[open] .corporate-panel-controls-toggle {
    background: rgba(255, 255, 255, 0.14);
}

.corporate-panel-actions {
    padding: 0 0.88rem 0.88rem;
}

.corporate-panel-filter-card {
    padding: 1rem 1rem 1.02rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.corporate-panel-filter-card-head,
.corporate-panel-nav-actions-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.corporate-panel-filter-card-head {
    margin-bottom: 0.8rem;
}

.corporate-panel-filter-title,
.corporate-panel-nav-actions-title {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: #f8fbff;
}

.corporate-panel-filter-subtitle {
    margin-top: 0.16rem;
    font-size: 0.76rem;
    line-height: 1.38;
    color: rgba(239, 247, 255, 0.72);
}

.corporate-panel-filter-caption {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: rgba(239, 247, 255, 0.62);
    text-transform: uppercase;
}

.corporate-panel-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.corporate-panel-filter-grid {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.corporate-panel-filter-field label {
    margin-bottom: 0.28rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(239, 247, 255, 0.8);
}

.corporate-panel-filter-form .form-select {
    min-height: 2.52rem;
    font-size: 0.83rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
}

.corporate-panel-filter-form select[multiple] {
    min-height: 7rem;
    padding-block: 0.45rem;
}

.corporate-panel-filter-form select[multiple] option {
    padding: 0.15rem 0.2rem;
}

.corporate-panel-filter-actions-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.corporate-panel-filter-actions-copy {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(239, 247, 255, 0.68);
    max-width: 20rem;
}

.corporate-panel-filter-actions,
.corporate-panel-nav-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.corporate-panel-filter-actions {
    flex-direction: row;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.corporate-panel-filter-actions .btn,
.corporate-panel-filter-actions a {
    width: auto;
    min-width: 10.5rem;
}

.corporate-panel-nav-actions-shell {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.corporate-panel-nav-actions .btn,
.corporate-panel-filter-actions .btn,
.corporate-panel-actions .btn {
    min-height: 2.3rem;
    font-size: 0.79rem;
    border-radius: 0.82rem;
}

.corporate-panel-nav-actions .btn {
    min-width: 0;
    padding-inline: 0.9rem;
}

.corporate-panel-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.corporate-panel-main {
    border-radius: 24px;
    min-width: 0;
    padding: 0.66rem 0.7rem 0.74rem;
}

.corporate-panel-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0.04rem 0 0.28rem;
}

.corporate-panel-board-title {
    font-size: 1rem;
}

.corporate-panel-board-subtitle {
    margin-top: 0.16rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.corporate-panel-quicknav {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.02rem 0 0.34rem;
    margin-bottom: 0.36rem;
}

.corporate-panel-quicknav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid #d8e4f1;
    border-radius: 999px;
    background: #fff;
    color: #34506f;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.73rem;
    font-weight: 700;
}

.corporate-panel-quicknav-item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.34rem;
    border-radius: 999px;
    background: #edf3fb;
    color: #27415e;
    font-size: 0.7rem;
}

.corporate-panel-lanes-shell {
    min-width: 0;
}

.corporate-panel-lanes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}

.corporate-panel-lanes-hint {
    font-size: 0.72rem;
    color: #6c7f95;
}

.corporate-panel-lanes-controls {
    display: flex;
    gap: 0.45rem;
}

.corporate-panel-lanes-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    border: 1px solid #d6e3f1;
    background: #fff;
    color: #284466;
    font-weight: 700;
}

.corporate-panel-lanes {
    gap: 0.75rem;
}

.corporate-panel-lane {
    flex-basis: 318px;
    max-width: 318px;
    min-height: 500px;
    padding: 0.82rem;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.06);
}

.corporate-panel-lane-empty {
    flex-basis: 268px;
    max-width: 268px;
    min-height: 232px;
    opacity: 0.88;
}

.corporate-panel-lane-planning,
.corporate-panel-lane-qa,
.corporate-panel-lane-approved {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 253, 0.84)),
        rgba(255, 255, 255, 0.76);
    color: var(--corporate-deep);
}

.corporate-panel-lane-planning::before {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.92), rgba(125, 211, 252, 0.72));
}

.corporate-panel-lane-qa::before {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(16, 185, 129, 0.72));
}

.corporate-panel-lane-approved::before {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), rgba(110, 231, 183, 0.72));
}

.corporate-panel-lane-qa .corporate-panel-lane-title,
.corporate-panel-lane-qa .corporate-panel-lane-kicker,
.corporate-panel-lane-qa .corporate-panel-lane-count,
.corporate-panel-lane-qa .corporate-panel-lane-rule {
    color: var(--corporate-deep);
}

.corporate-panel-lane-qa .corporate-panel-lane-count {
    background: #edf3fb;
    border: 1px solid #d6e3f1;
}

.corporate-panel-lane-head {
    margin-bottom: 0.7rem;
    padding: 0.7rem 0.72rem;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    box-shadow:
        0 8px 18px rgba(15, 39, 66, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.corporate-panel-lane-kicker {
    margin-bottom: 0.18rem;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f6f95;
}

.corporate-panel-lane-title {
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #22344d;
}

.corporate-panel-lane-rule {
    margin-top: 0.28rem;
    font-size: 0.71rem;
    line-height: 1.3;
    color: #6a7d94;
}

.corporate-panel-lane-count {
    min-width: 2rem;
    padding: 0.32rem 0.52rem;
    font-size: 0.73rem;
    font-weight: 800;
    border-radius: 999px;
    background: #edf3fb;
    border: 1px solid #d6e3f1;
    color: #284466;
}

.corporate-panel-lane-planning .corporate-panel-lane-kicker,
.corporate-panel-lane-planning .corporate-panel-lane-title {
    color: #2563eb;
}

.corporate-panel-lane-planning .corporate-panel-lane-head {
    border-color: #cfe0fb;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 251, 255, 0.95));
    box-shadow:
        inset 4px 0 0 #60a5fa,
        0 8px 18px rgba(37, 99, 235, 0.08);
}

.corporate-panel-lane-planning .corporate-panel-lane-count {
    background: #eaf2ff;
    border-color: #c7dcfb;
    color: #2563eb;
}

.corporate-panel-card-stack {
    gap: 0.55rem;
}

.corporate-panel-empty {
    padding: 0.88rem 0.78rem;
    border-radius: 16px;
    border: 1px dashed rgba(126, 143, 165, 0.32);
    background: rgba(255, 255, 255, 0.64);
    color: #73859a;
    text-align: center;
    font-size: 0.79rem;
}

.corporate-project-card {
    padding: 0.72rem 0.78rem 0.7rem;
    border-radius: 14px;
    border: 1px solid #d8e3ef;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
    box-shadow:
        0 10px 22px rgba(15, 39, 66, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.corporate-project-card::before {
    width: 92px;
    height: 92px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    transform: translate(32%, -32%);
}

.corporate-panel-lane-qa .corporate-project-card,
.corporate-panel-lane-approved .corporate-project-card,
.corporate-panel-lane-planning .corporate-project-card {
    border-color: #d8e3ef;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
    box-shadow:
        0 10px 22px rgba(15, 39, 66, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.corporate-panel-lane-qa .corporate-panel-lane-kicker,
.corporate-panel-lane-qa .corporate-panel-lane-title {
    color: #0f5bd7;
}

.corporate-panel-lane-qa .corporate-panel-lane-head {
    border-color: #c8e5ef;
    background:
        linear-gradient(180deg, rgba(238, 250, 253, 0.98), rgba(248, 251, 255, 0.95));
    box-shadow:
        inset 4px 0 0 #22c1dc,
        0 8px 18px rgba(15, 91, 215, 0.08);
}

.corporate-panel-lane-qa .corporate-panel-lane-count {
    background: #e7f4ff;
    border-color: #bfe0fb;
    color: #0f5bd7;
}

.corporate-panel-lane-approved .corporate-panel-lane-kicker,
.corporate-panel-lane-approved .corporate-panel-lane-title {
    color: #0f8a60;
}

.corporate-panel-lane-approved .corporate-panel-lane-head {
    border-color: #cfe9da;
    background:
        linear-gradient(180deg, rgba(239, 252, 245, 0.98), rgba(248, 251, 255, 0.95));
    box-shadow:
        inset 4px 0 0 #34d399,
        0 8px 18px rgba(15, 138, 96, 0.08);
}

.corporate-panel-lane-approved .corporate-panel-lane-count {
    background: #e9f8f1;
    border-color: #c4ebd8;
    color: #0f8a60;
}

.corporate-project-card:hover,
.corporate-panel-lane-qa .corporate-project-card:hover,
.corporate-panel-lane-approved .corporate-project-card:hover,
.corporate-panel-lane-planning .corporate-project-card:hover {
    transform: translateY(-2px);
    border-color: #bfd2e8;
    box-shadow:
        0 16px 28px rgba(15, 39, 66, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.corporate-project-card-body {
    margin: 0;
}

.corporate-project-card-meta {
    font-size: 0.68rem;
    gap: 0.3rem;
}

.corporate-project-card h3 {
    margin-bottom: 0.18rem;
    font-size: 0.84rem;
    line-height: 1.2;
    color: #24364d;
}

.corporate-project-card p,
.corporate-project-card-footer {
    font-size: 0.72rem;
    line-height: 1.3;
}

.corporate-project-card p {
    display: -webkit-box;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #60748d;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.corporate-project-progress {
    margin: 0.48rem 0 0;
}

.corporate-project-progress-bar {
    height: 6px;
}

.corporate-project-progress-label {
    margin-bottom: 0.28rem;
}

.corporate-project-progress-label span {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.corporate-project-progress-label strong {
    font-size: 0.92rem;
    line-height: 1;
    color: #24364d;
}

.corporate-project-card-footer {
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.corporate-project-card-footer .btn {
    min-height: 2rem;
    padding: 0.22rem 0.72rem;
    border-radius: 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.corporate-panel-qa .corporate-project-card h3,
.corporate-panel-lane-qa .corporate-project-card h3,
.corporate-panel-lane-qa .corporate-project-card p,
.corporate-panel-lane-qa .corporate-project-card-footer,
.corporate-panel-lane-qa .corporate-project-progress-label,
.corporate-panel-lane-approved .corporate-project-card h3,
.corporate-panel-lane-approved .corporate-project-card p,
.corporate-panel-lane-approved .corporate-project-card-footer,
.corporate-panel-lane-approved .corporate-project-progress-label {
    color: inherit;
}

@media (max-width: 1199.98px) {
    .corporate-panel-header-top {
        grid-template-columns: 1fr;
    }

    .corporate-panel-header-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .corporate-panel-title {
        max-width: none;
    }

    .corporate-panel-filter-form {
        grid-template-columns: 1fr;
    }

    .corporate-panel-filter-grid {
        grid-template-columns: 1fr;
    }

    .corporate-panel-filter-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .corporate-panel-main-head {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .corporate-panel-header {
        padding: 0.8rem;
    }

    .corporate-panel-header-stats {
        grid-template-columns: 1fr;
    }

    .corporate-panel-controls summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .corporate-panel-controls-toggle {
        min-width: 0;
    }

    .corporate-panel-filter-card-head,
    .corporate-panel-nav-actions-shell,
    .corporate-panel-lanes-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .corporate-panel-nav-actions,
    .corporate-panel-filter-actions {
        width: 100%;
    }

    .corporate-panel-filter-actions-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .corporate-panel-filter-actions-copy {
        max-width: none;
    }

    .corporate-panel-nav-actions .btn,
    .corporate-panel-filter-actions .btn {
        flex: 1 1 100%;
    }

    .corporate-panel-filter-actions .btn,
    .corporate-panel-filter-actions a {
        width: 100%;
    }
}

/* ===== CP: Command Bar — professional header redesign ===== */

.corporate-panel-shell .corporate-panel-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
}

.cp-command-bar {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 1.4rem 1.6rem;
    flex-wrap: wrap;
}

.cp-brand {
    flex: 0 0 auto;
    padding-left: 0.9rem;
    box-shadow: inset 3px 0 0 rgba(69, 196, 255, 0.55);
}

.cp-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.59rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(160, 195, 255, 0.55);
    font-weight: 700;
}

.cp-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1;
}

.cp-kpi-bar {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 0.6rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 3rem;
}

.cp-kpi-num {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.cp-kpi-warn .cp-kpi-num {
    color: #fbbf24;
    text-shadow: 0 0 24px rgba(251, 191, 36, 0.4);
}

.cp-kpi-ok .cp-kpi-num {
    color: #34d399;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.4);
}

.cp-kpi-label {
    display: block;
    font-size: 0.57rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(150, 185, 235, 0.62);
    white-space: nowrap;
}

.cp-kpi-sep {
    width: 1px;
    height: 1.8rem;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.cp-header-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cp-meta-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.68rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(185, 212, 255, 0.82);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

/* Filter controls: separator bar inside header */
.corporate-panel-shell .corporate-panel-controls {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 0 30px 30px !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.corporate-panel-shell .corporate-panel-controls summary {
    padding: 0.7rem 1.6rem !important;
}

/* Board header: one compact row for title + quicknav + controls */
.cp-board-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0 0.1rem;
    flex-wrap: wrap;
}

.cp-board-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cp-board-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #22344d;
}

.cp-board-hint {
    font-size: 0.65rem;
    color: #8a9bb0;
}

.cp-board-header .corporate-panel-quicknav {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-bottom: 0;
}

.cp-board-header .corporate-panel-lanes-controls {
    flex-shrink: 0;
}

/* Card status accent variants */
.corporate-project-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.32rem;
}

.corporate-project-card-meta-qa,
.corporate-project-card-meta-jp {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.14);
    color: #2563eb;
}

.corporate-project-card-meta-jp {
    background: rgba(100, 116, 139, 0.07);
    border-color: rgba(100, 116, 139, 0.2);
    color: #475569;
}

.corporate-project-card-detained {
    border-left: 3px solid #f59e0b !important;
    background: linear-gradient(180deg, #fffbf0 0%, #fffdf6 100%) !important;
}

.corporate-project-card-approved {
    border-left: 3px solid #10b981 !important;
    background: linear-gradient(180deg, #f0fdf9 0%, #f7fffe 100%) !important;
}

.corporate-project-card-rejected {
    border-left: 3px solid #ef4444 !important;
    background: linear-gradient(180deg, #fff2f2 0%, #fff8f8 100%) !important;
}

/* Dark mode: cp-board area */
[data-theme="dark"] .cp-board-title {
    color: #c8d8f0;
}

[data-theme="dark"] .cp-board-hint {
    color: #4a6080;
}

[data-theme="dark"] .corporate-project-card-meta-qa {
    background: rgba(79, 107, 237, 0.15) !important;
    border-color: rgba(79, 107, 237, 0.25) !important;
    color: #8ba4f5 !important;
}

[data-theme="dark"] .corporate-project-card-meta-jp {
    background: rgba(100, 130, 160, 0.12) !important;
    border-color: rgba(100, 130, 160, 0.22) !important;
    color: #7a95b5 !important;
}

[data-theme="dark"] .corporate-project-card-detained {
    background: linear-gradient(180deg, #1c1608 0%, #1a1500 100%) !important;
    border-left-color: #f59e0b !important;
}

[data-theme="dark"] .corporate-project-card-approved {
    background: linear-gradient(180deg, #041c12 0%, #031510 100%) !important;
    border-left-color: #34d399 !important;
}

[data-theme="dark"] .corporate-project-card-rejected {
    background: linear-gradient(180deg, #1c0606 0%, #160404 100%) !important;
    border-left-color: #f87171 !important;
}

.app-shell-coreui .app-page-inner:has(.corporate-panel-shell) {
    padding-left: 0.65rem;
}

.app-floating-nav-toggle {
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 26;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.22rem;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.app-floating-nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentcolor;
}

@media (min-width: 992px) {
    .app-shell[data-sidebar-state="collapsed"],
    .app-shell-coreui[data-sidebar-state="collapsed"] {
        grid-template-columns: 84px minmax(0, 1fr) !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar {
        width: 84px !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow-x: hidden;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-head,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-head {
        display: grid !important;
        justify-items: center !important;
        gap: 0.5rem !important;
        padding: 0.8rem 0.4rem !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-brand-copy,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-search,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-foot,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-label,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-copy,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-indicator,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-brand-copy,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-search,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-foot,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-label,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-copy,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-indicator {
        display: none !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-nav,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-nav {
        padding: 0.35rem 0.25rem 0.85rem !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-static,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-static {
        margin-bottom: 0.55rem !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-section-links,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-section-links {
        display: grid !important;
        gap: 0.45rem !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        justify-items: center !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 3rem !important;
        min-height: 3rem !important;
        padding: 0 !important;
        margin-inline: auto !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0.95rem !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-link-short,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-link-short {
        display: inline-flex !important;
        min-width: 1.75rem !important;
        height: 1.75rem !important;
        background: rgba(255, 255, 255, 0.12) !important;
        color: #eff6ff !important;
        font-size: 0.68rem !important;
        font-weight: 800 !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-collapse-btn,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-collapse-btn {
        display: inline-flex !important;
        position: static !important;
        width: 2.55rem !important;
        height: 2.55rem !important;
        margin: 0 !important;
        transform: none !important;
    }

    .app-shell[data-sidebar-state="collapsed"] .app-topbar-toggle,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-topbar-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 991.98px) {
    .app-shell,
    .app-shell-coreui,
    .app-shell[data-sidebar-state="collapsed"],
    .app-shell-coreui[data-sidebar-state="collapsed"] {
        grid-template-columns: 1fr !important;
    }

    .app-shell .app-sidebar,
    .app-shell-coreui .app-sidebar,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar {
        width: min(88vw, 320px) !important;
        padding-inline: 0 !important;
        transform: translateX(-104%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease !important;
    }

    .app-shell.is-sidebar-open .app-sidebar,
    .app-shell-coreui.is-sidebar-open .app-sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .app-shell .app-sidebar-collapse-btn,
    .app-shell-coreui .app-sidebar-collapse-btn,
    .app-shell[data-sidebar-state="collapsed"] .app-sidebar-collapse-btn,
    .app-shell-coreui[data-sidebar-state="collapsed"] .app-sidebar-collapse-btn {
        display: none !important;
    }

    .app-shell-pmo:not(.is-sidebar-open) .app-floating-nav-toggle {
        display: inline-flex;
    }

    .app-shell.is-sidebar-open .app-floating-nav-toggle,
    .app-shell-coreui.is-sidebar-open .app-floating-nav-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

/* Global uniformity pass: shared executive polish across dashboards, forms, lists and dialogs. */
.app-shell-coreui .app-page-inner {
    display: grid;
    gap: 1rem;
}

.app-page-hero,
.dashboard-shell .dashboard-hero {
    position: relative;
    overflow: hidden;
    align-items: flex-end !important;
}

.app-page-hero::before,
.dashboard-shell .dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.09), transparent 24%),
        radial-gradient(circle at 8% 100%, rgba(14, 165, 233, 0.07), transparent 22%);
    pointer-events: none;
}

.app-page-hero > *,
.dashboard-shell .dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.app-page-hero .btn,
.dashboard-shell .dashboard-hero .btn,
.app-topbar-chip,
.app-filter-actions .btn {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-page-hero-actions,
.dashboard-shell .dashboard-hero form,
.dashboard-shell .dashboard-hero > div:last-child {
    flex-wrap: wrap;
}

.app-filter-card,
.app-list-card,
.app-detail-card,
.app-form-card {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.app-filter-card::before,
.app-detail-card::before,
.app-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(158% 108% at 8% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.18) 20%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(122% 78% at 100% 12%, rgba(199, 213, 230, 0.44) 0%, rgba(199, 213, 230, 0.1) 24%, rgba(199, 213, 230, 0) 46%),
        radial-gradient(138% 94% at 18% 100%, rgba(227, 235, 245, 0.54) 0%, rgba(227, 235, 245, 0.12) 24%, rgba(227, 235, 245, 0) 44%),
        linear-gradient(136deg, rgba(255, 255, 255, 0.58) 0%, rgba(244, 248, 253, 0.28) 28%, rgba(228, 236, 245, 0.22) 48%, rgba(255, 255, 255, 0.1) 100%),
        linear-gradient(164deg, rgba(255, 255, 255, 0) 0%, rgba(220, 229, 239, 0.18) 34%, rgba(255, 255, 255, 0) 58%, rgba(214, 224, 236, 0.16) 76%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.94;
    z-index: 0;
}

.app-filter-card .card-body,
.app-list-card .card-body,
.app-detail-card .card-body,
.app-form-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.35rem;
}

.app-filter-card .row.g-3,
.app-filter-card .row.g-4 {
    --bs-gutter-x: 0.95rem;
    --bs-gutter-y: 0.95rem;
}

.app-filter-head {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
}

.app-section-title {
    font-size: 1rem;
    font-weight: 800;
}

.app-section-copy,
.app-page-hero-meta,
.text-secondary.small,
.small.text-secondary {
    color: #61748d !important;
}

.form-label {
    margin-bottom: 0.42rem;
    color: var(--app-ink-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-text {
    color: #6d8098;
    font-size: 0.79rem;
}

.form-check-label {
    color: var(--app-ink);
}

.form-check-input {
    border-color: #b8c9dc;
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: var(--app-brand);
    border-color: var(--app-brand);
}

.app-shell-coreui .form-control,
.app-shell-coreui .form-select,
.app-shell-coreui textarea.form-control,
.login-page .form-control {
    min-height: 2.8rem;
    border-width: 1px;
    border-color: #c2d0df;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.app-shell-coreui textarea.form-control {
    min-height: 7.5rem;
}

.app-shell-coreui .form-control:focus,
.app-shell-coreui .form-select:focus,
.app-shell-coreui textarea.form-control:focus,
.login-page .form-control:focus {
    border-color: #93b7ff;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.12) !important;
}

.btn {
    border-radius: 0.9rem;
}

.btn-sm {
    border-radius: 0.75rem;
}

.btn-light {
    border-color: #c2d0df;
    background: #f8fbff;
    color: var(--app-ink-strong);
}

.btn-light:hover,
.btn-light:focus {
    border-color: #b7c8db;
    background: #ffffff;
    color: var(--app-ink-strong);
}

.btn-outline-secondary,
.btn-outline-primary {
    background: rgba(255, 255, 255, 0.72);
}

.badge {
    padding: 0.45rem 0.62rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.table-responsive {
    border-radius: inherit;
}

.app-data-table,
.table {
    --bs-table-bg: transparent;
}

.app-data-table thead th,
.table thead th {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    border-bottom-width: 1px;
    border-color: #cdd9e7;
    color: #62748c;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-data-table tbody td,
.table tbody td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    border-color: #d8e3ef;
    vertical-align: middle;
}

.app-data-table tbody tr:hover,
.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(37, 99, 235, 0.035);
    color: inherit;
}

.app-cell-code,
.fw-semibold,
.table a.text-decoration-none {
    color: var(--app-ink-strong);
}

.project-list-page .app-data-table th:nth-child(2),
.project-list-page .app-data-table td:nth-child(2) {
    white-space: nowrap;
}

.modal-content {
    border-radius: 1.25rem !important;
}

.modal-header {
    align-items: flex-start;
}

.modal-title,
.modal-header h2,
.modal-header .h5,
.modal-header .fs-5 {
    color: var(--app-ink-strong);
    font-weight: 760;
    letter-spacing: -0.02em;
}

.modal-body .table thead th {
    background: rgba(246, 249, 253, 0.94);
}

.dashboard-shell-personal .metric-card,
.dashboard-shell-personal .card {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.login-page .login-card,
.login-page .login-showcase-panel {
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.login-page .login-showcase-copy,
.login-page .text-secondary.small {
    color: rgba(226, 232, 240, 0.82);
}

@media (max-width: 991.98px) {
    .app-page-hero,
    .dashboard-shell .dashboard-hero {
        padding: 1.1rem 1rem;
    }

    .app-page-hero,
    .dashboard-shell .dashboard-hero,
    .app-filter-head {
        align-items: stretch !important;
    }

    .app-page-hero-actions,
    .app-filter-actions {
        width: 100%;
    }

    .app-page-hero-actions .btn,
    .app-filter-actions .btn {
        flex: 1 1 100%;
    }

    .card-body,
    .modal-body,
    .app-filter-card .card-body,
    .app-list-card .card-body {
        padding: 1rem 1rem;
    }

    .app-data-table thead th,
    .table thead th {
        font-size: 0.72rem;
    }
}

.page-shell {
    display: grid;
    gap: 1.5rem;
}

.panel-card {
    border: 1px solid #ccd8e6;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(132, 196, 255, 0.09), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.panel-card--hero {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.panel-card__body {
    padding: 1.6rem 1.7rem;
}

.hero-title {
    margin: 0;
    color: #24344d;
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-copy,
.section-copy {
    color: #60728b;
    max-width: 64ch;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid #c3d3e6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #385273;
    font-size: 0.8rem;
    font-weight: 700;
}

.section-title {
    color: #24344d;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.info-tile {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid #ccd8e6;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.82);
}

.info-tile__label {
    color: #6a7d95;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-tile__value {
    color: #25364f;
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.app-toast-container {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 280px;
    max-width: 440px;
    padding: 0.85rem 0.95rem 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
    border-left: 3.5px solid #64748b;
    font-size: 0.875rem;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(calc(100% + 2rem));
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(.22,.68,0,1.18);
    will-change: transform, opacity;
}
.app-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.app-toast-success { border-left-color: #16a34a; }
.app-toast-danger  { border-left-color: #dc2626; }
.app-toast-warning { border-left-color: #d97706; }
.app-toast-info    { border-left-color: #0284c7; }

.app-toast-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    background: #64748b;
    margin-top: 1px;
}
.app-toast-success .app-toast-icon { background: #16a34a; }
.app-toast-danger  .app-toast-icon { background: #dc2626; }
.app-toast-warning .app-toast-icon { background: #d97706; }
.app-toast-info    .app-toast-icon { background: #0284c7; }

.app-toast-body {
    flex: 1;
    color: #1e293b;
    line-height: 1.45;
}

.app-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1;
    margin-top: -1px;
}
.app-toast-close:hover { color: #475569; }

/* ============================================================
   DASHBOARD – DONUT CHART
   ============================================================ */
.status-donut-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.status-donut {
    position: relative;
    flex-shrink: 0;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #e2e8f0;
}

.status-donut-hole {
    position: absolute;
    inset: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
}
.status-donut-hole strong {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}
.status-donut-hole span {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}

.status-donut-legend {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.status-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #374151;
    min-width: 0;
}
.status-donut-legend-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.status-donut-legend-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-donut-legend-count {
    font-weight: 700;
    color: #1e293b;
}

/* ============================================================
   FETCH FILTER – LOADING STATE
   ============================================================ */
#project-results {
    transition: opacity 0.15s ease;
}
#project-results[aria-busy="true"] {
    opacity: 0.45;
    pointer-events: none;
}
#project-results[aria-busy="true"]::after {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #dbe4ef;
    border-top-color: #4361ee;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.project-results-wrap {
    position: relative;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* filter submit button loading state */
.project-filter-submit.is-loading {
    opacity: 0.65;
    pointer-events: none;
}
.project-filter-submit.is-loading::after {
    content: '';
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 0.5em;
    vertical-align: middle;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    gap: 0.6rem;
    text-align: center;
}
.app-empty-state-icon {
    width: 56px;
    height: 56px;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}
.app-empty-state-icon svg {
    width: 100%;
    height: 100%;
}
.app-empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}
.app-empty-state-copy {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    max-width: 36ch;
}

/* ── Dark mode — coreui shell overrides (must be last) ─────── */
[data-theme="dark"] .app-surface-coreui {
    --coreui-page: #0a1120;
    --coreui-panel: #141f35;
    --coreui-panel-line: #1e3050;
    --coreui-title: #e2ecff;
    --coreui-copy: #7a90b0;
    --coreui-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #06091a 0%, #0a1120 100%);
}

[data-theme="dark"] .app-shell-coreui .app-topbar {
    background: rgba(10, 17, 32, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Sidebar: misma tonalidad que el fondo de página → sensación de amplitud */
[data-theme="dark"] .app-shell-coreui .app-sidebar {
    background: linear-gradient(180deg, #06091a 0%, #0a1120 100%) !important;
    border-right-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .app-shell-coreui .app-sidebar-head {
    border-bottom: none !important;
}

[data-theme="dark"] .app-shell-coreui .app-sidebar-section-label {
    border-top-color: rgba(255, 255, 255, 0.04) !important;
}

/* Cards y filter cards — sobreescribir !important del coreui */
[data-theme="dark"] .app-shell-coreui .app-filter-card,
[data-theme="dark"] .app-shell-coreui form.card.border-0.shadow-sm,
[data-theme="dark"] .app-shell-coreui .card.border-0.shadow-sm.mb-4:first-child {
    background: linear-gradient(180deg, #19253d, #141f35) !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .app-shell-coreui .card,
[data-theme="dark"] .app-shell-coreui .modal-content {
    background: linear-gradient(180deg, #19253d 0%, #141f35 100%) !important;
    border-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .app-shell-coreui .card-footer,
[data-theme="dark"] .app-shell-coreui .card-header,
[data-theme="dark"] .app-shell-coreui .modal-header {
    background: rgba(8, 14, 28, 0.5) !important;
    border-color: #1e3050 !important;
}

/* Dashboard hero header */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .dashboard-hero,
[data-theme="dark"] .app-shell-coreui .project-list-page > .d-flex:first-child,
[data-theme="dark"] .app-shell-coreui .planning-list-page > .d-flex:first-child,
[data-theme="dark"] .app-shell-coreui div.d-flex.justify-content-between.align-items-center.mb-4:first-child {
    background: radial-gradient(circle at top right, rgba(79, 107, 237, 0.12), transparent 30%),
        linear-gradient(180deg, #1a2640, #141f35) !important;
    border-color: #1e3050 !important;
}

/* Metric cards */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .metric-card,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card {
    background: linear-gradient(180deg, #19253d 0%, #141f35 100%) !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .metric-card {
    box-shadow: none !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .metric-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Alertas y paneles */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .dashboard-alert-panel,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .dashboard-alert-toggle {
    background: #141f35 !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .dashboard-alert-item {
    background: #0f1a2e !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .dashboard-alert-icon {
    background: rgba(79, 107, 237, 0.15) !important;
}

/* Barras de progreso y charts */
[data-theme="dark"] .app-shell-coreui .chart-progress,
[data-theme="dark"] .app-shell-coreui .chart-progress-lg,
[data-theme="dark"] .app-shell-coreui .trend-bar-wrap {
    background: #1e3050 !important;
}

[data-theme="dark"] .app-shell-coreui .provider-pie-chart-wrap,
[data-theme="dark"] .app-shell-coreui .year-line-chart-frame,
[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-card,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-card {
    background: #0f1a2e !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-item,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-item {
    background: #15233a !important;
    border-color: #274063 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-link,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-link {
    color: #8bb8ff !important;
}

[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-link:hover,
[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-link:focus,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-link:hover,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-link:focus {
    color: #b7d3ff !important;
}

[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-value,
[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-item .small,
[data-theme="dark"] .app-shell-coreui .qa-dedication-detail-item .text-secondary,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-value,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-item .small,
[data-theme="dark"] .app-shell-coreui .metric-card-detail-item .text-secondary {
    color: #9fb3d1 !important;
}

/* Form inputs */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
    background-color: #0f1a2e !important;
    border-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: #4a6080 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #0f1a2e !important;
    border-color: #4f6bed !important;
    color: #c8d8f0 !important;
    box-shadow: 0 0 0 3px rgba(79, 107, 237, 0.2) !important;
}

/* Tablas */
[data-theme="dark"] .table,
[data-theme="dark"] .app-data-table {
    --bs-table-bg: transparent !important;
    --bs-table-border-color: #1e3050 !important;
    --bs-table-striped-bg: rgba(30, 48, 80, 0.3) !important;
    --bs-table-hover-bg: rgba(79, 107, 237, 0.1) !important;
    color: #c8d8f0 !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .table th {
    border-color: #1e3050 !important;
    color: #7a90b0 !important;
    background: #0f1a2e !important;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table tr {
    border-color: #1e3050 !important;
}

/* Botones outline */
[data-theme="dark"] .btn-outline-secondary {
    border-color: #2a4066 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #1e3050 !important;
    color: #e2ecff !important;
}

[data-theme="dark"] .btn-light,
[data-theme="dark"] .btn-outline-light {
    background-color: #19253d !important;
    border-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .btn-light:hover,
[data-theme="dark"] .btn-light.active {
    background-color: #1e3050 !important;
    color: #e2ecff !important;
}

/* Texto y headings */
[data-theme="dark"] .app-shell-coreui .app-section-title,
[data-theme="dark"] .app-shell-coreui .card h1,
[data-theme="dark"] .app-shell-coreui .card h2,
[data-theme="dark"] .app-shell-coreui .card h3,
[data-theme="dark"] .app-shell-coreui .card h4,
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 {
    color: #e2ecff;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] small {
    color: #7a90b0 !important;
}

/* Badges y pills */
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.text-bg-light {
    background-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

/* Separadores */
[data-theme="dark"] hr {
    border-color: #1e3050 !important;
    opacity: 1 !important;
}

/* Modal */
[data-theme="dark"] .modal-content {
    background: #141f35 !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: #1e3050 !important;
    background: #0f1a2e !important;
}

/* Dropdown */
[data-theme="dark"] .dropdown-menu {
    background-color: #141f35 !important;
    border-color: #1e3050 !important;
}

[data-theme="dark"] .dropdown-item {
    color: #c8d8f0 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(79, 107, 237, 0.15) !important;
    color: #e2ecff !important;
}

/* Empty state */
[data-theme="dark"] .app-empty-state-title {
    color: #c8d8f0;
}
[data-theme="dark"] .app-empty-state-icon,
[data-theme="dark"] .app-empty-state-copy {
    color: #4a6080;
}

/* Botones de acción de proyectos (Detalle, Ver, etc.) */
[data-theme="dark"] .project-action-btn,
[data-theme="dark"] .project-jp-list-page .project-action-btn,
[data-theme="dark"] .project-list-page .project-action-btn {
    background: #1a2840 !important;
    border-color: #2a4066 !important;
    color: #c8d8f0 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-action-btn:hover,
[data-theme="dark"] .project-list-page .project-action-btn:hover,
[data-theme="dark"] .project-jp-list-page .project-action-btn:hover {
    background: #1e3050 !important;
    border-color: #4f6bed !important;
    color: #e2ecff !important;
}

[data-theme="dark"] .project-action-view,
[data-theme="dark"] .project-list-page .project-action-view,
[data-theme="dark"] .project-jp-list-page .project-action-view {
    border-color: #2a4066 !important;
    color: #a0b8d8 !important;
}

/* Toggle "JP tipo principal" y similares */
[data-theme="dark"] .project-filter-switch-cca,
[data-theme="dark"] .project-list-page .project-filter-switch-cca {
    background: linear-gradient(180deg, #0f1e38 0%, #0c1730 100%) !important;
    border-color: rgba(79, 107, 237, 0.35) !important;
    box-shadow: 0 0 0 1px rgba(79, 107, 237, 0.12) inset !important;
}

[data-theme="dark"] .project-filter-switch-cca .form-check-label,
[data-theme="dark"] .project-list-page .project-filter-switch-cca .form-check-label {
    color: #c8d8f0 !important;
}

[data-theme="dark"] .project-filter-switch-cca .form-text,
[data-theme="dark"] .project-list-page .project-filter-switch-cca .form-text {
    color: #5a7aaa !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-panel-cell {
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(15, 27, 46, 0.98)) !important;
    border-top-color: #2b4064 !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-panel {
    color: #dbe7fb !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-panel .text-secondary {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #dbe7fb !important;
    --bs-table-border-color: #2b4064 !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-table thead th {
    color: #8fa4c2 !important;
    border-bottom-color: #2b4064 !important;
}

[data-theme="dark"] .project-list-page .project-subprojects-table tbody td {
    color: #dbe7fb !important;
    background: transparent !important;
}

/* btn-outline-secondary en dark mode */
[data-theme="dark"] .btn-outline-secondary {
    background: transparent !important;
    border-color: #2a4066 !important;
    color: #a0b8d8 !important;
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:focus {
    background: #1e3050 !important;
    border-color: #4f6bed !important;
    color: #e2ecff !important;
}

/* btn-sm btn-outline-secondary (Filtrar en dashboard) */
[data-theme="dark"] .btn-sm.btn-outline-secondary,
[data-theme="dark"] .btn.btn-sm.btn-outline-secondary {
    background: #1a2840 !important;
    border-color: #2a4066 !important;
    color: #a0b8d8 !important;
}

[data-theme="dark"] .btn-sm.btn-outline-secondary:hover {
    background: #1e3050 !important;
    color: #e2ecff !important;
}

/* Form check labels */
[data-theme="dark"] .form-check-label {
    color: #c8d8f0 !important;
}

/* Page hero con cards claras (ej. búsqueda rápida) */
[data-theme="dark"] .app-page-hero,
[data-theme="dark"] .app-page-hero .card {
    background: linear-gradient(180deg, #19253d 0%, #141f35 100%) !important;
    border-color: #1e3050 !important;
}

/* Badges y pills de estado claros */
[data-theme="dark"] .badge:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) {
    background-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

/* Links */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.app-sidebar-link):not(.app-topbar-chip) {
    color: #7eaaee;
}

/* Eliminar sombras y gradiente interno — crean halos/profundidad innecesaria en dark mode */
[data-theme="dark"] .metric-card,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .card {
    box-shadow: none !important;
}

[data-theme="dark"] .metric-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Aplanar gradiente de metric-card: el gradiente #19253d→#141f35 crea efecto de sombra interna */
[data-theme="dark"] .metric-card {
    background: #141f35 !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* Tendencia global: barras invisibles en dark mode (#1d4ed8 ≈ #1e3050) */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .trend-bar {
    background: linear-gradient(180deg, #60a5fa 0%, #818cf8 52%, #c084fc 100%) !important;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.25) !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .trend-value {
    color: #e2ecff !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .trend-label {
    color: #5a7aaa !important;
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.app-sidebar-link):not(.app-topbar-chip):hover {
    color: #a0c4ff;
}

/* Topbar chips (Dashboard / Módulo activo) */
[data-theme="dark"] .app-shell-coreui .app-topbar-chip {
    background: #1a2840 !important;
    border-color: #2a4066 !important;
    color: #a0b8d8 !important;
}

[data-theme="dark"] .app-shell-coreui .app-topbar-chip:hover,
[data-theme="dark"] .app-shell-coreui .app-topbar-chip:focus {
    background: #1e3050 !important;
    border-color: #4f6bed !important;
    color: #e2ecff !important;
}

/* btn-outline-primary en dark (Ver bandeja) */
[data-theme="dark"] .btn-outline-primary {
    border-color: #4f6bed !important;
    color: #8ba4f5 !important;
    background: transparent !important;
}

[data-theme="dark"] .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:focus {
    background: rgba(79, 107, 237, 0.2) !important;
    border-color: #7090f0 !important;
    color: #c0d0ff !important;
}

/* Filter dropdowns (Ingeniero QA, Jefe de proyecto) */
[data-theme="dark"] .filter-dropdown summary {
    background: #0f1a2e !important;
    border-color: #1e3050 !important;
    color: #c8d8f0 !important;
}

[data-theme="dark"] .filter-dropdown[open] summary {
    border-color: #4f6bed !important;
    box-shadow: 0 0 0 3px rgba(79, 107, 237, 0.2) !important;
}

[data-theme="dark"] .filter-dropdown-menu {
    background: #141f35 !important;
    border-color: #1e3050 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .filter-option {
    color: #c8d8f0 !important;
}

/* btn-outline-* genérico para cualquier variante que quede clara */
[data-theme="dark"] [class*="btn-outline-"] {
    background: transparent !important;
}

[data-theme="dark"] .btn-outline-danger {
    border-color: #dc2626 !important;
    color: #f87171 !important;
}

[data-theme="dark"] .btn-outline-success {
    border-color: #16a34a !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .btn-outline-warning {
    border-color: #d97706 !important;
    color: #fbbf24 !important;
}

/* Dark mode readable data labels and names */
[data-theme="dark"] .app-shell-coreui .table td,
[data-theme="dark"] .app-shell-coreui .app-data-table td,
[data-theme="dark"] .app-shell-coreui .card td,
[data-theme="dark"] .app-shell-coreui .modal-body td,
[data-theme="dark"] .app-shell-coreui dd,
[data-theme="dark"] .app-shell-coreui .list-group-item,
[data-theme="dark"] .app-shell-coreui .picker-item,
[data-theme="dark"] .app-shell-coreui .dropdown-item,
[data-theme="dark"] .app-shell-coreui .filter-option,
[data-theme="dark"] .app-shell-coreui .form-check-label,
[data-theme="dark"] .app-shell-coreui .status-chip,
[data-theme="dark"] .app-shell-coreui .info-tile__value {
    color: #c8d8f0 !important;
}

[data-theme="dark"] .app-shell-coreui strong,
[data-theme="dark"] .app-shell-coreui .fw-semibold,
[data-theme="dark"] .app-shell-coreui .fw-bold,
[data-theme="dark"] .app-shell-coreui .hero-title,
[data-theme="dark"] .app-shell-coreui .section-title,
/* Subproject cards */
[data-theme="dark"] .progress-subproject-item {
    background: #0f1a2e !important;
    border: 1px solid #1e3050 !important;
}

[data-theme="dark"] .progress-subproject-list {
    border-left-color: #2a4066 !important;
}

[data-theme="dark"] .progress-subproject-title {
    color: #a0c0e8 !important;
}

/* Alert panels con colores semánticos */
[data-theme="dark"] .dashboard-alert-panel-danger {
    background: rgba(180, 35, 24, 0.12) !important;
    border-color: rgba(180, 35, 24, 0.3) !important;
}

[data-theme="dark"] .dashboard-alert-panel-success {
    background: rgba(21, 128, 75, 0.12) !important;
    border-color: rgba(21, 128, 75, 0.3) !important;
}

[data-theme="dark"] .app-shell-coreui .card-title,
[data-theme="dark"] .app-shell-coreui .card h5,
[data-theme="dark"] .app-shell-coreui .card h6,
[data-theme="dark"] .app-shell-coreui .project-name,
[data-theme="dark"] .app-shell-coreui .project-title,
[data-theme="dark"] .app-shell-coreui .progress-subproject-title,
[data-theme="dark"] .app-shell-coreui .corporate-project-card h3,
[data-theme="dark"] .app-shell-coreui .corporate-project-chip strong,
[data-theme="dark"] .app-shell-coreui .executive-progress-card strong,
[data-theme="dark"] .app-shell-coreui .executive-planning-card strong,
[data-theme="dark"] .app-shell-coreui .dashboard-alert-item-label,
[data-theme="dark"] .app-shell-coreui .metric-card strong,
[data-theme="dark"] .app-shell-coreui .provider-pie-total-value {
    color: #e2ecff !important;
}

[data-theme="dark"] .app-shell-coreui .text-body,
[data-theme="dark"] .app-shell-coreui .text-dark,
[data-theme="dark"] .app-shell-coreui [class*="text-dark"],
[data-theme="dark"] .app-shell-coreui [class*="text-body"] {
    color: #c8d8f0 !important;
}

[data-theme="dark"] .app-shell-coreui .text-secondary,
[data-theme="dark"] .app-shell-coreui .text-muted,
[data-theme="dark"] .app-shell-coreui small,
[data-theme="dark"] .app-shell-coreui .info-tile__label,
[data-theme="dark"] .app-shell-coreui .hero-copy,
[data-theme="dark"] .app-shell-coreui .section-copy {
    color: #8fa4c2 !important;
}

/* Dark dashboard chart cards: status, QA cases and provider quality */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item span:not(.badge):not(.status-donut-legend-dot),
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item div:not(.progress):not(.progress-bar),
[data-theme="dark"] .app-shell-coreui .dashboard-shell .status-donut-legend-label,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .status-donut-legend-count {
    color: #c8d8f0 !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item strong,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .status-donut-hole strong,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .display-6 {
    color: #eaf1ff !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .status-donut-hole span,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .small.text-secondary,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card p.text-secondary,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .text-secondary.small {
    color: #93a8c7 !important;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item {
    border-color: rgba(200, 216, 240, 0.24) !important;
}

/* Softer blue-gray tone for dark dashboard labels */
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .list-group-item span:not(.badge):not(.status-donut-legend-dot),
[data-theme="dark"] .app-shell-coreui .dashboard-shell .status-donut-legend-label,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .small.text-secondary,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card p.text-secondary,
[data-theme="dark"] .app-shell-coreui .dashboard-shell .card .text-secondary.small {
    color: #8fa4c2 !important;
}

/* Dark project/planning forms */
[data-theme="dark"] .app-shell-coreui .app-form-card {
    border-color: #1e3050 !important;
    background:
        radial-gradient(circle at 100% 0, rgba(79, 107, 237, 0.12), transparent 28%),
        linear-gradient(180deg, #17233a 0%, #111b2f 100%) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card::before {
    opacity: 0 !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .card-body {
    background: transparent !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-section-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-section-copy,
[data-theme="dark"] .app-shell-coreui .app-form-card .form-text {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .form-label {
    color: #9fb3d2 !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .form-control,
[data-theme="dark"] .app-shell-coreui .app-form-card .form-select,
[data-theme="dark"] .app-shell-coreui .app-form-card textarea.form-control {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #dbe7fb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .form-control:focus,
[data-theme="dark"] .app-shell-coreui .app-form-card .form-select:focus,
[data-theme="dark"] .app-shell-coreui .app-form-card textarea.form-control:focus {
    border-color: #5f84f3 !important;
    background: #0d192c !important;
    box-shadow: 0 0 0 0.18rem rgba(79, 107, 237, 0.24) !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .form-control::placeholder {
    color: #62789a !important;
}

[data-theme="dark"] .app-shell-coreui .app-form-card input[type="file"]::file-selector-button {
    background: #182844;
    border-color: #2f4468;
    color: #dbe7fb;
}

[data-theme="dark"] .app-shell-coreui .app-form-card .subproject-panel,
[data-theme="dark"] .app-shell-coreui .app-form-card .subproject-row {
    border-color: #2b4064 !important;
    background: rgba(9, 18, 34, 0.42) !important;
}

/* Dark project filters */
[data-theme="dark"] .app-shell-coreui .app-filter-card {
    border-color: #1e3050 !important;
    background:
        radial-gradient(circle at 100% 0, rgba(79, 107, 237, 0.12), transparent 28%),
        linear-gradient(180deg, #17233a 0%, #111b2f 100%) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card::before {
    opacity: 0 !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card .app-filter-head {
    border-color: #2b4064 !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card .app-section-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card .app-section-copy,
[data-theme="dark"] .app-shell-coreui .app-filter-card .form-text {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card .form-control,
[data-theme="dark"] .app-shell-coreui .app-filter-card .form-select {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #dbe7fb !important;
}

[data-theme="dark"] .app-shell-coreui .app-filter-card .form-control::placeholder {
    color: #62789a !important;
}

.project-list-page .project-filter-switch.form-switch,
.project-jp-list-page .project-filter-switch.form-switch {
    padding-left: 0;
}

.project-list-page .project-filter-switch .form-check-input,
.project-jp-list-page .project-filter-switch .form-check-input {
    margin-left: 0;
}

[data-theme="dark"] .project-list-page .project-filter-switch-cca,
[data-theme="dark"] .project-jp-list-page .project-filter-switch-cca {
    background: transparent !important;
    box-shadow: -3px 0 0 rgba(96, 165, 250, 0.45) !important;
}

/* Dark Corporate PMO panel */
[data-theme="dark"] .app-shell-coreui .app-page-inner:has(.corporate-panel-shell) {
    background: transparent !important;
}

[data-theme="dark"] .corporate-panel-shell {
    background: transparent !important;
}

[data-theme="dark"] .corporate-panel-backdrop {
    background:
        radial-gradient(circle at 16% 0, rgba(79, 107, 237, 0.16), transparent 28%),
        linear-gradient(180deg, #0a1222 0%, #070d19 100%) !important;
    border-color: #1e3050 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
}

[data-theme="dark"] .corporate-panel-main {
    background: linear-gradient(180deg, #111b2f 0%, #0d1729 100%) !important;
    border: 1px solid #1e3050 !important;
}

[data-theme="dark"] .corporate-panel-board-title,
[data-theme="dark"] .corporate-panel-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .corporate-panel-board-subtitle,
[data-theme="dark"] .corporate-panel-lanes-hint {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .corporate-panel-quicknav-item {
    border-color: #2b4064 !important;
    background: #101c31 !important;
    color: #9fb3d2 !important;
}

[data-theme="dark"] .corporate-panel-quicknav-item strong,
[data-theme="dark"] .corporate-panel-lanes-btn {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #dbe7fb !important;
}

[data-theme="dark"] .corporate-panel-lane-planning,
[data-theme="dark"] .corporate-panel-lane-qa,
[data-theme="dark"] .corporate-panel-lane-approved {
    background: linear-gradient(180deg, #132036 0%, #0f1a2e 100%) !important;
    border: 1px solid #1e3050 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26) !important;
}

[data-theme="dark"] .corporate-panel-lane-head,
[data-theme="dark"] .corporate-panel-lane-planning .corporate-panel-lane-head,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-head,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-panel-lane-head {
    border-color: #2b4064 !important;
    background: linear-gradient(180deg, #172743 0%, #101d33 100%) !important;
    box-shadow: inset 4px 0 0 #4f6bed, 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .corporate-panel-lane-planning .corporate-panel-lane-head {
    box-shadow: inset 4px 0 0 #60a5fa, 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-head {
    box-shadow: inset 4px 0 0 #22c1dc, 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .corporate-panel-lane-approved .corporate-panel-lane-head {
    box-shadow: inset 4px 0 0 #34d399, 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .corporate-panel-lane-title,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-title,
[data-theme="dark"] .corporate-panel-lane-planning .corporate-panel-lane-title,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-panel-lane-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .corporate-panel-lane-kicker,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-kicker,
[data-theme="dark"] .corporate-panel-lane-planning .corporate-panel-lane-kicker,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-panel-lane-kicker {
    color: #7eaaee !important;
}

[data-theme="dark"] .corporate-panel-lane-rule,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-rule {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .corporate-panel-lane-count,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-panel-lane-count,
[data-theme="dark"] .corporate-panel-lane-planning .corporate-panel-lane-count,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-panel-lane-count {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #dbe7fb !important;
}

[data-theme="dark"] .corporate-project-card,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-project-card,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-project-card,
[data-theme="dark"] .corporate-panel-lane-planning .corporate-project-card {
    border-color: #2b4064 !important;
    background: linear-gradient(180deg, #111f36 0%, #0c1729 100%) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .corporate-project-card h3,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-project-card h3,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-project-card h3 {
    color: #eaf1ff !important;
}

[data-theme="dark"] .corporate-project-card p,
[data-theme="dark"] .corporate-project-card-meta,
[data-theme="dark"] .corporate-project-card-footer,
[data-theme="dark"] .corporate-project-progress-label,
[data-theme="dark"] .corporate-panel-lane-qa .corporate-project-card p,
[data-theme="dark"] .corporate-panel-lane-approved .corporate-project-card p {
    color: #9fb3d2 !important;
}

[data-theme="dark"] .corporate-project-progress-label strong {
    color: #eaf1ff !important;
}

[data-theme="dark"] .corporate-project-progress-bar {
    background: #203555 !important;
}

[data-theme="dark"] .corporate-panel-empty {
    border-color: #2b4064 !important;
    background: rgba(11, 22, 40, 0.7) !important;
    color: #9fb3d2 !important;
}

[data-theme="dark"] .corporate-panel-lanes::-webkit-scrollbar-track {
    background: #0b1628 !important;
}

[data-theme="dark"] .corporate-panel-lanes::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #2b4064, #4f6bed) !important;
}

/* Dark project detail/list cards */
[data-theme="dark"] .app-shell-coreui .app-detail-card,
[data-theme="dark"] .app-shell-coreui .app-list-card {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17233a 0%, #111b2f 100%) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-card::before {
    opacity: 0 !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-title,
[data-theme="dark"] .app-shell-coreui .app-cell-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-list dt,
[data-theme="dark"] .app-shell-coreui .app-detail-table th,
[data-theme="dark"] .app-shell-coreui .app-data-table th {
    color: #8fa4c2 !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-list dd,
[data-theme="dark"] .app-shell-coreui .app-detail-table td,
[data-theme="dark"] .app-shell-coreui .app-data-table td,
[data-theme="dark"] .app-shell-coreui .app-timeline .list-group-item {
    color: #dbe7fb !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-table,
[data-theme="dark"] .app-shell-coreui .app-data-table {
    --bs-table-bg: transparent !important;
    --bs-table-border-color: #2b4064 !important;
}

[data-theme="dark"] .app-shell-coreui .app-detail-table thead,
[data-theme="dark"] .app-shell-coreui .app-data-table thead {
    background: #0b1628 !important;
}

[data-theme="dark"] .app-shell-coreui .app-timeline .list-group-item {
    border-color: #2b4064 !important;
    background: transparent !important;
}

/* Dark mode — Executive dashboard cards */
[data-theme="dark"] .dashboard-shell .executive-compact-card,
[data-theme="dark"] .dashboard-shell .executive-status-item {
    border-color: #1e3050 !important;
    background: #111c30 !important;
}

[data-theme="dark"] .dashboard-shell .executive-compact-card:hover,
[data-theme="dark"] .dashboard-shell .executive-status-item:hover {
    border-color: #2b4064 !important;
    background: #17243d !important;
}

[data-theme="dark"] .dashboard-shell .executive-planning-card,
[data-theme="dark"] .dashboard-shell .executive-progress-card {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] .dashboard-shell .executive-planning-card:hover,
[data-theme="dark"] .dashboard-shell .executive-progress-card:hover {
    border-color: #2b4064 !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38) !important;
    transform: translateY(-2px);
}

[data-theme="dark"] .dashboard-shell .executive-card-kicker {
    color: #5a7aaa !important;
}

[data-theme="dark"] .dashboard-shell .executive-meta-chip {
    background: #0d1a2e !important;
    color: #8fa4c2 !important;
}

[data-theme="dark"] .dashboard-shell .executive-panel-pill {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #9fb3d2 !important;
}

[data-theme="dark"] .dashboard-shell .executive-panel-pill-muted {
    border-color: #1e3050 !important;
    background: #0a1422 !important;
    color: #6b8fc2 !important;
}

[data-theme="dark"] .dashboard-shell .executive-soft-button {
    border-color: #2f4468 !important;
    background: #0b1628 !important;
    color: #9fb3d2 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .dashboard-shell .executive-progress-value {
    color: #eaf1ff !important;
}

[data-theme="dark"] .dashboard-shell .executive-progress-card > .d-flex > .min-w-0 > span.text-secondary.small:last-of-type {
    background: #0d1a2e !important;
    color: #8fa4c2 !important;
}

[data-theme="dark"] .dashboard-shell .executive-progress-bar-shell {
    background: #1a2d4a !important;
}

[data-theme="dark"] .dashboard-shell .executive-tail-panel {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #111c30 0%, #0d1729 100%) !important;
}

[data-theme="dark"] .dashboard-shell .executive-tail-item {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="dark"] .dashboard-shell .executive-tail-item:last-child {
    border-bottom-color: #1e3050 !important;
}

[data-theme="dark"] .dashboard-shell .executive-empty-state {
    border-color: #2b4064 !important;
    background: rgba(11, 22, 40, 0.7) !important;
    color: #6b8fc2 !important;
}

/* Dark mode — Respaldo BD (panel-card / info-tile / status-chip) */
[data-theme="dark"] .app-shell-coreui .panel-card {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] .app-shell-coreui .panel-card--hero {
    background:
        radial-gradient(circle at top right, rgba(79, 107, 237, 0.18), transparent 32%),
        linear-gradient(135deg, #111c30 0%, #0d1729 100%) !important;
}

[data-theme="dark"] .app-shell-coreui .status-chip {
    border-color: #2b4064 !important;
    background: #0b1628 !important;
}

[data-theme="dark"] .app-shell-coreui .info-tile {
    border-color: #1e3050 !important;
    background: #0d1729 !important;
}

/* Dark mode — JP list INCOMPLETOS button */
[data-theme="dark"] .project-jp-list-page .dashboard-alert-toggle {
    background: #141f35 !important;
    border: 1px solid #2b4064 !important;
    color: #9fb3d2 !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-jp-list-page .dashboard-alert-toggle .dashboard-alert-icon {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #6b8fc2 !important;
}

[data-theme="dark"] .project-jp-list-page .dashboard-alert-toggle .dashboard-alert-count {
    color: #9fb3d2 !important;
}

/* Dark mode — Búsqueda rápida */
[data-theme="dark"] .project-search-hero-copy,
[data-theme="dark"] .project-search-hero-panel {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-search-hero-panel strong {
    color: #eaf1ff !important;
}

[data-theme="dark"] .project-search-hero-panel small {
    color: #6b8fc2 !important;
}

[data-theme="dark"] .project-search-shell {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-search-input-wrap {
    border-color: #2b4064 !important;
    background: #0d1729 !important;
}

[data-theme="dark"] .project-search-input {
    color: #dbe7fb !important;
}

[data-theme="dark"] .project-search-input::placeholder {
    color: #4e6a8e !important;
}

[data-theme="dark"] .project-search-input-icon {
    color: #5a7aaa !important;
}

[data-theme="dark"] .project-search-chip,
[data-theme="dark"] .project-search-term {
    border-color: #2b4064 !important;
    background: #0d1729 !important;
    color: #8fa4c2 !important;
}

[data-theme="dark"] .project-search-hint {
    color: #5a7aaa !important;
}

[data-theme="dark"] .project-search-stat-card {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-search-stat-card span {
    color: #5a7aaa !important;
}

[data-theme="dark"] .project-search-stat-card strong {
    color: #eaf1ff !important;
}

[data-theme="dark"] .project-result-card {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-result-card.is-detained {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: linear-gradient(180deg, #1f1218 0%, #180e14 100%) !important;
}

[data-theme="dark"] .project-result-title {
    color: #eaf1ff !important;
}

[data-theme="dark"] .project-result-code {
    color: #60a5fa !important;
}

[data-theme="dark"] .project-result-folio {
    color: #5a7aaa !important;
}

[data-theme="dark"] .project-result-badge {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .project-result-badge.status {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #8fa4c2 !important;
}

[data-theme="dark"] .project-result-meta span {
    background: #0d1729 !important;
    color: #8fa4c2 !important;
}

[data-theme="dark"] .project-result-progress-head {
    color: #9fb3d2 !important;
}

[data-theme="dark"] .project-result-progress-track {
    background: #1a2d4a !important;
}

[data-theme="dark"] .project-result-alert {
    background: rgba(120, 30, 30, 0.4) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .project-result-date-item {
    background: #0d1729 !important;
}

[data-theme="dark"] .project-result-date-item span {
    color: #4e6a8e !important;
}

[data-theme="dark"] .project-result-date-item strong {
    color: #9fb3d2 !important;
}

[data-theme="dark"] .project-search-empty {
    border-color: #1e3050 !important;
    background: linear-gradient(180deg, #17243d 0%, #111c30 100%) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .project-search-empty strong {
    color: #eaf1ff !important;
}

[data-theme="dark"] .project-search-empty p {
    color: #6b8fc2 !important;
}

/* Corporate PMO panel — light mode overrides (base CSS is dark-first) */
html:not([data-theme="dark"]) .corporate-panel-header {
    background:
        radial-gradient(circle at 90% 10%, rgba(69, 196, 255, 0.1), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(31, 111, 255, 0.07), transparent 25%),
        linear-gradient(135deg, #f0f7ff, #e8f2fe 60%, #ddeeff) !important;
    border-color: rgba(31, 111, 255, 0.14) !important;
    color: #10233b !important;
    backdrop-filter: none !important;
    box-shadow: 0 16px 48px rgba(15, 39, 66, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
html:not([data-theme="dark"]) .cp-brand {
    box-shadow: inset 3px 0 0 rgba(31, 111, 255, 0.5) !important;
}
html:not([data-theme="dark"]) .cp-eyebrow { color: rgba(16, 35, 59, 0.5) !important; }
html:not([data-theme="dark"]) .cp-title { color: #10233b !important; }
html:not([data-theme="dark"]) .cp-kpi-bar {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(31, 111, 255, 0.14) !important;
}
html:not([data-theme="dark"]) .cp-kpi-num { color: #10233b !important; }
html:not([data-theme="dark"]) .cp-kpi-warn .cp-kpi-num {
    color: #b45309 !important;
    text-shadow: none !important;
}
html:not([data-theme="dark"]) .cp-kpi-ok .cp-kpi-num {
    color: #047857 !important;
    text-shadow: none !important;
}
html:not([data-theme="dark"]) .cp-kpi-label { color: rgba(16, 35, 59, 0.52) !important; }
html:not([data-theme="dark"]) .cp-kpi-sep { background: rgba(16, 35, 59, 0.14) !important; }

.chatbot-page .chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 420px;
    max-height: 58vh;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    background: rgba(248, 250, 252, 0.78);
}

.chatbot-page .chatbot-message {
    max-width: 88%;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.chatbot-page .chatbot-message-user {
    align-self: flex-end;
    background: #123c69;
    color: #ffffff;
}

.chatbot-page .chatbot-message-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #172033;
}

.chatbot-page .chatbot-message-text {
    margin: 0.4rem 0 0;
    font-family: inherit;
    white-space: pre-wrap;
}

.chatbot-page .chatbot-feedback {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

[data-theme="dark"] .chatbot-page .chatbot-messages {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.42);
}

[data-theme="dark"] .chatbot-page .chatbot-message-bot {
    background: #172033;
    color: #e5edf8;
}

.app-chatbot-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1060;
}

.app-chatbot-shortcut {
    display: inline-grid;
    align-items: center;
    justify-items: center;
    gap: 0.22rem;
    width: 4.35rem;
    height: 4.35rem;
    border: 0;
    padding: 0.5rem;
    border-radius: 1.35rem;
    color: #ffffff;
    background: linear-gradient(145deg, #1f6fff, #123c69 72%);
    box-shadow: 0 18px 42px rgba(18, 60, 105, 0.38);
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-chatbot-shortcut:hover,
.app-chatbot-shortcut:focus {
    color: #ffffff;
    background: linear-gradient(145deg, #2f7dff, #0f3156 72%);
    box-shadow: 0 22px 48px rgba(18, 60, 105, 0.46);
    transform: translateY(-2px);
}

.app-chatbot-shortcut-icon {
    position: relative;
    width: 2.15rem;
    height: 1.65rem;
    border: 2px solid currentColor;
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -0.25rem 0 rgba(255, 255, 255, 0.22);
}

.app-chatbot-shortcut-icon::before,
.app-chatbot-shortcut-icon::after {
    content: "";
    position: absolute;
    top: 0.48rem;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: currentColor;
}

.app-chatbot-shortcut-icon::before {
    left: 0.45rem;
}

.app-chatbot-shortcut-icon::after {
    right: 0.45rem;
}

.app-chatbot-shortcut-icon + .app-chatbot-shortcut-text {
    font-size: 0.68rem;
    line-height: 1;
}

.app-chatbot-shortcut-icon::marker {
    display: none;
}

.app-chatbot-shortcut-icon {
    transform: translateY(0.12rem);
}

.app-chatbot-shortcut-icon span {
    display: none;
}

.app-chatbot-shortcut-icon::selection {
    background: transparent;
}

.app-chatbot-shortcut::before {
    content: "";
    width: 0.46rem;
    height: 0.46rem;
    margin-bottom: -0.46rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 0.14rem rgba(255, 255, 255, 0.28);
}

.app-chatbot-widget.is-open .app-chatbot-shortcut {
    background: linear-gradient(145deg, #2f7dff, #0f3156 72%);
}

.app-chatbot-popup {
    position: absolute;
    right: 0;
    bottom: 4.25rem;
    width: clamp(390px, 38vw, 540px);
    max-width: calc(100vw - 2.5rem);
    height: min(680px, calc(100dvh - 7rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.app-chatbot-popup[hidden] {
    display: none;
}

.app-chatbot-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    padding: 0.85rem 1rem;
    color: #ffffff;
    background: #123c69;
}

.app-chatbot-popup-head-copy {
    min-width: 0;
}

.app-chatbot-popup-head span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.78;
    text-transform: uppercase;
}

.app-chatbot-popup-head strong {
    display: block;
    font-size: 1rem;
}

.app-chatbot-popup-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.app-chatbot-voice-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.app-chatbot-voice-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-chatbot-voice-select {
    max-width: 190px;
    min-height: 2rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-color: rgba(255, 255, 255, 0.22);
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
}

.app-chatbot-voice-select:focus {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.12);
}

.app-chatbot-voice-select option {
    color: #172033;
}

.app-chatbot-close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    line-height: 1;
}

.app-chatbot-popup-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 60, 105, 0.45) transparent;
    padding: 1rem;
    background: #f4f7fb;
}

.app-chatbot-bubble {
    max-width: 88%;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.app-chatbot-bubble-user {
    align-self: flex-end;
    color: #ffffff;
    background: #123c69;
}

.app-chatbot-bubble-bot {
    align-self: flex-start;
    max-width: 96%;
    color: #172033;
    background: #ffffff;
}

.app-chatbot-bubble pre {
    max-width: 100%;
    margin: 0.35rem 0 0;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

.app-chatbot-bubble pre a {
    overflow-wrap: anywhere;
}

.app-chatbot-popup-feedback {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.app-chatbot-popup-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    max-height: 5.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.65rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.app-chatbot-popup-examples button {
    flex: 0 1 auto;
    max-width: 100%;
    border: 1px solid rgba(18, 60, 105, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.65rem;
    color: #123c69;
    background: rgba(18, 60, 105, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
}

.app-chatbot-popup-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.app-chatbot-popup-form .btn {
    min-width: 5.25rem;
    border-radius: 0.8rem;
}

.app-chatbot-popup-form textarea {
    width: 100%;
    min-height: 2.8rem;
    max-height: 6rem;
    resize: vertical;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 0.8rem;
    padding: 0.65rem 0.75rem;
}

[data-theme="dark"] .app-chatbot-popup {
    border-color: rgba(148, 163, 184, 0.18);
    background: #111b2d;
}

[data-theme="dark"] .app-chatbot-popup-messages {
    background: #0d1626;
}

[data-theme="dark"] .app-chatbot-bubble-bot,
[data-theme="dark"] .app-chatbot-popup-examples,
[data-theme="dark"] .app-chatbot-popup-form {
    color: #e5edf8;
    background: #172033;
}

[data-theme="dark"] .app-chatbot-popup-form textarea {
    color: #e5edf8;
    background: #0d1626;
    border-color: rgba(148, 163, 184, 0.22);
}

@media (max-width: 575.98px) {
    .app-chatbot-widget {
        right: 0.9rem;
        bottom: 0.9rem;
    }

    .app-chatbot-shortcut {
        width: 4rem;
        height: 4rem;
    }

    .app-chatbot-popup {
        width: calc(100vw - 1.25rem);
        max-width: none;
        height: min(680px, calc(100dvh - 5.4rem));
        bottom: 3.75rem;
        border-radius: 1rem;
    }

    .app-chatbot-popup-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .app-chatbot-popup-head-actions {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .app-chatbot-popup-head {
        gap: 0.65rem;
        padding: 0.75rem 0.8rem;
    }

    .app-chatbot-popup-messages {
        padding: 0.75rem;
    }

    .app-chatbot-bubble,
    .app-chatbot-bubble-bot {
        max-width: 100%;
    }

    .app-chatbot-popup-examples {
        flex-wrap: wrap;
        max-height: 4.75rem;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0.55rem 0.75rem;
        scrollbar-width: thin;
    }

    .app-chatbot-popup-examples button {
        flex: 1 1 10rem;
        white-space: normal;
    }

    .app-chatbot-popup-form {
        gap: 0.5rem;
        padding: 0.65rem 0.75rem 0.75rem;
    }

    .app-chatbot-popup-form textarea {
        min-width: 0;
    }

    .app-chatbot-voice-select {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .app-chatbot-widget {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .app-chatbot-popup {
        width: calc(100vw - 1rem);
        height: calc(100dvh - 4.9rem);
        bottom: 3.9rem;
    }

    .app-chatbot-popup-form {
        grid-template-columns: 1fr;
    }

    .app-chatbot-popup-form .btn {
        width: 100%;
        min-height: 2.5rem;
    }
}
html:not([data-theme="dark"]) .cp-chip {
    color: #1a3566 !important;
    background: rgba(31, 111, 255, 0.08) !important;
    border-color: rgba(31, 111, 255, 0.18) !important;
}
html:not([data-theme="dark"]) .corporate-panel-shell .corporate-panel-controls {
    border-top-color: rgba(31, 111, 255, 0.1) !important;
    background: rgba(31, 111, 255, 0.04) !important;
}
html:not([data-theme="dark"]) .corporate-panel-controls {
    border-color: rgba(31, 111, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.55) !important;
}
html:not([data-theme="dark"]) .corporate-panel-controls-title { color: #10233b !important; }
html:not([data-theme="dark"]) .corporate-panel-controls-copy { color: rgba(16, 35, 59, 0.65) !important; }
html:not([data-theme="dark"]) .corporate-panel-controls-toggle {
    border-color: rgba(16, 35, 59, 0.2) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #10233b !important;
}
html:not([data-theme="dark"]) .corporate-panel-controls[open] .corporate-panel-controls-toggle {
    background: rgba(255, 255, 255, 0.9) !important;
}
html:not([data-theme="dark"]) .corporate-panel-filter-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(31, 111, 255, 0.12) !important;
}
html:not([data-theme="dark"]) .corporate-panel-filter-title,
html:not([data-theme="dark"]) .corporate-panel-nav-actions-title { color: #10233b !important; }
html:not([data-theme="dark"]) .corporate-panel-filter-subtitle { color: rgba(16, 35, 59, 0.65) !important; }
html:not([data-theme="dark"]) .corporate-panel-filter-caption { color: rgba(16, 35, 59, 0.5) !important; }
html:not([data-theme="dark"]) .corporate-panel-filter-field label { color: rgba(16, 35, 59, 0.7) !important; }
html:not([data-theme="dark"]) .corporate-panel-filter-actions-shell {
    border-top-color: rgba(16, 35, 59, 0.1) !important;
}
html:not([data-theme="dark"]) .corporate-panel-filter-actions-copy { color: rgba(16, 35, 59, 0.58) !important; }

/* Corporate PMO panel — dark mode */
[data-theme="dark"] .corporate-panel-header {
    background:
        linear-gradient(135deg, rgba(16, 35, 59, 0.98), rgba(19, 45, 77, 0.96) 60%, rgba(31, 111, 255, 0.76)),
        rgba(16, 35, 59, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f5f9ff !important;
    backdrop-filter: blur(18px) !important;
    box-shadow:
        0 24px 60px rgba(15, 39, 66, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .corporate-panel-title { color: #f7fbff !important; }
[data-theme="dark"] .corporate-panel-subtitle { color: rgba(239, 247, 255, 0.78) !important; }
[data-theme="dark"] .corporate-header-badge {
    color: #eaf5ff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
[data-theme="dark"] .corporate-panel-hero-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .corporate-panel-hero-label { color: rgba(239, 247, 255, 0.7) !important; }
[data-theme="dark"] .corporate-panel-hero-card strong { color: #ffffff !important; }
[data-theme="dark"] .corporate-panel-hero-card small { color: rgba(239, 247, 255, 0.75) !important; }
[data-theme="dark"] .corporate-panel-actions .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: #f7fbff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .corporate-panel-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.project-changes-popover {
    max-width: min(30rem, calc(100vw - 2rem));
}

.project-changes-popover .popover-body {
    max-height: min(22rem, calc(100vh - 12rem));
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    word-break: break-word;
}

.disk-monitor-panel { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr); gap: 2rem; align-items: center; }
.disk-pie-wrap { display: grid; place-items: center; }
.disk-pie { --disk-used: 50%; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#dc3545 0 var(--disk-used), #20c997 var(--disk-used) 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: background .35s ease; }
.disk-pie-center { width: 58%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bs-body-bg); box-shadow: 0 4px 22px rgba(0,0,0,.12); }
.disk-pie-center strong { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1; }
.disk-pie-center span { color: var(--bs-secondary-color); font-size: .85rem; margin-top: .4rem; }
.disk-capacity-row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--bs-border-color); }
.disk-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .55rem; }
.disk-dot-used { background: #dc3545; }
.disk-dot-free { background: #20c997; }
@media (max-width: 767.98px) { .disk-monitor-panel { grid-template-columns: 1fr; } }
/* Matriz editable de planes de prueba */
.app-page-inner:has(.test-plan-page) { min-width: 0; max-width: 100%; overflow: hidden; }
.test-plan-page,
.test-plan-page > *,
.test-plan-page form { min-width: 0; max-width: 100%; }
.test-plan-page .row > * { min-width: 0; }
.test-plan-cycle-toolbar .form-select { min-width: min(280px, 75vw); font-weight: 700; }
.test-plan-cycle-summary { display: flex; flex-wrap: wrap; gap: .5rem; }
.test-plan-cycle-summary span { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border: 1px solid rgba(31, 111, 255, .15); border-radius: 999px; color: #34465f; background: rgba(255, 255, 255, .7); font-size: .75rem; }
.test-plan-cycle-summary strong { color: #1f6fff; font-size: .85rem; }
[data-theme="dark"] .test-plan-cycle-summary span { color: #d9e7f7; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.test-plan-matrix-card { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.test-plan-horizontal-scroll {
    width: 100%;
    max-width: 100%;
    height: 18px;
    margin: 0 0 .4rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    background: var(--bs-body-bg);
    scrollbar-color: #1f6fff rgba(31, 111, 255, .08);
}
.test-plan-horizontal-scroll-track { height: 1px; }
.test-plan-matrix-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: auto; max-height: 68vh; }
.test-plan-matrix { width: max-content; min-width: 2050px; table-layout: fixed; font-size: .76rem; }
.test-plan-matrix thead { position: sticky; top: 0; z-index: 3; }
.test-plan-matrix thead th { width: 165px; min-width: 165px; padding: .55rem; color: #fff !important; background: #183b63 !important; border-color: rgba(255,255,255,.18); text-align: center; vertical-align: middle; line-height: 1.2; }
.test-plan-matrix thead th:nth-child(6), .test-plan-matrix thead th:nth-child(7), .test-plan-matrix thead th:nth-child(10), .test-plan-matrix thead th:nth-child(11) { width: 220px; min-width: 220px; }
.test-plan-matrix thead th:nth-child(12) { width: 125px; min-width: 125px; }
.test-plan-matrix thead .test-plan-evidence-head { width: 142px; min-width: 142px; background: #5b3cc4 !important; }
.test-plan-matrix thead .test-plan-status-head { width: 155px; min-width: 155px; background: #9a5b12 !important; }
.test-plan-matrix .test-plan-custom-head { background: #146c70 !important; }
.test-plan-matrix thead .test-plan-actions-head { width: 135px; min-width: 135px; background: #8d2d3b !important; }
.test-plan-matrix td { padding: .3rem; background: var(--bs-body-bg); vertical-align: middle; }
.test-plan-resizable-column { position: sticky; }
.test-plan-column-resizer {
    position: absolute;
    inset: 0 -4px 0 auto;
    z-index: 8;
    width: 9px;
    cursor: col-resize;
    touch-action: none;
}
.test-plan-column-resizer::after {
    content: "";
    position: absolute;
    inset: 16% 3px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .45);
}
.test-plan-column-resizer:hover::after { background: #fff; }
.test-plan-case-row > .test-plan-sticky-id { position: sticky; }
.test-plan-row-resizer {
    position: absolute;
    inset: auto 0 -4px 0;
    z-index: 7;
    height: 9px;
    cursor: row-resize;
    touch-action: none;
}
.test-plan-row-resizer::after {
    content: "";
    position: absolute;
    inset: 3px 18%;
    height: 2px;
    border-radius: 2px;
    background: rgba(31, 111, 255, .45);
}
.test-plan-row-resizer:hover::after { background: #1f6fff; }
.test-plan-case-row.has-custom-height > td { height: inherit; }
.test-plan-case-row.has-custom-height textarea.form-control {
    height: calc(100% - .6rem) !important;
    min-height: 2.25rem !important;
}
.test-plan-is-resizing-column,
.test-plan-is-resizing-column * { cursor: col-resize !important; user-select: none !important; }
.test-plan-is-resizing-row,
.test-plan-is-resizing-row * { cursor: row-resize !important; user-select: none !important; }
.test-plan-matrix textarea,
.test-plan-matrix input.form-control {
    width: 100%;
    min-width: 0;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: .4rem .55rem;
    resize: none;
    overflow: auto;
    font-size: .76rem;
    line-height: 1.2;
}
.test-plan-matrix .test-plan-sticky-id { position: sticky; left: 0; min-width: 58px; width: 58px; text-align: center; z-index: 2; background: var(--bs-body-bg); }
.test-plan-matrix thead .test-plan-sticky-id { z-index: 5; min-width: 58px; width: 58px; background: #183b63 !important; }
.test-plan-evidence-cell { width: 142px; min-width: 142px; }
.test-plan-status-cell { width: 155px; min-width: 155px; }
.test-plan-status-cell .form-select { width: 100%; min-width: 0; font-size: .76rem; }
.test-plan-case-row.is-approved > td {
    background: #dff5e7;
    border-color: #9ed7b1;
}
.test-plan-case-row.is-rejected > td {
    background: #f9dfe2;
    border-color: #e7a4ab;
}
.test-plan-case-row.is-approved .test-plan-case-status {
    color: #126b36;
    border-color: #3da766;
    background-color: #f2fff6;
    font-weight: 800;
}
.test-plan-case-row.is-rejected .test-plan-case-status {
    color: #a11d2b;
    border-color: #d44d5b;
    background-color: #fff4f5;
    font-weight: 800;
}
[data-theme="dark"] .test-plan-case-row.is-approved > td { background: #123b27; border-color: #28794c; }
[data-theme="dark"] .test-plan-case-row.is-rejected > td { background: #461d23; border-color: #913743; }
[data-theme="dark"] .test-plan-case-row.is-approved .test-plan-sticky-id { background: #123b27; }
[data-theme="dark"] .test-plan-case-row.is-rejected .test-plan-sticky-id { background: #461d23; }

.test-plan-progress-indicator {
    display: inline-flex;
    min-width: 3.55rem;
    justify-content: center;
    padding: .24rem .42rem;
    border-radius: .55rem;
    color: #334155;
    background: #eef2f7;
    font-size: .78rem;
    font-weight: 800;
}

.test-plan-progress-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.55rem;
    line-height: 1;
}

.test-plan-progress-indicator.is-auto {
    border: 1px solid #00a8ff;
    color: #006dff;
    background: rgba(0, 168, 255, .11);
    box-shadow: 0 0 8px rgba(0, 119, 255, .25);
}

.test-plan-progress-auto {
    display: block;
    margin-top: .28rem;
    padding-left: .08em;
    text-align: center;
    color: #0077ff;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.test-plan-list-table {
    width: 100%;
    min-width: 1380px;
    table-layout: fixed;
}

.test-plan-list-table th,
.test-plan-list-table td {
    vertical-align: middle;
}

.test-plan-list-table th {
    padding: .9rem .8rem;
    white-space: normal;
}

.test-plan-list-table td {
    padding: 1rem .8rem;
}

.test-plan-list-table th:nth-child(1) { width: 210px; }
.test-plan-list-table th:nth-child(2) { width: 280px; }
.test-plan-list-table th:nth-child(3) { width: 90px; }
.test-plan-list-table th:nth-child(4) { width: 100px; }
.test-plan-list-table th:nth-child(5) { width: 70px; white-space: nowrap; }
.test-plan-list-table th:nth-child(6) { width: 75px; }
.test-plan-list-table th:nth-child(7) { width: 150px; white-space: nowrap; }
.test-plan-list-table th:nth-child(8) { width: 110px; }
.test-plan-list-table th:nth-child(9) { width: 115px; white-space: nowrap; }
.test-plan-list-table thead th:nth-child(10) { width: 180px; min-width: 180px; }

.test-plan-list-table td:nth-child(7) {
    white-space: nowrap;
}

.test-plan-list-table tbody td:nth-child(10) {
    width: 180px;
    min-width: 180px;
    white-space: normal;
}

.test-plan-list-title,
.test-plan-list-project-code {
    display: block;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.test-plan-list-description {
    display: -webkit-box;
    margin-top: .25rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.45;
}

.test-plan-list-project-description {
    display: -webkit-box;
    margin-top: .2rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.test-plan-list-table td:nth-child(2) {
    padding-right: 1.15rem;
    overflow: hidden;
}

.test-plan-case-summary {
    display: grid;
    justify-items: start;
    gap: .25rem;
}

.test-plan-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
}

.test-plan-actions-grid .btn,
.test-plan-actions-grid form,
.test-plan-actions-grid form .btn {
    width: 100%;
    min-height: 2.45rem;
}

.test-plan-actions-grid .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .55rem;
    font-size: .72rem;
    white-space: normal;
    line-height: 1.2;
}

.test-plan-actions-compact {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: .35rem;
    width: 100%;
    min-width: 160px;
}

.test-plan-actions-compact > .btn,
.test-plan-actions-compact > form,
.test-plan-actions-compact > form .btn {
    width: 100%;
    min-width: 0;
    min-height: 2.1rem;
    margin: 0;
    padding: .35rem .45rem;
    white-space: nowrap;
    font-size: .7rem;
}

.test-plan-actions-compact .dropdown-toggle {
    width: auto;
    min-height: 2.1rem;
    padding: .35rem .5rem;
    white-space: nowrap;
    font-size: .7rem;
}

.test-plan-actions-compact .dropdown-menu {
    min-width: 11rem;
}

.test-plan-actions-compact .dropdown-menu form {
    margin: 0;
}

@media (max-width: 1199.98px) {
    .test-plan-list-table {
        min-width: 1380px;
    }
}

.project-auto-metric .form-label {
    color: #006dff;
}

.project-auto-metric .form-control,
.project-auto-metric .form-control[readonly] {
    border-color: #00a8ff;
    color: #005cff;
    background: linear-gradient(135deg, rgba(0, 168, 255, .026), rgba(0, 92, 255, .01));
    box-shadow: none;
    font-weight: 800;
    cursor: not-allowed;
    padding-right: 2.35rem;
}

.project-auto-metric-control {
    position: relative;
}

.project-auto-metric-lock {
    position: absolute;
    top: 50%;
    right: .8rem;
    transform: translateY(-50%);
    filter: none;
    pointer-events: none;
    font-size: .8rem;
}

.project-auto-metric-badge {
    display: inline-flex;
    margin-left: .4rem;
    padding: .12rem .42rem;
    border-radius: 999px;
    color: #fff;
    background: #0077ff;
    box-shadow: none;
    font-size: .62rem;
    letter-spacing: .08em;
    vertical-align: middle;
}

.project-auto-metric-help {
    color: #006dff !important;
    font-weight: 700;
}

.tracker-internal-plan-link,
.tracker-internal-plan-link:visited {
    color: #006dff !important;
    border-color: #1683ff !important;
    background: rgba(0, 109, 255, .025) !important;
}

.tracker-internal-plan-link:hover,
.tracker-internal-plan-link:focus {
    color: #004ed6 !important;
    border-color: #006dff !important;
    background: rgba(0, 109, 255, .09) !important;
}

[data-theme="dark"] .project-auto-metric .form-control,
[data-theme="dark"] .project-auto-metric .form-control[readonly] {
    border-color: #21c8ff;
    color: #70ddff;
    background: rgba(0, 119, 255, .036);
    box-shadow: none;
}
.test-plan-case-actions { width: 135px; min-width: 135px; text-align: center; }
.test-plan-case-actions small { font-size: .66rem; line-height: 1.2; }
.test-plan-evidence-gallery { width: 100%; height: 72px; display: flex; align-items: center; gap: .3rem; overflow-x: auto; overflow-y: hidden; padding: .2rem; border: 1px solid var(--bs-border-color); border-radius: .45rem; background: rgba(31, 111, 255, .05); }
.test-plan-evidence-gallery.is-empty { justify-content: center; }
.test-plan-evidence-gallery > span { color: var(--bs-secondary-color); font-size: .7rem; white-space: nowrap; }
.test-plan-evidence-item { position: relative; flex: 0 0 72px; width: 72px; height: 58px; overflow: hidden; border-radius: .35rem; background: var(--bs-body-bg); box-shadow: 0 1px 4px rgba(10, 31, 68, .18); }
.test-plan-evidence-item a { display: block; width: 100%; height: 100%; }
.test-plan-evidence-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.test-plan-file-tile { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .25rem; color: #183b63; text-decoration: none; background: #eef4ff; }
.test-plan-file-tile strong { font-size: .68rem; color: #1f6fff; }
.test-plan-file-tile span { display: block; width: 100%; overflow: hidden; color: #34465f; font-size: .54rem; line-height: 1.1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.test-plan-evidence-remove { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(190, 32, 46, .9); font-size: .9rem; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.test-plan-evidence-remove:hover { background: #b02a37; }
.test-plan-crop-stage { display: grid; place-items: center; max-height: 65vh; overflow: auto; padding: .5rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; background: #101826; }
.test-plan-crop-stage canvas { display: block; max-width: 100%; max-height: 60vh; cursor: crosshair; touch-action: none; user-select: none; }
.test-plan-crop-stage canvas[data-tool="pencil"] { cursor: crosshair; }
.test-plan-crop-stage canvas[data-tool="rectangle"] { cursor: cell; }
.test-plan-annotation-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: .65rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; background: rgba(31, 111, 255, .04); }
.test-plan-tool-field { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: var(--bs-secondary-color); font-size: .78rem; font-weight: 700; }
.test-plan-tool-field input[type="color"] { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--bs-border-color); border-radius: .35rem; background: var(--bs-body-bg); }
.test-plan-tool-field input[type="range"] { width: 90px; }

@media (max-width: 991.98px) {
    .test-plan-page .app-page-hero { align-items: stretch !important; }
    .test-plan-page .app-page-hero > .d-flex { width: 100%; }
}

/* Curso QA: el subproyecto activo es el protagonista y el padre queda como contexto. */
.app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-course-subproject-item {
    border-color: rgba(37, 99, 235, 0.3);
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.92), #fff 48%);
    box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.09);
}

[data-theme="dark"] .dashboard-course-project-title,
[data-theme="dark"] .dashboard-course-detail-grid strong {
    color: #e6efff;
}

[data-theme="dark"] .dashboard-course-parent,
[data-theme="dark"] .dashboard-course-meta,
[data-theme="dark"] .dashboard-course-detail-grid span,
[data-theme="dark"] .dashboard-course-detail-grid small {
    color: #9fb1ca;
}

[data-theme="dark"] .app-shell-coreui .dashboard-shell.dashboard-shell-main .dashboard-course-subproject-item {
    border-color: rgba(85, 151, 255, 0.34);
    background: linear-gradient(90deg, rgba(31, 111, 255, 0.18), rgba(13, 25, 45, 0.96) 52%);
}

[data-theme="dark"] .dashboard-course-modal-header,
[data-theme="dark"] .dashboard-course-detail-grid > div {
    border-color: rgba(148, 163, 184, 0.22);
    background: #111d30;
}
/* Administrador central de instancias */
.system-admin-key {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 20;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #d7e6ff;
    background: rgba(13, 25, 44, .76);
    border: 1px solid rgba(255, 255, 255, .18);
    text-decoration: none;
    font-size: 16px;
    transition: transform .18s ease, background .18s ease;
}
.system-admin-key:hover { color: #fff; background: #142d53; transform: translateY(-1px); }
.system-admin-page { min-height: 100vh; background: #f3f6fa; }
.system-admin-nav { background: #14243b; box-shadow: 0 3px 14px rgba(9, 23, 44, .16); }
.system-admin-login { max-width: 480px; margin-top: 7vh; }
.system-admin-brand-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 158px;
    margin: -0.75rem 0 1.1rem;
    padding: 0 3.5rem 1rem;
    border-bottom: 1px solid #e4ebf4;
}
.system-admin-brand-logo-wrap {
    width: 230px;
    height: 150px;
    display: grid;
    place-items: center;
    padding: .25rem .45rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.system-admin-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}
.system-admin-login-icon { position: absolute; right: 0; top: 50%; width: 52px; height: 52px; display: grid; place-items: center; transform: translateY(-58%); border-radius: 15px; background: #e8f1ff; font-size: 24px; }
@media (max-width: 575.98px) {
    .system-admin-brand-head { min-height: 138px; padding-inline: 2.75rem; }
    .system-admin-brand-logo-wrap { width: 195px; height: 132px; }
    .system-admin-login-icon { width: 44px; height: 44px; font-size: 20px; }
}
.system-admin-metric { display: block; margin-top: 4px; font-size: 2rem; color: #172b49; }
.tenant-logo-preview { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #e9f2ff; color: #245fa9; font-weight: 700; }
.tenant-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.system-admin-users-card { overflow: visible; border: 1px solid #dce5f0; border-radius: 1rem; }
.system-admin-users-card .table-responsive { overflow: visible; border-radius: inherit; }
.system-admin-users-table { table-layout: fixed; min-width: 980px; }
.system-admin-users-table th:nth-child(1) { width: 27%; }
.system-admin-users-table th:nth-child(2) { width: 20%; }
.system-admin-users-table th:nth-child(3) { width: 21%; }
.system-admin-users-table th:nth-child(4) { width: 10%; }
.system-admin-users-table th:nth-child(5) { width: 22%; }
.system-admin-users-table td { padding: 1rem; vertical-align: middle; }
.system-admin-users-table thead th { padding: .85rem 1rem; border-bottom-color: #cbd8e8; background: #f7f9fc; color: #58708f; font-size: .72rem; letter-spacing: .045em; text-transform: uppercase; }
.system-admin-users-table tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
.system-admin-users-table tbody tr:nth-child(even) { background: #fbfcfe; }
.system-admin-users-table tbody tr:hover { background: #f3f7fd; box-shadow: inset 3px 0 #2b63df; }
.system-admin-users-table tbody td { border-bottom-color: #dbe4ef; }
.system-admin-identity,
.system-admin-local-user { overflow-wrap: anywhere; word-break: break-word; }
.system-admin-user-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: .55rem; }
.system-admin-user-actions form { margin: 0; }
.system-admin-action-button { display: inline-flex; min-width: 108px; min-height: 34px; align-items: center; justify-content: center; gap: .35rem; border-radius: .65rem; font-weight: 650; white-space: nowrap; }
.system-admin-password-actions { position: relative; }
.system-admin-password-actions > summary { list-style: none; cursor: pointer; }
.system-admin-password-actions > summary::-webkit-details-marker { display: none; }
.system-admin-password-actions[open] > summary { color: #fff; background: #2b63df; border-color: #2b63df; }
.system-admin-password-panel { position: absolute; z-index: 30; top: calc(100% + .65rem); right: 0; width: 320px; padding: 1.1rem; border: 1px solid #d7e0ec; border-radius: .85rem; background: #fff; box-shadow: 0 16px 38px rgba(20, 36, 59, .2); }
.system-admin-password-panel::before { content: ""; position: absolute; top: -7px; right: 46px; width: 13px; height: 13px; border-top: 1px solid #d7e0ec; border-left: 1px solid #d7e0ec; background: #fff; transform: rotate(45deg); }
@media (max-width: 1100px) {
    .system-admin-users-card .table-responsive { overflow-x: auto; overflow-y: visible; }
}
