/* ------------------------------
   Global
------------------------------ */

* {
    box-sizing: border-box;
}

html {
    background: #0d0f12;
}

body {
    margin: 0;

    background: #0d0f12;
    color: #d7dce2;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 15px;

    line-height: 1.5;
}


a {
    color: inherit;
    text-decoration: none;
}


/* ------------------------------
   Header / Navigation
------------------------------ */

.site-header {
    background: #111419;

    border-bottom: 1px solid #252a31;
}


.nav-container {
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 24px;

    min-height: 64px;

    display: flex;
    align-items: center;

    gap: 32px;
}


.brand {
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.08em;
}


.main-nav {
    display: flex;

    align-items: center;

    gap: 24px;

    flex: 1;
}


.main-nav a {
    color: #939ba7;

    font-size: 14px;

    transition:
        color 0.15s ease;
}


.main-nav a:hover {
    color: #ffffff;
}


/* ------------------------------
   User area
------------------------------ */

.user-area {
    display: flex;

    align-items: center;

    gap: 12px;
}


.user-name {
    color: #939ba7;

    font-size: 13px;
}


.user-area form {
    margin: 0;
}


.nav-button {
    background: transparent;

    color: #d7dce2;

    border: 1px solid #343a43;

    border-radius: 6px;

    padding: 7px 12px;

    font: inherit;

    font-size: 13px;

    cursor: pointer;
}


.nav-button:hover {
    background: #1b1f25;

    border-color: #4a515c;
}


/* ------------------------------
   Main page layout
------------------------------ */

.page-container {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 36px 24px;
}


.page-header {
    margin-bottom: 30px;
}


.page-title {
    margin: 0;

    color: #ffffff;

    font-size: 28px;

    font-weight: 600;
}

.roster-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(130px, 1fr)) auto auto;
    gap: 10px;
    align-items: end;
    margin: 24px 0 30px;
    padding: 16px;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 8px;
}

.roster-filter-field {
    display: grid;
    gap: 5px;
}

.roster-filter-field label {
    color: #7f8792;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.roster-filter-form input,
.roster-filter-form select {
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    background: #0d0f12;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font: inherit;
    font-size: 13px;
}

.roster-filter-form .nav-button {
    min-height: 34px;
}

.filter-clear {
    padding-bottom: 7px;
    color: #939ba7;
    font-size: 13px;
}

.filter-clear:hover {
    color: #ffffff;
}

/* ------------------------------
   Shared UI completion
------------------------------ */

.division-grd,
.division-ground {
    background: #17231c;
    border-color: #466b53;
    border-left-color: #81c995;
    color: #b9e6c5;
}

.division-af,
.division-air {
    background: #17232b;
    border-color: #45687a;
    border-left-color: #66b6cc;
    color: #bde6f2;
}

.division-me,
.division-mech,
.division-mechanised,
.division-mechanized {
    background: #272318;
    border-color: #756533;
    border-left-color: #e4c878;
    color: #f0d79b;
}

.roster-card-avatar,
.staff-holder-avatar,
.member-avatar {
    overflow: hidden;
}

.roster-card-avatar img,
.staff-holder-avatar img,
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    width: 100%;
    margin: 0;
    padding: 18px 14px;
    border-left: 2px solid #3a424c;
    color: #7f8792;
    font-size: 13px;
}

td.empty-state {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
}

.status-active,
.status-approved,
.status-present {
    border-color: #426a4d;
    color: #81c995;
}

.status-pending {
    border-color: #756533;
    color: #e4c878;
}

.status-rejected,
.status-absent {
    border-color: #75484b;
    color: #e39a9f;
}

.service-timeline {
    padding-left: 32px;
}

.service-timeline::before {
    left: 5px;
    width: 2px;
    background: #303b45;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    left: -32px;
    width: 12px;
    height: 12px;
}

.timeline-marker.current {
    background: #e4c878;
    box-shadow: 0 0 0 1px #e4c878, 0 0 0 5px rgba(228, 200, 120, 0.1);
}

.dossier-subheading,
.dossier-section > h3 {
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #303741;
    color: #d7dce2;
    font-size: 14px;
    text-transform: uppercase;
}

.qualification-title,
.qualification-identity,
.qualification-matrix-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.qualification-title h3 {
    margin: 0;
}

.qualification-icon,
.qualification-icon-fallback {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    object-fit: cover;
    background: #1c252c;
    border: 1px solid #40515c;
    border-radius: 4px;
    color: #bde6f2;
    font-size: 9px;
    font-weight: 700;
}

.qualification-icon-large {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 11px;
}

.qualification-matrix-heading {
    min-width: 92px;
    justify-content: center;
}

.attendance-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
}

.workflow-form .form-field {
    display: grid;
    min-width: 0;
    gap: 6px;
    margin-bottom: 16px;
}

.workflow-form .form-field > label {
    color: #aab2bd;
    font-size: 12px;
    font-weight: 600;
}

.workflow-form input:not([type="checkbox"]):not([type="hidden"]),
.workflow-form select,
.workflow-form textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    background: #0d0f12;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font: inherit;
}

.workflow-form textarea {
    min-height: 110px;
    resize: vertical;
}

.workflow-form input:focus,
.workflow-form select:focus,
.workflow-form textarea:focus {
    border-color: #66b6cc;
    outline: 1px solid #66b6cc;
}

.workflow-form .form-field-checkbox {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.workflow-form .form-field-checkbox > label {
    grid-column: 2;
    grid-row: 1;
}

.workflow-form .form-field-checkbox > input {
    grid-column: 1;
    grid-row: 1;
}

.workflow-form .form-field-checkbox .form-help,
.workflow-form .form-field-checkbox .errorlist {
    grid-column: 1 / -1;
}

.form-secondary-action {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #303741;
    color: #8f98a4;
    font-size: 13px;
}

.form-secondary-action a {
    color: #bde6f2;
}

.reports-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.report-workbook-button {
    flex: 0 0 auto;
}

.report-list {
    border-top: 1px solid #303741;
}

.report-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1.7fr);
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #303741;
}

.report-row-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.report-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
}

.report-filter-form label {
    display: grid;
    gap: 5px;
    color: #7f8792;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.report-filter-form input,
.report-filter-form select {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    padding: 7px 8px;
    background: #0d0f12;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font: inherit;
    font-size: 12px;
}

.report-filter-form .nav-button {
    min-height: 35px;
}

@media (max-width: 760px) {
    .reports-header,
    .report-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .reports-header {
        flex-direction: column;
    }

    .report-workbook-button {
        text-align: center;
    }
}

.operation-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
}

.operation-detail-grid .form-field:nth-last-child(-n + 2) {
    grid-column: span 2;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .operation-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .operation-detail-grid {
        grid-template-columns: 1fr;
    }

    .operation-detail-grid .form-field:nth-last-child(-n + 2) {
        grid-column: auto;
    }

    .attendance-entry-card {
        overflow: visible;
        padding: 14px;
    }

    .attendance-entry-table,
    .attendance-entry-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .attendance-entry-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    .attendance-entry-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 12px;
        padding: 14px;
        background: #111419;
        border: 1px solid #303741;
        border-radius: 6px;
    }

    .attendance-entry-row td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .attendance-entry-row td::before {
        display: block;
        margin-bottom: 5px;
        color: #7f8792;
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .attendance-entry-row td:first-child,
    .attendance-entry-row td:nth-child(4),
    .attendance-entry-row td:nth-child(5) {
        grid-column: 1 / -1;
    }

    .attendance-entry-row input:not([type="checkbox"]):not([type="hidden"]),
    .attendance-entry-row select {
        width: 100%;
    }

    .additional-roles-cell {
        min-width: 0;
    }

    .additional-role-segment {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .additional-role-segment > *:nth-child(-n + 3) {
        grid-column: 1;
    }

    .additional-role-segment > *:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .member-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
}

/* Member-focused qualification record. */
.member-qualification-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #303741;
}

.member-qualification-heading h3,
.member-qualification-group h4 {
    margin: 0;
    color: #ffffff;
}

.member-qualification-heading h3 {
    font-size: 17px;
}

.member-qualification-heading > span,
.member-qualification-group h4 {
    color: #8f98a4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.member-qualification-group + .member-qualification-group {
    margin-top: 24px;
}

.member-qualification-group h4 {
    margin-bottom: 9px;
}

.member-qualification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.member-qualification-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: #13161b;
    border: 1px solid #303741;
    border-left: 3px solid #426a4d;
    border-radius: 6px;
}

.member-qualification-card h5 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.member-qualification-card dl {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 11px;
    border-top: 1px solid #252a31;
}

.member-qualification-card dt {
    color: #7f8792;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.member-qualification-card dd {
    margin: 3px 0 0;
    color: #c8ced6;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.member-qualification-card a {
    color: #bde6f2;
}

.qualification-interest-heading {
    margin-top: 34px;
}

.qualification-interest-table .qualification-availability {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #426a4d;
    border-radius: 999px;
    font-size: 11px;
}

.qualification-interest-table .qualification-availability.closed {
    border-color: #75484b;
}

@media (max-width: 600px) {
    .member-qualification-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .member-qualification-grid,
    .member-qualification-card dl {
        grid-template-columns: 1fr;
    }
}

.danger-button {
    border-color: #8f3d45;
    color: #f0a2a8;
}

.danger-button:hover {
    background: #32191d;
    border-color: #c65c66;
}

.roster-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.view-switcher {
    display: inline-flex;
    padding: 3px;
    background: #111419;
    border: 1px solid #343a43;
    border-radius: 6px;
}

.view-switcher a {
    min-width: 68px;
    padding: 6px 10px;
    color: #8f98a4;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.view-switcher a:hover,
.view-switcher a.active {
    background: #252a31;
    color: #ffffff;
}

.master-roster-table {
    overflow-x: auto;
    border: 1px solid #303741;
    border-radius: 6px;
}

.master-roster-table table {
    width: 100%;
    min-width: 1060px;
    border-collapse: collapse;
    background: #111419;
}

.master-roster-table th,
.master-roster-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #252a31;
    text-align: left;
    vertical-align: top;
}

.master-roster-table th {
    background: #171b20;
    color: #8f98a4;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.master-roster-table tbody tr:not(.division-header):hover {
    background: #171b20;
}

.master-roster-table .division-header td {
    padding: 10px 12px;
    background: #20252b;
    border-bottom-color: #343a43;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
}

.division-indicator {
    display: inline-flex;
    min-width: 42px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    background: #1b2225;
    border: 1px solid #44545c;
    border-left: 3px solid #66b6cc;
    border-radius: 3px;
    color: #bde6f2;
    font-size: 10px;
    font-weight: 700;
}

.roster-member-cell {
    min-width: 150px;
}

.roster-member-cell > a,
.assignment-cell > a {
    color: #ffffff;
    font-weight: 600;
}

.roster-member-cell > a:hover,
.assignment-cell > a:hover {
    color: #bde6f2;
}

.roster-date-cell {
    color: #aab2bd;
    font-size: 12px;
    white-space: nowrap;
}

.roster-remarks-cell {
    min-width: 180px;
    max-width: 280px;
    color: #aab2bd;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.promotion-cell {
    min-width: 230px;
    max-width: 320px;
}

.promotion-cell strong,
.promotion-cell span,
.promotion-cell small {
    display: block;
}

.promotion-cell strong {
    color: #d7dce2;
    font-size: 12px;
}

.promotion-cell span,
.promotion-cell small {
    margin-top: 4px;
    color: #8f98a4;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.promotion-ready {
    color: #81c995 !important;
}

.roster-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.roster-member-card {
    min-width: 0;
    padding: 17px;
    background: #13161b;
    border: 1px solid #303741;
    border-radius: 6px;
}

.roster-member-card > header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
}

.roster-card-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #263847;
    border: 1px solid #4c7288;
    border-radius: 50%;
    color: #d9f1fb;
    font-size: 17px;
    font-weight: 700;
}

.roster-card-identity {
    min-width: 0;
}

.roster-card-identity .division-indicator {
    min-height: 18px;
    margin-bottom: 5px;
    padding: 1px 5px;
}

.roster-card-identity h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.roster-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #252a31;
}

.roster-card-details div {
    min-width: 0;
}

.roster-card-details dt,
.roster-card-staff .fact-label {
    color: #7f8792;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.roster-card-details dd {
    margin: 3px 0 0;
    color: #d7dce2;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.roster-card-remarks {
    margin: 14px 0 0;
    color: #9ca5b0;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.roster-card-staff {
    margin-top: 14px;
    padding: 12px;
    background: #171b20;
    border-left: 2px solid #8a713d;
    color: #aab2bd;
    font-size: 11px;
}

.roster-card-staff strong,
.roster-card-staff > span:last-child {
    display: block;
    margin-top: 4px;
}

.roster-card-staff ul,
.roster-card-staff p {
    margin: 7px 0 0;
}

.roster-card-staff ul {
    padding-left: 17px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.pagination-summary {
    color: #7f8792;
    font-size: 12px;
}

.pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-pages a,
.pagination-pages span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #aab2bd;
    font-size: 12px;
}

.pagination-pages a:hover,
.pagination-pages .active {
    background: #263847;
    border-color: #4c7288;
    color: #ffffff;
}

.pagination-pages .pagination-ellipsis {
    border-color: transparent;
}

.application-status {
    color: #e4c878;
    font-size: 12px;
    white-space: nowrap;
}

.team-slot-action {
    display: flex;
    min-width: 112px;
    align-items: center;
}

.team-slot-action .nav-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.team-roster-table,
.qualification-table {
    overflow-x: auto;
}

.team-roster-table table {
    min-width: 680px;
}

.qualification-table table {
    min-width: 620px;
}

.qualification-matrix {
    overflow-x: auto;
}

.qualification-matrix table {
    min-width: max(760px, 100%);
}

.qualification-matrix th,
.qualification-matrix td {
    min-width: 116px;
    text-align: center;
    vertical-align: middle;
}

.qualification-matrix .qualification-member-column {
    min-width: 190px;
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
}

.qualification-matrix tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 190px;
    background: #13161b;
    text-align: left;
}

.qualification-group-row th:not(.qualification-member-column) {
    border-bottom-color: #8a713d;
    color: #e4c878;
    font-size: 11px;
    text-transform: uppercase;
}

.qualification-name-row th {
    color: #ffffff;
    font-size: 12px;
}

.qualification-overview-header,
.qualification-catalogue-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.qualification-category-nav,
.qualification-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.qualification-category-nav a {
    padding: 7px 12px;
    border-bottom: 2px solid transparent;
    color: #939ba7;
}

.qualification-category-nav a:hover,
.qualification-category-nav a.active {
    border-bottom-color: #66b6cc;
    color: #ffffff;
}

.qualification-state {
    display: inline-flex;
    min-width: 86px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #343a43;
    border-radius: 4px;
    background: #171b20;
    color: #939ba7;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
}

button.qualification-state {
    width: 100%;
    cursor: pointer;
}

button.qualification-state:hover {
    border-color: #66b6cc;
    color: #ffffff;
}

.qualification-state.qualified {
    border-color: #38694a;
    color: #81c995;
}

.qualification-state.interested {
    border-color: #8a713d;
    color: #e4c878;
}

.qualification-state.training {
    border-color: #466b53;
    color: #b9e6c5;
}

.qualification-state.evaluation {
    border-color: #45687a;
    color: #bde6f2;
}

.qualification-state.refresher {
    border-color: #795a36;
    color: #e2b87c;
}

.qualification-state.qualified-limited {
    border-color: #706286;
    color: #d1c0e9;
}

.qualification-state.closed {
    border-color: #684044;
    color: #e3a1a1;
}

.qualification-state.none {
    color: #7f8792;
}

.external-identifier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.external-identifier-list div {
    padding: 12px;
    border-left: 2px solid #45687a;
    background: #13161b;
}

.external-identifier-list dt,
.external-identifier-list small {
    display: block;
    color: #7f8792;
    font-size: 11px;
}

.external-identifier-list dd {
    margin: 5px 0 0;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.organization-tree {
    overflow-x: auto;
    padding: 8px 0 28px;
}

.organization-root,
.organization-branch {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.organization-branch {
    margin-left: 22px;
    padding-left: 24px;
    border-left: 1px solid #343a43;
}

.organization-node {
    position: relative;
    margin: 12px 0;
}

.organization-branch > .organization-node::before {
    content: "";
    position: absolute;
    top: 34px;
    left: -24px;
    width: 24px;
    border-top: 1px solid #343a43;
}

.organization-unit-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    padding: 14px 16px;
    border: 1px solid #343a43;
    border-left: 3px solid #66b6cc;
    border-radius: 6px;
    background: #13161b;
}

.organization-unit-card h2,
.organization-unit-card p {
    margin: 4px 0 0;
}

.organization-type,
.loadout-source {
    color: #7f8792;
    font-size: 11px;
    text-transform: uppercase;
}

.organization-remarks {
    grid-column: 1 / -1;
    color: #aab2bd;
    font-size: 13px;
}

.organization-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
}

.organization-breadcrumb span {
    color: #59616c;
}

.loadout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.loadout-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #343a43;
    border-radius: 6px;
    background: #13161b;
}

.loadout-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.loadout-card h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 18px;
}

.revision-badge {
    flex: none;
    padding: 4px 7px;
    border: 1px solid #466b53;
    border-radius: 4px;
    color: #b9e6c5;
    font-size: 11px;
}

.loadout-equipment {
    margin: 16px 0;
}

.loadout-equipment div {
    display: grid;
    grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #252a31;
}

.loadout-equipment dt {
    color: #7f8792;
    font-size: 11px;
}

.loadout-equipment dd {
    margin: 0;
    color: #d7dce2;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.loadout-export summary {
    color: #bde6f2;
    cursor: pointer;
}

.loadout-export pre {
    max-height: 240px;
    overflow: auto;
    padding: 12px;
    background: #0d0f12;
    color: #aab2bd;
    font-size: 11px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .organization-branch {
        margin-left: 8px;
        padding-left: 14px;
    }

    .organization-branch > .organization-node::before {
        left: -14px;
        width: 14px;
    }

    .organization-unit-card {
        grid-template-columns: 1fr;
    }

    .organization-unit-card .nav-button {
        justify-self: start;
    }

    .loadout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .loadout-equipment div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* Compact primary and administration navigation. */
.header-navigation {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.dashboard-nav-link,
.nav-menu > summary {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #aab2bd;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-nav-link:hover,
.nav-menu > summary:hover,
.nav-menu[open] > summary {
    border-color: #3f4b56;
    background: #1b2026;
    color: #ffffff;
}

.nav-menu {
    position: relative;
}

.nav-menu > summary {
    cursor: pointer;
    list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-menu > summary:focus-visible,
.dashboard-nav-link:focus-visible {
    outline: 2px solid #66b6cc;
    outline-offset: 2px;
}

.menu-icon {
    position: relative;
    width: 16px;
    height: 12px;
    flex: none;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.menu-icon::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    border-top: 2px solid currentColor;
}

.admin-nav-menu > summary {
    color: #e4c878;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    width: 380px;
    padding: 8px;
    border: 1px solid #3f4b56;
    border-radius: 6px;
    background: #111419;
    box-shadow: 0 14px 32px rgb(0 0 0 / 45%);
}

.nav-dropdown-admin {
    width: 260px;
    grid-template-columns: 1fr;
}

.nav-dropdown a {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 4px;
    color: #aab2bd;
    font-size: 13px;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: #20262d;
    color: #ffffff;
    outline: none;
}

.recruitment-page-header {
    align-items: flex-end;
}

.recruitment-branch-grid,
.progression-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.recruitment-branch,
.progression-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #343a43;
    border-radius: 6px;
    background: #13161b;
}

.recruitment-branch > header,
.progression-card > header,
.pipeline-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.recruitment-branch > header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.recruitment-branch h3,
.progression-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
}

.recruitment-branch > p,
.progression-remarks {
    margin: 14px 0 0;
    color: #aab2bd;
    font-size: 13px;
}

.recruitment-branch > small,
.date-not-recorded {
    display: block;
    margin-top: 8px;
    color: #7f8792;
    font-size: 11px;
}

.availability-badge,
.progression-state,
.requirement-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border: 1px solid #4a515c;
    border-radius: 4px;
    color: #aab2bd;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.availability-open,
.state-ready,
.state-completed,
.requirement-met {
    border-color: #466b53;
    color: #b9e6c5;
}

.availability-limited,
.state-training,
.state-trial,
.state-requirements,
.requirement-in_progress {
    border-color: #756533;
    color: #e4c878;
}

.availability-closed,
.state-on_hold {
    border-color: #75484b;
    color: #e39a9f;
}

.state-evaluation {
    border-color: #45687a;
    color: #bde6f2;
}

.requirement-waived {
    border-color: #706286;
    color: #d1c0e9;
}

.branch-requirements {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #252a31;
}

.branch-requirements > strong {
    color: #7f8792;
    font-size: 11px;
    text-transform: uppercase;
}

.branch-requirements div {
    display: grid;
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.branch-requirements span {
    color: #bde6f2;
    font-size: 12px;
}

.branch-requirements ul {
    margin: 0;
    padding-left: 18px;
    color: #d7dce2;
    font-size: 12px;
}

.progression-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.progression-card dt {
    color: #7f8792;
    font-size: 11px;
}

.progression-card dd {
    margin: 3px 0 0;
    color: #ffffff;
    font-size: 13px;
}

.progression-requirement-list {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.progression-requirement-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.progression-requirement-list small {
    grid-column: 2;
    color: #7f8792;
}

.progression-no-requirements {
    color: #7f8792;
}

.recruit-list {
    border-top: 1px solid #343a43;
}

.recruit-list article {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(150px, 0.5fr);
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 10px 12px;
    border-bottom: 1px solid #252a31;
}

.recruit-list article > div span {
    display: block;
    color: #7f8792;
    font-size: 11px;
}

.recruit-list time,
.recruit-list .date-not-recorded {
    margin: 0;
    color: #7f8792;
    font-size: 11px;
    text-align: right;
}

.branch-availability-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.branch-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font-size: 12px;
}

.branch-availability:hover {
    border-color: #59616c;
}

.member-progression-panel {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #343a43;
}

.progression-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.progression-summary-grid > div {
    min-width: 0;
    padding: 11px;
    border-left: 2px solid #45687a;
    background: #13161b;
}

.progression-summary-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.member-progression-panel .text-link {
    display: inline-block;
    margin-top: 14px;
    color: #bde6f2;
    font-size: 12px;
}

@media (max-width: 900px) {
    .nav-container {
        flex-wrap: nowrap;
        padding-top: 0;
        padding-bottom: 0;
    }

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

@media (max-width: 600px) {
    .nav-container {
        min-height: 58px;
        gap: 7px;
        padding: 0 12px;
    }

    .header-navigation {
        gap: 4px;
    }

    .dashboard-nav-link,
    .nav-menu > summary {
        min-height: 34px;
        padding: 6px 8px;
    }

    .nav-menu > summary > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .nav-dropdown,
    .nav-dropdown-admin {
        position: fixed;
        top: 58px;
        right: 10px;
        left: 10px;
        width: auto;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .user-area {
        gap: 6px;
    }

    .user-name {
        display: none;
    }

    .user-area .nav-button {
        padding: 6px 8px;
    }

    .progression-card-grid,
    .recruitment-branch-grid,
    .progression-summary-grid,
    .progression-card dl {
        grid-template-columns: 1fr;
    }

    .recruit-list article {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .recruit-list time,
    .recruit-list .date-not-recorded {
        grid-column: 1 / -1;
        text-align: left;
    }

    .branch-requirements div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.qualification-filter-form {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto minmax(180px, 260px) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.qualification-filter-form label {
    color: #aab2bd;
    font-size: 12px;
    font-weight: 600;
}

.qualification-filter-form input,
.qualification-filter-form select {
    min-width: 0;
    min-height: 36px;
    padding: 7px 10px;
    background: #0d0f12;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font: inherit;
}

.qualification-catalogue-group {
    margin-top: 32px;
}

.qualification-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.qualification-card {
    padding: 16px;
    border: 1px solid #343a43;
    border-radius: 6px;
    background: #13161b;
}

.qualification-card-heading,
.qualification-card dl {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.qualification-card-heading {
    color: #7f8792;
    font-size: 11px;
}

.qualification-card h3 {
    margin: 12px 0 6px;
    color: #ffffff;
    font-size: 16px;
}

.qualification-card p {
    min-height: 42px;
    margin: 0;
    color: #aab2bd;
    font-size: 13px;
}

.qualification-card dl {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid #252a31;
}

.qualification-card dl div {
    display: flex;
    gap: 6px;
}

.qualification-card dt {
    color: #7f8792;
}

.qualification-card dd {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.qualification-availability.open {
    color: #81c995;
}

.qualification-availability.closed,
.cooldown-warning {
    color: #e3a1a1;
}

.qualification-conducted-heading {
    margin-top: 34px;
}

.qualification-award-form {
    max-width: 720px;
}

.qualification-award-form label {
    display: block;
    margin-bottom: 5px;
    color: #aab2bd;
    font-size: 12px;
    font-weight: 600;
}

.qualification-award-form select,
.qualification-award-form input {
    width: 100%;
}

.card form + form {
    margin-top: 6px;
}

.callsign {
    display: block;
    color: #7f8792;
    font-size: 12px;
}

.rank-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rank-insignia {
    display: block;
    object-fit: contain;
}

.rank-insignia-inline {
    width: 28px;
    height: 28px;
}


.page-description {
    margin-top: 6px;

    color: #7f8792;
}


/* ------------------------------
   Cards
------------------------------ */

.card {
    background: #13161b;

    border: 1px solid #252a31;

    border-radius: 8px;

    padding: 20px;
}


.card-label {
    color: #7f8792;

    font-size: 13px;

    margin-bottom: 10px;
}


.card-value {
    color: #ffffff;

    font-size: 30px;

    font-weight: 600;
}

.card-value-text {
    font-size: 18px;
}


/* ------------------------------
   Dashboard grid
------------------------------ */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 30px;
}

.division-header td {
    font-size: 18px;
    font-weight: 700;

    padding-top: 24px;
    padding-bottom: 12px;
}


/* ------------------------------
   Sections
------------------------------ */

.section {
    margin-top: 30px;
}


.section-title {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 600;
}


/* ------------------------------
   Quick links
------------------------------ */

.quick-links {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


.quick-link {
    display: block;

    background: #13161b;

    border: 1px solid #252a31;

    border-radius: 8px;

    padding: 18px;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.quick-link:hover {
    background: #171b20;

    border-color: #3b424c;
}


.quick-link-title {
    color: #ffffff;

    font-weight: 500;

    margin-bottom: 4px;
}


.quick-link-description {
    color: #7f8792;

    font-size: 13px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.orbat-legend {
    display: flex;
    gap: 18px;
    color: #939ba7;
    font-size: 12px;
}

.orbat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
}

.orbat-dot.filled {
    background: #66b6cc;
}

.orbat-dot.vacant {
    background: #555d68;
}

.orbat-division-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #34414b;
}

.orbat-division-heading h2,
.orbat-team-heading h3 {
    margin: 0;
    color: #ffffff;
}

.orbat-abbreviation,
.orbat-team-code {
    color: #7f8792;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.orbat-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.orbat-team {
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 8px;
    overflow: hidden;
}

.orbat-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #171b20;
    border-bottom: 1px solid #252a31;
}

.orbat-team-heading a,
.orbat-slot a {
    color: #bde6f2;
}

.orbat-slots {
    padding: 8px 16px;
}

.orbat-slot {
    display: grid;
    grid-template-columns: 14px 82px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #20252c;
    font-size: 13px;
}

.orbat-slot:last-child {
    border-bottom: 0;
}

.orbat-slot .orbat-dot {
    margin: 0;
}

.orbat-slot-role {
    overflow: hidden;
    color: #7f8792;
    font-size: 11px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.orbat-vacant-label {
    color: #6f7782;
}


/* ------------------------------
   Empty state
------------------------------ */

.empty-state {
    color: #6f7782;

    padding: 20px 0;
}


/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 1250px) {
    .nav-container {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 900px) {

    .roster-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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


    .quick-links {
        grid-template-columns:
            1fr;
    }


}


@media (max-width: 600px) {

    .roster-filter-form {
        grid-template-columns: 1fr;
    }

    .roster-page-header,
    .pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-switcher {
        width: 100%;
    }

    .view-switcher a {
        flex: 1;
    }

    .roster-card-grid,
    .roster-card-details {
        grid-template-columns: 1fr;
    }

    .roster-member-card > header {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .roster-member-card > header .status-badge {
        grid-column: 2;
        justify-self: start;
    }

    .stats-grid {
        grid-template-columns:
            1fr;
    }


    .page-container {
        padding: 24px 16px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .orbat-team-grid {
        grid-template-columns: 1fr;
    }

}

/* ------------------------------
   Team 
------------------------------ */
.team-photo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

/* ------------------------------
   Member dossier header
------------------------------ */

.member-dossier-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 8px 8px 0 0;
}

.member-avatar {
    display: grid;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    place-items: center;
    background: #263847;
    border: 1px solid #4c7288;
    border-radius: 50%;
    color: #d9f1fb;
    font-size: 30px;
    font-weight: 700;
}

.member-dossier-identity {
    min-width: 0;
    flex: 1;
}

.member-staff-tagline {
    display: flex;
    gap: 5px 8px;
    align-items: baseline;
    margin: 5px 0 8px;
    color: #aab2bd;
    font-size: 12px;
    flex-wrap: wrap;
}

.member-staff-tagline > span {
    color: #e4c878;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.member-staff-tagline a {
    color: #d9f1fb;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.member-staff-tagline a:hover {
    color: #ffffff;
}

.member-staff-tagline i {
    color: #56616e;
    font-style: normal;
}

.team-activity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.compact-operation-list .operation-card {
    grid-template-columns: 70px minmax(0, 1fr) auto;
}

.compact-operation-list .operation-card-body h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 15px;
}

.operation-record-link {
    align-self: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.team-role-list {
    padding: 4px 16px;
}

.team-role-row {
    padding: 14px 0;
    border-bottom: 1px solid #252a31;
}

.team-role-row:last-child {
    border-bottom: 0;
}

.team-role-row div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.team-role-row strong {
    color: #ffffff;
    font-size: 13px;
}

.team-role-row div span {
    color: #8f98a4;
    font-size: 11px;
    white-space: nowrap;
}

/* ------------------------------
   Command dashboard
------------------------------ */

.command-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 32px;
    align-items: end;
    margin-bottom: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid #303741;
}

.command-header h1 {
    margin: 4px 0 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 600;
}

.command-header > div:first-child > p:last-child {
    margin: 0;
    color: #8f98a4;
}

.next-operation-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 16px;
    padding: 15px 18px;
    background: #15191e;
    border-left: 3px solid #b99b54;
}

.next-operation-panel > span,
.next-operation-panel small {
    color: #8f98a4;
    font-size: 11px;
    text-transform: uppercase;
}

.next-operation-panel time {
    grid-row: 1 / 4;
    align-self: center;
    color: #e4c878;
    font-size: 13px;
    font-weight: 700;
}

.next-operation-panel strong {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 1px;
    margin-bottom: 22px;
    overflow: hidden;
    background: #303741;
    border: 1px solid #303741;
    border-radius: 6px;
}

.dashboard-metrics a {
    display: grid;
    min-width: 0;
    padding: 16px 18px;
    background: #171b20;
}

.dashboard-metrics a:hover {
    background: #1c2127;
}

.dashboard-metrics span {
    color: #8f98a4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-metrics strong {
    color: #ffffff;
    font-size: 27px;
}

.dashboard-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.deployment-snapshot {
    margin-top: 18px;
}

.deployment-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: #303741;
    border: 1px solid #303741;
}

.deployment-snapshot-grid > div {
    display: grid;
    min-width: 0;
    padding: 12px 14px;
    background: #171b20;
}

.deployment-snapshot-grid span {
    color: #8f98a4;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.deployment-snapshot-grid strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-summary-strip {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.role-summary-strip > span {
    padding: 5px 8px;
    background: #1b2026;
    color: #9ca5b0;
    font-size: 11px;
}

.role-summary-strip strong {
    margin-left: 4px;
    color: #e4c878;
}

.dashboard-panel {
    min-width: 0;
    padding: 18px;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 6px;
}

.dashboard-panel-heading {
    display: flex;
    min-height: 42px;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.dashboard-panel-heading .eyebrow {
    margin: 0 0 2px;
}

.dashboard-panel-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.dashboard-panel-heading > a,
.dashboard-actions a {
    color: #bde6f2;
    font-size: 12px;
    font-weight: 600;
}

.vacancy-row,
.interest-row,
.outcome-list a,
.activity-row {
    border-top: 1px solid #252a31;
}

.vacancy-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 55px;
    padding: 8px 0;
}

.vacancy-row:hover strong,
.outcome-list a:hover strong,
.activity-row:hover strong {
    color: #bde6f2;
}

.vacancy-team {
    color: #e4c878;
    font-size: 12px;
    font-weight: 700;
}

.vacancy-row > span:nth-child(2),
.interest-row > span:first-child,
.outcome-list a > span,
.activity-row > span:last-child {
    display: grid;
    min-width: 0;
}

.vacancy-row strong,
.interest-row strong,
.outcome-list strong,
.activity-row strong {
    overflow-wrap: anywhere;
    color: #d7dce2;
    font-size: 13px;
}

.vacancy-row small,
.interest-row small,
.outcome-list small,
.activity-row small,
.vacancy-order,
.dashboard-panel-note {
    color: #7f8792;
    font-size: 11px;
}

.interest-row {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.interest-count {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    background: #222831;
    color: #e4c878;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-panel-note {
    margin: 10px 0 0;
}

.dashboard-schedule {
    margin-top: 18px;
}

.event-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.event-brief {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #171b20;
    border-left: 2px solid #48515d;
}

.event-brief time {
    display: grid;
    align-content: center;
    text-align: center;
}

.event-brief time strong {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.event-brief time span,
.event-type {
    color: #e4c878;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-brief h3 {
    overflow: hidden;
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-brief p {
    margin: 4px 0 0;
    color: #7f8792;
    font-size: 11px;
}

.outcome-list a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    min-height: 54px;
    align-items: center;
}

.outcome-list time,
.activity-row time {
    color: #8f98a4;
    font-size: 11px;
}

.dashboard-activity {
    margin-top: 18px;
}

.staff-feed-label {
    color: #e4c878;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.activity-row {
    display: grid;
    grid-template-columns: 86px 90px minmax(0, 1fr);
    gap: 14px;
    min-height: 57px;
    align-items: center;
}

.activity-kind {
    color: #e4c878;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-actions {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid #303741;
    flex-wrap: wrap;
}

.member-rank-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rank-insignia-header {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 4px;
    background: #171b20;
    border: 1px solid #34414b;
    border-radius: 6px;
}

.eyebrow,
.fact-label {
    display: block;
    margin: 0 0 4px;
    color: #7f8792;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-dossier-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.member-dossier-meta {
    margin: 5px 0 0;
    color: #aab2bd;
    overflow-wrap: anywhere;
}

.member-callsign {
    margin: 5px 0 0;
    color: #e4c878;
    font-size: 13px;
    font-weight: 600;
}

.status-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid #3b687b;
    border-radius: 999px;
    color: #bde6f2;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-loa {
    border-color: #8a713d;
    color: #f0d79b;
}

.status-reserve,
.status-inactive,
.status-discharged {
    border-color: #555d68;
    color: #b1b8c1;
}

.member-dossier-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-bottom: 30px;
    background: #252a31;
    border: 1px solid #252a31;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.member-dossier-facts > div {
    min-width: 0;
    padding: 14px 16px;
    background: #171b20;
}

.member-dossier-facts strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    background: #252a31;
    border: 1px solid #252a31;
    border-radius: 6px;
    overflow: hidden;
}

.service-summary > div {
    padding: 14px 16px;
    background: #171b20;
}

.service-summary strong {
    color: #ffffff;
    font-weight: 500;
}

.qualification-cooldown {
    display: grid;
    gap: 4px;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #171b20;
    border: 1px solid #343a43;
    border-radius: 6px;
}

.qualification-cooldown.active {
    border-color: #8a713d;
}

.qualification-cooldown strong {
    color: #ffffff;
    font-weight: 500;
}

.qualification-cooldown small {
    color: #7f8792;
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.award-card {
    padding: 18px;
    background: #13161b;
    border: 1px solid #394b57;
    border-radius: 8px;
}

.award-card h2,
.award-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.award-card p {
    margin: 8px 0 0;
    color: #aab2bd;
    font-size: 13px;
}

.award-abbreviation {
    display: inline-block;
    color: #e4c878;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.award-card small {
    display: block;
    margin-top: 12px;
    color: #7f8792;
}

.member-dossier-facts a,
.assignment-cell a,
.timeline-content a {
    color: #bde6f2;
}

.member-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    border-bottom: 1px solid #252a31;
    overflow-x: auto;
}

.member-tabs a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    color: #7f8792;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.member-tabs a:hover,
.member-tabs a.active {
    border-bottom-color: #66b6cc;
    color: #ffffff;
}

.dossier-section {
    animation: dossier-reveal 0.2s ease-out;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
}

.assignment-cell strong,
.assignment-detail {
    display: block;
}

.assignment-detail {
    margin-top: 3px;
    color: #7f8792;
    font-size: 12px;
}

.service-timeline {
    position: relative;
    margin: 12px 0 0 8px;
    padding-left: 28px;
}

.service-timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 4px;
    width: 1px;
    background: #34414b;
    content: "";
}

.timeline-entry {
    position: relative;
    padding: 0 0 24px;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    left: -28px;
    width: 10px;
    height: 10px;
    background: #66b6cc;
    border: 2px solid #0d0f12;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #66b6cc;
}

.timeline-content {
    padding: 16px 18px;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 6px;
}

.timeline-content time {
    color: #7f8792;
    font-size: 12px;
}

.timeline-content h3 {
    margin: 4px 0 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.timeline-content p {
    margin: 4px 0 0;
    color: #aab2bd;
    font-size: 13px;
}

/* ------------------------------
   Operations and deployment record
------------------------------ */

.operation-list,
.deployment-list {
    display: grid;
    gap: 12px;
}

.operation-card,
.deployment-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 140px;
    align-items: center;
    min-width: 0;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 6px;
    overflow: hidden;
}

.operation-date,
.deployment-card time {
    display: grid;
    align-content: center;
    align-self: stretch;
    min-height: 116px;
    padding: 18px;
    background: #171b20;
    border-right: 1px solid #2f353d;
    text-align: center;
}

.operation-date strong,
.deployment-card time strong {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.operation-date span,
.deployment-card time span {
    margin-top: 7px;
    color: #8f98a4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.operation-card-body,
.deployment-card-body {
    min-width: 0;
    padding: 18px 20px;
}

.operation-card-body h2,
.deployment-card-body h3 {
    margin: 2px 0 7px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.operation-card-body p:last-child,
.deployment-card-body p:last-child {
    margin: 0;
    color: #939ba7;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.operation-card-meta {
    display: grid;
    align-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 18px;
    border-left: 1px solid #252a31;
}

.operation-card-meta strong {
    color: #ffffff;
    font-size: 24px;
}

.operation-card-meta > span {
    color: #7f8792;
    font-size: 11px;
    text-transform: uppercase;
}

.operation-card-meta a,
.deployment-link {
    margin-top: 12px;
    color: #bde6f2;
    font-size: 12px;
    font-weight: 600;
}

.deployment-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 28px;
    background: #303741;
    border: 1px solid #303741;
    border-radius: 6px;
    overflow: hidden;
}

.deployment-stat-grid > div {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 18px;
    background: #171b20;
}

.deployment-stat-grid strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 23px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deployment-stat-grid span,
.deployment-stat-grid small {
    color: #8f98a4;
    font-size: 11px;
    text-transform: uppercase;
}

.deployment-stat-grid small {
    margin-top: 5px;
    color: #e4c878;
    text-transform: none;
}

.deployment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.deployment-section-title,
.deployment-panel h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.deployment-card {
    grid-template-columns: 88px minmax(0, 1fr) 110px;
}

.deployment-card time {
    min-height: 108px;
    padding: 14px;
}

.deployment-card-body {
    padding: 15px 18px;
}

.deployment-card-body h3 {
    font-size: 16px;
}

.operation-schedule,
.deployment-card-body .deployment-schedule {
    margin: 5px 0;
    color: #e4c878;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.deployment-link {
    margin: 0;
    padding: 18px 14px;
    border-left: 1px solid #252a31;
}

.deployment-panel {
    padding: 18px;
    background: #13161b;
    border: 1px solid #252a31;
    border-top: 2px solid #8a713d;
    border-radius: 6px;
}

.role-experience-list {
    display: grid;
    gap: 16px;
}

.role-experience-row > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #aab2bd;
    font-size: 12px;
}

.role-experience-row strong {
    color: #ffffff;
}

.role-experience-track {
    display: block;
    height: 3px;
    background: #282e36;
}

.role-experience-track i {
    display: block;
    height: 100%;
    background: #8a713d;
}

.event-attendance-section,
.operation-adjustment-section {
    margin-top: 34px;
}

.event-attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #303741;
    border: 1px solid #303741;
    border-radius: 6px;
}

.event-attendance-stats > div {
    display: grid;
    padding: 16px 18px;
    background: #171b20;
}

.event-attendance-stats strong {
    color: #ffffff;
    font-size: 24px;
}

.event-attendance-stats span,
.event-attendance-stats small {
    color: #8f98a4;
    font-size: 11px;
    text-transform: uppercase;
}

.event-attendance-stats small {
    margin-top: 4px;
    text-transform: none;
}

.attendance-status {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #49515b;
    border-radius: 4px;
    color: #c8ced6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.attendance-status.status-present {
    border-color: #426a4d;
    color: #81c995;
}

.attendance-status.status-absent {
    border-color: #75484b;
    color: #e39a9f;
}

.attendance-status.status-excused,
.attendance-status.status-loa {
    border-color: #756533;
    color: #e4c878;
}

/* ------------------------------
   Operation analytics
------------------------------ */

.operation-actions {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
    flex-wrap: wrap;
}

.attendance-entry-card {
    overflow-x: auto;
}

.attendance-entry-card table {
    min-width: 940px;
}

.attendance-entry-card input[type="time"] {
    min-width: 105px;
    font-variant-numeric: tabular-nums;
}

.attendance-entry-card input,
.attendance-entry-card select {
    max-width: 100%;
}

.role-credit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 7px 0;
    white-space: nowrap;
    font-size: 0.78rem;
    color: #c8cdd3;
}

.role-credit-toggle input {
    width: auto;
    margin: 0;
}

.additional-roles-cell {
    min-width: 310px;
}

.additional-role-segments {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.additional-role-segments[hidden] {
    display: none;
}

.additional-role-segment {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.4fr) auto 32px;
    gap: 6px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #3e4651;
}

.icon-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #68717c;
    border-radius: 4px;
    background: #242a31;
    color: #f1f3f5;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.icon-button:hover {
    border-color: #b99b54;
    color: #e4c878;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.analytics-header > div > p:first-child {
    margin: 0 0 26px;
    color: #aab2bd;
}

.peak-operation {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 18px;
    width: min(100%, 310px);
    padding: 16px 18px;
    background: #15191e;
    border: 1px solid #3e4651;
    border-top: 2px solid #b99b54;
    border-radius: 6px;
}

.peak-operation span,
.peak-operation small {
    color: #8f98a4;
    font-size: 11px;
    text-transform: uppercase;
}

.peak-operation strong {
    grid-row: 1 / 3;
    grid-column: 2;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
}

.peak-operation small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0 36px;
    background: #303741;
    border: 1px solid #303741;
    border-radius: 6px;
    overflow: hidden;
}

.analytics-stat-grid > div {
    display: grid;
    padding: 20px;
    background: #171b20;
}

.analytics-stat-grid strong {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.analytics-stat-grid span {
    color: #8f98a4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.analytics-section {
    min-width: 0;
    margin-top: 34px;
}

.analytics-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 12px;
}

.analytics-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
}

.analytics-panel {
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 6px;
}

.trend-panel {
    padding: 20px 18px 14px;
    overflow-x: auto;
}

.attendance-chart {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: min-content;
    height: 250px;
}

.attendance-column {
    display: grid;
    flex: 1 0 78px;
    grid-template-rows: 20px 150px 18px 32px;
    gap: 5px;
    width: auto;
    min-width: 78px;
    color: #aab2bd;
    text-align: center;
}

.attendance-column > strong {
    color: #ffffff;
    font-size: 13px;
}

.attendance-bar-space {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 150px;
    background: #101318;
    border-bottom: 1px solid #3b424c;
}

.attendance-bar-space i {
    display: block;
    width: 32px;
    min-height: 3px;
    background: #66b6cc;
    border-top: 2px solid #bde6f2;
}

.attendance-column:hover .attendance-bar-space i {
    background: #79c7dc;
}

.attendance-date {
    color: #d7dce2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.attendance-column small {
    overflow: hidden;
    color: #7f8792;
    font-size: 10px;
    line-height: 1.25;
}

.analytics-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
}

.ranked-list,
.analytics-metric-list {
    overflow: hidden;
}

.analytics-rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 13px 16px;
    border-bottom: 1px solid #252a31;
}

.analytics-rank-row:last-child,
.analytics-metric-row:last-child {
    border-bottom: 0;
}

.analytics-rank-row:hover,
.analytics-team-row:hover {
    background: #171b20;
}

.rank-position {
    color: #56616e;
    font-size: 18px;
    font-weight: 700;
}

.rank-identity {
    display: grid;
    min-width: 0;
}

.rank-identity strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-identity small {
    margin: 3px 0 8px;
    color: #7f8792;
    font-size: 10px;
}

.analytics-track {
    display: block;
    height: 3px;
    background: #272d35;
}

.analytics-track i {
    display: block;
    height: 100%;
    background: #66b6cc;
}

.rank-value {
    display: grid;
    justify-items: end;
}

.rank-value strong {
    color: #ffffff;
    font-size: 22px;
}

.rank-value small,
.metric-heading span,
.metric-leader span,
.metric-leader small,
.team-analytics-values small {
    color: #7f8792;
    font-size: 9px;
    text-transform: uppercase;
}

.analytics-metric-row {
    padding: 16px;
    border-bottom: 1px solid #252a31;
}

.metric-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    flex-wrap: wrap;
}

.metric-heading strong {
    color: #ffffff;
    font-size: 13px;
}

.analytics-metric-row .analytics-track i,
.analytics-team-row .analytics-track i {
    background: #b99b54;
}

.metric-leader {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    margin-top: 12px;
}

.metric-leader strong {
    color: #d7dce2;
    font-size: 12px;
}

.metric-leader small {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
}

.analytics-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.analytics-team-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 15px;
    background: #13161b;
    border: 1px solid #252a31;
    border-radius: 6px;
}

.team-code {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    background: #1b2225;
    border: 1px solid #44545c;
    color: #bde6f2;
    font-size: 11px;
    font-weight: 700;
}

.team-analytics-identity {
    display: grid;
    min-width: 0;
}

.team-analytics-identity small {
    color: #7f8792;
    font-size: 9px;
    text-transform: uppercase;
}

.team-analytics-identity strong {
    overflow: hidden;
    margin: 2px 0 10px;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-analytics-values {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1px 7px;
    align-items: baseline;
}

.team-analytics-values strong {
    color: #ffffff;
    font-size: 15px;
    text-align: right;
}

/* ------------------------------
   Member status history
------------------------------ */

.current-status-record,
.status-current-panel {
    margin-bottom: 20px;
    padding: 18px;
    background: #13161b;
    border: 1px solid #303741;
    border-left: 3px solid #66b6cc;
    border-radius: 6px;
}

.current-status-record h3,
.status-current-panel h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.status-period-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 16px 0 0;
}

.status-period-details div {
    min-width: 0;
}

.status-period-details dt {
    color: #7f8792;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-period-details dd {
    margin: 4px 0 0;
    color: #d7dce2;
    overflow-wrap: anywhere;
}

.timeline-current {
    color: #bde6f2 !important;
    font-weight: 600;
}

.status-change-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    align-items: start;
}

.status-current-panel {
    margin: 0;
}

.status-current-panel .status-badge {
    display: inline-block;
    margin-top: 6px;
}

.status-change-form .form-field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #7f8792;
    font-size: 12px;
}

.status-change-form label {
    color: #aab2bd;
    font-size: 12px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: #0d0f12;
    border: 1px solid #343a43;
    border-radius: 4px;
    color: #d7dce2;
    font: inherit;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: #66b6cc;
    outline: 1px solid #66b6cc;
}

.errorlist {
    margin: 0;
    padding: 0;
    color: #e3a1a1;
    font-size: 12px;
    list-style: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ------------------------------
   Member dossier refinements
------------------------------ */

.dossier-back-link {
    margin: 0 0 14px;
    color: #8f98a4;
    font-size: 13px;
}

.dossier-back-link a:hover {
    color: #ffffff;
}

.member-dossier-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    padding: 1px;
    background: #2a3038;
    border-radius: 6px;
    overflow: hidden;
}

.profile-detail-grid > div {
    min-width: 0;
    padding: 14px 16px;
    background: #15191e;
}

.profile-detail-grid dt {
    margin-bottom: 5px;
    color: #7f8792;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-detail-grid dd {
    margin: 0;
    color: #f0f2f4;
    overflow-wrap: anywhere;
}

.profile-detail-grid dd small {
    display: block;
    margin-top: 3px;
    color: #7f8792;
}

.profile-detail-grid a {
    color: #bde6f2;
}

.profile-detail-grid .profile-remarks {
    grid-column: span 3;
}

.dossier-subheading {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
}

.member-dossier-facts strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ------------------------------
   Rank progression
------------------------------ */

.rank-page-header,
.roadmap-header,
.rank-division-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.rank-page-header .page-description,
.roadmap-header .page-description {
    max-width: 760px;
}

.rank-division-heading {
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #303741;
}

.rank-division-heading h2 {
    margin: 0;
    color: #ffffff;
}

.rank-division-heading > span {
    color: #8f98a4;
    font-size: 12px;
}

.rank-progression-list {
    display: grid;
}

.rank-progression-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1.25fr) minmax(220px, 0.95fr);
    gap: 24px;
    min-width: 0;
    padding: 18px 0;
    border-bottom: 1px solid #252a31;
}

.rank-identity {
    display: grid;
    grid-template-columns: 28px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.rank-sequence {
    color: #59616c;
    font-size: 11px;
    font-weight: 700;
}

.rank-page-insignia {
    display: grid;
    width: 58px;
    height: 58px;
    padding: 6px;
    place-items: center;
    object-fit: contain;
    background: #171b20;
    border: 1px solid #34414b;
    border-radius: 6px;
}

.rank-insignia-fallback {
    color: #d9f1fb;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.rank-identity strong {
    color: #e4c878;
    font-size: 12px;
}

.rank-identity h3 {
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 16px;
}

.rank-requirements ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #c9ced5;
}

.rank-requirements li + li {
    margin-top: 3px;
}

.rank-muted,
.rank-remarks {
    margin: 5px 0 0;
    color: #8f98a4;
    font-size: 13px;
}

.rank-policy p:first-child {
    display: grid;
    margin: 0 0 8px;
}

.rank-policy p:first-child strong {
    color: #ffffff;
}

.rank-policy p:first-child span {
    color: #7f8792;
    font-size: 11px;
}

/* ------------------------------
   Development roadmap
------------------------------ */

.roadmap-counts {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.roadmap-counts span {
    color: #8f98a4;
    font-size: 12px;
}

.roadmap-counts strong {
    margin-right: 4px;
    color: #ffffff;
    font-size: 18px;
}

.roadmap-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid #303741;
}

.roadmap-tabs a {
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    color: #8f98a4;
    font-size: 13px;
    font-weight: 600;
}

.roadmap-tabs a:hover,
.roadmap-tabs a.active {
    border-bottom-color: #66b6cc;
    color: #ffffff;
}

.roadmap-content {
    max-width: 980px;
}

.roadmap-content h2 {
    margin: 36px 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #303741;
    color: #ffffff;
    font-size: 21px;
}

.roadmap-content h2:first-child {
    margin-top: 0;
}

.roadmap-content h3,
.roadmap-content h4 {
    margin: 22px 0 9px;
    color: #dce1e6;
}

.roadmap-content p {
    margin: 8px 0;
    color: #8f98a4;
}

.roadmap-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid #20252b;
}

.roadmap-marker {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid #4a515c;
    border-radius: 4px;
    color: #8f98a4;
    font-size: 11px;
    font-weight: 700;
}

.roadmap-progress .roadmap-marker {
    border-color: #8a713d;
    color: #f0d79b;
}

.roadmap-complete .roadmap-marker {
    border-color: #3b687b;
    color: #bde6f2;
}

.roadmap-later {
    color: #7f8792;
}

/* ------------------------------
   Data model map
------------------------------ */

.model-map-header {
    max-width: 820px;
}

.model-map-tabs {
    display: flex;
    gap: 6px;
    margin: 22px 0 0;
    padding-bottom: 10px;
    overflow-x: auto;
    border-bottom: 1px solid #3e4651;
}

.model-map-tabs button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #b9c0c8;
    cursor: pointer;
    font: inherit;
}

.model-map-tabs button:hover,
.model-map-tabs button.active {
    border-color: #6d7782;
    background: #242a31;
    color: #f4d47e;
}

.model-map-tabs button:focus-visible {
    outline: 2px solid #d6ad50;
    outline-offset: 2px;
}

.model-map-workspace {
    margin-top: 20px;
}

.model-map-section-heading {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 16px;
}

.model-map-section-heading h2,
.model-map-section-heading p {
    margin: 0;
}

.model-map-section-heading > p {
    color: #aeb6bf;
    line-height: 1.55;
}

.model-map-diagram {
    min-height: 520px;
    overflow: auto;
    padding: 22px;
    border: 1px solid #3e4651;
    border-top: 2px solid #d6ad50;
    border-radius: 6px;
    background: #11151a;
}

.model-map-diagram.is-loading {
    display: grid;
    place-items: center;
    color: #9fa8b2;
}

.model-map-diagram svg {
    display: block;
    min-width: 900px;
    max-width: none;
    height: auto;
    margin: 0 auto;
}

.model-map-diagram .node {
    cursor: pointer;
}

.model-map-error {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #c67267;
    background: #2a1d1d;
    color: #ffd9d4;
}

.model-map-index {
    margin-top: 16px;
    border-top: 1px solid #3e4651;
}

.model-map-index summary {
    padding: 14px 0;
    color: #d7dce1;
    cursor: pointer;
}

.model-map-index table {
    min-width: 620px;
}

.model-map-index a {
    color: #e4c878;
}

@media (max-width: 760px) {
    .model-map-section-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .model-map-diagram {
        min-height: 430px;
        padding: 14px;
    }
}

.commit-history {
    display: grid;
    max-width: 980px;
    gap: 10px;
}

.commit-entry {
    padding: 18px 20px;
    background: #13161b;
    border: 1px solid #252a31;
    border-left: 3px solid #4c7288;
    border-radius: 6px;
}

.commit-entry header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7f8792;
    font-size: 11px;
}

.commit-entry code {
    color: #bde6f2;
}

.commit-entry h2 {
    margin: 9px 0 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 15px;
}

.commit-entry ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #aeb5bd;
    font-size: 12px;
}

.commit-entry li + li {
    margin-top: 5px;
}

/* ------------------------------
   Staff organization
------------------------------ */

.staff-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.staff-summary {
    display: flex;
    gap: 1px;
    margin: 0;
    background: #303741;
    border: 1px solid #303741;
}

.staff-summary div {
    display: grid;
    min-width: 90px;
    padding: 10px 14px;
    background: #171b20;
}

.staff-summary dt {
    color: #7f8792;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.staff-summary dd {
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.staff-department-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.staff-department {
    min-width: 0;
    overflow: hidden;
    background: #111419;
    border: 1px solid #303741;
    border-top: 3px solid #66b6cc;
    border-radius: 6px;
}

.staff-subdepartment {
    border-top-color: #e4c878;
}

.staff-department-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 112px;
    padding: 18px;
    background: #171b20;
}

.staff-department-heading .eyebrow {
    margin: 0 0 5px;
}

.staff-department-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
}

.staff-department-heading h2 span {
    margin-right: 8px;
    color: #bde6f2;
}

.staff-subdepartment .staff-department-heading h2 span {
    color: #f0d79b;
}

.staff-department-heading p:last-child {
    max-width: 560px;
    margin: 7px 0 0;
    color: #8f98a4;
    font-size: 12px;
}

.staff-fill-count {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #44545c;
    color: #bde6f2;
    font-size: 12px;
    font-weight: 700;
}

.staff-department-photo {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    padding: 14px;
    background: #0d0f12;
}

.staff-position-list {
    padding: 0 18px;
}

.staff-position {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(160px, 1.2fr);
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 13px 0;
    border-bottom: 1px solid #252a31;
}

.staff-position:last-child {
    border-bottom: 0;
}

.staff-position-head {
    background: #161d21;
}

.staff-position-title {
    min-width: 0;
}

.staff-position-title > span {
    color: #e4c878;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.staff-position-title h3 {
    margin: 2px 0 0;
    color: #dce1e6;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.staff-position-title small {
    color: #7f8792;
    font-size: 10px;
}

.staff-holder {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 7px 0;
    border-left: 2px solid #44545c;
}

.staff-holder:hover {
    border-left-color: #66b6cc;
}

.staff-holder-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: #263847;
    color: #d9f1fb;
    font-size: 13px;
    font-weight: 700;
}

.staff-holder > span:last-child {
    display: grid;
    min-width: 0;
}

.staff-holder strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-holder small {
    color: #7f8792;
    font-size: 10px;
}

.staff-vacancy {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 10px;
    border: 1px dashed #4a515c;
    color: #7f8792;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes dossier-reveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {

    .team-activity-grid {
        grid-template-columns: 1fr;
    }

    .staff-department-grid {
        grid-template-columns: 1fr;
    }

    .rank-progression-card {
        grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
    }

    .rank-policy {
        grid-column: 2;
    }

    .profile-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-detail-grid .profile-remarks {
        grid-column: span 2;
    }

    .qualification-filter-form {
        grid-template-columns: auto minmax(0, 1fr) auto minmax(160px, 220px);
    }

    .qualification-filter-form .nav-button,
    .qualification-filter-form .filter-clear {
        grid-column: auto;
    }

    .command-header {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .member-dossier-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .operation-card {
        grid-template-columns: 88px minmax(0, 1fr) 120px;
    }

    .deployment-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deployment-layout {
        grid-template-columns: 1fr;
    }

    .status-change-layout {
        grid-template-columns: 1fr;
    }

    .analytics-header {
        align-items: start;
        flex-direction: column;
    }

    .analytics-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-primary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .compact-operation-list .operation-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .compact-operation-list .operation-record-link {
        grid-column: 2;
        justify-self: start;
        padding-top: 0;
    }

    .rank-page-header,
    .roadmap-header,
    .staff-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-summary {
        width: 100%;
    }

    .staff-summary div {
        min-width: 0;
        flex: 1;
    }

    .staff-position {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rank-progression-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rank-policy {
        grid-column: auto;
    }

    .profile-detail-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail-grid .profile-remarks {
        grid-column: auto;
    }

    .member-dossier-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .qualification-overview-header,
    .qualification-catalogue-header {
        flex-direction: column;
    }

    .qualification-filter-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .qualification-filter-form .nav-button,
    .qualification-filter-form .filter-clear {
        grid-column: 1;
    }

    .qualification-catalogue-grid {
        grid-template-columns: 1fr;
    }

    .qualification-state {
        min-width: 72px;
    }

    .command-header h1 {
        font-size: 28px;
    }

    .dashboard-metrics,
    .dashboard-primary-grid,
    .event-strip,
    .deployment-snapshot-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics a {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .activity-row {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 4px 12px;
        padding: 9px 0;
    }

    .activity-row > span:last-child {
        grid-column: 2;
    }
    .member-dossier-header {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: flex-start;
    }

    .member-dossier-header h1 {
        font-size: 22px;
    }

    .status-badge {
        grid-column: 2;
        justify-self: start;
        margin-left: 0;
    }

    .member-dossier-facts {
        grid-template-columns: 1fr;
    }

    .service-summary {
        grid-template-columns: 1fr;
    }

    .member-dossier-facts > div {
        padding: 12px 14px;
    }

    .operation-card,
    .deployment-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .operation-date,
    .deployment-card time {
        min-height: 100%;
        padding: 12px;
    }

    .operation-card-meta,
    .deployment-link {
        grid-column: 1 / -1;
        margin: 0;
        padding: 10px 14px;
        border-top: 1px solid #252a31;
        border-left: 0;
    }

    .operation-card-meta {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .operation-card-meta a {
        margin: 0 0 0 auto;
    }

    .deployment-stat-grid {
        grid-template-columns: 1fr;
    }

    .analytics-stat-grid {
        grid-template-columns: 1fr;
    }

    .analytics-rank-row {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .rank-value {
        display: flex;
        grid-column: 2;
        gap: 5px;
        align-items: baseline;
        justify-items: start;
    }

    .rank-value strong {
        font-size: 16px;
    }

    .analytics-team-grid {
        grid-template-columns: 1fr;
    }

    .analytics-team-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .team-code {
        width: 44px;
        height: 44px;
    }

    .team-analytics-values {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #252a31;
    }
}

/* Final cascade overrides for shared indicators and responsive records. */
.division-indicator[data-division="grd"],
.division-indicator[data-division="ground"] {
    background: #17231c;
    border-color: #466b53;
    border-left-color: #81c995;
    color: #b9e6c5;
}

.division-indicator[data-division="af"],
.division-indicator[data-division="air"] {
    background: #17232b;
    border-color: #45687a;
    border-left-color: #66b6cc;
    color: #bde6f2;
}

.division-indicator[data-division="me"],
.division-indicator[data-division="mech"],
.division-indicator[data-division="mechanised"],
.division-indicator[data-division="mechanized"] {
    background: #272318;
    border-color: #756533;
    border-left-color: #e4c878;
    color: #f0d79b;
}

.empty-state {
    width: 100%;
    margin: 0;
    padding: 18px 14px;
    border-left: 2px solid #3a424c;
    color: #7f8792;
    font-size: 13px;
}

.status-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
}

.status-badge.status-active,
.status-badge.status-approved,
.status-badge.status-present {
    border-color: #426a4d;
    color: #81c995;
}

.status-badge.status-pending {
    border-color: #756533;
    color: #e4c878;
}

.status-badge.status-rejected,
.status-badge.status-absent {
    border-color: #75484b;
    color: #e39a9f;
}

.service-timeline {
    padding-left: 32px;
}

.service-timeline::before {
    left: 5px;
    width: 2px;
    background: #303b45;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    left: -32px;
    width: 12px;
    height: 12px;
}

.attendance-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
}

@media (max-width: 700px) {
    .attendance-entry-card {
        overflow: visible;
        padding: 14px;
    }

    .attendance-entry-card .attendance-entry-table {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .attendance-entry-card .attendance-entry-table tbody {
        display: block;
    }

    .attendance-entry-card .attendance-entry-row {
        display: grid;
    }

    .additional-role-segment {
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    .additional-role-segment > *:nth-child(-n + 3) {
        grid-column: 1;
    }

    .additional-role-segment > *:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .member-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
}
