:root {
    --tt-deep-navy: #00263E;
    --tt-vibrant-orange: #DC4405;
    --tt-brand-gray: #D9DAE4;
    --tt-light-gray: #F2F4F7;
    --tt-white: #FFFFFF;
}

html, body {
    font-family: Arial, sans-serif;
    background: var(--tt-light-gray);
    color: var(--tt-deep-navy);
    height: 100%;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--tt-deep-navy);
}

a:hover, .btn-link:hover {
    color: var(--tt-vibrant-orange);
}

.btn-primary {
    color: #fff;
    background-color: var(--tt-deep-navy);
    border-color: var(--tt-deep-navy);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--tt-vibrant-orange);
    border-color: var(--tt-vibrant-orange);
}

.content {
    padding-top: 1.1rem;
}

.card {
    border-color: var(--tt-brand-gray);
    background: var(--tt-white);
    box-shadow: 0 0.2rem 0.5rem rgba(10, 31, 68, 0.04); /* subtle blue shadow */
}

.navbar, .footer {
    background: var(--tt-deep-navy);
    color: var(--tt-white);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tt-white);
    color: var(--tt-deep-navy) !important;
    border: 2px solid var(--tt-deep-navy);
    margin-right: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 0.35rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    min-height: 42px;
    box-sizing: border-box;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--tt-vibrant-orange) !important;
    border-color: var(--tt-vibrant-orange);
    background-color: var(--tt-light-gray);
    text-decoration: none;
    outline: none;
}

.nav-link.active {
    background-color: var(--tt-deep-navy);
    color: var(--tt-white) !important;
    border: 2px solid var(--tt-deep-navy);
}

.progress-bar {
    background-color: var(--tt-vibrant-orange);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--tt-deep-navy);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.main-content {
    margin-left: 0; /* No sidebar offset */
    background: var(--tt-light-gray); /* optional */
}

.dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.dropdown-toggle::after {
    content: "";
    margin-left: 0.3rem;
}

/* Hidden until hover */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: calc(100% - 16px);
    left: 0;
    background-color: var(--tt-white);
    border: 1px solid var(--tt-brand-gray);
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1rem rgba(10, 31, 68, 0.15);
    min-width: 180px;
    z-index: 9999;
    padding: 0.25rem 0;
    white-space: nowrap;
}

/* Show on hover */
.dropdown-wrapper:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-wrapper.dropdown-clicked:hover .dropdown-menu-custom {
    display: none !important;
}

/* Dropdown links */
.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--tt-deep-navy) !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    background-color: var(--tt-white);
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background-color: var(--tt-light-gray);
    color: var(--tt-vibrant-orange) !important;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar {
    background: var(--tt-deep-navy);
    color: var(--tt-white);
    position: sticky;
    top: 0;
    z-index: 1050;
    overflow: visible !important;
}

.active-admin .nav-link {
    background-color: var(--tt-deep-navy);
    color: var(--tt-white) !important;
    border: 2px solid var(--tt-deep-navy);
}

.dropdown-wrapper .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tt-white);
    color: var(--tt-deep-navy) !important;
    border: 2px solid var(--tt-deep-navy);
    margin-right: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 0.35rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    min-height: 42px;
    box-sizing: border-box;
}

.dropdown-wrapper .nav-link:hover,
.dropdown-wrapper .nav-link:focus {
    color: var(--tt-vibrant-orange) !important;
    border-color: var(--tt-vibrant-orange);
    background-color: var(--tt-light-gray);
    text-decoration: none;
    outline: none;
}

.dropdown-wrapper.active-admin > .nav-link {
    background-color: var(--tt-deep-navy) !important;
    color: var(--tt-white) !important;
    border: 2px solid var(--tt-deep-navy);
}

/* Hide toolbar only for Goal editor */
.goal-editor .ql-toolbar {
    display: none;
}

/* When toolbar is removed, Quill's container still expects it; fix the border */
.goal-editor .ql-container.ql-snow {
    border-top: 1px solid #ccc !important;
}

.admin-page-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--tt-white);
    color: var(--tt-deep-navy);
    text-decoration: none;
    border: 1px solid var(--tt-brand-gray);
    border-radius: 0.35rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-page-link:hover,
.admin-page-link:focus {
    color: var(--tt-vibrant-orange);
    border-color: var(--tt-vibrant-orange);
    background: var(--tt-light-gray);
    text-decoration: none;
    outline: none;
}

.ttle-setup-tile {
    width: 220px;
    min-height: 110px;
}

.questions-scroll-container {
    max-height: 360px;
    overflow-y: auto;
}

.btn-outline-primary {
    color: var(--tt-deep-navy);
    border-color: var(--tt-deep-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--tt-white);
    background-color: var(--tt-vibrant-orange);
    border-color: var(--tt-vibrant-orange);
}

.border-primary {
    border-color: var(--tt-deep-navy) !important;
}

.bg-primary {
    background-color: var(--tt-deep-navy) !important;
}

/* Skill Sheets */
.my-skill-sheets-page .card,
.skill-sheet-queue-page .card {
    border: 1px solid var(--tt-deep-navy);
    border-radius: 4px;
}

.my-skill-sheets-page .card-header {
    background: #f7f7f7;
    border-bottom: 1px solid #d5dce3;
}

.my-skill-sheets-page .metric-tile,
.skill-sheet-queue-page .metric-tile {
    border: 1px solid #b8c2cc;
    border-left: 4px solid #e64500;
    min-height: 86px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.my-skill-sheets-page .metric-tile span,
.skill-sheet-queue-page .metric-tile span {
    color: var(--tt-deep-navy);
    font-size: 0.95rem;
}

.my-skill-sheets-page .metric-tile strong,
.skill-sheet-queue-page .metric-tile strong {
    color: var(--tt-deep-navy);
    font-size: 1.75rem;
    line-height: 1.1;
}

.my-skill-sheets-page .status-pill,
.skill-sheet-queue-page .status-pill,
.approver-modal .status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.my-skill-sheets-page .status-in-progress {
    background: #ffe8dd;
    color: #d63f00;
}

.my-skill-sheets-page .status-pending,
.skill-sheet-queue-page .status-initial,
.approver-modal .status-initial {
    background: #e8f2fb;
    color: #00324f;
}

.my-skill-sheets-page .status-complete {
    background: #e4f7ed;
    color: #007a3d;
}

.my-skill-sheets-page .status-rejected {
    background: #fde2e2;
    color: #b42318;
}

.my-skill-sheets-page .status-closed,
.skill-sheet-queue-page .status-pending,
.approver-modal .status-pending {
    background: #eceff3;
    color: #344054;
}

.skill-sheet-queue-page .status-setup,
.approver-modal .status-setup {
    background: #fff4d6;
    color: #8a5a00;
}

.skill-sheet-queue-page .status-final,
.approver-modal .status-final {
    background: #ede7f6;
    color: #4527a0;
}

.skill-sheet-queue-page .status-audit,
.approver-modal .status-audit {
    background: #e4f7ed;
    color: #007a3d;
}

.my-skill-sheets-page .empty-state,
.skill-sheet-queue-page .empty-state {
    border: 1px dashed #b8c2cc;
    padding: 2rem;
    text-align: center;
}

.my-skill-sheets-page .request-modal-backdrop {
    align-items: center;
    background: rgba(0, 31, 50, 0.48);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1050;
}

.my-skill-sheets-page .request-modal {
    background: #fff;
    border: 1px solid var(--tt-deep-navy);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(0, 31, 50, 0.28);
    max-height: calc(100vh - 48px);
    max-width: 980px;
    overflow: hidden;
    width: 100%;
}

.my-skill-sheets-page .request-modal-header,
.my-skill-sheets-page .request-modal-footer {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px;
}

.my-skill-sheets-page .request-modal-header {
    border-bottom: 1px solid #d5dce3;
}

.my-skill-sheets-page .request-modal-footer {
    border-top: 1px solid #d5dce3;
    justify-content: flex-end;
}

.my-skill-sheets-page .request-modal-body {
    display: grid;
    gap: 18px;
    max-height: calc(100vh - 220px);
    overflow: auto;
    padding: 20px;
}

.my-skill-sheets-page .request-controls {
    display: grid;
    gap: 14px;
}

.my-skill-sheets-page .manager-confirmation {
    background: #e6f6fb;
    border: 1px solid #bce7f2;
    border-radius: 4px;
    padding: 14px 14px 14px 40px;
}

.my-skill-sheets-page .template-preview {
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    min-height: 260px;
}

.my-skill-sheets-page .preview-empty {
    color: #667085;
    padding: 32px;
    text-align: center;
}

.my-skill-sheets-page .preview-summary {
    align-items: flex-start;
    background: #f7f7f7;
    border-bottom: 1px solid #d5dce3;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.my-skill-sheets-page .preview-task-count {
    background: var(--tt-deep-navy);
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
}

.my-skill-sheets-page .preview-tabs {
    border-bottom: 1px solid #d5dce3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 18px 0;
}

.my-skill-sheets-page .preview-tab {
    align-items: center;
    background: #fff;
    border: 1px solid #b8c2cc;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    color: var(--tt-deep-navy);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    white-space: nowrap;
}

.my-skill-sheets-page .preview-tab.active {
    background: var(--tt-deep-navy);
    border-color: var(--tt-deep-navy);
    color: #fff;
}

.my-skill-sheets-page .preview-tab span {
    background: #667085;
    border-radius: 4px;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1;
    min-width: 24px;
    padding: 5px 7px;
    text-align: center;
}

.my-skill-sheets-page .preview-tab.active span {
    background: #fff;
    color: var(--tt-deep-navy);
}

.my-skill-sheets-page .preview-section {
    padding: 18px;
}

.my-skill-sheets-page .preview-section-title {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.my-skill-sheets-page .preview-section-title span {
    color: #667085;
    font-size: 0.9rem;
}

.my-skill-sheets-page .preview-task-list {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
    padding-left: 1.35rem;
}

.skill-sheet-detail-page .detail-shell {
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 31, 50, 0.06);
    padding: 22px;
}

.skill-sheet-detail-page .detail-header {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.skill-sheet-detail-page .detail-meta {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.skill-sheet-detail-page .detail-meta label {
    color: #53657d;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.skill-sheet-detail-page .detail-meta span {
    border: 1px solid #b8c2cc;
    border-radius: 4px;
    display: block;
    min-height: 48px;
    padding: 0.65rem 0.8rem;
}

.skill-sheet-detail-page .metric-tile {
    border: 1px solid #b8c2cc;
    border-left: 4px solid #e64500;
    min-height: 86px;
    padding: 14px 16px;
}

.skill-sheet-detail-page .metric-tile span {
    color: var(--tt-deep-navy);
    display: block;
    font-size: 0.95rem;
}

.skill-sheet-detail-page .metric-tile strong {
    color: var(--tt-deep-navy);
    display: block;
    font-size: 1.75rem;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.skill-sheet-detail-page .detail-workspace {
    display: grid;
    gap: 18px;
    grid-template-columns: 240px 390px minmax(0, 1fr);
    margin-bottom: 18px;
}

.skill-sheet-detail-page .section-list {
    border: 1px solid #b8c2cc;
    min-height: 420px;
}

.skill-sheet-detail-page .section-list-item {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #d5dce3;
    color: var(--tt-deep-navy);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 60px;
    padding: 14px 16px;
    text-align: left;
    width: 100%;
}

.skill-sheet-detail-page .section-list-item.active {
    border-left: 4px solid #e64500;
    font-weight: 700;
    padding-left: 12px;
}

.skill-sheet-detail-page .section-list-item strong {
    background: #e8f2fb;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.skill-sheet-detail-page .task-queue {
    border: 1px solid #b8c2cc;
    min-height: 420px;
    min-width: 0;
}

.skill-sheet-detail-page .task-queue-header {
    align-items: center;
    background: #f7f9fb;
    border-bottom: 1px solid #d5dce3;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 14px;
}

.skill-sheet-detail-page .task-queue-header div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.skill-sheet-detail-page .task-queue-header span {
    color: #53657d;
}

.skill-sheet-detail-page .task-queue-header strong {
    color: var(--tt-deep-navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-sheet-detail-page .task-queue-header > span {
    background: var(--tt-deep-navy);
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    padding: 5px 8px;
    white-space: nowrap;
}

.skill-sheet-detail-page .task-queue-list {
    max-height: 580px;
    overflow-y: auto;
}

.skill-sheet-detail-page .task-queue-empty {
    color: #667085;
    padding: 18px;
    text-align: center;
}

.skill-sheet-detail-page .task-queue-item {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1e6ec;
    color: var(--tt-deep-navy);
    display: grid;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.skill-sheet-detail-page .task-queue-item:hover,
.skill-sheet-detail-page .task-queue-item:focus {
    background: #f7f9fb;
}

.skill-sheet-detail-page .task-queue-item.active {
    background: #e8f2fb;
    box-shadow: inset 4px 0 0 #e64500;
}

.skill-sheet-detail-page .task-queue-icon {
    align-items: center;
    border: 1px solid #b8c2cc;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.skill-sheet-detail-page .task-queue-item.complete .task-queue-icon,
.skill-sheet-detail-page .task-queue-item.approved .task-queue-icon {
    background: #e4f7ed;
    border-color: #168553;
    color: #007a3d;
}

.skill-sheet-detail-page .task-queue-item.rejected .task-queue-icon {
    background: #fde2e2;
    border-color: #b42318;
    color: #b42318;
}

.skill-sheet-detail-page .task-queue-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skill-sheet-detail-page .task-queue-status {
    background: #eceff3;
    border-radius: 999px;
    color: #344054;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
}

.skill-sheet-detail-page .task-queue-item.complete .task-queue-status {
    background: #e4f7ed;
    color: #007a3d;
}

.skill-sheet-detail-page .task-queue-item.approved .task-queue-status {
    background: #e8f2fb;
    color: #00324f;
}

.skill-sheet-detail-page .task-queue-item.rejected .task-queue-status {
    background: #fde2e2;
    color: #b42318;
}

.skill-sheet-detail-page .task-panel {
    min-width: 0;
}

.skill-sheet-detail-page .task-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.skill-sheet-detail-page .task-heading a {
    margin-left: 0.35rem;
}

.skill-sheet-detail-page .task-prompt {
    background: #f7f9fb;
    border-left: 4px solid #b8c2cc;
    color: #53657d;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.skill-sheet-detail-page .task-decision-history {
    border: 1px solid #d5dce3;
    margin-bottom: 14px;
}

.skill-sheet-detail-page .task-decision-history-header {
    background: #f7f9fb;
    color: var(--tt-deep-navy);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
    text-transform: uppercase;
}

.skill-sheet-detail-page .task-decision-history-item {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
}

.skill-sheet-detail-page .task-decision-history-item + .task-decision-history-item {
    border-top: 1px solid #d5dce3;
}

.skill-sheet-detail-page .task-decision-history-item div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-sheet-detail-page .task-decision-history-item strong {
    color: var(--tt-deep-navy);
}

.skill-sheet-detail-page .task-decision-history-item span,
.skill-sheet-detail-page .task-decision-history-item p {
    color: #53657d;
}

.skill-sheet-detail-page .task-decision-history-item p {
    margin: 0;
}

.skill-sheet-detail-page .evidence-box {
    min-height: 180px;
    resize: vertical;
}

.skill-sheet-detail-page .task-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.skill-sheet-detail-page .status-pill {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.skill-sheet-detail-page .status-complete {
    background: #e4f7ed;
    color: #007a3d;
}

.skill-sheet-detail-page .status-approved {
    background: #e8f2fb;
    color: #00324f;
}

.skill-sheet-detail-page .status-rejected {
    background: #fde2e2;
    color: #b42318;
}

.skill-sheet-detail-page .status-pending {
    background: #eceff3;
    color: #344054;
}

.skill-sheet-detail-page .approval-history h3 {
    color: var(--tt-deep-navy);
}

.skill-sheet-detail-page .approval-history-item {
    background: #f7f9fb;
    border-left: 4px solid #b8c2cc;
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    padding: 12px 14px;
}

.skill-sheet-detail-page .approval-history-item.complete {
    border-left-color: #168553;
}

.skill-sheet-detail-page .approval-history-item.pending {
    border-left-color: #e64500;
}

.skill-sheet-detail-page .approval-history-item strong {
    color: var(--tt-deep-navy);
}

.skill-sheet-detail-page .approval-history-item span {
    color: #53657d;
}

.skill-sheet-detail-page .approval-history {
    border-top: 1px solid #d5dce3;
    padding-top: 18px;
}

.skill-sheet-detail-page .approval-history-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approver-modal {
    display: block;
}

.approver-modal .modal-content {
    border-radius: 4px;
}

.approver-modal .setup-summary {
    border: 1px solid #d6dde5;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1rem;
}

.approver-modal .approver-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approver-modal .decision-options {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approver-modal .decision-option {
    align-items: center;
    border: 1px solid #b8c2cc;
    display: flex;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.7rem 0.85rem;
}

.approver-modal .decision-option input {
    margin: 0;
}

@media (max-width: 767.98px) {
    .my-skill-sheets-page .request-modal-backdrop {
        align-items: stretch;
        padding: 12px;
    }

    .my-skill-sheets-page .request-modal {
        max-height: calc(100vh - 24px);
    }

    .my-skill-sheets-page .request-modal-header,
    .my-skill-sheets-page .request-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .my-skill-sheets-page .request-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .approver-modal .setup-summary,
    .approver-modal .approver-grid,
    .approver-modal .decision-options {
        grid-template-columns: 1fr;
    }

    .skill-sheet-detail-page .detail-header,
    .skill-sheet-detail-page .task-heading {
        flex-direction: column;
    }

    .skill-sheet-detail-page .detail-meta,
    .skill-sheet-detail-page .detail-workspace {
        grid-template-columns: 1fr;
    }
}

.team-dropdown-menu a.dropdown-link.dropdown-child-link {
    padding-left: 2.75rem;
    font-size: 0.92rem;
    opacity: 0.85;
}

.team-dropdown-menu a.dropdown-link.dropdown-child-link:hover,
.team-dropdown-menu a.dropdown-link.dropdown-child-link.active {
    opacity: 1;
}
