/* Commando Skydivers — Official Brand Styles */

:root {
    --csd-bg: #ffffff;
    --csd-text: #888888;
    --csd-heading: #222222;
    --csd-cta: #f4bf00;
    --csd-cta-text: #000000;
    --csd-black: #000000;
    --csd-border: #e5e5e5;
    --csd-font: 'Manrope', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--csd-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--csd-text);
    background-color: var(--csd-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
legend {
    color: var(--csd-heading);
}

a {
    color: var(--csd-heading);
}

/* Header */
.site-header {
    background: var(--csd-bg);
    border-bottom: 1px solid var(--csd-border);
}

.site-header-inner {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1rem 0.75rem;
}

.site-header-inner--wide {
    max-width: 48rem;
}

.site-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-logo {
    display: block;
    max-height: 50px;
    width: auto;
    height: auto;
}

/* Layout */
.app-shell {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.app-shell--hangar {
    max-width: 1400px;
    width: 100%;
}

.app-panel {
    background: var(--csd-bg);
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 1rem;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--csd-text);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--csd-heading);
    margin: 0 0 0.25rem;
}

.page-subtitle {
    text-align: center;
    font-size: 0.75rem;
    color: var(--csd-text);
    margin: 0 0 1.5rem;
}

/* Tab navigation */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    font-size: 0.6875rem;
}

@media (min-width: 640px) {
    .tab-bar {
        flex-wrap: nowrap;
        font-size: 0.8125rem;
    }
}

.tab-btn {
    flex: 1 1 50%;
    min-width: 0;
    padding: 0.5rem 0.25rem;
    font-family: var(--csd-font);
    font-weight: 600;
    border: none;
    background: var(--csd-bg);
    color: var(--csd-text);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.tab-btn:hover:not(.tab-btn--active) {
    background: #fafafa;
    color: var(--csd-heading);
}

.tab-btn--active {
    background: var(--csd-cta);
    color: var(--csd-cta-text);
}

a.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

a.tab-btn:hover {
    background: #fafafa;
    color: var(--csd-heading);
}

/* Admin dashboard sub-navigation */
.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.admin-subnav__btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-family: var(--csd-font);
    font-weight: 600;
    border: none;
    background: var(--csd-bg);
    color: var(--csd-text);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.admin-subnav__btn:hover:not(.admin-subnav__btn--active) {
    background: #fafafa;
    color: var(--csd-heading);
}

.admin-subnav__btn--active {
    background: var(--csd-cta);
    color: var(--csd-cta-text);
}

.admin-subpanel.hidden {
    display: none;
}

/* Primary CTA */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 0.625rem 1.5rem;
    font-family: var(--csd-font);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--csd-cta-text);
    background-color: var(--csd-cta);
    border: 2px solid var(--csd-cta);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--csd-black);
    color: var(--csd-cta);
    border-color: var(--csd-black);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary--compact {
    width: auto;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

/* Secondary / utility buttons */
.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: var(--csd-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csd-heading);
    background: var(--csd-bg);
    border: 1px solid var(--csd-border);
    border-radius: 30px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--csd-heading);
    color: var(--csd-black);
}

.btn-text {
    font-family: var(--csd-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csd-heading);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-text:hover {
    color: var(--csd-black);
}

.btn-text--danger {
    color: #b91c1c;
}

.btn-text--danger:hover {
    color: #7f1d1d;
}

/* Form fields */
label,
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csd-heading);
}

.form-input {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    font-family: var(--csd-font);
    font-size: 1rem;
    color: var(--csd-heading);
    background: var(--csd-bg);
    border: 1px solid var(--csd-border);
    border-radius: 4px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--csd-heading);
}

input[type="checkbox"] {
    accent-color: var(--csd-cta);
}

fieldset {
    border: none;
    border-bottom: 1px solid var(--csd-border);
    padding: 0 0 1rem;
    margin: 0;
}

fieldset legend {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0;
    margin-bottom: 0.75rem;
}

.rules-box {
    border: 1px solid var(--csd-border);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--csd-text);
}

.rules-box p:first-child {
    color: var(--csd-heading);
}

.rig-card,
.rig-photos {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.75rem;
    background: #fafafa;
}

/* Status banners */
.status-banner {
    font-size: 0.875rem;
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
}

.status-banner--error {
    color: #b91c1c;
    background: #fef2f2;
}

.status-banner--success {
    color: #166534;
    background: #f0fdf4;
}

.status-banner--info {
    color: var(--csd-heading);
    background: #fafafa;
}

.brief-submit-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem 1rem;
}

.brief-submit-success__banner {
    max-width: 28rem;
    width: 100%;
    padding: 1.25rem 1rem;
}

.brief-submit-success__message {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.brief-submit-success__followup {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
}

.modal-panel {
    background: var(--csd-bg);
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    max-width: 32rem;
    width: 100%;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-panel h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

/* Admin / manifest cards */
.record-card {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.record-card .record-name {
    font-weight: 600;
    color: var(--csd-heading);
}

.manifest-snapshot__text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f9fafb;
    border-color: var(--csd-border);
    resize: vertical;
    min-height: 8rem;
}

.manifest-session-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #f9fafb;
}

.manifest-session-bar__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--csd-heading);
}

.manifest-session-bar__signout {
    flex-shrink: 0;
}

.manifest-roster-section {
    border-top: 1px solid var(--csd-border);
    padding-top: 1rem;
}

.manifest-roster-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin: 0 0 0.75rem;
}

.manifest-roster-list__placeholder {
    color: #6b7280;
}

.manifest-roster-letter + .manifest-roster-letter {
    margin-top: 1rem;
}

.manifest-roster-letter__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 0.35rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--csd-border);
}

.manifest-roster-letter__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.manifest-roster-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0.35rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    text-align: left;
    background: transparent;
    font: inherit;
}

.manifest-roster-item:hover,
.manifest-roster-item:focus {
    background: #f9fafb;
    outline: none;
}

.manifest-roster-item__name {
    font-weight: 600;
    color: var(--csd-heading);
    font-size: 0.875rem;
}

.manifest-roster-item__apf {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.manifest-roster-item__badge {
    justify-self: end;
}

@media (max-width: 480px) {
    .manifest-roster-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name badge"
            "apf badge";
    }

    .manifest-roster-item__name {
        grid-area: name;
    }

    .manifest-roster-item__apf {
        grid-area: apf;
    }

    .manifest-roster-item__badge {
        grid-area: badge;
    }
}

.manifest-pdf-auth {
    margin-bottom: 1rem;
}

/* Semantic action chips (non-primary) */
.btn-approve {
    padding: 0.25rem 0.75rem;
    font-family: var(--csd-font);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #166534;
    background: #f0fdf4;
    color: #166534;
    cursor: pointer;
}

.btn-reject {
    padding: 0.25rem 0.75rem;
    font-family: var(--csd-font);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #b91c1c;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
}

.btn-neutral {
    padding: 0.25rem 0.75rem;
    font-family: var(--csd-font);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid var(--csd-border);
    background: var(--csd-bg);
    color: var(--csd-heading);
    cursor: pointer;
}

/* Verify page sections */
.verify-section {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--csd-bg);
}

.verify-section-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--csd-border);
    background: #fafafa;
}

.verify-section-header h2 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.verify-section dl > div + div {
    border-top: 1px solid var(--csd-border);
}

    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--csd-text);
}

.verify-metric dd {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin: 0;
}

.verify-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin: 0.25rem 0 0;
}

@media (min-width: 640px) {
    .verify-page-title {
        font-size: 1.875rem;
    }
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--csd-border);
    border-top-color: var(--csd-cta);
    border-radius: 50%;
    animation: csd-spin 0.8s linear infinite;
}

@keyframes csd-spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* APF jumper lookup card */
.jumper-lookup-card,
.packer-lookup-card {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jumper-lookup-card--verified,
.packer-lookup-card--verified {
    border: 2px solid var(--csd-cta);
    box-shadow: 0 0 0 1px rgba(244, 191, 0, 0.15);
}

.jumper-lookup-card--warning,
.packer-lookup-card--warning {
    border: 1px solid var(--csd-border);
}

.apf-verify-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .apf-verify-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.apf-verify-indicator {
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
}

.apf-verify-indicator--idle {
    color: var(--csd-text);
}

.apf-verify-indicator--loading {
    color: var(--csd-heading);
    font-weight: 600;
}

.apf-verify-indicator--green {
    color: var(--csd-heading);
    font-weight: 600;
}

.apf-verify-indicator--red,
.apf-verify-indicator--error {
    color: #b91c1c;
    font-weight: 600;
}

.apf-verify-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 4px;
}

.profile-prepopulate-status {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-prepopulate-status.profile-prepopulate--loading {
    color: #1d4ed8;
}

.profile-prepopulate-status.profile-prepopulate--success {
    color: #15803d;
}

.apf-success-banner {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 4px;
}

.apf-arc-caution-banner {
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    background: #fef9c3;
    border: 1px solid var(--csd-cta);
    border-radius: 4px;
}

.apf-banner__headline {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--csd-heading);
    margin: 0 0 0.375rem;
    line-height: 1.35;
}

.apf-banner__subtext {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--csd-text);
    margin: 0;
    line-height: 1.45;
}

.apf-credentials-panel {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.875rem 1rem;
    background: #fafafa;
}

.apf-credentials-panel__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
    margin: 0;
}

@media (min-width: 640px) {
    .apf-credentials-panel__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.apf-credentials-row {
    margin: 0;
}

.apf-credentials-row--full {
    grid-column: 1 / -1;
}

.apf-credentials-row dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--csd-text);
    margin: 0 0 0.125rem;
}

.apf-credentials-row dd {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--csd-heading);
    margin: 0;
    line-height: 1.4;
}

.apf-ratings-section {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--csd-border);
}

.apf-ratings-section .section-title {
    font-size: 0.8125rem;
    color: var(--csd-heading);
    margin-bottom: 0.5rem;
}

.apf-ratings-container {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.apf-rating-line {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--csd-heading);
    line-height: 1.45;
}

/* DZSO roster grid */
.dzso-roster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .dzso-roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dzso-roster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dzso-roster-card {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}

.dzso-roster-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin: 0 0 0.375rem;
}

.dzso-roster-card__meta {
    font-size: 0.8125rem;
    color: var(--csd-text);
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.dzso-roster-card__privilege {
    margin: 0.75rem 0 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    border-radius: 4px;
}

.dzso-roster-empty {
    grid-column: 1 / -1;
}

.dzso-privilege-line {
    display: inline-block;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

/* Admin dashboard */
.admin-login-card,
.admin-registration-card,
.admin-section {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}

.admin-readonly-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--csd-heading);
    margin: 0;
    line-height: 1.4;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-audit-table th,
.admin-audit-table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--csd-border);
    vertical-align: top;
}

.admin-ci-widget {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.875rem 1rem;
    background: #fff;
}

.admin-ci-widget--assigned {
    border-color: #fcd34d;
    background: #fffbeb;
}

.admin-ci-widget__label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--csd-text);
}

.admin-ci-widget__value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.admin-ci-transfer-btn {
    align-self: flex-end;
    white-space: nowrap;
}

.admin-audit-table th {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--csd-heading);
    background: #f5f5f5;
}

.admin-audit-empty {
    text-align: center;
    color: var(--csd-text);
    padding: 1.5rem 0.75rem !important;
}

.btn-reject--compact {
    font-size: 0.75rem;
    padding: 0.35rem 0.625rem;
    white-space: nowrap;
}

/* Form steps & gates */
.form-step__legend {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin-bottom: 0.5rem;
}

.form-gate-locked {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.brief-signature-canvas--locked {
    pointer-events: none;
    background: #f3f4f6;
}

/* Unified APF status banner */
.unified-status-banner {
    border-radius: 4px;
    padding: 1rem;
    border: 2px solid var(--csd-border);
}

.unified-status-banner__headline {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 0.375rem;
    line-height: 1.35;
}

.unified-status-banner__subtext {
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
}

.unified-status-banner--green {
    background: #f0fdf4;
    border-color: #86efac;
}

.unified-status-banner--yellow {
    background: #fef9c3;
    border-color: var(--csd-cta);
}

.unified-status-banner--orange {
    background: #ffedd5;
    border-color: #fdba74;
}

.unified-status-banner--blue {
    background: #eff6ff;
    border-color: #93c5fd;
}

.unified-status-banner--purple {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.unified-status-banner--red {
    background: #fef2f2;
    border-color: #fca5a5;
}

.rig-card__photos {
    margin-top: 0.75rem;
}

.rig-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .rig-form-row {
        flex-direction: row;
        gap: 1rem;
    }

    .rig-form-row__field {
        flex: 1;
        min-width: 0;
    }

    .rig-form-row--cols-3 .rig-form-row__field {
        flex: 1;
    }
}

html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit,
html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-fields-wrapper,
html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-text,
html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-month-field,
html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-day-field,
html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-year-field,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-fields-wrapper,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-text,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-month-field,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-day-field,
input[type="date"].smart-date-picker--anchoring::-webkit-datetime-edit-year-field {
    color: transparent !important;
}

/* DZSO workspace portal */
.dzso-gate {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.dzso-gate--hidden {
    opacity: 0;
    transform: translateY(-0.5rem);
    pointer-events: none;
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.dzso-workspace {
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.dzso-workspace--visible {
    opacity: 1;
    transform: translateY(0);
}

.dzso-queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dzso-queue-card {
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.875rem;
    background: #fafafa;
}

.dzso-queue-card__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.dzso-queue-card__meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--csd-text);
}

.dzso-queue-card__action {
    display: inline-block;
    margin-top: 0.75rem;
    text-decoration: none;
}

.dzso-queue-empty {
    margin: 0;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--csd-text);
}

.wing-loading-badge {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--csd-heading);
    white-space: nowrap;
}

.dzso-queue-card__metrics {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--csd-border);
}

.dzso-rig-metrics + .dzso-rig-metrics {
    margin-top: 0.5rem;
}

.dzso-rig-metrics__title {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.dzso-rig-metrics__line {
    margin: 0;
    font-size: 0.8rem;
    color: var(--csd-text);
}

.dzso-wing-loading-help {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--csd-text);
    font-style: italic;
}

.manifest-weight-warning {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.btn-approve--disabled,
.btn-approve:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.manifest-weight-entry .form-label {
    margin-bottom: 0;
}

.dzso-inspection-weight {
    margin-top: 0.75rem;
}

.dzso-inspection-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    align-items: flex-start;
}

.dzso-inspection-weight-column {
    flex: 1 1 14rem;
    min-width: 0;
}

.dzso-briefing-checklist {
    flex: 1 1 18rem;
    min-width: 0;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #fafafa;
}

.dzso-briefing-checklist__legend {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

.dzso-checklist-step {
    margin-bottom: 0.625rem;
}

.dzso-checklist-step__label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.35;
    cursor: pointer;
}

.dzso-checklist-step__label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.dzso-checklist-step__hint {
    margin: 0.25rem 0 0 1.35rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.dzso-checklist-step__weight-slot {
    margin: 0.35rem 0 0 1.35rem;
}

.dzso-checklist-error {
    margin-top: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.dzso-photo-review {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--csd-border);
}

.dzso-photo-review__title {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.dzso-photo-review__rig {
    margin-bottom: 0.5rem;
}

.dzso-photo-review__rig-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #4b5563;
}

.dzso-photo-review__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.dzso-photo-review__view {
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.dzso-aircraft-ack-review {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--csd-border);
}

.dzso-aircraft-ack-review__title {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.dzso-aircraft-ack-review__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.dzso-aircraft-ack-review__item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.dzso-aircraft-ack-review__mark {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    font-weight: 700;
}

.dzso-aircraft-ack-review__mark--yes {
    color: #166534;
}

.dzso-aircraft-ack-review__mark--no {
    color: #9ca3af;
}

.dzso-aircraft-ack-review__warning {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #b45309;
}

.dzso-aircraft-ack-review__signature {
    margin-top: 0.75rem;
}

.dzso-aircraft-ack-review__signature-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #4b5563;
}

.dzso-aircraft-ack-review__signature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.dzso-aircraft-ack-review__view {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.dzso-aircraft-ack-review__preview {
    display: block;
    margin-top: 0.5rem;
    max-width: 14rem;
    width: 100%;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #fff;
}

.dzso-aircraft-ack-review__missing {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.dzso-jumper-signature-review {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--csd-border);
}

.dzso-jumper-signature-review__title {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #4b5563;
}

.dzso-jumper-signature-review__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.dzso-jumper-signature-review__view {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.dzso-jumper-signature-review__preview,
.dzso-signature-review__preview--error {
    display: block;
    margin-top: 0.5rem;
    max-width: 14rem;
    width: 100%;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #fff;
}

.dzso-signature-review__preview--error {
    border-color: #fecaca;
    background: #fef2f2;
}

.dzso-jumper-signature-review__missing {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.hangar-photo-deck__thumb--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    object-fit: contain;
}

.freefly-waiver-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid #fecaca;
    border-radius: 6px;
    background: #fff7f7;
}

.brief-form--waiver-locked {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.dzso-freefly-friendly {
    margin: 0.5rem 0 0 1.35rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--csd-border);
}

.dzso-freefly-friendly__label {
    margin-bottom: 0.35rem;
}

.dzso-freefly-friendly__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dzso-freefly-friendly__option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.dzso-freefly-waiver-notice {
    margin: 0.5rem 0;
}

.dzso-no-aad-lock-banner {
    margin-top: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #991b1b;
    background: #fef2f2;
    border: 2px solid #dc2626;
}

.dzso-no-aad-unlock-banner {
    margin-top: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
    background: #fffbeb;
    border: 2px solid #f59e0b;
}

.admin-apf-fetch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.admin-apf-fetch-input {
    flex: 1 1 12rem;
    min-width: 0;
}

.admin-apf-fetch-btn {
    flex-shrink: 0;
    margin-bottom: 0.1rem;
}

.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.form-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch__track {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.form-switch__track::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.form-switch__input:checked + .form-switch__track {
    background: var(--csd-accent, #f4bf00);
}

.form-switch__input:checked + .form-switch__track::after {
    transform: translateX(1.25rem);
}

.form-switch__input:focus-visible + .form-switch__track {
    outline: 2px solid #222222;
    outline-offset: 2px;
}

.form-switch__label {
    font-size: 0.875rem;
    line-height: 1.35;
}

.dzso-inspection-metrics {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--csd-border);
}

.wing-loading-badge--live:empty {
    display: none;
}

html.touch-date-picker input[type="date"].smart-date-picker--anchoring::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* DZSO Review (hangar workspace) */
.hangar-portal-main {
    max-width: 100%;
}

.hangar-gate-panel {
    margin-top: 0.5rem;
}

.dzso-gate-form--frozen .dzso-gate-submit--locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.hangar-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hangar-workspace-toolbar {
    margin-bottom: 0;
}

.hangar-workspace-status {
    margin: 0;
}

.hangar-ci-badge--active {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.hangar-command-center {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    gap: 1rem;
    min-height: calc(100vh - 14rem);
}

.hangar-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hangar-pane__header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--csd-border);
}

.hangar-queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: calc(100vh - 16rem);
    padding-right: 0.25rem;
}

.hangar-queue-section__title {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--csd-text-muted, #6b7280);
}

.hangar-queue-section__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hangar-queue-section__empty {
    margin: 0;
    padding: 0.5rem 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--csd-text-muted, #6b7280);
}

.dzso-approval-signoff {
    color: #166534;
}

.hangar-queue-empty,
.hangar-inspection-empty {
    margin: 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--csd-text);
}

.hangar-queue-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.75rem;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hangar-queue-item:hover {
    border-color: #f4bf00;
    background: #fffdf5;
}

.hangar-queue-item--selected {
    border-color: #f4bf00;
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px #f4bf00;
}

.hangar-queue-item__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.hangar-queue-item__meta {
    font-size: 0.75rem;
    color: var(--csd-text);
}

.hangar-inspection-panel {
    overflow-y: auto;
    max-height: calc(100vh - 16rem);
    padding-right: 0.25rem;
}

.dzso-inspection-card--hangar {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.dzso-inspection-card--hangar .dzso-inspection-card__actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--csd-border);
}


.dzso-inspection-card--hangar .dzso-briefing-checklist {
    margin-top: 0.5rem;
}


.dzso-hangar-weight-block {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #f4bf00;
    border-radius: 6px;
    background: #fffdf5;
}

.dzso-hangar-weight-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.dzso-hangar-weight-input {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    min-height: 3.25rem;
}

.hangar-photo-deck {
    margin: 1rem 0;
}

.hangar-photo-deck__title {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.hangar-photo-deck__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.hangar-photo-deck__tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    padding: 0.35rem;
    background: #fff;
    cursor: zoom-in;
    text-align: left;
}

.hangar-photo-deck__tile:hover {
    border-color: #f4bf00;
}

.hangar-photo-deck__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
    background: #f3f4f6;
}

.hangar-photo-deck__caption {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--csd-heading);
}

.hangar-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.92);
}

.hangar-photo-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.hangar-photo-lightbox__img {
    max-width: min(96vw, 1200px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    background: #111;
}

.hangar-photo-lightbox__caption {
    margin: 0;
    color: #f9fafb;
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 900px) {
    .hangar-command-center {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hangar-queue-list,
    .hangar-inspection-panel {
        max-height: none;
    }
}

/* Hangar station inspection mechanics */
.hangar-weight-summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--csd-border);
}

.hangar-weight-summary__line {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    color: var(--csd-text);
}

.hangar-weight-summary__wing-loading {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--csd-border);
}

.hangar-weight-summary__wing-line {
    margin: 0.15rem 0;
    color: var(--csd-text-muted, #6b7280);
}

.hangar-weight-summary__wing-rig {
    margin-top: 0.35rem;
    color: var(--csd-heading);
}

.hangar-weight-summary__wing-rig:first-child {
    margin-top: 0;
}

.hangar-aad-readout {
    margin: 1rem 0;
    padding: 0.75rem;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #fafafa;
}

.hangar-aad-readout__title {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.hangar-aad-readout__line {
    margin: 0.15rem 0;
}

.hangar-checklist-grid {
    margin-top: 1rem;
    border: none;
    padding: 0;
}

.hangar-checklist-grid__legend {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--csd-heading);
    margin-bottom: 0.5rem;
}

.hangar-checklist-grid__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.hangar-checklist-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 4.5rem;
    padding: 0.65rem;
    border: 2px solid var(--csd-border);
    border-radius: 6px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hangar-checklist-tile:hover {
    border-color: #d1d5db;
}

.hangar-checklist-tile--passed {
    border-color: #16a34a;
    background: #f0fdf4;
}

.hangar-checklist-tile--freefly {
    cursor: default;
    grid-column: 1 / -1;
}

.hangar-checklist-tile__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--csd-heading);
    background: #f3f4f6;
}

.hangar-checklist-tile--passed .hangar-checklist-tile__step {
    background: #16a34a;
    color: #fff;
}

.hangar-checklist-tile__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--csd-heading);
}

.hangar-checklist-tile--freefly .dzso-freefly-friendly {
    margin: 0.35rem 0 0;
    padding-top: 0;
    border-top: none;
}

.hangar-reserve-badge {
    margin: 0.25rem 0 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hangar-reserve-badge--green {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.hangar-reserve-badge--yellow {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.hangar-reserve-badge--red {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.hangar-reserve-lock-banner,
.hangar-reserve-hard-lock-banner {
    margin: 0.5rem 0;
    padding: 0.5rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.hangar-final-approval-badge {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    color: #92400e;
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

/* Hangar staff passwordless login overlay */
.hangar-staff-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(6px);
}

.hangar-staff-login-overlay--hidden {
    display: none;
}

.hangar-staff-login-card {
    width: 100%;
    max-width: 440px;
    border: 2px solid #f4bf00;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.hangar-staff-login-card__brand {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--csd-border);
}

.hangar-staff-login-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--csd-text);
}

.hangar-staff-login-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--csd-heading);
}

.hangar-staff-login-card__lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--csd-text);
}

.hangar-staff-login-form .form-label {
    font-weight: 600;
}

.hangar-staff-login-alert.status-banner--error {
    font-weight: 700;
}

.hangar-portal-body--login-locked .hangar-portal-main,
.hangar-portal-body--login-locked .hangar-portal-footer,
.hangar-portal-body--login-locked .site-header {
    pointer-events: none;
    user-select: none;
}

.hangar-portal-body--login-locked .hangar-portal-main {
    filter: blur(3px);
}

/* Hangar focused inspection layout */
.hangar-command-center--focused {
    grid-template-columns: minmax(200px, 26%) minmax(0, 1fr);
}

.hangar-queue-back {
    width: 100%;
    margin-bottom: 0.5rem;
}

.hangar-focused-inspection-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hangar-focused-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--csd-border);
}

.hangar-focused-section:last-child {
    border-bottom: none;
}

.hangar-focused-section__title {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--csd-heading);
}

.hangar-focused-header__name {
    margin-bottom: 0.25rem;
}

.hangar-readonly-block__line {
    margin: 0.15rem 0;
}

.hangar-combined-rig-block {
    padding: 1rem;
    border: 1px solid var(--csd-border);
    border-radius: 4px;
    background: #fafafa;
}

.hangar-rig-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem 1rem;
    margin: 0.75rem 0;
}

.hangar-rig-details-grid__row {
    display: contents;
}

.hangar-rig-details-grid__label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--csd-text-muted, #6b7280);
}

.hangar-rig-details-grid__value {
    margin: 0;
    font-size: 0.8rem;
    color: var(--csd-text);
}

.hangar-rig-photo-grid {
    margin-top: 0.75rem;
}

.hangar-rig-photo-grid__title {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.hangar-harness-inspection {
    margin-top: 1rem;
}

.hangar-rig-freefly {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--csd-border);
}

.hangar-process-section {
    padding-top: 1rem;
}

.dzso-dropzone-rules-review__title,
.dzso-dropzone-rules-review__list {
    margin: 0 0 0.5rem;
}

.dzso-dropzone-rules-review__list {
    padding-left: 0;
    list-style: none;
}

.dzso-dropzone-rules-review__item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.dzso-dropzone-rules-review__mark {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    font-weight: 700;
}

.dzso-dropzone-rules-review__mark--yes {
    color: #166534;
}

.dzso-dropzone-rules-review__mark--no {
    color: #9ca3af;
}

.dzso-dropzone-rules-review__warning {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #b45309;
}

.dzso-ack-review__meta {
    margin: 0 0 0.5rem;
}

.dzso-ack-review__empty {
    margin: 0;
}

.hangar-inspection-panel {
    overflow-y: auto;
    max-height: calc(100vh - 16rem);
    padding-right: 0.25rem;
}

@media (max-width: 900px) {
    .hangar-rig-details-grid {
        grid-template-columns: 1fr;
    }

    .hangar-command-center--focused {
        grid-template-columns: 1fr;
    }
}
