:root {
    --bidv-teal: #006b68;
    --bidv-teal-2: #008b87;
    --bidv-teal-soft: #e6f4f2;
    --bidv-yellow: #ffc62f;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --canvas: #eff2f5;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #15803d;
    --info: #2563eb;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

.login-page {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    width: 100vw;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    color: #ffffff;
}

.login-bg,
.login-bg-base,
.login-bg-dots {
    position: fixed;
    inset: 0;
}

.login-bg {
    z-index: 0;
}

.login-bg-base {
    background: linear-gradient(155deg, #00312f 0%, #004a47 30%, #006b68 55%, #004d4a 80%, #002220 100%);
}

.login-bg-dots {
    opacity: 0.035;
    background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
    background-size: 28px 28px;
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: loginGlow 10s ease-in-out infinite alternate;
}

.login-glow-one {
    width: 600px;
    height: 600px;
    top: -15%;
    right: -8%;
    background: radial-gradient(circle, rgba(255, 198, 47, 0.12) 0%, transparent 70%);
}

.login-glow-two {
    width: 500px;
    height: 500px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 180, 170, 0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes loginGlow {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, -15px) scale(1.05);
    }
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100vw - 32px));
    min-height: clamp(560px, calc(100dvh - 32px), 680px);
    flex: 0 0 auto;
    border-radius: 28px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.login-brand {
    flex: 1.15;
    padding: 56px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.login-brand-inner {
    max-width: 420px;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.login-brand-logo img {
    width: 280px;
    height: 92px;
    object-fit: contain;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
}

.login-logo-text span {
    color: #ffc62f;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.login-logo-text small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-brand h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 32px;
    font-weight: 850;
    line-height: 1.25;
}

.login-brand p {
    margin: 0 0 40px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    line-height: 1.75;
}

.login-stats {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 32px;
}

.login-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-stats strong {
    color: #ffc62f;
    font-size: 22px;
    font-weight: 850;
}

.login-stats span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    font-weight: 700;
}

.login-form-side {
    flex: 1;
    background: rgba(0, 35, 33, 0.65);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
}

.login-mobile-logo {
    display: none;
    justify-content: center;
    margin-bottom: 28px;
}

.login-mobile-logo img {
    width: 160px;
    height: 53px;
    object-fit: contain;
}

.login-card-head {
    margin-bottom: 28px;
}

.login-card-head h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

.login-card-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
    font-weight: 650;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field label {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 750;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input-wrap input:focus {
    border-color: #008b87;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 139, 135, 0.18);
}

.login-submit {
    position: relative;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #006b68 0%, #008a85 50%, #006b68 100%);
    background-size: 200% auto;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease;
}

.login-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: loginButtonSheen 2.6s ease-in-out infinite;
}

@keyframes loginButtonSheen {
    0%,
    100% {
        left: -100%;
    }

    40% {
        left: 150%;
    }
}

.login-submit:hover {
    background-position: right center;
    box-shadow: 0 8px 30px -5px rgba(0, 107, 104, 0.45);
    transform: translateY(-1px);
}

.login-error {
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.24);
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    font-size: 13px;
    line-height: 18px;
}

.login-divider {
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.login-account-note {
    min-height: 62px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 18px;
}

.login-account-note i {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 198, 47, 0.1);
    color: #ffc62f;
}

.login-foot {
    width: fit-content;
    max-width: 100%;
    margin: 28px auto 0;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    flex-wrap: wrap;
}

.login-foot strong {
    color: #4dd9d0;
}

.login-loading {
    position: relative;
    z-index: 1;
    width: min(360px, calc(100vw - 32px));
    padding: 34px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 35, 33, 0.72);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.login-loading img {
    width: 180px;
    height: 60px;
    object-fit: contain;
}

.login-loading strong {
    font-size: 18px;
}

.login-loading span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.app-shell {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 56px;
    min-width: 56px;
    height: 100vh;
    background: linear-gradient(180deg, #007b78 0%, #006b68 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 19px;
}

.sidebar-menu {
    width: 100%;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidebar-menu {
    flex: 1;
}

.side-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-btn:hover,
.side-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.side-btn.active {
    background: var(--bidv-teal-2);
}

.main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 56px;
    min-height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    height: 42px;
    width: 118px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: var(--line);
}

.brand-title {
    min-width: 0;
}

.brand-title strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-title span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.user-chip {
    height: 36px;
    max-width: 220px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.user-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip:hover {
    background: #eef8f7;
    border-color: #bfe7e3;
    color: var(--bidv-teal);
}

.avatar {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--bidv-teal) 0%, var(--bidv-teal-2) 62%, var(--bidv-yellow) 100%);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-small {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.avatar-medium {
    width: 58px;
    height: 58px;
    font-size: 19px;
}

.avatar-large {
    width: 96px;
    height: 96px;
    font-size: 30px;
}

.icon-btn,
.text-btn,
.primary-btn,
.danger-btn,
.ghost-btn {
    height: 36px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.icon-btn {
    width: 36px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #4b5563;
}

.icon-btn:hover,
.text-btn:hover,
.ghost-btn:hover {
    background: #f9fafb;
}

.text-btn,
.ghost-btn {
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.compact-reset-btn {
    height: 34px;
    padding: 0 10px;
    color: var(--bidv-teal);
    background: #f0fdfa;
    border-color: #bfe7e3;
}

.primary-btn {
    padding: 0 14px;
    background: var(--bidv-teal);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 107, 104, 0.2);
}

.primary-btn:hover {
    background: #005d5a;
}

.primary-btn:disabled,
.primary-btn.is-disabled,
.ghost-btn:disabled,
.ghost-btn.is-disabled,
.text-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.danger-btn {
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #fecaca;
    color: var(--danger);
    font-size: 12px;
    font-weight: 800;
}

.danger-btn:hover {
    background: #fff1f2;
}

.workspace {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px 22px;
}

.command-band {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.screen-kicker {
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.screen-title {
    margin: 0;
    font-size: 22px;
    line-height: 30px;
    color: #172033;
}

.screen-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
    max-width: 900px;
}

.command-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f9fafb;
    border: 1px solid var(--line);
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
}

.pill.good {
    background: #ecfdf5;
    color: var(--success);
    border-color: #bbf7d0;
}

.pill.warn {
    background: #fffbeb;
    color: var(--warning);
    border-color: #fde68a;
}

.pill.bad {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.kpi-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 12px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kpi-label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
}

.kpi-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.kpi-value {
    margin-top: 12px;
    color: #111827;
    font-size: 27px;
    line-height: 32px;
    font-weight: 800;
}

.kpi-foot {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.tabbar {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tab-btn {
    position: relative;
    height: 38px;
    padding: 0 13px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4b5563;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex: 0 0 auto;
}

.tab-btn:hover {
    background: #f9fafb;
}

.tab-btn.active {
    color: #ffffff;
    background: var(--bidv-teal);
}

.tab-btn.sheet-tab-red::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: #ef4444;
}

.tab-btn.sheet-tab-red.active::after {
    background: #ffb3b3;
}

.content-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}

.content-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.panel-head {
    min-height: 58px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.panel-title i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
    flex: 0 0 auto;
}

.panel-title h2 {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    line-height: 20px;
}

.panel-title span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.panel-body {
    padding: 14px;
}

.work-plan-page {
    margin-top: 16px;
}

.work-plan-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.work-metric {
    width: 100%;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    color: inherit;
    font: inherit;
    text-align: left;
}

.work-metric.is-clickable {
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.work-metric.is-clickable:hover {
    border-color: #79c9c4;
    box-shadow: 0 5px 14px rgba(0, 126, 121, 0.11);
    transform: translateY(-1px);
}

.work-metric.is-clickable:focus-visible {
    outline: 3px solid rgba(0, 156, 149, 0.24);
    outline-offset: 2px;
}

.work-metric.is-clickable.active {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 2px rgba(0, 156, 149, 0.12);
}

.work-metric i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
}

.work-metric.blue i {
    color: var(--info);
    background: #eff6ff;
}

.work-metric.green i {
    color: var(--success);
    background: #ecfdf5;
}

.work-metric.yellow i {
    color: var(--warning);
    background: #fffbeb;
}

.work-metric.red i {
    color: var(--danger);
    background: #fef2f2;
}

.work-metric span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
}

.work-metric strong {
    display: block;
    margin-top: 2px;
    color: #172033;
    font-size: 22px;
    font-weight: 850;
    line-height: 26px;
}

.work-plan-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.work-onboarding {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #cde8e5;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 14px;
}

.work-onboarding.compact {
    grid-template-columns: 1fr;
}

.work-onboarding.compact > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-onboarding.compact > div > i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
}

.work-onboarding-copy span {
    display: block;
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.work-onboarding-copy strong,
.work-onboarding.compact strong {
    display: block;
    color: #172033;
    font-size: 14px;
    line-height: 20px;
}

.work-onboarding-copy p,
.work-onboarding.compact span {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.work-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.work-onboarding-steps div {
    min-height: 64px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.work-onboarding-steps b {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--bidv-teal);
    font-size: 11px;
}

.work-onboarding-steps span {
    display: block;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    line-height: 16px;
}

.work-category-panel,
.work-items-panel {
    min-width: 0;
}

.compact-primary {
    min-height: 34px;
    padding: 0 10px;
}

.work-category-list {
    display: grid;
    gap: 8px;
}

.work-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.work-category-row:hover,
.work-category-row.active {
    border-color: #99d8d4;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.work-category-row.active {
    background: linear-gradient(90deg, #f0fdfa 0%, #ffffff 44%);
}

.work-category-overview {
    width: 100%;
    min-height: 72px;
    padding: 10px;
    border: 1px solid #cde8e5;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 72%);
    color: #172033;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.work-category-overview:hover,
.work-category-overview.active {
    border-color: #7bcac4;
    box-shadow: 0 8px 18px rgba(0, 121, 113, 0.12);
}

.work-category-overview-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
}

.work-category-overview-copy,
.work-category-copy {
    min-width: 0;
}

.work-category-overview-copy strong,
.work-category-copy strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 12px;
    font-weight: 850;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-category-overview-copy small,
.work-category-copy small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-category-overview-percent,
.work-category-percent {
    justify-self: end;
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 900;
}

.work-category-code {
    align-self: center;
    justify-self: start;
    min-width: 64px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef8f7;
    color: var(--bidv-teal);
    font-size: 10px;
    font-weight: 900;
    line-height: 12px;
    text-align: center;
}

.work-category-main {
    width: 100%;
    padding: 9px 10px;
    border: 0;
    background: #ffffff;
    color: #172033;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 36px;
    align-items: center;
    gap: 9px;
    text-align: left;
    cursor: pointer;
}

.work-category-main:hover {
    background: #f8fafc;
}

.work-title-cell strong {
    display: block;
    color: #172033;
    font-size: 12px;
    font-weight: 850;
    line-height: 18px;
}

.work-title-cell span,
.work-title-cell small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.work-category-progress {
    grid-column: 1 / -1;
    height: 5px;
    margin-top: 1px;
    border-radius: 999px;
    background: #edf2f7;
    overflow: hidden;
}

.work-category-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bidv-teal);
}

.work-category-meta {
    padding: 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.work-category-actions {
    align-self: stretch;
    padding: 7px 8px 7px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.42;
    transition: opacity 0.18s ease;
}

.work-category-row:hover .work-category-actions,
.work-category-row.active .work-category-actions {
    opacity: 1;
}

.work-category-actions .icon-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
}

.work-task-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid #e5eaf0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    color: #334155;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-table-category {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    border-radius: 999px;
    background: #edfafa;
    color: var(--bidv-teal);
    overflow: hidden;
    vertical-align: top;
}

.work-table-category-code {
    align-self: stretch;
    min-width: 40px;
    padding: 6px 8px;
    background: rgba(0, 121, 113, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #006b68;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    font-weight: 900;
    line-height: 12px;
    white-space: nowrap;
}

.work-table-category strong {
    display: block;
    min-width: 0;
    padding: 5px 10px 5px 8px;
    overflow: hidden;
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 850;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-filter-bar {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) repeat(3, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.work-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.work-view-tab {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.work-view-tab b {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #172033;
    font-size: 11px;
}

.work-view-tab.active,
.work-view-tab:hover {
    border-color: #99d8d4;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.work-view-tab.active b,
.work-view-tab:hover b {
    background: #ffffff;
    color: var(--bidv-teal);
}

.work-filter-bar label {
    min-width: 0;
}

.work-filter-bar span {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.work-empty-note {
    min-height: 180px;
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
}

.work-empty-note > i {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
}

.work-empty-note strong {
    color: #172033;
    font-size: 13px;
}

.work-empty-note span {
    font-size: 12px;
    line-height: 18px;
}

.work-task-empty {
    min-height: 300px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
}

.work-task-empty > i {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
    font-size: 18px;
}

.work-task-empty strong {
    color: #172033;
    font-size: 15px;
}

.work-task-empty span {
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.work-progress-btn {
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
    border-color: #bfe7e3;
}

.work-progress-modal {
    max-width: 920px;
}

.work-progress-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.work-progress-form {
    align-content: start;
}

.record-rail .rail-card.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.field-input,
.field-select,
.field-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field-input,
.field-select {
    height: 38px;
    padding: 0 10px;
}

.field-textarea {
    min-height: 92px;
    padding: 10px;
    resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.11);
}

.combo-field {
    position: relative;
}

.combo-control {
    position: relative;
}

.combo-input {
    padding-right: 40px;
}

.combo-toggle {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.combo-toggle:hover {
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.combo-field.open .combo-toggle i {
    transform: rotate(180deg);
}

.combo-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 70;
    display: none;
    max-height: 236px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.combo-field.open .combo-menu {
    display: grid;
    gap: 3px;
}

.work-people-cell {
    display: grid;
    gap: 6px;
}

.work-people-cell > span,
.work-people-more > div > span {
    min-width: 0;
    display: block;
}

.work-people-cell strong,
.work-people-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-people-cell strong {
    color: #172033;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.work-people-cell small {
    color: #64748b;
    font-size: 10px;
    line-height: 14px;
    white-space: nowrap;
}

.work-people-more summary {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    cursor: pointer;
    list-style: none;
    font-size: 10px;
    font-weight: 850;
}

.work-people-more summary::-webkit-details-marker {
    display: none;
}

.work-people-more > div {
    display: grid;
    gap: 5px;
    margin-top: 5px;
    padding: 7px;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    background: #f8fafc;
}

.people-multi {
    position: relative;
}

.people-multi-control {
    min-height: 42px;
    padding: 5px 42px 5px 7px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.people-multi.open .people-multi-control {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.11);
}

.people-multi-chips {
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.people-multi-placeholder {
    padding: 5px 3px;
    color: #94a3b8;
    font-size: 13px;
}

.people-chip {
    max-width: 100%;
    min-height: 28px;
    padding: 3px 5px 3px 9px;
    border: 1px solid #bfe7e3;
    border-radius: 999px;
    background: var(--bidv-teal-soft);
    color: #075f58;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
}

.people-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-chip button {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #397c77;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.people-chip button:hover {
    background: #cceeea;
    color: #064e49;
}

.people-multi-toggle,
.people-multi-lock {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    display: grid;
    place-items: center;
}

.people-multi-toggle {
    cursor: pointer;
}

.people-multi-toggle:hover {
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.people-multi.open .people-multi-toggle i {
    transform: rotate(180deg);
}

.people-multi-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 90;
    display: none;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.people-multi.open .people-multi-menu {
    display: block;
}

.people-multi-search-wrap {
    position: relative;
}

.people-multi-search-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    color: #94a3b8;
    transform: translateY(-50%);
}

.people-multi-search-wrap input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 34px;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    outline: none;
}

.people-multi-search-wrap input:focus {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.09);
}

.people-multi-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 2px 5px;
}

.people-multi-actions button {
    border: 0;
    background: transparent;
    color: var(--bidv-teal);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.people-multi-options {
    max-height: 230px;
    overflow: auto;
    border-top: 1px solid #edf2f7;
    padding-top: 4px;
}

.people-multi-option {
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 7px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.people-multi-option:hover {
    background: #f1f8f7;
}

.people-multi-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--bidv-teal);
}

.people-multi-option strong,
.people-multi-option small {
    display: block;
}

.people-multi-option strong {
    color: #1f2937;
    font-size: 12px;
}

.people-multi-option small {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}

.people-multi-empty {
    padding: 16px 8px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.people-multi.is-locked .people-multi-control {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.people-multi-lock {
    color: #94a3b8;
}

.combo-option {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    padding: 7px 9px;
    background: transparent;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    text-align: left;
    cursor: pointer;
}

.combo-option:hover,
.combo-option:focus {
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    outline: none;
}

.combo-option.hidden {
    display: none;
}

.combo-empty {
    display: none;
    padding: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 17px;
}

.combo-menu.is-empty .combo-empty {
    display: block;
}

.table-shell {
    width: 100%;
}

.table-pagination {
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.table-page-size,
.table-page-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compact-select {
    width: auto;
    min-width: 74px;
    height: 32px;
    padding: 0 30px 0 10px;
    font-size: 12px;
}

.table-page-status {
    color: #64748b;
    white-space: nowrap;
}

.table-page-actions span {
    min-width: 52px;
    color: #1f2937;
    text-align: center;
}

.page-btn {
    width: 32px;
    height: 32px;
}

.page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.table-top-scroll {
    position: sticky;
    top: 0;
    z-index: 18;
    width: 100%;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(#f8fafc, #eef4f8);
    scrollbar-color: #94a3b8 #eef2f7;
    scrollbar-width: thin;
}

.table-top-scroll [data-table-scroll-spacer] {
    height: 1px;
}

.table-floating-header {
    position: fixed;
    z-index: 29;
    display: none;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    pointer-events: none;
}

.table-floating-header.is-visible {
    display: block;
}

.table-floating-header-viewport {
    width: 100%;
    overflow: hidden;
}

.table-floating-header-table {
    border-collapse: collapse;
    table-layout: fixed;
}

.table-floating-header::before,
.table-floating-header::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 30;
    width: 22px;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.table-floating-header::before {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .18), transparent);
}

.table-floating-header::after {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, .18), transparent);
}

.table-shell.can-scroll-left .table-floating-header::before,
.table-shell.can-scroll-right .table-floating-header::after {
    opacity: 1;
}

.table-floating-scroll {
    position: fixed;
    z-index: 31;
    display: none;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: linear-gradient(#f8fafc, #e8eef4);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .2);
    scrollbar-color: #64748b #e2e8f0;
    scrollbar-width: thin;
}

.table-shell:not(.has-horizontal-overflow) .table-top-scroll {
    display: none;
}

.table-floating-scroll.is-visible {
    display: block;
}

.table-floating-scroll [data-table-scroll-spacer] {
    height: 1px;
}

.table-top-scroll::-webkit-scrollbar,
.table-floating-scroll::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
    height: 12px;
}

.table-top-scroll::-webkit-scrollbar-track,
.table-floating-scroll::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.table-top-scroll::-webkit-scrollbar-thumb,
.table-floating-scroll::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #eef2f7;
    border-radius: 999px;
    background: #94a3b8;
}

.table-top-scroll::-webkit-scrollbar-thumb:hover,
.table-floating-scroll::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: #ffffff;
}

.data-table {
    width: max-content;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    box-sizing: border-box;
}

.data-table th {
    height: 42px;
    padding: 0 18px 0 10px;
    background: #f8fafc;
    color: #374151;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
}

.data-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.data-table thead tr:first-child th.filter-open {
    z-index: 20;
}

.data-table.has-group-header thead tr:first-child th {
    height: 24px;
    padding: 4px 10px 0;
    background: #fff7ed;
    color: #dc2626;
    border-bottom: 0;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    text-transform: none;
}

.data-table.has-group-header thead tr:first-child th.excel-header-top-cell.is-empty,
.data-table.has-group-header thead tr:first-child th.excel-header-top-action {
    background: #f8fafc;
}

.data-table.has-group-header thead tr:nth-child(2) th {
    position: sticky;
    top: 24px;
    z-index: 2;
    height: 36px;
    border-top: 0;
}

.data-table.has-group-header thead tr:nth-child(2) th.filter-open {
    z-index: 20;
}

.excel-header-top-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.column-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 12;
    width: 10px;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: col-resize;
    touch-action: none;
}

.column-resize-handle::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after,
.column-resize-handle.active::after {
    background: var(--bidv-teal);
    box-shadow: 0 0 0 2px rgba(0, 107, 104, 0.12);
}

body.is-column-resizing {
    cursor: col-resize;
    user-select: none;
}

body.is-column-resizing * {
    cursor: col-resize !important;
}

.th-control {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.th-label {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.computed-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 6px;
    background: #e6f7f5;
    color: var(--bidv-teal);
    font-size: 9px;
    font-weight: 850;
    line-height: 14px;
    text-transform: none;
}

.th-filter-btn {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.th-filter-btn:hover,
.th-filter-btn.active {
    background: #e0f2f1;
    border-color: #bfe7e3;
    color: var(--bidv-teal);
}

.th-filter-btn.active::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f5c400;
}

.column-filter-popover {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: min(260px, 76vw);
    padding: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    text-transform: none;
}

.column-filter-head,
.column-filter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.column-filter-head {
    margin-bottom: 8px;
}

.column-filter-head strong {
    min-width: 0;
    color: #172033;
    font-size: 12px;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-filter-foot {
    min-height: 26px;
    margin-top: 8px;
}

.mini-icon-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
}

.mini-icon-btn:hover {
    background: #e0f2f1;
    color: var(--bidv-teal);
}

.mini-text-btn {
    min-height: 26px;
    border: 0;
    border-radius: 6px;
    padding: 0 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.mini-text-btn:hover {
    background: #e0f2f1;
    color: var(--bidv-teal);
}

.column-filter {
    width: 100%;
    height: 30px;
    border: 1px solid #d9dee7;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    padding: 0 8px;
}

.column-filter:focus {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 2px rgba(0, 107, 104, 0.1);
}

.data-table td {
    min-height: 48px;
    padding: 10px;
    border-bottom: 1px solid #edf0f3;
    color: #1f2937;
    font-size: 12px;
    line-height: 18px;
    vertical-align: top;
    overflow-wrap: break-word;
}

.data-table.is-compact th {
    height: 36px;
    padding: 0 16px 0 8px;
    font-size: 10.5px;
}

.data-table.is-compact .column-filter {
    height: 26px;
    padding: 0 7px;
    font-size: 10.5px;
}

.data-table.is-compact td {
    min-height: 40px;
    padding: 7px 8px;
    font-size: 11.5px;
    line-height: 16px;
}

.data-table.is-compact .tag {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 10.5px;
    line-height: 15px;
}

.data-table.has-sticky-columns .sticky-col {
    position: sticky;
    z-index: 1;
    background: #ffffff;
}

.data-table.has-sticky-columns thead tr:first-child th {
    z-index: 4;
}

.data-table.has-sticky-columns.has-group-header thead tr:nth-child(2) th {
    z-index: 4;
}

.data-table.has-sticky-columns thead tr:first-child th.sticky-col {
    z-index: 7;
    background: #f8fafc;
}

.data-table.has-sticky-columns.has-group-header thead tr:first-child th.sticky-col.has-label {
    background: #fff7ed;
}

.data-table.has-sticky-columns.has-group-header thead tr:nth-child(2) th.sticky-col {
    z-index: 7;
    background: #f8fafc;
}

.data-table.has-sticky-columns thead tr:first-child th.sticky-col.filter-open {
    z-index: 24;
}

.data-table.has-sticky-columns.has-group-header thead tr:nth-child(2) th.sticky-col.filter-open {
    z-index: 24;
}

.data-table.has-sticky-columns td.sticky-col {
    z-index: 2;
}

.data-table.has-sticky-columns .sticky-boundary {
    box-shadow: 10px 0 14px -14px rgba(15, 23, 42, 0.55);
}

.data-table .section-row td {
    min-height: 26px;
    padding: 4px 8px;
    background: #12bdb8;
    color: #ffffff;
    border-bottom: 1px solid #0ea5a0;
    font-size: 12px;
    line-height: 16px;
    vertical-align: middle;
}

.data-table .section-row td.sticky-col {
    background: #12bdb8;
    z-index: 3;
}

.data-table .section-row.section-level-1 td,
.data-table .section-row.section-level-1 td.sticky-col {
    background: #008b86;
    border-bottom-color: #00736f;
}

.data-table .section-row.section-level-2 td,
.data-table .section-row.section-level-2 td.sticky-col {
    background: #98f5f2;
    color: #064e4b;
    border-bottom-color: #70ddd8;
}

.data-table .section-row .section-title-cell {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.data-table .section-row strong {
    position: sticky;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--table-view-width, 100%);
    max-width: 100%;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: section-title-pulse 2.8s ease-in-out infinite;
}

.data-table .section-row.section-level-2 strong {
    color: #064e4b;
}

@keyframes section-title-pulse {
    0%,
    100% {
        opacity: 0.92;
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 9px rgba(255, 255, 255, 0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .data-table .section-row strong {
        animation: none;
    }
}

.data-table.is-compact .section-row td {
    min-height: 24px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.data-table tbody tr:hover td {
    background: #fbfdff;
}

.data-table.has-sticky-columns tbody tr:hover td.sticky-col {
    background: #fbfdff;
}

.data-table tbody tr.section-row:hover td,
.data-table.has-sticky-columns tbody tr.section-row:hover td.sticky-col {
    background: #12bdb8;
}

.data-table tbody tr.section-row.section-level-1:hover td,
.data-table.has-sticky-columns tbody tr.section-row.section-level-1:hover td.sticky-col {
    background: #008b86;
}

.data-table tbody tr.section-row.section-level-2:hover td,
.data-table.has-sticky-columns tbody tr.section-row.section-level-2:hover td.sticky-col {
    background: #98f5f2;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.col-actions {
    text-align: right;
}

.row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.row-actions .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.permission-lock {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
}

.tag.teal {
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.tag.yellow {
    background: #fffbeb;
    color: var(--warning);
}

.tag.orange {
    background: #fff7ed;
    color: #c2410c;
}

.tag.blue {
    background: #eff6ff;
    color: var(--info);
}

.tag.purple {
    background: #f5f3ff;
    color: #6d28d9;
}

.tag.green {
    background: #ecfdf5;
    color: var(--success);
}

.tag.red {
    background: #fef2f2;
    color: var(--danger);
}

.tag.red-dark {
    background: #ffe4e6;
    color: #9f1239;
}

.tag.gray {
    background: #f3f4f6;
    color: #4b5563;
}

.tag.gray-dark {
    background: #f1f5f9;
    color: #334155;
}

.cell-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}

.cell-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
}

.cell-badge.level-1 {
    background: #e6fffb;
    color: #00736f;
}

.cell-badge.level-2 {
    background: #eef2ff;
    color: #475569;
}

.progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--bidv-teal);
    border-radius: 999px;
}

.progress-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    gap: 8px;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.insight-list {
    display: grid;
    gap: 10px;
}

.insight {
    padding: 10px 0;
    border-bottom: 1px solid #edf0f3;
}

.insight:last-child {
    border-bottom: 0;
}

.insight strong {
    display: block;
    color: #1f2937;
    font-size: 13px;
    line-height: 18px;
}

.insight span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.empty-state {
    min-height: 320px;
    padding: 42px 18px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
}

.empty-state.compact {
    min-height: 150px;
    padding: 24px 12px;
}

.empty-state .empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    font-size: 20px;
}

.empty-state h3 {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    line-height: 22px;
}

.empty-state p {
    margin: 6px auto 0;
    max-width: 420px;
    font-size: 13px;
    line-height: 20px;
}

.empty-action {
    margin-top: 14px;
}

.kickoff {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 18px;
}

.kickoff-hero {
    width: min(720px, 100%);
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.kickoff-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    display: grid;
    place-items: center;
    font-size: 21px;
    flex: 0 0 auto;
}

.kickoff h3 {
    margin: 0;
    color: #12243a;
    font-size: 19px;
    line-height: 26px;
}

.kickoff p {
    margin: 6px 0 0;
    color: #526173;
    font-size: 13px;
    line-height: 20px;
}

.kickoff-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-shell {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.45fr) minmax(280px, 0.9fr) minmax(300px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 16px;
    align-items: start;
}

.dashboard-panel {
    min-width: 0;
    height: 100%;
}

.dashboard-empty-panel {
    min-height: 220px;
}

.excel-dashboard-panel {
    overflow: hidden;
}

.excel-dashboard-title {
    background: #006b5f;
    color: #ffffff;
    padding: 14px 18px;
}

.excel-dashboard-title h2 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 900;
    letter-spacing: 0;
}

.excel-dashboard-body {
    padding: 18px;
    background: #ffffff;
}

.excel-summary-grid {
    max-width: 520px;
    margin-bottom: 24px;
}

.excel-section-title {
    width: fit-content;
    min-width: 260px;
    margin: 18px 0 0;
    padding: 5px 8px;
    background: #00746a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.excel-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 18px;
}

.excel-sheet-table {
    border-collapse: collapse;
    width: max-content;
    min-width: min(100%, 780px);
    color: #111827;
    font-size: 14px;
}

.excel-sheet-table th,
.excel-sheet-table td {
    border: 1px solid #d6dbe2;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.excel-sheet-table thead th {
    background: #1f4e78;
    color: #ffffff;
    font-weight: 900;
}

.excel-summary-table {
    min-width: 420px;
}

.excel-summary-table th {
    width: 260px;
    background: #d9e1f2;
    color: #111827;
    font-weight: 900;
}

.excel-summary-table td {
    min-width: 120px;
    background: #d9eaf7;
    text-align: right;
}

.excel-empty-cell {
    color: #6b7280;
    text-align: center !important;
}

.sheet-dashboard {
    display: grid;
    gap: 16px;
}

.sheet-dashboard-panel {
    overflow: hidden;
    min-width: 0;
}

.sheet-dashboard-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(0, 121, 113, 0.08), rgba(31, 78, 120, 0.05)),
        #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sheet-dashboard-head span {
    display: block;
    color: #00766e;
    font-size: 12px;
    line-height: 16px;
    font-weight: 950;
    text-transform: uppercase;
}

.sheet-dashboard-head h2 {
    margin-top: 4px;
    color: #111827;
    font-size: 19px;
    line-height: 25px;
    font-weight: 950;
    letter-spacing: 0;
}

.sheet-dashboard-pill {
    width: fit-content;
    min-width: max-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e6fffb;
    border: 1px solid #9be2dc;
    color: #006b68 !important;
    text-transform: none !important;
}

.sheet-dashboard-grid,
.defect-dashboard-layout {
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1.48fr);
    gap: 14px;
    align-items: start;
}

.sheet-dashboard-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.sheet-dashboard-card.sprint-card,
.sheet-dashboard-card.matrix-card {
    grid-column: span 1;
}

.sheet-dashboard-card.owner-card {
    grid-column: 1 / -1;
}

.sheet-card-title {
    min-height: 44px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sheet-card-title i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e6fffb;
    color: #00766e;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.sheet-card-title h3 {
    color: #172033;
    font-size: 14px;
    line-height: 19px;
    font-weight: 950;
    letter-spacing: 0;
}

.sheet-dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sheet-dashboard-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #172033;
    font-size: 13px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
}

.sheet-dashboard-table.compact {
    min-width: 100%;
}

.sheet-dashboard-table th,
.sheet-dashboard-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e8edf3;
    vertical-align: middle;
    white-space: nowrap;
}

.sheet-dashboard-table thead th {
    background: #007f78;
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 950;
    text-align: left;
}

.sheet-dashboard-table thead th:not(:first-child) {
    text-align: right;
}

.sheet-dashboard-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.sheet-dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.sheet-dashboard-table .label-cell {
    color: #334155;
    font-weight: 850;
    text-align: left;
}

.sheet-dashboard-table .value-cell {
    color: #111827;
    font-weight: 800;
    text-align: right;
}

.sheet-dashboard-table.compact th:first-child,
.sheet-dashboard-table.compact td:first-child {
    width: 62%;
}

.sheet-dashboard-table.compact th:last-child,
.sheet-dashboard-table.compact td:last-child {
    width: 38%;
    text-align: right;
}

.sprint-dashboard-table th:first-child,
.sprint-dashboard-table td:first-child,
.matrix-dashboard-table th:first-child,
.matrix-dashboard-table td:first-child,
.owner-dashboard-table th:first-child,
.owner-dashboard-table td:first-child {
    text-align: left;
}

.sprint-dashboard-table thead th:not(:first-child),
.sprint-dashboard-table .value-cell,
.matrix-dashboard-table thead th:not(:first-child),
.matrix-dashboard-table .value-cell {
    text-align: center;
}

.owner-dashboard-table thead th:not(:first-child),
.owner-dashboard-table .value-cell {
    text-align: right;
}

.sprint-dashboard-table th:first-child,
.sprint-dashboard-table td:first-child {
    width: 16%;
}

.sprint-dashboard-table th:last-child,
.sprint-dashboard-table td:last-child {
    width: 20%;
}

.owner-dashboard-table th:first-child,
.owner-dashboard-table td:first-child {
    width: 34%;
}

.sprint-dashboard-table,
.matrix-dashboard-table {
    min-width: 720px;
}

.owner-dashboard-table {
    min-width: 760px;
}

.defect-dashboard-layout {
    grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

.defect-dashboard-summary-row {
    padding: 0 16px 16px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.35fr) minmax(220px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.uat-dashboard {
    display: grid;
    gap: 16px;
}

.uat-dashboard-hero {
    min-height: 148px;
    padding: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #006b5f 0%, #007f78 54%, #1f4e78 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.uat-dashboard-hero span,
.guide-hero span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.uat-dashboard-hero h2,
.guide-hero h2 {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0;
    font-weight: 950;
}

.uat-dashboard-hero p,
.guide-hero p {
    max-width: 760px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 22px;
}

.uat-hero-score {
    min-width: 188px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 8px;
}

.uat-hero-score small {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.uat-hero-score strong {
    font-size: 34px;
    line-height: 38px;
}

.uat-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.uat-metric-card {
    min-height: 108px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.uat-metric-card span {
    color: #64748b;
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
}

.uat-metric-card strong {
    color: #111827;
    font-size: 30px;
    line-height: 34px;
    font-weight: 950;
}

.uat-metric-card.teal {
    border-color: #99d8d3;
    background: #f0fdfa;
}

.uat-metric-card.green {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.uat-metric-card.blue {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.uat-metric-card.yellow {
    border-color: #fde68a;
    background: #fffbeb;
}

.uat-metric-card.red {
    border-color: #fecaca;
    background: #fff7f7;
}

.uat-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 16px;
    align-items: stretch;
}

.uat-dashboard-panel {
    min-width: 0;
}

.defect-dashboard-panel {
    margin-top: 16px;
}

.defect-dashboard-body {
    display: grid;
    gap: 14px;
}

.defect-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.defect-kpi-card {
    min-height: 86px;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: grid;
    align-content: space-between;
    gap: 10px;
}

.defect-kpi-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.defect-kpi-card strong {
    color: #111827;
    font-size: 26px;
    line-height: 30px;
}

.defect-kpi-card.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.defect-kpi-card.blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.defect-kpi-card.yellow {
    background: #fffbeb;
    border-color: #fde68a;
}

.defect-kpi-card.red {
    background: #fff7f7;
    border-color: #fecaca;
}

.defect-matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.defect-matrix {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 13px;
}

.defect-matrix th,
.defect-matrix td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.defect-matrix th:first-child,
.defect-matrix td:first-child {
    text-align: left;
    font-weight: 850;
}

.defect-matrix th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    text-transform: uppercase;
}

.defect-matrix tr:last-child td {
    border-bottom: 0;
    background: #f8fafc;
    font-weight: 900;
}

.uat-owner-list {
    display: grid;
    gap: 10px;
}

.uat-owner-card {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fbfdff;
    display: grid;
    gap: 10px;
}

.uat-owner-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.uat-owner-main strong {
    color: #172033;
    font-size: 15px;
}

.uat-owner-main span,
.uat-owner-card small {
    color: #64748b;
    font-weight: 750;
}

.uat-owner-progress,
.uat-table-progress {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.uat-readiness-card {
    min-height: 144px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fbfdff;
    display: grid;
    align-content: space-between;
    gap: 18px;
}

.uat-readiness-card span,
.uat-readiness-note span {
    color: #64748b;
    font-weight: 800;
}

.uat-readiness-card strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 40px;
    line-height: 44px;
}

.uat-readiness-card.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.uat-readiness-card.yellow {
    background: #fffbeb;
    border-color: #fde68a;
}

.uat-readiness-card.red {
    background: #fff7f7;
    border-color: #fecaca;
}

.uat-readiness-note {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uat-readiness-note span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 12px;
}

.uat-sprint-table-wrap {
    overflow-x: auto;
}

.uat-sprint-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
}

.uat-sprint-table th {
    padding: 11px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: #334155;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 900;
}

.uat-sprint-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
}

.guide-page {
    display: grid;
    gap: 16px;
}

.guide-hero {
    min-height: 156px;
    padding: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #006b5f 0%, #008a85 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.guide-hero-badge {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    text-align: center;
}

.guide-hero-badge strong {
    display: block;
    font-size: 34px;
    line-height: 34px;
}

.guide-hero-badge span {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.guide-section {
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.guide-section-accent {
    border-color: #99d8d3;
    background: #f0fdfa;
}

.guide-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.guide-section-head i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e0f2f1;
    color: var(--bidv-teal);
}

.guide-section-head h3 {
    color: #172033;
    font-size: 18px;
    line-height: 24px;
    font-weight: 900;
}

.guide-section-head span {
    color: #64748b;
    font-size: 13px;
}

.guide-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guide-step-card {
    min-height: 112px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fbfdff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
}

.guide-step-card b {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal);
    color: #ffffff;
}

.guide-step-card strong,
.guide-handoff-facts strong,
.guide-reference-list strong {
    color: #172033;
    font-size: 14px;
    line-height: 20px;
}

.guide-step-card p,
.guide-handoff-primary p,
.guide-handoff-facts p {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 20px;
}

.guide-handoff-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
    gap: 12px;
    align-items: stretch;
}

.guide-handoff-primary,
.guide-handoff-facts article {
    border-radius: 8px;
    border: 1px solid #bfe7e3;
    background: #ffffff;
}

.guide-handoff-primary {
    min-height: 188px;
    padding: 18px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.guide-handoff-primary h4 {
    color: #172033;
    font-size: 20px;
    line-height: 28px;
    font-weight: 950;
}

.guide-handoff-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.guide-handoff-facts article {
    min-height: 86px;
    padding: 13px;
}

.guide-handoff-primary span,
.guide-handoff-facts span {
    display: block;
    margin-bottom: 8px;
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.guide-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-reference-list {
    display: grid;
    gap: 8px;
}

.guide-reference-list article {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fbfdff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.guide-reference-list span {
    color: #64748b;
    line-height: 20px;
}

.guide-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.guide-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 19px;
}

.guide-table th,
.guide-table td {
    padding: 9px 11px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: top;
}

.guide-table th {
    background: #008a85;
    color: #ffffff;
    font-weight: 950;
}

.guide-table tr:last-child td {
    border-bottom: 0;
}

.guide-table td:first-child {
    color: #172033;
    font-weight: 900;
    white-space: nowrap;
}

.guide-flow-list {
    display: grid;
    gap: 8px;
}

.guide-flow-list article,
.guide-priority-steps {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fbfdff;
}

.guide-flow-list article {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.guide-flow-list strong {
    color: #172033;
}

.guide-flow-list span {
    color: #dc2626;
    font-weight: 850;
}

.guide-priority-steps {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #dc2626;
    font-weight: 900;
}

.guide-priority-steps i {
    color: #ef4444;
}

.linked-text {
    display: grid;
    gap: 6px;
    white-space: normal;
    word-break: break-word;
}

.linked-text > span {
    white-space: pre-wrap;
}

.inline-link {
    color: #0563c1;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 800;
}

.inline-link:hover {
    color: #004a98;
}

.linked-text-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-note-btn {
    color: #087f75;
    background: #e6f7f4;
    border-color: #b9e8e1;
}

.plan-note-btn:hover {
    color: #05665f;
    background: #d3f1ec;
}

.plan-note-policy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid #bfe6df;
    border-radius: 12px;
    color: #075f58;
    background: #effaf8;
}

.plan-note-policy > i {
    margin-top: 2px;
    font-size: 17px;
}

.plan-note-policy > div {
    display: grid;
    gap: 3px;
}

.plan-note-policy strong {
    color: #064f49;
}

.plan-note-policy span {
    color: #47716d;
    line-height: 1.45;
}

.plan-bug-coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 7px;
    padding-top: 9px;
    border-top: 1px solid #cfe9e4;
}

.plan-bug-coverage > span {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

.plan-bug-coverage > span.warning {
    color: #a16207;
}

.plan-bug-coverage > span.success {
    color: #15803d;
}

.plan-unmapped-panel {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #f4d38d;
    border-radius: 14px;
    background: #fffbeb;
}

.plan-unmapped-head,
.plan-unmapped-head > div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.plan-unmapped-head {
    justify-content: space-between;
}

.plan-unmapped-head > div > div {
    display: grid;
    gap: 3px;
}

.plan-unmapped-head strong {
    color: #78350f;
}

.plan-unmapped-head span:not(.plan-unmapped-icon):not(.plan-unmapped-count) {
    color: #8a5b20;
    line-height: 1.4;
}

.plan-unmapped-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #b45309;
    background: #fef3c7;
}

.plan-unmapped-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fde68a;
    font-size: 11px;
    font-weight: 850;
}

.plan-unmapped-head-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
}

.plan-unmapped-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #e8bd63;
    border-radius: 9px;
    color: #92400e;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(120, 53, 15, .06);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.plan-unmapped-toggle:hover {
    border-color: #d99a24;
    background: #fff7dc;
    box-shadow: 0 3px 10px rgba(120, 53, 15, .1);
}

.plan-unmapped-toggle:focus-visible {
    outline: 3px solid rgba(217, 119, 6, .2);
    outline-offset: 2px;
}

.plan-unmapped-toggle > i {
    transition: transform .2s ease;
}

.plan-unmapped-panel.is-expanded .plan-unmapped-toggle > i {
    transform: rotate(180deg);
}

.plan-unmapped-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 10px;
}

.plan-unmapped-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ead7b3;
    border-radius: 12px;
    background: #ffffff;
}

.plan-unmapped-card.missing-child {
    border-color: #f1b5b5;
    background: #fffafa;
}

.plan-unmapped-panel:not(.is-expanded) .plan-unmapped-card.is-preview-overflow,
.plan-unmapped-panel:not(.is-expanded) .plan-bug-group.is-preview-overflow,
.plan-unmapped-panel:not(.is-expanded) .plan-bug-item.is-preview-overflow {
    display: none;
}

.plan-unmapped-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.plan-unmapped-context > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.plan-unmapped-context > .wide {
    grid-column: 1 / -1;
}

.plan-unmapped-label {
    color: #8a6b3f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.plan-unmapped-context strong {
    color: #29364a;
    overflow-wrap: anywhere;
}

.plan-unmapped-reason {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    color: #92400e;
    background: #fff7dc;
    font-size: 12px;
    font-weight: 700;
}

.plan-unmapped-card.missing-child .plan-unmapped-reason {
    color: #991b1b;
    background: #fef2f2;
}

@media (max-width: 720px) {
    .plan-unmapped-head {
        display: grid;
    }

    .plan-unmapped-count {
        width: max-content;
    }

    .plan-unmapped-head-actions {
        flex-wrap: wrap;
    }

    .plan-unmapped-context {
        grid-template-columns: 1fr;
    }

    .plan-unmapped-context > .wide {
        grid-column: auto;
    }
}

.plan-note-modal {
    width: min(860px, calc(100vw - 32px));
}

.plan-note-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.plan-note-context > div {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #f8fafc;
}

.plan-note-context > div.wide {
    grid-column: 1 / -1;
}

.plan-note-context span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.plan-note-context strong {
    color: #172033;
    overflow-wrap: anywhere;
}

.plan-note-field textarea {
    min-height: 190px;
    resize: vertical;
}

.plan-bug-list {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.plan-bug-count {
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 11px;
    font-weight: 850;
}

.plan-bug-group {
    display: grid;
    gap: 0;
    padding: 8px 9px 3px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #fbfcfd;
}

.plan-bug-group.new {
    border-color: #a7dfd6;
    background: #f0fdfa;
}

.plan-bug-group.old {
    background: #f8fafc;
}

.plan-bug-group.unknown {
    border-color: #fde1a7;
    background: #fffbeb;
}

.plan-bug-group-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding-bottom: 5px;
}

.plan-bug-group-head > span {
    color: #0f766e;
    font-size: 11px;
    font-weight: 850;
}

.plan-bug-group.old .plan-bug-group-head > span {
    color: #475569;
}

.plan-bug-group.unknown .plan-bug-group-head > span {
    color: #a16207;
}

.plan-bug-group-head small {
    color: #8490a2;
    font-size: 10px;
}

.plan-bug-group-head strong {
    min-width: 21px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #ffffff;
    background: #0f766e;
    font-size: 10px;
    text-align: center;
}

.plan-bug-group.old .plan-bug-group-head strong {
    background: #64748b;
}

.plan-bug-group.unknown .plan-bug-group-head strong {
    background: #d97706;
}

.plan-bug-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: start;
    padding-top: 7px;
    border-top: 1px dashed #dbe4ec;
}

.plan-bug-item > i {
    margin-top: 3px;
    color: #dc2626;
    font-size: 11px;
}

.plan-bug-main {
    min-width: 0;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.plan-bug-main .inline-link {
    font-weight: 750;
}

.plan-bug-main > small {
    display: block;
    margin-top: 2px;
    color: #7a8698;
    font-size: 10px;
    font-weight: 650;
}

.plan-bug-status {
    padding: 2px 6px;
    border: 1px solid #d7e0e8;
    border-radius: 999px;
    color: #596579;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.plan-bug-preview-note {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    color: #8a5b20;
    background: #fff7dc;
    font-size: 10px;
    font-weight: 750;
}

.plan-unmapped-panel.is-expanded .plan-bug-preview-note {
    display: none;
}

.plan-bug-empty {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #15803d;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 640px) {
    .plan-note-context {
        grid-template-columns: 1fr;
    }

    .plan-note-context > div.wide {
        grid-column: auto;
    }
}

.module-progress-list,
.risk-list,
.activity-list,
.health-list,
.uat-timeline {
    display: grid;
    gap: 10px;
}

.module-progress-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 11px;
}

.module-progress-row.red {
    border-color: #fecaca;
    background: #fff7f7;
}

.module-progress-row.yellow {
    border-color: #fde68a;
    background: #fffcf2;
}

.module-progress-row.green {
    border-color: #bbf7d0;
    background: #f6fef9;
}

.module-progress-row.blue {
    border-color: #bfdbfe;
    background: #f7fbff;
}

.module-progress-main {
    min-width: 0;
}

.module-progress-head,
.readiness-decision {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.module-progress-head strong {
    min-width: 0;
    color: #172033;
    font-size: 13px;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.module-progress-meta {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
}

.module-progress-line {
    margin-top: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 9px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.progress-green span {
    background: var(--success);
}

.progress-blue span {
    background: var(--info);
}

.progress-yellow span {
    background: var(--warning);
}

.progress-red span {
    background: var(--danger);
}

.progress-gray span {
    background: #94a3b8;
}

.readiness-score {
    min-height: 82px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.readiness-score span,
.readiness-decision span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.readiness-score strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 19px;
    line-height: 26px;
}

.readiness-score b {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #172033;
    border: 6px solid var(--line);
    font-size: 15px;
}

.readiness-score.green {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.readiness-score.green b {
    border-color: #86efac;
}

.readiness-score.yellow {
    border-color: #fde68a;
    background: #fffbeb;
}

.readiness-score.yellow b {
    border-color: #facc15;
}

.readiness-score.red {
    border-color: #fecaca;
    background: #fef2f2;
}

.readiness-score.red b {
    border-color: #fca5a5;
}

.health-list {
    margin-top: 12px;
}

.health-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 12px;
}

.health-row span {
    color: #475569;
    font-weight: 750;
}

.health-row strong {
    text-align: right;
    font-size: 12px;
}

.readiness-decision {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.risk-item,
.activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.risk-item > span,
.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f3f4f6;
    color: #475569;
}

.risk-item.red > span {
    background: #fef2f2;
    color: var(--danger);
}

.risk-item.yellow > span {
    background: #fffbeb;
    color: var(--warning);
}

.risk-item.green > span {
    background: #ecfdf5;
    color: var(--success);
}

.risk-item strong,
.activity-item strong {
    display: block;
    color: #172033;
    font-size: 13px;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.risk-item small,
.activity-item small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.uat-timeline-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.uat-timeline-marker {
    min-height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    font-size: 12px;
    font-weight: 900;
}

.uat-timeline-item.blue .uat-timeline-marker {
    background: #eff6ff;
    color: var(--info);
}

.uat-timeline-item.yellow .uat-timeline-marker {
    background: #fffbeb;
    color: var(--warning);
}

.uat-timeline-item.gray .uat-timeline-marker {
    background: #f3f4f6;
    color: #64748b;
}

.uat-timeline-card {
    min-width: 0;
    padding: 0 0 11px 12px;
    border-left: 3px solid var(--bidv-teal);
}

.uat-timeline-item.blue .uat-timeline-card {
    border-left-color: var(--info);
}

.uat-timeline-item.yellow .uat-timeline-card {
    border-left-color: var(--warning);
}

.uat-timeline-item.gray .uat-timeline-card {
    border-left-color: #cbd5e1;
}

.uat-timeline-card strong {
    display: block;
    color: #172033;
    font-size: 13px;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.uat-timeline-card span,
.uat-timeline-card small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.uat-timeline-card small {
    color: #475569;
    font-weight: 800;
}

.activity-icon {
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.required-chip {
    border-radius: 999px;
    padding: 2px 7px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 10px;
    font-weight: 800;
}

.field small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.field .people-multi-option {
    min-height: 44px;
    margin: 0;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    justify-content: stretch;
    gap: 9px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
}

.field .people-multi-option > span {
    min-width: 0;
    margin: 0;
}

.field .people-multi-option small {
    margin-top: 2px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: min(1080px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-modal {
    width: min(900px, 100%);
}

.modal-head {
    min-height: 72px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.modal-head h2 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.modal-title > span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    flex: 0 0 auto;
}

.modal-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.modal-body {
    padding: 18px;
    overflow: auto;
}

.profile-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    background: #f8fafc;
}

.profile-summary {
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.profile-summary strong {
    display: block;
    color: #111827;
    font-size: 17px;
    line-height: 24px;
    word-break: break-word;
}

.profile-summary span,
.profile-summary small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
    word-break: break-word;
}

.profile-summary small {
    margin-top: 6px;
    color: var(--bidv-teal);
    font-weight: 900;
}

.profile-forms {
    display: grid;
    gap: 12px;
}

.profile-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    display: grid;
    gap: 14px;
}

.profile-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-card-head > i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    flex: 0 0 auto;
}

.profile-card-head h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 20px;
}

.profile-card-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.profile-avatar-actions small {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.profile-password-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-card-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.profile-card-foot button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.record-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.record-rail {
    position: sticky;
    top: 0;
    display: grid;
    gap: 10px;
}

.rail-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.rail-card.is-new {
    background: var(--bidv-teal-soft);
    border-color: #bfe7e3;
}

.rail-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rail-card strong {
    display: block;
    margin-top: 5px;
    color: #172033;
    font-size: 16px;
    line-height: 22px;
}

.rail-card small {
    display: block;
    margin-top: 5px;
    color: #607084;
    font-size: 12px;
    line-height: 18px;
}

.modal-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.work-attachments {
    margin-top: 2px;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    background: #fbfdfe;
    overflow: hidden;
}

.work-attachments.is-empty {
    padding: 13px 14px;
}

.work-attachments-head {
    min-height: 54px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e3e9ee;
    background: #ffffff;
}

.work-attachments.is-empty .work-attachments-head {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.work-attachments-head > div {
    min-width: 0;
}

.work-attachments-head strong,
.work-attachments-head span {
    display: block;
}

.work-attachments-head strong {
    color: #172033;
    font-size: 13px;
    line-height: 19px;
}

.work-attachments-head strong > i {
    margin-right: 6px;
    color: var(--bidv-teal);
}

.work-attachments-head strong > b {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    margin-left: 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
    font-size: 11px;
}

.work-attachments-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.work-attachment-pill {
    min-height: 28px;
    margin-top: 7px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #9edbd7;
    border-radius: 999px;
    background: #eefaf9;
    box-shadow: 0 3px 9px rgba(0, 112, 106, 0.1);
    color: #006f6b;
    font-family: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 16px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.work-attachment-pill span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.work-attachment-pill:hover {
    border-color: var(--bidv-teal);
    background: #ddf6f3;
    box-shadow: 0 5px 14px rgba(0, 112, 106, 0.16);
    transform: translateY(-1px);
}

.work-attachment-pill:focus-visible {
    outline: 2px solid rgba(0, 156, 149, 0.35);
    outline-offset: 2px;
}

.attachment-choose-btn {
    flex: 0 0 auto;
}

.attachment-dropzone {
    min-height: 76px;
    margin: 10px 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px dashed #9ab8c3;
    border-radius: 8px;
    background: #f5fbfb;
    color: #526377;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.attachment-dropzone:hover,
.attachment-dropzone:focus-visible,
.attachment-dropzone.is-dragging {
    border-color: var(--bidv-teal);
    background: #eaf8f7;
    outline: none;
}

.attachment-dropzone.is-loading {
    cursor: wait;
}

.attachment-dropzone > i {
    color: var(--bidv-teal);
    font-size: 23px;
}

.attachment-dropzone strong,
.attachment-dropzone span {
    display: block;
}

.attachment-dropzone strong {
    color: #243044;
    font-size: 12px;
    line-height: 18px;
}

.attachment-dropzone span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.attachment-list,
.attachment-upload-list {
    display: grid;
}

.attachment-upload-list {
    border-top: 1px solid #edf1f4;
}

.attachment-row {
    min-height: 56px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #edf1f4;
    background: #ffffff;
}

.attachment-row:first-child {
    border-top: 0;
}

.attachment-upload-list + .attachment-list .attachment-row:first-child {
    border-top: 1px solid #edf1f4;
}

.attachment-row.is-uploading {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    background: #fbfdfe;
}

.attachment-row.has-error {
    background: #fff8f8;
}

.attachment-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #edf7f6;
    color: var(--bidv-teal);
    font-size: 15px;
}

.attachment-meta {
    min-width: 0;
}

.attachment-meta strong,
.attachment-meta span {
    display: block;
}

.attachment-meta strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-meta span,
.attachment-size {
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.attachment-row.has-error .attachment-meta span {
    color: #c62828;
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.attachment-actions .icon-btn,
.attachment-row > .icon-btn {
    width: 32px;
    height: 32px;
}

.attachment-actions .icon-btn.danger {
    color: #c62828;
}

.attachment-progress {
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebef;
}

.attachment-progress > i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bidv-teal);
    transition: width 0.12s linear;
}

.attachment-empty {
    min-height: 52px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #edf1f4;
    color: var(--muted);
    font-size: 11px;
}

.attachment-error {
    margin: 0 12px 10px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff7f7;
    color: #b42318;
    font-size: 11px;
}

.attachment-error span {
    flex: 1;
}

.attachment-error button {
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    cursor: pointer;
}

.attachment-preview-backdrop {
    z-index: 80;
}

.attachment-browser-backdrop {
    z-index: 70;
}

.attachment-browser-modal {
    width: min(760px, 100%);
    max-height: min(680px, calc(100vh - 36px));
}

.attachment-browser-body {
    min-height: 180px;
    padding: 0;
    background: #f8fafc;
}

.attachment-browser-summary {
    min-height: 54px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e4eaee;
    background: #ffffff;
}

.attachment-browser-summary span {
    color: #075f5b;
    font-size: 12px;
    font-weight: 850;
}

.attachment-browser-summary small {
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.attachment-preview-state.is-compact {
    min-height: 220px;
}

.attachment-preview-modal {
    width: min(1240px, 100%);
    height: min(840px, calc(100vh - 36px));
}

.attachment-preview-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.attachment-preview-body {
    min-height: 0;
    padding: 0;
    background: #eef2f5;
}

.attachment-preview-state {
    height: 100%;
    min-height: 360px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #607084;
    text-align: center;
}

.attachment-preview-state > i {
    color: var(--bidv-teal);
    font-size: 34px;
}

.attachment-preview-state strong {
    color: #172033;
    font-size: 15px;
}

.attachment-preview-state span {
    max-width: 620px;
    font-size: 12px;
    line-height: 19px;
}

.attachment-preview-state.is-error > i {
    color: #d92d20;
}

.attachment-preview-state .primary-btn {
    margin-top: 8px;
}

.attachment-preview-fallback-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-preview-fallback-actions .primary-btn {
    margin-top: 0;
}

.attachment-image-preview {
    height: 100%;
    min-height: 420px;
    padding: 20px;
    display: grid;
    place-items: center;
    overflow: auto;
}

.attachment-image-preview img {
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.attachment-pdf-preview {
    width: 100%;
    height: 100%;
    min-height: 620px;
    border: 0;
    background: #ffffff;
}

.attachment-text-preview,
.attachment-document-preview {
    width: min(920px, calc(100% - 36px));
    min-height: calc(100% - 36px);
    margin: 18px auto;
    padding: 28px;
    overflow: auto;
    border: 1px solid #dce3e8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    color: #1f2937;
}

.attachment-text-preview {
    font: 12px/1.65 Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.attachment-document-preview {
    font-size: 14px;
    line-height: 1.65;
}

.attachment-document-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    object-fit: contain;
}

.attachment-document-preview table {
    max-width: 100%;
    border-collapse: collapse;
}

.attachment-document-preview td,
.attachment-document-preview th {
    padding: 6px 8px;
    border: 1px solid #dce3e8;
}

.attachment-workbook-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.attachment-sheet-tabs {
    min-height: 43px;
    padding: 6px 10px 0;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    overflow-x: auto;
    border-bottom: 1px solid #dce3e8;
    background: #f8fafc;
}

.attachment-sheet-tabs button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #526377;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.attachment-sheet-tabs button.active {
    border-color: #dce3e8;
    background: #ffffff;
    color: var(--bidv-teal);
}

.attachment-sheet-scroll {
    flex: 1;
    overflow: auto;
}

.attachment-sheet-scroll table {
    min-width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.attachment-sheet-scroll td {
    min-width: 110px;
    max-width: 320px;
    padding: 6px 8px;
    border: 1px solid #e2e8ee;
    color: #243044;
    vertical-align: top;
    white-space: pre-wrap;
    word-break: break-word;
}

.attachment-preview-note {
    margin: 0;
    padding: 8px 12px;
    border-top: 1px solid #dce3e8;
    background: #fff8e8;
    color: #8a5a00;
    font-size: 11px;
}

.attachment-presentation-preview {
    height: 100%;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    background: #dfe5e9;
}

.attachment-presentation-toolbar {
    min-height: 48px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d3dbe0;
    background: #ffffff;
}

.attachment-presentation-navigation,
.attachment-presentation-zoom {
    display: flex;
    align-items: center;
    gap: 7px;
}

.attachment-presentation-navigation > strong,
.attachment-presentation-zoom > strong {
    min-width: 56px;
    color: #334155;
    font-size: 12px;
    text-align: center;
}

.attachment-presentation-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.attachment-presentation-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #eef2f5;
    color: #526377;
    font-size: 12px;
}

.attachment-presentation-loading[hidden] {
    display: none;
}

.attachment-presentation-loading.is-error {
    color: #b42318;
}

.attachment-presentation-canvas {
    width: 100%;
    height: 100%;
    min-height: 560px;
    padding: 18px;
}

.attachment-presentation-canvas > * {
    margin-inline: auto;
}

.completion-progress-note {
    color: #007b75;
}

@media (max-width: 680px) {
    .work-attachments-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .attachment-choose-btn {
        width: 100%;
    }

    .attachment-dropzone {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .attachment-row,
    .attachment-row.is-uploading {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .attachment-size,
    .attachment-actions,
    .attachment-row > .icon-btn {
        grid-column: 2;
        justify-self: start;
    }

    .attachment-preview-head-actions .ghost-btn span {
        display: none;
    }

    .attachment-preview-modal {
        height: calc(100vh - 16px);
    }

    .attachment-pdf-preview {
        min-height: calc(100vh - 96px);
    }

    .attachment-text-preview,
    .attachment-document-preview {
        width: calc(100% - 16px);
        margin: 8px auto;
        padding: 16px;
    }

    .attachment-browser-summary,
    .attachment-presentation-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .attachment-browser-summary small {
        text-align: left;
    }

    .attachment-presentation-preview {
        min-height: calc(100vh - 96px);
    }

    .attachment-presentation-canvas {
        min-height: calc(100vh - 164px);
        padding: 8px;
    }
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 70;
    min-width: 260px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.24);
    font-size: 13px;
    line-height: 18px;
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.floating-hub {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.chat-fab,
.ai-fab {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal);
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 107, 104, 0.34);
    cursor: pointer;
    font-size: 21px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-fab:hover,
.ai-fab:hover {
    background: #005d5a;
    box-shadow: 0 18px 44px rgba(0, 107, 104, 0.42);
    transform: translateY(-2px);
}

.ai-fab {
    background: linear-gradient(135deg, #006b68 0%, #0c718c 100%);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 107, 104, 0.34);
}

.ai-fab:hover {
    background: linear-gradient(135deg, #005d5a 0%, #0a5f76 100%);
}

.chat-fab.warn {
    background: var(--warning);
}

.ai-bot-svg {
    width: 31px;
    height: 31px;
    display: block;
}

.ai-bot-core {
    fill: currentColor;
}

.ai-bot-face {
    fill: none;
    stroke: #006b68;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ai-bot-spark {
    fill: #ffd23f;
}

.ai-fab .ai-bot-core {
    fill: #ffffff;
}

.ai-fab .ai-bot-face {
    stroke: #006b68;
}

.group-chat-panel {
    width: min(390px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 44px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-chat-panel {
    width: min(470px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 44px));
    border-color: #b8dedb;
}

.group-chat-head.ai-chat-head {
    min-height: 78px;
    padding: 14px;
    border-bottom: 0;
    background: linear-gradient(135deg, #006b68 0%, #0e7f91 100%);
    color: #ffffff;
}

.ai-head-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-chat-head.ai-chat-head h2 {
    color: #ffffff;
    font-size: 17px;
    line-height: 22px;
    font-weight: 800;
}

.group-chat-head.ai-chat-head span {
    color: #dff7f4;
}

.group-chat-head.ai-chat-head .ai-head-icon {
    margin-top: 0;
    flex: 0 0 auto;
}

.group-chat-head.ai-chat-head .ai-head-main > div > span {
    margin-top: 2px;
    color: #dff7f4;
}

.group-chat-head.ai-chat-head .group-chat-actions {
    align-items: center;
}

.group-chat-head.ai-chat-head .icon-btn {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.group-chat-head.ai-chat-head .icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.group-chat-head .ai-model-pill {
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(255, 255, 255, 0.1);
    font-size: 10px !important;
    line-height: 1;
}

.group-chat-head {
    min-height: 64px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.group-chat-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #172033;
    font-size: 15px;
    line-height: 20px;
}

.group-chat-head h2 i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.ai-head-icon,
.ai-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #0b6f6b;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.ai-head-icon .ai-bot-svg,
.ai-empty-icon .ai-bot-svg,
.ai-chat-avatar .ai-bot-svg {
    width: 26px;
    height: 26px;
}

.group-chat-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.group-chat-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.group-chat-body {
    flex: 1;
    min-height: 0;
    padding: 12px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.ai-chat-body {
    background:
        linear-gradient(180deg, rgba(232, 247, 245, 0.82), rgba(248, 250, 252, 0.98)),
        #f8fafc;
    padding: 14px;
}

.group-chat-empty {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.group-chat-empty i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.ai-chat-empty {
    min-height: 0;
    padding: 16px;
    max-width: none;
    width: 100%;
    border: 1px solid #d8e9e7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.ai-chat-empty strong {
    color: #172033;
    font-size: 15px;
    line-height: 20px;
}

.ai-chat-empty > span:not(.ai-empty-icon) {
    color: #64748b;
    font-size: 12px;
    line-height: 18px;
}

.ai-prompt-grid {
    width: 100%;
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ai-prompt-chip {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d6e5e3;
    border-radius: 8px;
    background: #f8fcfc;
    color: #26354a;
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ai-prompt-chip:hover {
    border-color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
    color: var(--bidv-teal);
}

.group-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 88%;
}

.group-chat-message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.group-chat-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--bidv-teal), var(--bidv-teal-2));
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    overflow: hidden;
}

.group-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-chat-avatar {
    background: #ffffff;
    color: #0b6f6b;
    box-shadow: 0 0 0 1px #d8e9e7 inset;
}

.ai-chat-avatar.user {
    background: linear-gradient(135deg, var(--bidv-teal), var(--bidv-teal-2));
    color: #ffffff;
}

.group-chat-bubble {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.group-chat-message.own .group-chat-bubble {
    border-color: #bfe7e3;
    background: var(--bidv-teal-soft);
}

.ai-chat-message:not(.own) .group-chat-bubble {
    border-color: #d5eae7;
    background: #ffffff;
}

.group-chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.group-chat-meta strong {
    color: #172033;
    font-size: 11px;
    line-height: 15px;
}

.group-chat-meta span {
    color: var(--muted);
    font-size: 10px;
    line-height: 14px;
}

.group-chat-bubble p {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    line-height: 19px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.group-chat-compose {
    padding: 10px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.ai-chat-compose {
    padding: 12px;
    background: #ffffff;
}

.group-chat-input {
    width: 100%;
    min-height: 42px;
    max-height: 110px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 9px 10px;
    resize: vertical;
    outline: none;
    color: #111827;
    font-size: 13px;
    line-height: 18px;
}

.ai-chat-compose .group-chat-input {
    min-height: 48px;
    border-radius: 10px;
}

.group-chat-input:focus {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 3px rgba(0, 107, 104, 0.11);
}

.group-chat-send {
    height: 42px;
}

.ai-chat-send {
    height: 48px;
    min-width: 76px;
    border-radius: 10px;
}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 58px;
    min-height: 34px;
}

.ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--bidv-teal);
    opacity: 0.35;
    animation: aiTyping 1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTyping {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.hidden-input {
    display: none;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .work-plan-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .work-onboarding {
        grid-template-columns: 1fr;
    }

    .work-onboarding-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .work-plan-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    }

    .dashboard-panel-wide {
        grid-column: 1 / -1;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .defect-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sheet-dashboard-grid,
    .defect-dashboard-layout,
    .defect-dashboard-summary-row {
        grid-template-columns: 1fr;
    }

    .sheet-dashboard-card.sprint-card,
    .sheet-dashboard-card.matrix-card,
    .sheet-dashboard-card.owner-card {
        grid-column: 1 / -1;
    }

    .record-form-layout {
        grid-template-columns: 1fr;
    }

    .record-rail {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-password-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the full two-column treatment on laptops, but tighten vertical rhythm
   when browser chrome, display scaling, or zoom leaves a short viewport. */
@media (min-width: 821px) and (max-height: 760px) {
    .login-page {
        padding: 12px 16px;
        align-items: flex-start;
    }

    .login-wrap {
        min-height: max(520px, calc(100dvh - 24px));
        border-radius: 22px;
    }

    .login-brand {
        padding: 28px 42px;
    }

    .login-brand-logo {
        margin-bottom: 24px;
    }

    .login-brand-logo img {
        width: 230px;
        height: 76px;
    }

    .login-brand h1 {
        margin-bottom: 10px;
        font-size: 28px;
    }

    .login-brand p {
        margin-bottom: 22px;
        line-height: 1.55;
    }

    .login-stats {
        padding-top: 20px;
        gap: 24px;
    }

    .login-card {
        padding: 22px 32px;
    }

    .login-card-head {
        margin-bottom: 18px;
    }

    .login-form {
        gap: 12px;
    }

    .login-divider {
        margin: 18px 0 12px;
    }

    .login-account-note {
        min-height: 56px;
        padding: 9px 12px;
    }

    .login-foot {
        min-height: 36px;
        margin-top: 16px;
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 820px) {
    body {
        overflow: auto;
    }

    .login-page {
        height: 100dvh;
        min-height: 100dvh;
        overflow: auto;
        padding: 16px 0;
    }

    .login-wrap {
        width: min(460px, calc(100vw - 24px));
        min-height: auto;
        display: block;
        border-radius: 20px;
    }

    .login-brand {
        display: none;
    }

    .login-form-side {
        min-height: auto;
    }

    .login-card {
        padding: 30px 22px;
    }

    .login-mobile-logo {
        display: flex;
    }

    .login-card-head h2 {
        font-size: 23px;
    }

    .app-shell {
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .sidebar {
        display: none;
    }

    .main {
        height: auto;
        min-height: 100vh;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 35;
        height: auto;
        min-height: 56px;
        align-items: center;
        padding: 10px 12px;
        gap: 10px;
    }

    .brand-divider,
    .brand-title span {
        display: none;
    }

    .brand-logo {
        width: 100px;
    }

    .top-actions {
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .user-chip {
        max-width: 156px;
        height: 38px;
    }

    .top-actions .text-btn span,
    .top-actions .primary-btn span,
    .top-actions .danger-btn span {
        display: none;
    }

    .workspace {
        overflow: visible;
        padding: 12px 12px 96px;
    }

    .command-band {
        display: grid;
        padding: 14px;
    }

    .command-meta {
        justify-content: flex-start;
        gap: 6px;
    }

    .pill {
        min-height: 26px;
        padding: 4px 9px;
    }

    .profile-body {
        grid-template-columns: 1fr;
    }

    .profile-summary {
        min-height: 0;
    }

    .screen-title {
        font-size: 18px;
        line-height: 25px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .work-plan-summary,
    .work-filter-bar {
        grid-template-columns: 1fr;
    }

    .work-onboarding,
    .work-onboarding.compact > div {
        align-items: stretch;
    }

    .work-onboarding-steps {
        grid-template-columns: 1fr;
    }

    .work-view-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-view-tab {
        justify-content: space-between;
    }

    .work-metric {
        min-height: 64px;
        padding: 11px;
    }

    .kpi-card {
        min-height: 96px;
        padding: 11px;
    }

    .kpi-label {
        font-size: 11px;
        line-height: 15px;
    }

    .kpi-icon {
        width: 28px;
        height: 28px;
    }

    .kpi-value {
        margin-top: 8px;
        font-size: 24px;
        line-height: 28px;
    }

    .kpi-foot {
        margin-top: 4px;
        font-size: 10px;
        line-height: 14px;
    }

    .tabbar {
        position: sticky;
        top: 58px;
        z-index: 30;
        margin-top: 12px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .tabbar::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        min-width: 112px;
        height: 36px;
        scroll-snap-align: start;
    }

    .dashboard-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-wide {
        grid-column: auto;
    }

    .kickoff-hero {
        align-items: flex-start;
        display: grid;
        padding: 18px;
    }

    .kickoff h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .record-rail {
        grid-template-columns: 1fr;
    }

    .floating-hub {
        right: 12px;
        bottom: 12px;
    }

    .toast {
        right: 12px;
        bottom: 84px;
    }

    .group-chat-panel {
        width: calc(100vw - 24px);
        height: min(560px, calc(100dvh - 24px));
    }
}

/* Sitemap navigation and task-management workspace */
.sidebar.navigation-tree {
    width: 258px;
    min-width: 258px;
    align-items: stretch;
    background: #006f6b;
    transition: width 0.2s ease, min-width 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.navigation-tree .sidebar-logo {
    width: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.work-title-link {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #075f5b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 18px;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(7, 95, 91, 0.32);
    text-underline-offset: 3px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.work-title-link:hover {
    color: #009c95;
    text-decoration-color: currentColor;
}

.work-title-link:focus-visible {
    outline: 2px solid rgba(0, 156, 149, 0.35);
    outline-offset: 3px;
    border-radius: 3px;
}

.work-export-modal {
    width: min(640px, 100%);
}

.work-export-body {
    display: grid;
    gap: 16px;
}

.work-export-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #bce6df;
    border-radius: 8px;
    background: #effaf7;
    color: #315b57;
    font-size: 12px;
    line-height: 18px;
}

.work-export-intro i {
    margin-top: 2px;
    color: var(--bidv-teal);
}

.work-export-form-grid {
    gap: 14px;
}

.work-export-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

.work-export-preview strong {
    color: var(--bidv-teal);
    font-size: 20px;
}

.work-export-error {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 7px;
    background: #fff1f2;
    color: #b42318;
    font-size: 12px;
}

.work-export-btn {
    min-height: 36px;
    white-space: nowrap;
}

.field-input.is-invalid,
.field-select.is-invalid {
    border-color: #dc2626;
    background: #fff7f7;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-input.is-locked {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
}

.field-lock-note {
    display: flex !important;
    align-items: center;
    gap: 6px;
    color: #64748b !important;
}

.work-status-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.work-status-warning[hidden] {
    display: none;
}

.work-status-warning i {
    margin-top: 2px;
}

.navigation-tree .sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
}

.navigation-tree .sidebar-logo button,
.mobile-menu-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
}

.navigation-tree .sidebar-collapse-toggle {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.navigation-tree .sidebar-collapse-toggle:hover,
.navigation-tree .sidebar-collapse-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
}

.navigation-tree .sidebar-collapse-toggle:active {
    transform: scale(0.96);
}

.navigation-tree .sidebar-collapse-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navigation-tree .sidebar-collapse-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    padding: 7px 9px;
    border-radius: 7px;
    color: #ffffff;
    background: #172033;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.navigation-tree .sidebar-collapse-toggle:hover::after,
.navigation-tree .sidebar-collapse-toggle:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.navigation-tree .sidebar-logo .sidebar-mobile-close {
    display: none;
}

.navigation-tree .sidebar-logo strong {
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
}

.navigation-tree .sidebar-menu {
    padding: 8px 8px 18px;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.tree-section {
    display: grid;
    gap: 2px;
}

.tree-section + .tree-section {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tree-section-title,
.tree-parent {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.tree-section-title {
    font-size: 11px;
    font-weight: 850;
}

.tree-parent {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 750;
}

.tree-section-title:hover,
.tree-parent:hover,
.tree-section-title:focus-visible,
.tree-parent:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.tree-section-title:focus-visible,
.tree-parent:focus-visible,
.tree-link:focus-visible {
    outline: 2px solid rgba(245, 200, 66, 0.95);
    outline-offset: -2px;
}

.tree-section-title.branch-active,
.tree-parent.branch-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.tree-section-title i,
.tree-parent i,
.tree-link > i {
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

.tree-section-title .tree-toggle-chevron,
.tree-parent .tree-toggle-chevron {
    width: 12px;
    margin-left: auto;
    flex: 0 0 12px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 9px;
    transition: transform 0.18s ease, color 0.16s ease;
}

.tree-section-title.is-expanded .tree-toggle-chevron,
.tree-parent.is-expanded .tree-toggle-chevron {
    transform: rotate(90deg);
    color: rgba(255, 255, 255, 0.92);
}

.tree-section-title.branch-active:not(.is-expanded) .tree-toggle-chevron,
.tree-parent.branch-active:not(.is-expanded) .tree-toggle-chevron {
    color: #f5c842;
}

.tree-accordion-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.18s ease, opacity 0.14s ease, visibility 0s linear 0.18s;
}

.tree-accordion-panel.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.tree-accordion-inner {
    min-height: 0;
    display: grid;
    gap: 2px;
    overflow: hidden;
}

.tree-section-content > .tree-accordion-inner {
    padding-top: 1px;
}

.tree-group-content > .tree-accordion-inner {
    padding: 1px 0 2px;
}

.tree-work-stage-content > .tree-accordion-inner {
    padding: 1px 0 2px;
}

.tree-work-stage {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 28px;
    border: 0;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
}

.tree-work-stage > i:first-child {
    width: 14px;
    flex: 0 0 14px;
    text-align: center;
    font-size: 10px;
}

.tree-stage-placeholder {
    color: rgba(255, 255, 255, 0.62);
    cursor: default;
}

.tree-stage-placeholder > i:first-child {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.45);
}

.tree-stage-route {
    min-height: 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11.5px;
    font-weight: 750;
}

.tree-stage-route.level-2 > i {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.58);
}

.tree-stage-route.active > i,
.tree-stage-route:hover > i {
    color: #ffffff;
}

.tree-link {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    text-align: left;
    font-size: 12px;
    font-weight: 650;
    line-height: 16px;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tree-link.level-2 {
    padding-left: 28px;
}

.tree-link.level-2 > i {
    font-size: 6px;
}

.tree-link.level-3 {
    min-height: 30px;
    padding-left: 46px;
    font-size: 11.5px;
}

.tree-link.level-3 > i {
    width: 12px;
    flex-basis: 12px;
    font-size: 5px;
}

.tree-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.tree-link.active {
    color: #ffffff;
    background: #0d9690;
    box-shadow: inset 3px 0 0 #f5c842;
    font-weight: 800;
}

.tree-category-list {
    display: grid;
    gap: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tree-accordion-panel,
    .tree-toggle-chevron {
        transition: none;
    }
}

.navigation-tree.collapsed {
    width: 64px;
    min-width: 64px;
}

.navigation-tree.collapsed .sidebar-logo {
    padding: 0 14px;
    justify-content: center;
}

.navigation-tree.collapsed .sidebar-brand,
.navigation-tree.collapsed .sidebar-logo strong,
.navigation-tree.collapsed .tree-section-title b,
.navigation-tree.collapsed .tree-parent b,
.navigation-tree.collapsed .tree-link span {
    display: none;
}

.navigation-tree.collapsed .tree-section-title,
.navigation-tree.collapsed .tree-parent,
.navigation-tree.collapsed .tree-link,
.navigation-tree.collapsed .tree-link.level-2,
.navigation-tree.collapsed .tree-link.level-3 {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.navigation-tree.collapsed .tree-work-stage {
    display: none;
}

.navigation-tree.collapsed .tree-category-list .tree-link:not(.active) {
    display: none;
}

@media (min-width: 821px) {
    .navigation-tree.collapsed .tree-toggle-chevron {
        display: none;
    }
}

.navigation-tree.collapsed .sidebar-collapse-toggle::after {
    top: 50%;
    right: auto;
    left: calc(100% + 10px);
    transform: translate(3px, -50%);
}

.navigation-tree.collapsed .sidebar-collapse-toggle:hover::after,
.navigation-tree.collapsed .sidebar-collapse-toggle:focus-visible::after {
    transform: translate(0, -50%);
}

.mobile-menu-btn {
    display: none;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
}

.sidebar-scrim {
    display: none;
}

.work-plan-summary:not(.with-categories) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.work-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 14px;
}

.work-dashboard-list {
    display: grid;
}

.work-dashboard-row {
    min-height: 62px;
    display: grid;
    grid-template-columns: 84px minmax(180px, 1fr) minmax(170px, 0.55fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #273449;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    text-align: left;
    cursor: pointer;
}

.work-dashboard-row:last-child {
    border-bottom: 0;
}

.work-dashboard-row:hover {
    background: #f7fbfb;
}

.work-dashboard-code {
    color: var(--bidv-teal);
    font-size: 11px;
    font-weight: 850;
}

.work-dashboard-name strong,
.work-dashboard-name small {
    display: block;
}

.work-dashboard-name strong {
    font-size: 13px;
}

.work-dashboard-name small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.work-dashboard-progress {
    display: grid;
    grid-template-columns: 1fr 38px;
    align-items: center;
    gap: 8px;
}

.work-dashboard-progress > span,
.status-breakdown-row > div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.work-dashboard-progress i,
.status-breakdown-row i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--bidv-teal);
}

.work-dashboard-progress b {
    font-size: 11px;
    text-align: right;
}

.status-breakdown-row {
    min-height: 45px;
    display: grid;
    grid-template-columns: minmax(130px, auto) minmax(80px, 1fr) 30px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.status-breakdown-row:last-child {
    border-bottom: 0;
}

.status-breakdown-row strong {
    text-align: right;
    font-size: 12px;
}

.standalone-work-items {
    margin-top: 14px;
}

.work-task-tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.work-task-search {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #8a98aa;
}

.work-task-search:focus-within {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 2px rgba(0, 128, 123, 0.1);
}

.work-task-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #172033;
    background: transparent;
    font: inherit;
}

.module-data-tools {
    display: grid;
    grid-template-columns: minmax(300px, 1.5fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr) minmax(230px, 0.8fr);
    align-items: end;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.module-data-search {
    margin-bottom: 0;
}

.module-data-filter {
    min-width: 0;
}

.module-data-filter > span {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.module-data-filter .field-input,
.module-data-filter .field-select {
    height: 38px;
}

.t01-module-tabs {
    margin-top: 14px;
    display: flex;
    gap: 3px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    scrollbar-width: thin;
}

.t01-module-tabs button {
    min-height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 5px;
    color: #4b586b;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.t01-module-tabs button:hover {
    background: #f3f7f7;
}

.t01-module-tabs button.active {
    color: #ffffff;
    background: var(--bidv-teal);
}

.secondary-tabs {
    margin: 10px 0 -6px;
    display: flex;
    gap: 6px;
}

.secondary-tabs button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #4b586b;
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.secondary-tabs button.active {
    color: var(--bidv-teal);
    border-color: #8fd6d1;
    background: #effcfb;
}

.input-catalog-grid,
.kpi-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
    gap: 14px;
}

.input-reference-stack {
    display: grid;
    align-content: start;
    gap: 14px;
}

.catalog-table {
    min-width: 760px;
}

.input-catalog-main .panel-body {
    overflow-x: auto;
}

.catalog-row {
    min-height: 54px;
    display: grid;
    grid-template-columns: 110px minmax(260px, 1fr) 135px 135px 84px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.catalog-row:last-child {
    border-bottom: 0;
}

.catalog-row > span > strong,
.catalog-row > span > small {
    display: block;
}

.catalog-row > span > small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 16px;
}

.catalog-head {
    min-height: 38px;
    color: #4b586b;
    background: #f7f9fb;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.reference-list {
    display: grid;
    gap: 8px;
}

.reference-list > div {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

.input-source-link {
    width: 100%;
    justify-content: center;
}

.deadline-email-panel {
    grid-column: 1 / -1;
}

.deadline-email-panel .panel-head {
    min-height: 62px;
}

.email-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #d9e1e6;
    border-radius: 6px;
    background: #f7f9fb;
    color: #536071;
    font-size: 11px;
    font-weight: 800;
}

.email-connection-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3acb8;
}

.email-connection-status.connected {
    border-color: #a7e3c3;
    background: #effbf4;
    color: #087a42;
}

.email-connection-status.connected > span {
    background: #17a45b;
    box-shadow: 0 0 0 3px rgba(23, 164, 91, 0.12);
}

.deadline-email-body {
    display: grid;
    gap: 16px;
}

.email-settings-loading,
.email-log-empty {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.email-config-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid #f1d596;
    border-radius: 6px;
    background: #fff9e9;
    color: #805400;
    font-size: 12px;
}

.email-config-alert.danger {
    border-color: #efb5bb;
    background: #fff3f4;
    color: #a52836;
}

.email-config-alert > i {
    margin-top: 2px;
}

.email-config-alert strong,
.email-config-alert span {
    display: block;
}

.email-config-alert span {
    margin-top: 3px;
    color: inherit;
    opacity: 0.88;
    line-height: 1.45;
}

.email-config-alert code {
    overflow-wrap: anywhere;
    font-size: 11px;
}

.deadline-email-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 22px;
}

.email-settings-form,
.email-operations {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
}

.email-operations {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.email-settings-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.email-settings-section-head strong,
.email-settings-section-head span {
    display: block;
}

.email-settings-section-head strong {
    color: #172033;
    font-size: 13px;
}

.email-settings-section-head span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.switch-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-field > span {
    width: 34px;
    height: 19px;
    position: relative;
    border-radius: 10px;
    background: #c8d0d8;
    transition: background 0.16s ease;
}

.switch-field > span::after {
    content: "";
    width: 13px;
    height: 13px;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
    transition: transform 0.16s ease;
}

.switch-field input:checked + span {
    background: var(--bidv-teal);
}

.switch-field input:checked + span::after {
    transform: translateX(15px);
}

.switch-field input:focus-visible + span {
    outline: 2px solid #7bcac5;
    outline-offset: 2px;
}

.switch-field b {
    color: #526071;
    font-size: 11px;
}

.email-setting-field {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: #39475a;
    font-size: 11px;
    font-weight: 800;
}

.email-setting-field input,
.email-setting-field select,
.email-test-form input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cfd8e2;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    font: inherit;
}

.email-setting-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #657282 50%), linear-gradient(135deg, #657282 50%, transparent 50%);
    background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.email-setting-field input[readonly] {
    background: #f5f7f9;
    color: #536071;
}

.google-sheet-sync-panel .panel-title > i {
    color: #087f45;
    background: #eaf8f0;
}

.google-sheet-rule-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dbe4e8;
    border-radius: 6px;
    overflow: hidden;
}

.google-sheet-rule-strip > span {
    min-height: 58px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-content: center;
    column-gap: 7px;
    padding: 8px 10px;
    border-right: 1px solid #dbe4e8;
    background: #f8fafb;
}

.google-sheet-rule-strip > span:last-child {
    border-right: 0;
}

.google-sheet-rule-strip i {
    grid-row: 1 / 3;
    align-self: center;
    color: #087f78;
    font-size: 14px;
    text-align: center;
}

.google-sheet-rule-strip b {
    color: #263347;
    font-size: 11px;
}

.google-sheet-rule-strip small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.google-sheet-last-run {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dce4e8;
    border-radius: 6px;
    overflow: hidden;
}

.google-sheet-last-run > span {
    min-width: 0;
    padding: 10px;
    border-right: 1px solid #dce4e8;
    background: #f8fafb;
}

.google-sheet-last-run > span:last-child {
    border-right: 0;
}

.google-sheet-last-run b,
.google-sheet-last-run strong {
    display: block;
}

.google-sheet-last-run b {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.google-sheet-last-run strong {
    margin-top: 4px;
    overflow: hidden;
    color: #263347;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.google-sheet-preview {
    border: 1px solid #dce4e8;
    border-left-width: 4px;
    border-radius: 6px;
    overflow: hidden;
}

.google-sheet-preview.safe {
    border-left-color: #15945a;
}

.google-sheet-preview.blocked {
    border-left-color: #c93642;
}

.google-sheet-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafb;
}

.google-sheet-preview-head > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #263347;
    font-size: 11px;
}

.google-sheet-preview.safe .google-sheet-preview-head i {
    color: #15945a;
}

.google-sheet-preview.blocked .google-sheet-preview-head i {
    color: #c93642;
}

.google-sheet-preview-head small {
    color: var(--muted);
    font-size: 9px;
}

.google-sheet-counts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e3e9ed;
}

.google-sheet-counts > span {
    min-width: 0;
    padding: 9px 6px;
    border-right: 1px solid #e3e9ed;
    text-align: center;
}

.google-sheet-counts > span:last-child {
    border-right: 0;
}

.google-sheet-counts b,
.google-sheet-counts small {
    display: block;
}

.google-sheet-counts b {
    color: #087f78;
    font-size: 15px;
}

.google-sheet-counts small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.google-sheet-audit-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #e3e9ed;
    color: #536071;
    font-size: 9px;
}

.google-sheet-preview ul {
    margin: 0;
    padding: 8px 12px 8px 28px;
    border-top: 1px solid #f0c7cb;
    background: #fff5f6;
    color: #9f2632;
    font-size: 9px;
    line-height: 1.45;
}

.email-rule-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dbe4e8;
    border-radius: 6px;
    overflow: hidden;
}

.email-rule-strip > span {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    border-right: 1px solid #dbe4e8;
    color: #667281;
    background: #f8fafb;
    font-size: 10px;
}

.email-rule-strip > span:last-child {
    border-right: 0;
}

.email-rule-strip b {
    color: #087f78;
    font-size: 11px;
}

.email-action-row,
.email-test-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.email-test-form input {
    flex: 1 1 210px;
}

.email-preview-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #dce4e8;
    border-radius: 6px;
    overflow: hidden;
}

.email-preview-summary > div {
    min-width: 0;
    padding: 10px 8px;
    border-right: 1px solid #dce4e8;
    text-align: center;
}

.email-preview-summary > div:last-child {
    border-right: 0;
}

.email-preview-summary strong,
.email-preview-summary span {
    display: block;
}

.email-preview-summary strong {
    color: #087f78;
    font-size: 18px;
}

.email-preview-summary span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.email-log-section {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.email-log-table {
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.email-log-row {
    min-width: 760px;
    display: grid;
    grid-template-columns: 130px minmax(260px, 1fr) 110px 80px 100px;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.email-log-row:last-child {
    border-bottom: 0;
}

.email-log-row > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-log-head {
    min-height: 34px;
    background: #f6f8fa;
    color: #526071;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.email-log-status {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 5px;
    background: #eef1f4;
    color: #536071;
    font-size: 10px;
    font-weight: 800;
}

.email-log-status.sent {
    background: #e8f8ef;
    color: #087a42;
}

.email-log-status.failed {
    background: #fff0f1;
    color: #ba2635;
}

.personnel-map {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.member-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 10px;
}

.member-card {
    min-height: 96px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
}

.member-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 50%;
    color: var(--bidv-teal);
    background: var(--bidv-teal-soft);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.member-avatar.has-image {
    background: #ffffff;
    border: 1px solid var(--line);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-card strong,
.member-card > div > span,
.member-card small {
    display: block;
}

.member-card strong {
    font-size: 13px;
}

.member-card div > span,
.member-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}

.kpi-config-grid {
    margin-top: 14px;
    grid-template-columns: minmax(380px, 0.75fr) minmax(0, 1.25fr);
}

.kpi-weight-table {
    display: grid;
}

.kpi-weight-table > div {
    min-height: 42px;
    display: grid;
    grid-template-columns: 1fr 90px 90px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.kpi-weight-table > div:first-child {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.manual-kpi-list {
    display: grid;
}

.manual-kpi-list > button {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 110px 120px 20px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    color: #273449;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}

.manual-kpi-list > button:hover {
    background: #f7fbfb;
}

.manual-kpi-list strong,
.manual-kpi-list small {
    display: block;
}

.manual-kpi-list small {
    margin-top: 3px;
    color: var(--muted);
}

.member-kpi-panel {
    margin-top: 14px;
}

.member-kpi-table-wrap {
    overflow: auto;
}

.member-kpi-table {
    min-width: 1500px;
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.member-kpi-table th,
.member-kpi-table td {
    min-height: 42px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}

.member-kpi-table th {
    position: sticky;
    top: 0;
    color: #ffffff;
    background: var(--bidv-teal);
    font-size: 10px;
    text-transform: uppercase;
    z-index: 2;
}

.member-kpi-table th:first-child,
.member-kpi-table td:first-child,
.member-kpi-table th:nth-child(2),
.member-kpi-table td:nth-child(2) {
    text-align: left;
}

.member-kpi-table td:first-child strong,
.member-kpi-table td:first-child small {
    display: block;
}

.member-kpi-table td:first-child small {
    margin-top: 3px;
    color: var(--muted);
}

@media (max-width: 1180px) {
    .work-dashboard-grid,
    .input-catalog-grid,
    .kpi-config-grid {
        grid-template-columns: 1fr;
    }

    .member-card-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .work-task-tools {
        grid-template-columns: 1fr;
    }

    .deadline-email-grid {
        grid-template-columns: 1fr;
    }

    .email-operations {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .module-data-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .email-setting-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .email-rule-strip,
    .email-preview-summary {
        grid-template-columns: 1fr 1fr;
    }

    .google-sheet-rule-strip,
    .google-sheet-last-run {
        grid-template-columns: 1fr;
    }

    .google-sheet-rule-strip > span,
    .google-sheet-last-run > span {
        border-right: 0;
        border-bottom: 1px solid #dbe4e8;
    }

    .google-sheet-rule-strip > span:last-child,
    .google-sheet-last-run > span:last-child {
        border-bottom: 0;
    }

    .google-sheet-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .google-sheet-counts > span {
        border-bottom: 1px solid #e3e9ed;
    }

    .google-sheet-audit-line {
        flex-direction: column;
    }

    .email-rule-strip > span:nth-child(2),
    .email-preview-summary > div:nth-child(2) {
        border-right: 0;
    }

    .email-rule-strip > span:nth-child(-n + 2),
    .email-preview-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid #dbe4e8;
    }

    .sidebar.navigation-tree {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(290px, calc(100vw - 46px));
        min-width: min(290px, calc(100vw - 46px));
        transform: translateX(-102%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s ease, visibility 0s linear 0.2s;
        box-shadow: 12px 0 30px rgba(15, 23, 42, 0.22);
    }

    .sidebar.navigation-tree .sidebar-logo,
    .sidebar.navigation-tree.collapsed .sidebar-logo {
        padding: 0 12px;
        justify-content: space-between;
    }

    .sidebar.navigation-tree.collapsed .sidebar-brand {
        display: flex;
    }

    .sidebar.navigation-tree.collapsed .sidebar-logo strong,
    .sidebar.navigation-tree.collapsed .tree-section-title b,
    .sidebar.navigation-tree.collapsed .tree-parent b,
    .sidebar.navigation-tree.collapsed .tree-link span {
        display: inline;
    }

    .sidebar.navigation-tree.collapsed .tree-section-title,
    .sidebar.navigation-tree.collapsed .tree-parent,
    .sidebar.navigation-tree.collapsed .tree-link {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar.navigation-tree.collapsed .tree-link.level-2 {
        justify-content: flex-start;
        padding-left: 28px;
        padding-right: 10px;
    }

    .sidebar.navigation-tree.collapsed .tree-link.level-3 {
        justify-content: flex-start;
        padding-left: 46px;
        padding-right: 10px;
    }

    .sidebar.navigation-tree.collapsed .tree-work-stage {
        display: flex;
    }

    .sidebar.navigation-tree.collapsed .tree-category-list .tree-link:not(.active) {
        display: flex;
    }

    .navigation-tree .tree-section-title,
    .navigation-tree .tree-parent,
    .navigation-tree .tree-link {
        min-height: 42px;
    }

    .sidebar.navigation-tree .sidebar-collapse-toggle {
        display: none;
    }

    .sidebar.navigation-tree .sidebar-mobile-close {
        display: grid;
    }

    .sidebar.navigation-tree.mobile-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(15, 23, 42, 0.45);
    }

    .mobile-menu-btn {
        display: grid;
    }

    .brand-lockup {
        gap: 8px;
    }

    .work-plan-summary,
    .work-plan-summary:not(.with-categories),
    .work-plan-summary.with-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-dashboard-row {
        grid-template-columns: 70px minmax(150px, 1fr) 16px;
    }

    .work-dashboard-progress {
        grid-column: 2 / -1;
    }

    .member-card-grid {
        grid-template-columns: 1fr;
    }

    .manual-kpi-list > button {
        grid-template-columns: 1fr 20px;
    }

    .manual-kpi-list > button > span:not(:first-child) {
        display: none;
    }

    .flush-mobile {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .login-foot {
        width: 100%;
    }

    .login-submit,
    .login-input-wrap input {
        height: 46px;
    }

    .profile-avatar-row {
        align-items: flex-start;
    }

    .profile-avatar-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-avatar-actions .text-btn,
    .profile-avatar-actions .ghost-btn,
    .profile-card-foot .primary-btn {
        width: 100%;
    }

    .brand-title strong {
        max-width: 132px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .screen-kicker {
        font-size: 10px;
    }

    .screen-title {
        font-size: 17px;
        line-height: 24px;
    }

    .screen-subtitle {
        font-size: 12px;
        line-height: 19px;
    }

    .panel-body {
        padding: 12px;
    }

    .defect-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .defect-kpi-card strong {
        font-size: 22px;
        line-height: 26px;
    }

    .floating-hub.chat-open,
    .floating-hub.ai-open {
        inset: auto 0 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .floating-hub.chat-open .group-chat-panel,
    .floating-hub.ai-open .group-chat-panel {
        width: 100%;
        height: min(76dvh, calc(100dvh - 72px));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 14px 14px 0 0;
    }

    .floating-hub:not(.chat-open):not(.ai-open) {
        right: 16px;
        bottom: 16px;
    }

    .chat-fab,
    .ai-fab {
        width: 56px;
        height: 56px;
    }

    .group-chat-head .ai-model-pill {
        display: none;
    }

    .group-chat-head.ai-chat-head {
        padding: 12px;
    }

    .ai-prompt-grid {
        grid-template-columns: 1fr;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .module-progress-head,
    .readiness-decision {
        align-items: flex-start;
        flex-direction: column;
    }

    .health-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .health-row strong {
        text-align: left;
    }

    .readiness-score {
        align-items: flex-start;
        flex-direction: column;
    }

    .uat-timeline-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .group-chat-compose {
        grid-template-columns: 1fr;
    }

    .group-chat-send {
        width: 100%;
    }

    .uat-dashboard-hero,
    .guide-hero,
    .sheet-dashboard-head,
    .uat-owner-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .uat-hero-score,
    .guide-hero-badge {
        width: 100%;
        min-width: 0;
    }

    .guide-hero-badge {
        height: auto;
        border-radius: 8px;
        padding: 14px;
    }

    .uat-metric-grid,
    .uat-dashboard-grid,
    .sheet-dashboard-grid,
    .defect-dashboard-layout,
    .defect-dashboard-summary-row,
    .guide-step-grid,
    .guide-handoff-layout,
    .guide-handoff-facts,
    .guide-reference-grid {
        grid-template-columns: 1fr;
    }

    .guide-reference-list article {
        grid-template-columns: 1fr;
    }

    .modal-foot {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .modal-foot button {
        width: 100%;
    }

    .table-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .module-data-tools {
        grid-template-columns: 1fr;
    }

    .table-page-size,
    .table-page-actions {
        justify-content: space-between;
    }
}

/* Private cross-squad workspace */
.personal-workspace-panel {
    overflow: hidden;
}

.personal-workspace-head {
    min-height: 66px;
}

.personal-squad-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 0;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.personal-squad-tab {
    min-width: 118px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #d6e0e8;
    border-bottom-color: #bccbd5;
    border-radius: 7px 7px 0 0;
    background: #ffffff;
    color: #526173;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.personal-squad-tab b {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef2f6;
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.personal-squad-tab.active {
    border-color: #008c86;
    background: #007b76;
    color: #ffffff;
}

.personal-squad-tab.active b {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.personal-workspace-tools {
    padding: 14px 16px;
    border-top: 1px solid #d8e1e8;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px;
    gap: 10px;
    background: #ffffff;
}

.personal-search {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfd9e2;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
}

.personal-search:focus-within {
    border-color: var(--bidv-teal);
    box-shadow: 0 0 0 3px rgba(0, 123, 118, 0.1);
}

.personal-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
}

.personal-workspace-body {
    min-height: 330px;
    background: #ffffff;
}

.personal-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.personal-task-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    table-layout: fixed;
}

.personal-task-table th {
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    color: #455468;
    font-size: 11px;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
}

.personal-task-table th:nth-child(1) { width: 38%; }
.personal-task-table th:nth-child(2) { width: 19%; }
.personal-task-table th:nth-child(3) { width: 18%; }
.personal-task-table th:nth-child(4) { width: 17%; }
.personal-task-table th:nth-child(5) { width: 8%; text-align: right; }

.personal-task-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7edf2;
    color: #273449;
    font-size: 12px;
    line-height: 18px;
    vertical-align: top;
}

.personal-task-table tbody tr:hover {
    background: #f9fcfc;
}

.personal-task-table td > strong,
.personal-task-table td > small {
    display: block;
    overflow-wrap: anywhere;
}

.personal-task-table td > strong {
    color: #172033;
    font-size: 13px;
}

.personal-task-table td > small {
    margin-top: 3px;
    color: #718096;
}

.personal-assigner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 750;
}

.personal-assigner i {
    color: #7c8da1;
}

.personal-date-line {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
}

.personal-date-line + .personal-date-line {
    margin-top: 3px;
}

.personal-date-line b {
    color: #718096;
    font-size: 10px;
    text-transform: uppercase;
}

.personal-status {
    min-height: 26px;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.personal-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.personal-status.is-todo { background: #f1f5f9; color: #536174; }
.personal-status.is-progress { background: #eaf3ff; color: #1d62b4; }
.personal-status.is-overdue { background: #fff0f1; color: #c52d3a; }
.personal-status.is-done { background: #e9f8f0; color: #12804a; }

.personal-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.personal-row-actions .danger {
    color: #b42318;
}

.personal-empty {
    min-height: 330px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #718096;
    text-align: center;
}

.personal-empty > i {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #edf7f6;
    color: #007b76;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.personal-empty strong {
    color: #253247;
    font-size: 14px;
}

.personal-empty.is-error > i {
    background: #fff0f1;
    color: #c52d3a;
}

.personal-task-modal {
    width: min(720px, 100%);
}

@media (max-width: 760px) {
    .personal-workspace-head .panel-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .personal-workspace-head .panel-actions button {
        width: 100%;
    }

    .personal-squad-tabs {
        overflow-x: auto;
    }

    .personal-squad-tab {
        min-width: 112px;
        flex: 0 0 112px;
    }

    .personal-workspace-tools {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .personal-task-table {
        min-width: 0;
    }

    .personal-task-table thead {
        display: none;
    }

    .personal-task-table tbody,
    .personal-task-table tr,
    .personal-task-table td {
        display: block;
        width: 100%;
    }

    .personal-task-table tr {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
    }

    .personal-task-table td {
        padding: 4px 0;
        border: 0;
    }

    .personal-task-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #8190a3;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .personal-row-actions {
        justify-content: flex-start;
    }
}

/* Jira TESTLUONG weekly comparison */
.flow-scope-tabs{display:inline-flex;gap:4px;margin-bottom:14px;padding:4px;border:1px solid #dbe5e9;border-radius:12px;background:#f4f8f9}.flow-scope-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:9px;color:#526174;background:transparent;font:inherit;font-weight:800;cursor:pointer}.flow-scope-tabs button:hover{color:#006b65;background:#fff}.flow-scope-tabs button.active{color:#fff;background:#007b72;box-shadow:0 5px 14px rgba(0,94,87,.18)}
.jira-weekly-panel{overflow:hidden;padding:0}.jira-weekly-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 20px;border-bottom:1px solid #e2eaed;background:linear-gradient(125deg,#fff 45%,#edf9f7 100%)}.jira-weekly-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:6px;color:#007a71;font-size:12px;font-weight:850;letter-spacing:.035em;text-transform:uppercase}.jira-weekly-head h2{margin:0;color:#172033;font-size:clamp(20px,2vw,27px);line-height:1.25}.jira-weekly-head p{max-width:760px;margin:7px 0 0;color:#697588;line-height:1.5}.jira-weekly-head-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.jira-sync-time{display:inline-flex;align-items:center;gap:7px;color:#667386;font-size:13px;white-space:nowrap}.jira-cache-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:9px;font-size:11px;font-weight:800;white-space:nowrap}.jira-cache-status.refreshing{color:#08776f;background:#e4f5f2}.jira-cache-status.stale{color:#8a5a0a;background:#fff3d8}
.jira-weekly-head-actions{flex-wrap:wrap;justify-content:flex-end}.jira-weekly-head-actions .ghost-btn{white-space:nowrap}@media(max-width:900px){.jira-weekly-head-actions{justify-content:flex-start}}
.jira-weekly-method{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 26px;color:#58677a;background:#f7fafb;border-bottom:1px solid #e3eaed;font-size:13px}.jira-weekly-method span{display:inline-flex;align-items:center;gap:6px}.jira-weekly-rail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 24px 0;background:#f5f8f9}.jira-weekly-rail-head>div:first-child{display:flex;align-items:center;gap:13px}.jira-weekly-rail-head strong{color:#344157;font-size:13px}.jira-weekly-rail-head span{display:inline-flex;align-items:center;gap:6px;color:#7a8797;font-size:12px}.jira-weekly-rail-actions{display:flex;gap:7px}.jira-weekly-rail-actions .icon-btn{width:34px;height:34px;border-color:#d9e3e6;background:#fff}.jira-weekly-scroll{max-width:100%;overflow-x:scroll;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-color:#8fa5b7 #dfe7eb;scrollbar-width:auto;background:#f5f8f9}.jira-weekly-scroll::-webkit-scrollbar{height:13px}.jira-weekly-scroll::-webkit-scrollbar-track{margin:0 24px 10px;border-radius:99px;background:#dfe7eb}.jira-weekly-scroll::-webkit-scrollbar-thumb{border:3px solid #dfe7eb;border-radius:99px;background:#879fb1}.jira-weekly-grid{display:grid;grid-auto-flow:column;grid-auto-columns:390px;width:max-content;gap:16px;padding:12px 24px 16px}.jira-week-card{min-width:0;padding:17px;border:1px solid #dce5e8;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(20,46,64,.045);scroll-snap-align:start}.jira-week-card.latest{border-color:#6bc7bd;box-shadow:0 7px 20px rgba(0,123,114,.1)}.jira-week-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.jira-week-card-head>div{display:grid;gap:3px}.jira-week-card-head>div>span{color:#172033;font-size:18px;font-weight:850}.jira-week-card-head small{color:#7a8798;font-weight:600}.jira-week-status{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}.jira-week-status.final{color:#536175;background:#eef2f5}.jira-week-status.live{color:#006d64;background:#dff6f2}
.jira-week-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.jira-week-metric,.jira-week-rate{border:1px solid #e1e8ec;border-radius:11px;background:#fbfcfd;text-align:left;cursor:pointer;transition:.15s ease}.jira-week-metric{display:grid;gap:5px;min-height:107px;padding:11px}.jira-week-metric:hover,.jira-week-rate:hover{border-color:#73bcb6;background:#f4fbfa;transform:translateY(-1px)}.jira-week-metric>span{display:flex;align-items:center;gap:5px;color:#657286;font-size:11px;font-weight:750}.jira-week-metric.blue>span i{color:#2477c9}.jira-week-metric.green>span i{color:#008c72}.jira-week-metric.orange>span i{color:#d17708}.jira-week-metric strong{color:#182238;font-size:26px;line-height:1}.jira-week-metric small{align-self:end;color:#8a96a5;font-size:10px;line-height:1.25}.jira-week-metric small.up{color:#bd6100}.jira-week-metric small.down{color:#008069}.jira-week-rate{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 12px;padding:11px 12px}.jira-week-rate>span:first-child{color:#536175;font-size:12px;font-weight:750}.jira-week-rate strong{color:#007a71;font-size:17px}.jira-week-progress{grid-column:1/-1;height:7px;overflow:hidden;border-radius:99px;background:#e6edef}.jira-week-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#00998d,#5bc4b7)}
.jira-week-cancelled{grid-column:1/-1;display:flex;align-items:center;gap:6px;min-height:36px;padding:7px 10px;border:1px solid #e1e6eb;border-radius:10px;color:#5f6b7c;background:#f7f8fa;font:inherit;font-size:11px;font-weight:750;text-align:left;cursor:pointer;transition:.15s ease}.jira-week-cancelled:hover{border-color:#aeb9c4;background:#eef2f5;transform:translateY(-1px)}.jira-week-cancelled>span:first-child{display:inline-flex;align-items:center;gap:6px}.jira-week-cancelled>span:first-child i{color:#7a8797}.jira-week-cancelled strong{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;border-radius:7px;color:#fff;background:#6d7b8d;font-size:12px}.jira-week-cancelled>span:nth-of-type(2){color:#7a8797;font-weight:650}.jira-week-cancelled>i:last-child{margin-left:auto;color:#93a0af;font-size:10px}
.jira-priority-breakdown{margin-top:12px;overflow:hidden;border:1px solid #e1e8ec;border-radius:11px}.jira-priority-head,.jira-priority-row{display:grid;grid-template-columns:minmax(95px,1.45fr) repeat(3,minmax(54px,1fr));align-items:center}.jira-priority-head{min-height:31px;color:#778497;background:#f3f6f8;font-size:9px;font-weight:800;text-align:center;text-transform:uppercase}.jira-priority-head strong{text-align:left;padding-left:10px}.jira-priority-row{min-height:31px;border-top:1px solid #edf1f3;color:#788494;font-size:11px;text-align:center}.jira-priority-row>strong{display:flex;align-items:center;gap:7px;padding-left:10px;color:#465368;text-align:left}.jira-priority-row>strong i{width:7px;height:7px;border-radius:50%;background:#9ba7b5}.jira-priority-row>button{justify-self:center;min-width:27px;height:24px;padding:0 6px;border:0;border-radius:7px;color:#fff;background:#64748b;font:inherit;font-weight:850;cursor:pointer}.jira-priority-row>button:hover{filter:brightness(.9);transform:translateY(-1px)}.jira-priority-row.priority-blocker>strong i,.jira-priority-row.priority-blocker>button{background:#c9363e}.jira-priority-row.priority-critical>strong i,.jira-priority-row.priority-critical>button{background:#e06b22}.jira-priority-row.priority-major>strong i,.jira-priority-row.priority-major>button{background:#d39316}.jira-priority-row.priority-minor>strong i,.jira-priority-row.priority-minor>button{background:#2287a8}.jira-priority-row.priority-trivial>strong i,.jira-priority-row.priority-trivial>button{background:#78909c}.jira-priority-empty{margin-top:12px;padding:12px;border:1px dashed #dce4e8;border-radius:10px;color:#8591a1;font-size:12px;text-align:center}
.jira-week-detail{margin:0 24px 24px;border:1px solid #cddfe1;border-radius:14px;overflow:hidden;background:#fff}.jira-week-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 17px;border-bottom:1px solid #e2eaed;background:#f2f8f8}.jira-week-detail-head span{color:#00776f;font-size:11px;font-weight:850;text-transform:uppercase}.jira-week-detail-head h3{margin:2px 0 0;color:#223047;font-size:17px}.jira-week-detail-head h3 b{display:inline-flex;margin-left:5px;padding:2px 7px;border-radius:999px;color:#fff;background:#007b72;font-size:12px}.jira-week-issue-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:0;max-height:470px;overflow:auto}.jira-week-issue{display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:14px 17px;border-bottom:1px solid #edf1f3;color:inherit;text-decoration:none}.jira-week-issue:nth-child(odd){border-right:1px solid #edf1f3}.jira-week-issue:hover{background:#f5fbfa}.jira-week-issue-key{display:inline-flex;align-items:center;gap:6px;color:#08776f;font-size:12px;font-weight:850}.jira-week-issue>strong{grid-column:1/-1;color:#243149;font-size:14px;line-height:1.45}.jira-week-issue-meta{grid-column:1/-1;display:flex;align-items:center;gap:9px;color:#8490a0;font-size:11px}.jira-week-issue-meta em{padding:3px 7px;border-radius:999px;color:#5d6a7d;background:#edf1f5;font-style:normal;font-weight:750}.jira-week-issue-meta i{margin-left:auto;color:#00877c}
.jira-weekly-loading,.jira-weekly-empty{display:flex;align-items:center;justify-content:center;gap:14px;min-height:210px;padding:28px;color:#647185}.jira-weekly-empty>i,.jira-weekly-loading>i{color:#00877d;font-size:26px}.jira-weekly-empty>div{display:grid;gap:4px}.jira-weekly-empty>div span{color:#7b8797}.jira-weekly-empty.error>i{color:#ce3c42}.jira-weekly-empty.warning>i{color:#c4780a}.jira-week-detail-empty{padding:28px;color:#657386;text-align:center}
@media(max-width:900px){.jira-weekly-head{flex-direction:column}.jira-weekly-head-actions{width:100%;justify-content:space-between}}@media(max-width:640px){.flow-scope-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.flow-scope-tabs button{padding:0 10px;font-size:12px}.jira-weekly-head{padding-left:14px;padding-right:14px}.jira-weekly-method{padding-left:16px;padding-right:16px}.jira-weekly-head-actions{align-items:stretch;flex-direction:column}.jira-weekly-rail-head{padding-left:14px;padding-right:14px}.jira-weekly-rail-head>div:first-child span{display:none}.jira-weekly-grid{grid-auto-columns:min(370px,calc(100vw - 52px));padding-left:14px;padding-right:14px}.jira-week-detail{margin:0 14px 16px}.jira-week-issue-list{grid-template-columns:1fr}.jira-week-issue:nth-child(odd){border-right:0}}

.jira-blocker-pivot {
    margin: 0 24px 24px;
    overflow: hidden;
    border: 1px solid #ead9bf;
    border-radius: 15px;
    background: #fff;
}

.jira-blocker-pivot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0e3cf;
    background: linear-gradient(120deg, #fffaf0, #fff 70%);
}

.jira-blocker-pivot-head > div > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a45d05;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.jira-blocker-pivot-head h3 {
    margin: 4px 0 0;
    color: #273247;
    font-size: 18px;
}

.jira-blocker-pivot-head p {
    margin: 5px 0 0;
    color: #778397;
    font-size: 12px;
}

.jira-blocker-total {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px 9px 14px;
    border: 1px solid #f0c879;
    border-radius: 11px;
    color: #754306;
    background: #fff6da;
    cursor: pointer;
}

.jira-blocker-total span { font-size: 12px; font-weight: 750; }
.jira-blocker-total strong { min-width: 28px; font-size: 22px; text-align: center; }
.jira-blocker-table-wrap { overflow-x: auto; }

.jira-blocker-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.jira-blocker-table th,
.jira-blocker-table td {
    padding: 12px 14px;
    border-right: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    text-align: center;
    vertical-align: middle;
}

.jira-blocker-table th:first-child,
.jira-blocker-table td:first-child { width: 52%; text-align: left; }
.jira-blocker-table thead th { color: #657185; background: #f7f9fa; font-size: 11px; font-weight: 850; }
.jira-blocker-table tbody tr:hover td { background: #fffcf5; }
.jira-blocker-table tfoot th { color: #71450d; background: #fff8e8; }
.jira-blocker-table tr > *:last-child { border-right: 0; }
.jira-blocker-table tfoot tr:last-child > * { border-bottom: 0; }

.jira-blocker-source { display: grid; gap: 5px; }
.jira-blocker-source > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jira-blocker-source a { color: #08776f; font-size: 12px; font-weight: 850; }
.jira-blocker-source em { padding: 3px 7px; border-radius: 999px; color: #526174; background: #edf2f4; font-size: 10px; font-style: normal; font-weight: 800; }
.jira-blocker-source strong { color: #26344a; font-size: 13px; line-height: 1.4; }

.jira-blocker-count {
    min-width: 34px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #d56a06;
    box-shadow: 0 4px 10px rgba(186, 91, 0, .18);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.jira-blocker-count:hover { background: #ad5100; transform: translateY(-1px); }
.jira-blocker-zero { color: #aab2bd; font-weight: 700; }
.jira-blocker-empty { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 100px; padding: 20px; color: #507063; }
.jira-blocker-empty i { color: #159278; font-size: 20px; }
.jira-week-issue-meta em.priority { color: #984e00; background: #fff0d9; }
.jira-week-detail.blocker-detail { border-color: #ead9bf; }

.jira-blocker-week-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.jira-blocker-week-summary > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 92px;
    padding: 7px 9px;
    border: 1px solid #e3e8eb;
    border-radius: 9px;
    color: #647185;
    background: #f8fafb;
    font-size: 11px;
    font-weight: 800;
}

.jira-blocker-week-summary .jira-blocker-count { margin-left: auto; }
.jira-blocker-table th:first-child, .jira-blocker-table td:first-child { width: 34%; }
.jira-blocker-table th:nth-child(2), .jira-blocker-table td:nth-child(2) { width: 34%; text-align: left; }

.jira-blocker-bug {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.jira-blocker-bug > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c25800;
    font-size: 12px;
    font-weight: 900;
    text-decoration: underline;
}

.jira-blocker-bug > strong { color: #25334a; font-size: 13px; line-height: 1.4; }
.jira-blocker-bug:hover > strong { color: #00786f; }
.jira-blocker-week-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #08776f; background: #e7f6f3; font-size: 11px; font-weight: 850; white-space: nowrap; }
.jira-blocker-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #5b687b; background: #edf1f5; font-size: 11px; font-weight: 800; white-space: nowrap; }

.jira-blocker-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid #d7e2e5;
    border-radius: 8px;
    color: #08776f;
    background: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.jira-blocker-view:hover { border-color: #78bdb7; background: #f0faf8; }

.jira-blocker-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.jira-blocker-dialog-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(17, 31, 48, .55);
    cursor: default;
}

.jira-blocker-dialog .blocker-detail {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    margin: 0;
    overflow: hidden;
    border-color: #e6c894;
    box-shadow: 0 24px 70px rgba(9, 26, 40, .3);
}

.jira-blocker-dialog .jira-week-detail {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    margin: 0;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(9, 26, 40, .3);
}

.jira-blocker-dialog .jira-week-issue-list { max-height: min(590px, calc(100vh - 150px)); }

@media (max-width: 640px) {
    .jira-blocker-pivot { margin: 0 14px 16px; }
    .jira-blocker-pivot-head { align-items: flex-start; flex-direction: column; }
    .jira-blocker-total { width: 100%; justify-content: space-between; }
    .jira-blocker-dialog { padding: 10px; }
    .jira-blocker-dialog .jira-week-detail { max-height: calc(100vh - 20px); }
}
/* Team welcome: original photograph, with no crop or image manipulation. */
.login-page { height: auto; min-height: 100dvh; padding: 32px; background: #edf5f3; color: #153f3c; }
.login-wrap { width: min(1280px, 100%); min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px #174c3e14; border: 1px solid #dce8e3; animation: teamWelcome .6s ease-out both; }
.login-team { padding: 32px; background: #f5f8f4; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.login-team-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-team-wordmark { font-size: 23px; font-weight: 850; letter-spacing: -.8px; color: #006b68; }
.login-team-wordmark b { color: #006b68; border-bottom: 4px solid #ffc62f; }
.login-team-caption { font-size: 12px; color: #526b63; }
.login-team-photo { overflow: hidden; border-radius: 14px; background: #e7e9df; }
.login-team-photo img { display: block; width: 100%; height: auto; }
.login-team-message h1 { margin: 0 0 10px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -.7px; color: #005b58; }
.login-team-message p { margin: 0; max-width: 480px; font-size: 14px; line-height: 1.65; color: #526b63; }
.login-form-side { background: #fff; backdrop-filter: none; }
.login-card { max-width: 460px; padding: 42px; }
.login-mobile-logo { display: flex; justify-content: flex-start; margin-bottom: 36px; }
.login-mobile-logo img { width: 148px; height: 49px; }
.login-card-head { margin-bottom: 28px; }
.login-card-head .login-welcome { color: #006b68; font-size: 11px; letter-spacing: 1.7px; font-weight: 800; margin-bottom: 12px; }
.login-card-head h2 { color: #163e3c; font-size: 32px; letter-spacing: -.8px; margin-bottom: 10px; }
.login-card-head p { color: #586d69; font-size: 13px; line-height: 1.6; font-weight: 400; }
.login-field label { color: #294d48; font-size: 13px; }
.login-input-wrap i { color: #70847d; }
.login-input-wrap input { height: 50px; background: #fff; color: #193d38; border: 1px solid #bccdc7; border-radius: 10px; }
.login-input-wrap input::placeholder { color: #6a7f78; }
.login-input-wrap input:focus { background: #fff; border-color: #006b68; box-shadow: 0 0 0 3px #006b6817; }
.login-submit { height: 50px; border-radius: 10px; background: #006b68; }
.login-submit::after { animation: none; }
.login-submit:hover { background: #005653; box-shadow: 0 6px 18px #006b6826; }
.login-submit:focus-visible { outline: 3px solid #cc9c14; outline-offset: 3px; }
.login-divider { margin: 26px 0 14px; }
.login-divider::before, .login-divider::after { background: #e1e9e5; }
.login-divider span { color: #667b73; }
.login-account-note { background: #f3f8f6; color: #526b63; border: 0; border-radius: 10px; }
.login-account-note i { color: #006b68; background: #e1eee8; }
.login-foot { border: 0; border-radius: 0; background: none; color: #667b73; flex-direction: column; padding: 0; margin-top: 24px; font-size: 12px; }
.login-foot strong { color: #006b68; }
.login-error { color: #a51b27; background: #fff1f2; border-color: #f0c9ce; }
@keyframes teamWelcome { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 821px) and (max-height: 760px) { .login-page { padding: 20px; align-items: center; } .login-wrap { min-height: 610px; } .login-team { padding: 26px; gap: 20px; } .login-card { padding: 28px 36px; } .login-mobile-logo { margin-bottom: 24px; } }
@media (max-width: 820px) { .login-page { padding: 16px; } .login-wrap { display: block; width: min(560px, 100%); min-height: auto; } .login-team { padding: 22px; gap: 18px; } .login-team-message h1 { font-size: 25px; } .login-team-message p { font-size: 13px; } .login-team-caption { font-size: 11px; } .login-card { max-width: none; padding: 28px 26px; } .login-mobile-logo { display: none; } .login-card-head h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .login-wrap { animation: none; } .login-page *, .login-page *::after { animation: none !important; transition: none !important; } }
