@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --site-bg: #f6f4ef;
    --surface-bg: #ffffff;
    --text-color: #1f2933;
    --muted-color: #52606d;
    --border-color: rgba(31, 41, 51, 0.12);
    --accent-color: #1b6b57;
    --accent-color-dark: #145242;
    --container-max: 72rem;
    --space-section: 1.5rem;
}

html {
    min-height: 100%;
    font-size: 16px;
    background: var(--site-bg);
    font-family: "Inter", sans-serif;
}

body.site-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #fbfaf7 0%, var(--site-bg) 100%);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
    font-family: inherit;
}

.container {
    width: min(100%, var(--container-max));
    padding-left: 1rem;
    padding-right: 1rem;
}

.admin-shell {
    width: min(100%, 96rem);
}

.admin-shell-fluid {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.site-brand-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-color);
    font-size: 1.125rem;
    letter-spacing: 0.04em;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 3rem;
    object-fit: contain;
}

.site-nav-links {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-nav-links .nav-link {
    color: var(--text-color);
    font-weight: 500;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus {
    color: var(--accent-color);
}

.site-nav-user {
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-nav-user:hover,
.site-nav-user:focus {
    color: var(--accent-color);
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    display: none;
}

.admin-sidebar-toggle {
    display: none;
}

.admin-layout-main {
    min-width: 0;
}

.admin-body .admin-layout-main > main.container {
    width: 100%;
    max-width: 100%;
}

.admin-body .admin-layout-main h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.admin-body .admin-layout-main h1.h3,
.admin-body .admin-layout-main h1.h4 {
    letter-spacing: 0;
}

.admin-body .admin-layout-main .card.shadow-sm.border-0,
.admin-body .admin-layout-main .card.shadow-sm {
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.82);
}

.admin-body .admin-layout-main .admin-table-card {
    border: 0 !important;
    background: transparent;
}

.admin-body .admin-layout-main .admin-table-card.card,
.admin-body .admin-layout-main main > .row > [class*="col-"] > .card,
.admin-body .admin-layout-main main > .card {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.admin-body .admin-layout-main .admin-table-card > .card-body {
    padding: 0 !important;
}

.admin-body .admin-layout-main main > .row > [class*="col-"] > .card > .card-body,
.admin-body .admin-layout-main main > .card > .card-body {
    padding: 0 !important;
}

body.admin-embedded {
    background: #ffffff;
}

body.admin-embedded .admin-sidebar,
body.admin-embedded .admin-mobile-header,
body.admin-embedded .admin-layout-main > main.container {
    display: none !important;
}

body.admin-embedded .admin-layout {
    display: block;
    min-height: 100vh;
}

body.admin-embedded .admin-layout-main {
    min-height: 100vh;
}

body.admin-embedded .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    transform: none !important;
}

body.admin-embedded .modal.show {
    position: static;
    overflow: visible;
    padding: 0 !important;
}

body.admin-embedded .modal-content {
    height: 100vh;
    min-height: 100vh;
    border: 0;
    box-shadow: none !important;
}

body.admin-embedded .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

body.admin-embedded .modal-footer {
    margin-top: auto;
}

body.admin-embedded .modal-backdrop {
    display: none !important;
}

.admin-frame-modal .modal-content {
    background: transparent;
}

.admin-frame-modal .modal-body {
    background: #ffffff;
}

.admin-frame-iframe {
    display: block;
    width: 100%;
    height: min(88vh, 62rem);
    border: 0;
}

@media (min-width: 1200px) {
    .admin-body {
        background: var(--site-bg);
    }

    .admin-layout {
        display: grid;
        grid-template-columns: 15.5rem minmax(0, 1fr);
    }

    .admin-layout.is-sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        height: 100vh;
        padding: 1rem;
        overflow-y: auto;
        z-index: 1000;
    }

    .admin-layout.is-sidebar-collapsed .admin-sidebar {
        display: none;
    }

    .admin-sidebar-toggle {
        position: fixed;
        left: 16.5rem;
        top: 1rem;
        bottom: auto;
        z-index: 1050;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.25rem;
        padding: 0.45rem 0.75rem;
        border: 1px solid var(--border-color);
        background: #fff;
        color: var(--text-color);
        font-weight: 700;
        box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.14);
    }

    .admin-layout.is-sidebar-collapsed .admin-sidebar-toggle {
        left: 1rem;
    }

    .admin-sidebar-toggle:hover,
    .admin-sidebar-toggle:focus {
        border-color: rgba(27, 107, 87, 0.42);
        color: var(--accent-color-dark);
    }

    .admin-mobile-header {
        display: none;
    }

    .admin-sidebar-brand {
        display: grid;
        gap: 0.5rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-sidebar-nav {
        display: grid;
        gap: 0.25rem;
    }

    .admin-sidebar .nav-link {
        display: block;
        padding: 0.65rem 0.75rem;
        border-left: 0.25rem solid transparent;
        color: var(--text-color);
        font-weight: 600;
    }

    .admin-sidebar .nav-link:hover,
    .admin-sidebar .nav-link:focus {
        border-left-color: var(--accent-color);
        background: rgba(27, 107, 87, 0.08);
        color: var(--accent-color-dark);
    }

.admin-sidebar-logout {
    margin-top: auto;
}

.admin-audit-table {
    min-width: 1120px;
}

.admin-audit-metadata-cell {
    max-width: 440px;
}

.admin-audit-metadata {
    max-height: 14rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.8125rem;
}

.admin-audit-changes {
    display: grid;
    gap: 0.65rem;
}

.admin-audit-change-row {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.admin-audit-change-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

    .admin-layout-main {
        min-width: 0;
    }

    .admin-layout-main .admin-shell-fluid,
    .admin-layout-main .admin-team-builder-fluid {
        width: 100%;
        max-width: 100%;
    }
}

main.container {
    padding-top: var(--space-section);
    padding-bottom: 2.5rem;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted-color);
}

p,
.form-text,
.text-muted,
label,
input,
select,
button,
textarea {
    line-height: 1.5;
}

.card {
    overflow: hidden;
    background: var(--surface-bg);
    border: 1px solid var(--border-color) !important;
}

.admin-osm-map {
    position: relative;
    min-height: 28rem;
    height: min(72vh, 46rem);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(135deg, rgba(27, 107, 87, 0.16), rgba(56, 102, 174, 0.12)),
        #eef4f1;
}

@media (max-width: 767.98px) {
    .admin-osm-map {
        min-height: 24rem;
        height: 68vh;
    }
}

.admin-osm-map .maplibregl-canvas {
    outline: none;
}

.admin-osm-preview-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(31, 41, 51, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 41, 51, 0.08) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

.admin-osm-preview-content {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: 30rem;
    padding: 1rem;
    border: 1px solid rgba(31, 41, 51, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.admin-table-card .card-body {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.admin-reference {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(27, 107, 87, 0.14);
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

.admin-record-trigger {
    display: grid;
    justify-items: start;
    gap: 0.2rem;
    width: 100%;
    min-width: 9rem;
    max-width: 14rem;
    padding: 0.7rem 0.85rem;
    text-align: left;
    border: 1px solid rgba(31, 41, 51, 0.24);
    background: #fff;
}

.admin-record-trigger-name {
    font-weight: 700;
    color: var(--text-color);
}

.admin-record-trigger-meta {
    font-size: 0.82rem;
    color: var(--muted-color);
}

.table-responsive {
    overflow-x: auto;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper .row {
    --bs-gutter-y: 1rem;
    align-items: center;
}

.dataTables_wrapper > .row:first-child {
    margin-bottom: 1.5rem;
}

.dataTables_wrapper > .row:last-child {
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(31, 41, 51, 0.12);
}

.dataTables_wrapper.admin-dt-floating-ready,
.dt-container.admin-dt-floating-ready {
    padding-bottom: 6rem;
}

.dataTables_wrapper.admin-dt-floating-ready > .row:last-child,
.dt-container.admin-dt-floating-ready > .row:last-child {
    margin-top: 1.5rem;
    padding-top: 0.85rem;
}

.admin-dt-floating-footer {
    position: fixed;
    z-index: 1040;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.admin-dt-floating-footer-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.admin-dt-floating-footer-group > .row,
.admin-dt-floating-footer-group > .dt-layout-row {
    flex: 1 1 0;
    width: auto;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    padding-top: 0;
    border-top: 0;
}

.admin-dt-floating-footer-group > .row > [class*="col-"],
.admin-dt-floating-footer-group > .dt-layout-row > .dt-layout-cell {
    padding-right: 0;
    padding-left: 0;
}

.admin-dt-floating-footer-group > .row:first-child,
.admin-dt-floating-footer-group > .dt-layout-row:first-child {
    justify-content: flex-start;
}

.admin-dt-floating-footer-group > .row:last-child,
.admin-dt-floating-footer-group > .dt-layout-row:last-child {
    justify-content: flex-end;
}

.admin-dt-floating-table-footer {
    position: fixed;
    z-index: 1039;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 51, 0.12);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.admin-dt-floating-table-footer table {
    width: 100% !important;
    margin: 0;
    background: transparent;
}

.admin-dt-floating-table-footer tfoot th,
.admin-dt-floating-table-footer tfoot td {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    border-top: 0;
    border-bottom: 0;
    background: transparent;
    vertical-align: middle;
}

.admin-dt-floating-placeholder {
    width: 100%;
}

.dataTables_wrapper > .row:last-child > div:last-child,
.admin-dt-floating-footer > div:last-child {
    display: flex;
    justify-content: flex-end;
}

.admin-dt-floating-footer .dataTables_paginate,
.admin-dt-floating-footer .dt-paging,
.admin-dt-floating-footer .pagination {
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dt-length label,
.dataTables_wrapper .dt-search label,
.dt-container .dt-length label,
.dt-container .dt-search label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-info,
.dataTables_wrapper .dt-paging,
.dt-container .dt-info,
.dt-container .dt-paging,
.admin-dt-floating-footer .dataTables_info,
.admin-dt-floating-footer .dataTables_paginate,
.admin-dt-floating-footer .dt-info,
.admin-dt-floating-footer .dt-paging {
    color: var(--text-color);
    font-size: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dt-length,
.dataTables_wrapper .dt-search,
.dt-container .dt-length,
.dt-container .dt-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dt-search,
.dt-container .dt-search {
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select,
.dt-container .dt-search input,
.dt-container .dt-length select {
    border-radius: 0;
    border-color: rgba(31, 41, 51, 0.24);
    background-color: #fff;
    color: var(--text-color);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dt-search input,
.dt-container .dt-search input {
    min-width: min(100%, 18rem);
    margin-left: 0;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dt-length select,
.dt-container .dt-length select {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 5.25rem;
    max-width: 7rem;
}

.dataTables_wrapper table.dataTable thead th {
    white-space: nowrap;
    border-bottom-color: rgba(31, 41, 51, 0.24);
    color: var(--text-color);
    font-weight: 700;
}

.dataTables_wrapper table.dataTable thead th.sorting,
.dataTables_wrapper table.dataTable thead th.sorting_asc,
.dataTables_wrapper table.dataTable thead th.sorting_desc,
.dataTables_wrapper table.dataTable thead th.dt-orderable-asc,
.dataTables_wrapper table.dataTable thead th.dt-orderable-desc {
    cursor: pointer;
}

.dataTables_wrapper table.dataTable thead th.sorting::after,
.dataTables_wrapper table.dataTable thead th.dt-orderable-asc::after {
    content: " ↕";
    color: var(--muted-text);
    font-weight: 400;
}

.dataTables_wrapper table.dataTable thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead th.dt-ordering-asc::after {
    content: " ↑";
    color: var(--accent-color);
    font-weight: 700;
}

.dataTables_wrapper table.dataTable thead th.sorting_desc::after,
.dataTables_wrapper table.dataTable thead th.dt-ordering-desc::after {
    content: " ↓";
    color: var(--accent-color);
    font-weight: 700;
}

.dataTables_wrapper table.dataTable tbody td {
    vertical-align: middle;
}

.dataTables_wrapper table.dataTable tfoot th {
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 51, 0.24);
    border-bottom: 0;
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dt-info,
.dt-container .dt-info,
.admin-dt-floating-footer .dataTables_info,
.admin-dt-floating-footer .dt-info {
    padding-top: 0 !important;
    color: var(--muted-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dt-paging,
.dt-container .dt-paging,
.admin-dt-floating-footer .dataTables_paginate,
.admin-dt-floating-footer .dt-paging {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0;
}

.dataTables_wrapper .pagination,
.dt-container .pagination,
.admin-dt-floating-footer .pagination {
    --bs-pagination-border-radius: 0;
    --bs-pagination-color: var(--accent-color-dark);
    --bs-pagination-hover-color: var(--accent-color-dark);
    --bs-pagination-hover-bg: rgba(27, 107, 87, 0.08);
    --bs-pagination-hover-border-color: rgba(27, 107, 87, 0.24);
    --bs-pagination-active-bg: var(--accent-color);
    --bs-pagination-active-border-color: var(--accent-color);
    --bs-pagination-disabled-color: rgba(31, 41, 51, 0.4);
    --bs-pagination-disabled-bg: rgba(31, 41, 51, 0.04);
    --bs-pagination-disabled-border-color: rgba(31, 41, 51, 0.12);
    --bs-pagination-focus-box-shadow: 0 0 0 0.15rem rgba(27, 107, 87, 0.18);
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0;
}

.dataTables_wrapper .pagination .page-item:first-child .page-link,
.dataTables_wrapper .pagination .page-item:last-child .page-link,
.dt-container .pagination .page-item:first-child .page-link,
.dt-container .pagination .page-item:last-child .page-link,
.admin-dt-floating-footer .pagination .page-item:first-child .page-link,
.admin-dt-floating-footer .pagination .page-item:last-child .page-link {
    min-width: 2.35rem;
}

.dataTables_wrapper .pagination .page-link,
.dt-container .pagination .page-link,
.admin-dt-floating-footer .pagination .page-link {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0 !important;
    border-color: rgba(31, 41, 51, 0.16);
    background-color: #fff;
    color: var(--accent-color-dark);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.dataTables_wrapper .pagination .page-item.active .page-link,
.dt-container .pagination .page-item.active .page-link,
.admin-dt-floating-footer .pagination .page-item.active .page-link {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: #fff;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dt-container .pagination .page-item.disabled .page-link,
.admin-dt-floating-footer .pagination .page-item.disabled .page-link {
    background-color: rgba(31, 41, 51, 0.04);
    color: rgba(31, 41, 51, 0.42);
}

.careers-landing,
.careers-thank-you {
    min-height: calc(100vh - 5rem);
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    background: #fbfaf7;
}

.careers-hero {
    padding: 1.25rem 0 2rem;
}

.careers-hero-inner,
.careers-thank-you-shell {
    display: grid;
    gap: 1.25rem;
}

.careers-copy,
.careers-thank-you-copy {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.careers-kicker {
    margin: 0;
    color: var(--accent-color-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.careers-copy h1,
.careers-thank-you-copy h1 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(2.45rem, 13vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.careers-lead {
    max-width: 34rem;
    margin: 0;
    color: var(--muted-color);
    font-size: 1.1rem;
    line-height: 1.55;
}

.careers-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.careers-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(27, 107, 87, 0.22);
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.careers-form-panel {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, 0.08);
}

.careers-form-heading {
    margin-bottom: 1rem;
}

.careers-lead-form {
    display: grid;
    gap: 1rem;
}

.careers-field {
    display: grid;
    gap: 0.35rem;
}

.careers-lead-form .form-control,
.careers-lead-form .form-select {
    min-height: 3.35rem;
    border-color: rgba(31, 41, 51, 0.2);
    font-size: 1rem;
}

.careers-lead-form .form-control:focus,
.careers-lead-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 107, 87, 0.16);
}

.careers-prescreen {
    display: grid;
    gap: 0.85rem;
    border: 1px solid #d8dee6;
    background: #f8fafc;
    padding: 1rem;
}

.careers-prescreen-question {
    border: 0;
    padding: 0;
    margin: 0;
}

.careers-prescreen-question legend {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.careers-prescreen-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.careers-prescreen-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 0.45rem 0.8rem;
}

.careers-submit,
.careers-sticky-button {
    min-height: 3.35rem;
    border-color: var(--accent-color);
    background: var(--accent-color);
    font-weight: 800;
}

.careers-submit:hover,
.careers-submit:focus,
.careers-sticky-button:hover,
.careers-sticky-button:focus {
    border-color: var(--accent-color-dark);
    background: var(--accent-color-dark);
}

.careers-form-note,
.careers-reference {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.careers-essentials {
    padding: 1.75rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.careers-essentials-grid {
    display: grid;
    gap: 1rem;
}

.careers-essentials article {
    padding: 0.25rem 0;
}

.careers-essentials h2 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.careers-essentials p {
    margin: 0;
    color: var(--muted-color);
}

.careers-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -0.75rem 2rem rgba(31, 41, 51, 0.12);
    transition: transform 160ms ease, opacity 160ms ease;
}

.careers-sticky-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.careers-sticky-button {
    width: 100%;
}

.careers-thank-you {
    padding-top: 1.25rem;
}

@media (min-width: 768px) {
    .careers-landing,
    .careers-thank-you {
        padding-bottom: 0;
    }

    .careers-hero {
        padding: 3rem 0;
    }

    .careers-hero-inner,
    .careers-thank-you-shell {
        grid-template-columns: minmax(0, 1fr) minmax(21rem, 26rem);
        align-items: start;
        gap: 2rem;
    }

    .careers-form-panel {
        padding: 1.4rem;
    }

    .careers-essentials {
        padding: 2.25rem 0;
    }

    .careers-essentials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .careers-sticky-cta {
        display: none;
    }

    .careers-thank-you {
        padding-top: 3rem;
    }
}

@media (min-width: 992px) {
    .careers-hero {
        padding: 4.5rem 0 4rem;
    }

    .careers-hero-inner,
    .careers-thank-you-shell {
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 29rem);
        gap: 3.5rem;
    }
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-careers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
}

.admin-careers-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-careers-search {
    max-width: 32rem;
    flex: 1 1 24rem;
}

.admin-careers-sort {
    flex: 0 1 18rem;
}

.admin-careers-table-wrap .dataTables_filter {
    display: none;
}

.admin-table-reminders {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(129, 60, 22, 0.2);
    border-left: 0.35rem solid #b45309;
    background: #fff8ed;
    color: #4a2a12;
}

.admin-table-reminders-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-table-reminders-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(124, 45, 18, 0.32);
    background: #fff;
    color: #7c2d12;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-table-reminders-toggle:hover,
.admin-table-reminders-toggle:focus {
    border-color: #7c2d12;
    background: rgba(180, 83, 9, 0.08);
}

.admin-table-reminders-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #b45309;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.admin-table-reminders-label {
    color: #7c2d12;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table-reminders-count {
    color: #451a03;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-table-reminders-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.admin-table-reminder-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(129, 60, 22, 0.14);
    background: rgba(255, 255, 255, 0.75);
}

.admin-table-reminder-item-exit {
    border-color: rgba(153, 27, 27, 0.3);
    background: #fff5f5;
    box-shadow: inset 0.25rem 0 0 #dc2626;
}

.admin-table-reminder-person {
    flex: 1 0 100%;
    min-width: 0;
    color: #451a03;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-table-reminder-item-exit .admin-table-reminder-person {
    color: #7f1d1d;
}

.admin-table-reminder-badge {
    padding: 0.2rem 0.5rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table-reminder-detail {
    flex: 1 1 12rem;
    min-width: min(100%, 10rem);
    overflow-wrap: anywhere;
}

a.admin-table-reminder-person {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

a.admin-table-reminder-person:hover,
a.admin-table-reminder-person:focus {
    color: #9a3412;
}

.admin-table-reminder-detail {
    color: #683817;
    font-size: 0.92rem;
}

.admin-table-reminder-amount,
.admin-table-reminder-date,
.admin-table-reminders-more {
    padding: 0.18rem 0.45rem;
    background: rgba(180, 83, 9, 0.1);
    color: #7c2d12;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table-reminder-date {
    background: rgba(180, 83, 9, 0.16);
}

.admin-table-reminders-more {
    justify-self: end;
}

.admin-exit-response-answers {
    display: grid;
    gap: 0.5rem;
}

.admin-exit-response-answer {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.admin-exit-response-answer strong {
    color: var(--text-color);
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.admin-staffing-file-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.admin-staffing-file-link:hover,
.admin-staffing-file-link:focus {
    color: #9a3412;
}

.admin-career-mobile-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
}

.admin-career-mobile-card-header {
    display: grid;
    gap: 0.75rem;
}

.admin-career-mobile-card-header .admin-category-chip {
    justify-self: start;
}

.admin-career-mobile-meta {
    display: grid;
    gap: 0.75rem;
}

.admin-career-mobile-meta > div {
    display: grid;
    gap: 0.15rem;
}

.admin-career-mobile-actions {
    display: grid;
    gap: 0.75rem;
}

.admin-career-mobile-actions .btn,
.admin-career-mobile-status .btn {
    min-height: 2.75rem;
}

.admin-career-mobile-actions .admin-details-toggle {
    width: 100%;
    max-width: none;
}

.admin-career-mobile-status {
    display: grid;
    gap: 0.4rem;
}

.admin-report-accordion .accordion-item {
    border: 1px solid var(--border-color) !important;
    background: transparent;
}

.admin-report-accordion .accordion-item + .accordion-item {
    margin-top: 0.75rem;
}

.admin-report-accordion .accordion-button {
    background: #fff;
    color: var(--text-color);
    font-weight: 700;
    box-shadow: none;
}

.admin-report-accordion .accordion-button:not(.collapsed) {
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
}

.admin-report-accordion .accordion-body {
    padding: 0;
    background: transparent;
}

.admin-summary-panel {
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    background: rgba(27, 107, 87, 0.03);
}

.admin-summary-totals {
    display: grid;
    gap: 0.75rem;
}

.admin-summary-total-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
    text-align: left;
}

.admin-source-report-card {
    width: 100%;
    color: inherit;
}

.admin-role-filter-card {
    width: 100%;
    color: inherit;
    cursor: pointer;
}

.admin-role-filter-card:hover,
.admin-role-filter-card:focus,
.admin-role-filter-card.is-active,
.admin-source-report-card:hover,
.admin-source-report-card:focus,
.admin-source-report-card.is-active {
    border-color: rgba(27, 107, 87, 0.42);
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
}

.admin-summary-total-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.admin-summary-total-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.admin-dashboard {
    display: grid;
    gap: 1.25rem;
}

.admin-dashboard-header,
.admin-dashboard-section {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.82);
    padding: 1.25rem;
}

.admin-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border: 0;
    background: transparent;
    padding: 0;
}

.admin-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-dashboard-kpi {
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 1rem;
}

.admin-dashboard-kpi span {
    color: var(--muted-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-dashboard-kpi strong {
    font-size: 1.65rem;
    line-height: 1;
}

.admin-dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-dashboard-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-dashboard-link,
.admin-dashboard-tool {
    display: grid;
    gap: 0.35rem;
    border: 1px solid #d8dee6;
    background: #fff;
    color: var(--text-color);
    text-decoration: none;
}

.admin-dashboard-link {
    min-height: 9rem;
    padding: 1rem;
}

.admin-dashboard-link:hover,
.admin-dashboard-link:focus,
.admin-dashboard-tool:hover,
.admin-dashboard-tool:focus {
    border-color: rgba(27, 107, 87, 0.35);
    color: var(--accent-color-dark);
}

.admin-dashboard-link strong,
.admin-dashboard-tool span {
    font-weight: 800;
}

.admin-dashboard-link span,
.admin-dashboard-tool small {
    color: var(--muted-color);
}

.admin-dashboard-tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.admin-dashboard-tool {
    padding: 0.8rem 0.9rem;
}

.admin-summary-breakdown {
    display: grid;
    gap: 1rem;
}

.admin-summary-breakdown-card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: #fff;
}

.admin-summary-source-list {
    display: grid;
    gap: 0.5rem;
}

.admin-summary-source-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.admin-summary-breakdown-card .badge {
    white-space: nowrap;
}

.admin-product-groups {
    display: grid;
    gap: 1rem;
}

.admin-product-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-removable-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-chip-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-training-summary {
    min-height: 3rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border-color);
    background: #fff;
}

.admin-modal-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-modal-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-inline-response {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}

.admin-inline-response .alert {
    margin: 0;
}

.admin-inline-response.is-actions-end {
    justify-items: end;
}

.admin-modal-section-action {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    white-space: nowrap;
}

.admin-address-editor .form-control,
.admin-address-editor .form-select,
.admin-notes-field,
.admin-training-editor .form-control {
    min-height: 3rem;
}

.admin-training-options {
    display: grid;
    gap: 1rem;
}

.admin-training-option-group {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.admin-training-option-group legend {
    float: none;
    width: auto;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--muted-color);
}

.admin-training-option-list {
    display: grid;
    gap: 0.5rem;
}

.admin-training-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
}

.admin-training-option input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    accent-color: var(--accent-color);
}

.admin-training-option:has(input:checked) {
    border-color: rgba(27, 107, 87, 0.45);
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
}

.admin-training-option:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.65;
}

.admin-subordinate-options {
    max-height: 16rem;
    overflow-y: auto;
    gap: 0.65rem;
}

.admin-subordinate-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border-color: rgba(31, 41, 51, 0.16);
}

.admin-subordinate-option input {
    width: 1.45rem;
    height: 1.45rem;
}

.admin-subordinate-option-main {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.admin-subordinate-option-name {
    font-weight: 700;
    color: var(--text-color);
}

.admin-subordinate-option-meta {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.admin-subordinate-option-state {
    justify-self: end;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(31, 41, 51, 0.16);
    background: #fff;
    color: var(--muted-color);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-subordinate-option.is-assigned .admin-subordinate-option-state {
    border-color: rgba(27, 107, 87, 0.32);
    background: var(--accent-color);
    color: #fff;
}

.admin-subordinate-option.is-pending {
    border-color: rgba(180, 83, 9, 0.42);
    background: #fff8ed;
}

.admin-subordinate-option.is-pending .admin-subordinate-option-state {
    border-color: rgba(180, 83, 9, 0.38);
    background: #f59e0b;
    color: #451a03;
}

@media (max-width: 767.98px) {
    .admin-subordinate-option {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-subordinate-option-state {
        grid-column: 2;
        justify-self: start;
    }
}

.admin-notes-field {
    resize: vertical;
}

.admin-notes-list {
    display: grid;
    max-height: 18rem;
    gap: 0.75rem;
    overflow-y: auto;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border-color);
    background: #fff;
}

.admin-note-entry {
    display: grid;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.admin-note-entry:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-note-entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.admin-bonus-exemption-check {
    min-height: 2rem;
    padding-top: 0.35rem;
}

.admin-bonus-exemption-check .form-check-label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-product-form .btn {
    min-height: 3rem;
}

.admin-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.admin-category-filter {
    min-height: 2.5rem;
    border-color: var(--category-border, rgba(31, 41, 51, 0.16));
    border-width: 1px;
    background: #fff;
    color: var(--category-text, var(--text-color));
    line-height: 1.25;
    white-space: normal;
    text-align: left;
}

.admin-category-filter:hover,
.admin-category-filter:focus,
.admin-category-filter.is-active {
    border-color: var(--category-border, var(--accent-color));
    background: var(--category-bg, rgba(27, 107, 87, 0.08));
    color: var(--category-text, var(--accent-color-dark));
}

.admin-document-toggle {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-document-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--category-border, rgba(31, 41, 51, 0.16));
    background: var(--category-bg, #fff);
    color: var(--category-text, var(--text-color));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: normal;
}

.admin-contract-chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-contract-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border-left: 0.35rem solid var(--contract-colour, #2563EB);
    border-top: 1px solid #d8dee6;
    border-right: 1px solid #d8dee6;
    border-bottom: 1px solid #d8dee6;
    background: #fff;
    color: #1f2933;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.admin-contract-chip-button {
    cursor: pointer;
    text-align: left;
}

.admin-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.5rem;
    margin-top: 0.35rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.admin-role-chip .admin-role-chip-short {
    color: #0f766e;
}

.admin-team-builder-compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.admin-team-builder-compatibility-list {
    max-height: 20rem;
    overflow: auto;
}

.admin-contract-chip.is-empty {
    border-left-color: #9aa8b8;
    color: #64748b;
}

.admin-contracts-grid {
    display: grid;
    grid-template-columns: minmax(24rem, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.admin-contracts-accordion .accordion-item {
    border-color: var(--border-color) !important;
    background: transparent;
}

.admin-contracts-accordion .accordion-item + .accordion-item {
    margin-top: 0.75rem;
}

.admin-contracts-accordion .accordion-button {
    background: #fff;
    color: var(--text-color);
    font-weight: 700;
    box-shadow: none;
}

.admin-contracts-accordion .accordion-button:not(.collapsed) {
    background: rgba(27, 107, 87, 0.08);
    color: var(--accent-color-dark);
}

.admin-contracts-accordion .accordion-body {
    padding: 0;
    background: transparent;
}

.admin-contract-list,
.admin-contract-assignment-list,
.admin-prescreen-question-list {
    display: grid;
    gap: 0.75rem;
}


.admin-contract-row,
.admin-contract-assignment-row,
.admin-contract-tree-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #d8dee6;
    background: #fff;
    padding: 0.85rem;
}

.admin-prescreen-question-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    border: 1px solid #d8dee6;
    background: #fff;
    padding: 0.85rem;
    align-items: start;
}

.admin-prescreen-question-row > div,
.admin-prescreen-question-row .form-check {
    min-width: 0;
    white-space: normal;
}

.admin-prescreen-question-row > div:first-of-type {
    grid-column: 1 / -1;
}

.admin-prescreen-question-row .form-check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    align-self: end;
    min-height: 2.4rem;
    margin-top: 1.95rem;
}

.admin-prescreen-question-row .form-check-label {
    font-weight: 600;
    white-space: nowrap;
}

.admin-prescreen-question-row .form-check-input {
    margin-top: 0;
}


.admin-contract-row {
    display: flex;
    flex-direction: column;
}

.admin-contract-tree-row {
    margin-left: calc(var(--team-depth, 0) * 1.35rem);
    margin-bottom: 0.6rem;
}

.admin-contract-tree-row > div:first-child span {
    display: block;
}

.admin-contract-tree-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-contract-tree-tools .form-select,
.admin-contract-tree-tools .form-control {
    width: auto;
    min-width: 14rem;
}

.admin-contract-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.5rem;
    flex: 1 1 34rem;
}

.admin-contract-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
}

.admin-contract-row {
    display: flex;
    flex-direction: column;
}

.admin-contract-edit-form {
    grid-column: span 2;
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: minmax(10rem, 0.3fr) 5rem minmax(12rem, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}


.admin-contract-tree-row-leader {
    border-left: 0.35rem solid #25D463;
}

.admin-contract-lead-assign {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.admin-contract-lead-assign .form-check-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.admin-contract-lead-assign .form-check-input {
    margin-top: 0.1rem;
}

.admin-contract-lead-assign .admin-contract-checkboxes {
    margin-top: 0.5rem;
}

.admin-contract-lead-assign .text-muted.small {
    font-weight: 500;
}

.admin-contract-lead-assign .admin-contract-chip-list {
    margin-bottom: 0.5rem;
}

.admin-team-builder .admin-contract-checkboxes .text-muted.small {
    font-weight: 500;
}

.admin-team-builder .modal .admin-training-options {
    max-height: 20rem;
    overflow-y: auto;
}

.admin-contract-assignment-search {
    max-width: 24rem;
}

.table-responsive {
    position: relative;
    --admin-dt-footer-offset: 0px;
}

.table-responsive table.dataTable tfoot th,
.table-responsive table.dataTable tfoot td,
.dataTables_scrollFoot table.dataTable tfoot th,
.dataTables_scrollFoot table.dataTable tfoot td {
    position: sticky;
    bottom: var(--admin-dt-footer-offset, 0px);
    z-index: 2;
    background: #ffffff;
    box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.35);
}

table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

table.dataTable > tbody > tr.child ul.dtr-details > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

table.dataTable > tbody > tr.child span.dtr-title {
    display: block;
    color: var(--muted-color);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

table.dataTable > tbody > tr.child span.dtr-data {
    display: block;
    min-width: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.45;
}

table.dataTable > tbody > tr.child span.dtr-data .admin-status-form {
    margin-top: 0.15rem;
}

.admin-status-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
}

.admin-status-select {
    min-width: 12rem;
    max-width: 100%;
    flex: 1 1 12rem;
}

.admin-details-toggle {
    width: 100%;
    min-width: 8.5rem;
    max-width: 12rem;
}

.admin-modal-summary {
    display: grid;
    gap: 1rem;
}

.admin-modal-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-color);
}

.admin-modal-lock-note {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(31, 41, 51, 0.12);
    background: rgba(31, 41, 51, 0.04);
}

#adminApplicantAddressSummary {
    display: grid;
    gap: 0.35rem;
}

#adminApplicantDetailsModal .modal-dialog {
    max-width: min(72rem, calc(100vw - 2rem));
}

#adminApplicantDetailsModal .modal-body {
    max-height: min(70vh, 48rem);
    overflow-y: auto;
}

.admin-worker-tabs {
    gap: 0.25rem;
}

.admin-worker-tabs .nav-link {
    color: var(--text-color);
    font-weight: 600;
}

.admin-worker-tabs .nav-link.active {
    border-color: var(--border-color) var(--border-color) var(--surface-bg);
}

.admin-worker-tab-content {
    min-height: 24rem;
}

#adminApplicantDetailsModal .modal-content {
    border: 1px solid var(--border-color);
}

@media (min-width: 576px) {
    .admin-modal-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-summary-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-table-card .card-body {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .table-responsive {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
    table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
        position: relative;
        padding-left: 2.25rem !important;
    }

    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
    table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
        top: 1rem;
        left: 0.75rem;
        width: 1rem;
        height: 1rem;
        border: 0;
        border-radius: 50%;
        background: var(--accent-color);
        box-shadow: none;
        line-height: 1rem;
        text-align: center;
    }

    table.dataTable > tbody > tr.child > td.child,
    table.dataTable > tbody > tr.child > th.child {
        padding: 0.9rem 1rem !important;
        background: rgba(31, 41, 51, 0.03);
    }

    table.dataTable > tbody > tr.child ul.dtr-details > li {
        padding: 0.8rem 0;
    }

    table.dataTable > tbody > tr.child span.dtr-data .admin-status-select,
    table.dataTable > tbody > tr.child span.dtr-data select,
    table.dataTable > tbody > tr.child span.dtr-data .btn,
    table.dataTable > tbody > tr.child span.dtr-data .form-select,
    table.dataTable > tbody > tr.child span.dtr-data .form-control {
        max-width: 100%;
    }

    .dataTables_wrapper.admin-dt-floating-ready,
    .dt-container.admin-dt-floating-ready {
        padding-bottom: 7rem;
    }

    .admin-dt-floating-footer {
        padding: 0.85rem;
    }

    .admin-dt-floating-footer-group {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .admin-dt-floating-footer-group > .row,
    .admin-dt-floating-footer-group > .dt-layout-row {
        flex: 1 1 100%;
    }

    .dataTables_wrapper > .row:last-child > div:first-child,
    .dataTables_wrapper > .row:last-child > div:last-child,
    .admin-dt-floating-footer > div:first-child,
    .admin-dt-floating-footer > div:last-child {
        display: flex;
        justify-content: flex-start;
    }

    .dataTables_wrapper .dataTables_paginate,
    .dataTables_wrapper .dt-paging,
    .dt-container .dt-paging,
    .dataTables_wrapper .pagination,
    .dt-container .pagination,
    .admin-dt-floating-footer .dataTables_paginate,
    .admin-dt-floating-footer .dt-paging,
    .admin-dt-floating-footer .pagination {
        justify-content: flex-start;
    }

    .admin-table-reminders-list {
        grid-template-columns: 1fr;
    }

    .admin-table-reminders-more {
        justify-self: start;
    }

    .admin-careers-search {
        max-width: none;
    }

    .admin-careers-sort {
        flex-basis: 100%;
    }

    .admin-record-trigger,
    .admin-details-toggle,
    .admin-document-toggle {
        max-width: none;
    }

    .admin-modal-section-actions {
        width: 100%;
    }

    .admin-modal-section-action {
        flex: 1 1 10rem;
        justify-content: center;
    }

    #adminApplicantDetailsModal .modal-footer {
        gap: 0.75rem;
    }

    #adminApplicantDetailsModal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 992px) {
    .admin-summary-totals {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-summary-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.admin-document-preview {
    padding: 1rem;
    background: rgba(27, 107, 87, 0.04);
    border: 1px solid rgba(27, 107, 87, 0.12);
}

.admin-document-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--border-color);
    background: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--accent-color);
    --bs-btn-border-color: var(--accent-color);
    --bs-btn-hover-bg: var(--accent-color-dark);
    --bs-btn-hover-border-color: var(--accent-color-dark);
    --bs-btn-focus-shadow-rgb: 27, 107, 87;
    --bs-btn-active-bg: var(--accent-color-dark);
    --bs-btn-active-border-color: var(--accent-color-dark);
    --bs-btn-disabled-bg: var(--accent-color);
    --bs-btn-disabled-border-color: var(--accent-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled {
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

.btn.is-error,
.btn-primary.is-error,
.btn-outline-primary.is-error,
.btn-outline-secondary.is-error {
    border-color: #b42318 !important;
    background: #b42318 !important;
    color: #ffffff !important;
}

.form-control,
.form-select,
.btn,
.alert {
    min-height: 3rem;
}

.form-control,
.form-select {
    padding: 0.75rem 0.875rem;
}

.alert {
    display: flex;
    align-items: center;
}

.g-recaptcha {
    transform-origin: left top;
}

@media (max-width: 359.98px) {
    .g-recaptcha {
        transform: scale(0.84);
    }
}

@media (min-width: 768px) {
    :root {
        --space-section: 3rem;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .admin-shell-fluid {
        width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
    }

    .site-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .site-nav-links {
        width: auto;
        align-items: center;
        justify-content: flex-end;
    }

    .lead {
        font-size: 1.125rem;
    }

    main.container {
        padding-bottom: 4rem;
    }

    .admin-table-card .card-body {
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
    }
}


.admin-contractor-day-adjustment-form .form-control {
    min-height: 2.35rem;
}

.admin-contractor-day-ledger-list {
    border-top: 1px solid #E5E7EB;
    max-height: 22rem;
    overflow-y: auto;
}

.admin-contractor-day-ledger-row {
    display: grid;
    grid-template-columns: minmax(8rem, 0.9fr) minmax(9rem, 0.8fr) minmax(12rem, 1.6fr);
    gap: 0.7rem 1rem;
    align-items: start;
    border-bottom: 1px solid #E5E7EB;
    padding: 0.8rem 0;
}

.admin-contractor-day-ledger-row > span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

@media (max-width: 767.98px) {
    .admin-contractor-day-ledger-row {
        grid-template-columns: 1fr;
    }
}

.admin-team-table th:first-child,
.admin-team-table td:first-child {
    width: 34%;
}

.admin-team-name-cell {
    min-width: 18rem;
}

.admin-team-tree-node {
    --team-depth: 0;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-left: calc(var(--team-depth) * 2.25rem + 0.2rem);
}

.admin-team-tree-node.is-child::before {
    content: "";
    position: absolute;
    left: calc(var(--team-depth) * 2.25rem - 1.05rem);
    top: -1.2rem;
    bottom: 50%;
    border-left: 2px solid rgba(31, 41, 51, 0.22);
}

.admin-team-tree-node.is-child::after {
    content: "";
    position: absolute;
    left: calc(var(--team-depth) * 2.25rem - 1.05rem);
    top: 50%;
    width: 0.95rem;
    border-top: 2px solid rgba(31, 41, 51, 0.22);
}

.admin-team-tree-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.admin-team-tree-name {
    font-weight: 700;
    color: var(--heading-color);
}

.admin-team-tree-meta {
    font-size: 0.82rem;
    color: var(--muted-color);
}

.admin-team-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(31, 41, 51, 0.14);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-action-feedback {
    display: inline-flex;
    position: fixed;
    z-index: 1085;
    max-width: min(26rem, calc(100vw - 3rem));
    pointer-events: none;
}

.admin-action-feedback-card {
    position: relative;
    display: grid;
    gap: 0.35rem;
    min-width: 14rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(31, 41, 51, 0.12);
    background: #fff;
    box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.12);
    pointer-events: auto;
}

.admin-action-feedback-card::before {
    content: "";
    position: absolute;
    top: 0.95rem;
    left: -0.45rem;
    width: 0.8rem;
    height: 0.8rem;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    background: inherit;
    transform: rotate(45deg);
    color: inherit;
}

.admin-action-feedback[data-placement^="top"] .admin-action-feedback-card::before {
    top: auto;
    bottom: -0.45rem;
    border-left: 0;
    border-top: 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.admin-action-feedback[data-placement$="start"] .admin-action-feedback-card::before {
    left: 1rem;
    right: auto;
}

.admin-action-feedback[data-placement$="end"] .admin-action-feedback-card::before {
    left: auto;
    right: 1rem;
}

.admin-action-feedback-danger .admin-action-feedback-card {
    border-color: rgba(185, 28, 28, 0.28);
    background: #fff7f7;
    color: #7f1d1d;
}

.admin-action-feedback-success .admin-action-feedback-card {
    border-color: rgba(15, 118, 110, 0.26);
    background: #f2fbf8;
    color: #115e59;
}

.admin-action-feedback-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.65rem;
}

.admin-action-feedback-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-action-feedback-message {
    font-size: 0.93rem;
    line-height: 1.45;
}

.admin-action-feedback-dismiss {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    font-size: 1.1rem;
    padding: 0;
}

.btn.is-success,
button.is-success {
    border-color: rgba(15, 118, 110, 0.65) !important;
    box-shadow: 0 0 0 0.15rem rgba(15, 118, 110, 0.14);
}

@media (max-width: 767.98px) {
    .admin-team-tree-node {
        padding-left: calc(var(--team-depth) * 1.55rem + 0.1rem);
    }

    .admin-team-tree-node.is-child::before {
        left: calc(var(--team-depth) * 1.55rem - 0.75rem);
    }

    .admin-team-tree-node.is-child::after {
        left: calc(var(--team-depth) * 1.55rem - 0.75rem);
        width: 0.65rem;
    }

    .admin-action-feedback {
        display: flex;
        width: 100%;
        max-width: 100%;
    }

    .admin-action-feedback-card {
        width: 100%;
        min-width: 0;
    }
}

.admin-team-builder-fluid {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
}

.admin-team-builder-shell {
    display: grid;
    gap: 0.875rem;
}

.admin-team-builder-accordion {
    padding: 0;
    overflow: clip;
}

.admin-team-builder-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.admin-team-builder-accordion-summary::after {
    content: "+";
    color: var(--accent-color-dark);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.admin-team-builder-accordion[open] > .admin-team-builder-accordion-summary {
    border-bottom: 1px solid var(--border-color);
}

.admin-team-builder-accordion[open] > .admin-team-builder-accordion-summary::after {
    content: "-";
}

.admin-team-builder-accordion-summary::-webkit-details-marker {
    display: none;
}

.admin-team-builder-accordion-body {
    padding: 1.25rem;
}

.admin-team-builder-setup-accordion .admin-team-builder-accordion-body {
    max-width: 44rem;
}

.admin-team-builder-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
    min-height: 32rem;
}

.admin-team-builder-pool,
.admin-team-builder-canvas {
    border: 1px solid #d8dee6;
    background: #fff;
    height: min(68vh, 42rem);
    min-height: 30rem;
    padding: 1rem;
    overflow: auto;
}

.admin-team-builder-canvas {
    background: #f8fafc;
}

.admin-team-builder-contractor,
.admin-team-builder-node {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d8dee6;
    background: #fff;
    border-left: 0.35rem solid var(--role-color, #2563EB);
    padding: 0.75rem;
    text-align: left;
    margin-bottom: 0.75rem;
}

.admin-team-builder-contractor {
    cursor: grab;
}

.admin-team-builder-contractor:active,
.admin-team-builder-node:active {
    cursor: grabbing;
}

.admin-team-builder-file-link,
.admin-team-builder-link-button {
    color: var(--accent-color-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.admin-team-builder-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.admin-team-builder-contractor span,
.admin-team-builder-node-main span,
.admin-team-builder-role span {
    display: block;
    color: #5f6b7a;
    font-size: 0.875rem;
}

.admin-team-builder-group {
    margin-left: calc(var(--builder-depth, 0) * 1.4rem);
}

.admin-team-builder-node-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-width: 0;
}

.admin-team-builder-node-actions select,
.admin-team-builder-node-actions button {
    border: 1px solid #c9d2dd;
    background: #fff;
    min-height: 2rem;
    max-width: 100%;
}

.admin-team-builder-node-actions select {
    flex: 1 1 10rem;
    min-width: 0;
}

.admin-team-builder-node-actions button {
    flex: 0 1 auto;
}

.admin-team-builder-dropzone {
    border: 1px dashed #9aa8b8;
    color: #526172;
    background: #f3f6fa;
    padding: 0.75rem;
    margin: 0.75rem 0;
    min-height: 3rem;
}

.admin-team-builder-dropzone-insert {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.92rem;
    background: #f8fbff;
}

.admin-team-builder-role {
    border: 1px solid #d8dee6;
    border-left: 0.35rem solid var(--role-color, #2563EB);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.admin-team-builder-role-group-list {
    display: grid;
    gap: 0.75rem;
}

.admin-team-builder-role-group-card {
    border: 1px solid #d8dee6;
    border-left: 0.35rem solid var(--group-color, #0F766E);
    padding: 0.75rem;
    background: #fff;
}

.admin-team-builder-group-canvas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.admin-team-builder-group-pot {
    border: 1px solid #d8dee6;
    border-top: 0.35rem solid var(--group-color, #0F766E);
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02)),
        #fff;
}

.admin-team-builder-group-pot-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.75rem;
}

.admin-team-builder-role-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-team-builder-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(31, 41, 51, 0.12);
    border-left: 0.25rem solid var(--role-color, #2563EB);
    background: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-team-builder-group-connections {
    display: grid;
    gap: 0.45rem;
}

.admin-team-builder-connection-toggle {
    display: flex;
    align-items: start;
    gap: 0.65rem;
    border: 1px solid #d8dee6;
    background: #fff;
    padding: 0.55rem 0.65rem;
}

.admin-team-builder-connection-toggle.is-active {
    border-color: rgba(15, 118, 110, 0.35);
    background: rgba(15, 118, 110, 0.08);
}

.admin-team-builder-connection-toggle span {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-team-builder-connection-toggle small {
    color: #5f6b7a;
    font-size: 0.75rem;
}

.admin-team-builder-inline-edit {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #d8dee6;
}

.admin-team-builder-role ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
    color: #4b5563;
    font-size: 0.875rem;
}

.admin-team-builder-tools {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(12rem, auto);
    gap: 0.5rem;
    min-width: min(100%, 32rem);
}

.admin-team-builder-hierarchy-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
}

.admin-team-builder-hierarchy-controls > div {
    min-width: min(100%, 14rem);
}

.admin-team-builder-side-tools {
    display: grid;
    gap: 0.35rem;
}

.admin-team-builder-team-list {
    display: grid;
    gap: 0.5rem;
    max-height: 16rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.admin-team-builder-team-option {
    width: 100%;
    border: 1px solid #d8dee6;
    border-left: 0.35rem solid transparent;
    background: #fff;
    padding: 0.65rem 0.75rem;
    text-align: left;
}

.admin-team-builder-team-option.is-active {
    border-left-color: var(--accent-color);
    background: rgba(27, 107, 87, 0.08);
}

.admin-team-builder-team-option span {
    display: block;
    color: #5f6b7a;
    font-size: 0.875rem;
}

.admin-team-builder-save-floating {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: grid;
    justify-items: end;
    gap: 0.75rem;
    width: min(100vw - 2rem, 32rem);
    pointer-events: none;
}

.admin-team-builder-save-floating > * {
    pointer-events: auto;
}

.admin-team-builder-save-floating .alert {
    width: min(100%, 28rem);
    margin: 0;
    box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.12);
}

.admin-team-builder-save-floating .admin-action-feedback {
    width: min(100%, 28rem);
}

.admin-team-builder-save-button {
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
}

.admin-team-builder-group-lanes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.admin-team-builder-group-lane {
    border: 1px solid #d8dee6;
    border-top: 0.35rem solid var(--group-color, #0F766E);
    background: #fff;
    padding: 0.9rem;
}

.admin-team-builder-group-lane-header {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

.admin-team-builder-group-lane-header span {
    color: #5f6b7a;
    font-size: 0.875rem;
}

.admin-team-builder-group-lane-body {
    display: grid;
    gap: 0.75rem;
}

.admin-team-builder-group-links {
    display: grid;
    gap: 0.45rem;
}

.admin-team-builder-group-links-title {
    margin: 0;
    color: #5f6b7a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-team-builder-group-relation {
    display: block;
    margin-top: 0.45rem;
    color: #5f6b7a;
    font-size: 0.82rem;
}

.admin-team-builder-frame-modal .modal-content {
    background: transparent;
}

.admin-team-builder-frame-modal .modal-body {
    background: #ffffff;
}

.admin-team-builder-frame {
    display: block;
    width: 100%;
    height: min(88vh, 62rem);
    border: 0;
}

@media (min-width: 768px) {
    .admin-team-builder-fluid {
        width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
    }
}

@media (min-width: 1200px) {
    .admin-team-builder-shell {
        align-items: start;
    }
}

@media (max-width: 1399.98px) {
    .admin-contracts-grid {
        grid-template-columns: 1fr;
    }

    .admin-contract-tree-tools,
    .admin-contract-tree-tools .form-select,
    .admin-contract-tree-tools .form-control,
    .admin-contract-assignment-search {
        width: 100%;
        min-width: 0;
    }

    .admin-contract-edit-form {
        grid-template-columns: minmax(12rem, 1fr) 6rem;
    }

    .admin-contract-edit-form > div:nth-of-type(3) {
        grid-column: 1 / -1;
    }

    .admin-contract-edit-form > button {
        justify-self: start;
    }
}

@media (max-width: 991.98px) {
    .admin-dashboard-kpis,
    .admin-dashboard-link-grid,
    .admin-dashboard-tool-list {
        grid-template-columns: 1fr;
    }

    .admin-contracts-grid {
        grid-template-columns: 1fr;
    }

    .admin-prescreen-question-row {
        grid-template-columns: 1fr;
    }

    .admin-contract-edit-row,
    .admin-contract-edit-form {
    margin-top: 0.5rem;
        grid-template-columns: 1fr;
    }

    .admin-team-builder-layout {
        grid-template-columns: 1fr;
    }

    .admin-team-builder-tools {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .admin-team-builder-hierarchy-controls {
        width: 100%;
    }

    .admin-team-builder-save-floating {
        right: 1rem;
        bottom: 1rem;
        width: calc(100vw - 2rem);
    }

    .admin-team-builder-save-floating .alert,
    .admin-team-builder-save-floating .admin-action-feedback {
        width: 100%;
    }
}

.error-page {
    min-height: calc(100vh - 5rem);
    background: #fbfaf7;
}

.error-shell {
    display: grid;
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.error-copy {
    display: grid;
    align-content: center;
    gap: 1rem;
}

.error-copy h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(2.4rem, 12vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.error-actions .btn {
    min-width: 8.5rem;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.error-primary-action {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.error-primary-action:hover,
.error-primary-action:focus {
    border-color: var(--accent-color-dark);
    background: var(--accent-color-dark);
}

.error-panel {
    display: grid;
    align-content: space-between;
    min-height: 18rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(135deg, rgba(27, 107, 87, 0.12), rgba(31, 41, 51, 0.03)),
        #fff;
    box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, 0.08);
}

.error-code {
    color: var(--accent-color-dark);
    font-size: clamp(5.5rem, 31vw, 10rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.82;
}

.error-status {
    display: grid;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 51, 0.12);
}

.error-status span:first-child {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 800;
}

.error-status span:last-child {
    color: var(--muted-color);
}

@media (min-width: 768px) {
    .error-shell {
        grid-template-columns: minmax(0, 1fr) minmax(21rem, 27rem);
        align-items: stretch;
        gap: 2rem;
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .error-panel {
        min-height: 25rem;
        padding: 1.4rem;
    }
}

@media (min-width: 992px) {
    .error-shell {
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem);
        gap: 3.5rem;
        padding-top: 5.5rem;
    }
}
