.modal_overlay {
    background-color: rgba(0,0,0,.9);
}

.modal_overlay.modal {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    z-index: var(--trak-z-modal, 9000);
    overflow: auto;
    padding: 16px 0;
}

.modal_overlay_view {
    width: min(95vw, 960px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal_overlay_body{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overflow-wrap: anywhere;
}

.modal_overlay_view:has([data-trak-page-layout="a4-portrait"]) { width: min(95vw, 850px); }
.modal_overlay_view:has([data-trak-page-layout="a4-landscape"]),
.modal_overlay_view:has([data-trak-page-layout="a3-portrait"]) { width: min(95vw, 1180px); }
.modal_overlay_view:has([data-trak-page-layout="a3-landscape"]) { width: min(95vw, 1640px); }

.trak-blob-modal-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: min(72vh, 720px);
}

.trak-blob-modal-viewer--image img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
}

.trak-blob-modal-viewer--document {
    display: block;
}

.trak-blob-modal-viewer--video {
    flex-direction: column;
    gap: 12px;
}

.modal_overlay_view .modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.modal_overlay_view .modal-footer .btn + .btn {
    margin-left: 0;
}

.modal-action,
.popup-action {
    position: static;
    bottom: auto;
    right: auto;
}

.modal-action--primary {
    min-width: 180px;
}

.modal-action--danger {
    min-width: 120px;
}

.popup-action--close {
    min-width: 160px;
}

body.wo-document-confirm-open,
body.wo-file-confirm-open {
    overflow: hidden;
}

.trak-prepost-approval-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--trak-z-popup, 11000);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
    background: rgba(7, 18, 31, 0.62);
}

.trak-prepost-approval {
    width: min(480px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid #d7dfe8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
    color: #182b3f;
}

.trak-prepost-approval__eyebrow {
    margin-bottom: 6px;
    color: #2563a6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trak-prepost-approval h3 {
    margin: 0 0 10px;
    color: #182b3f;
    font-size: 22px;
    line-height: 1.25;
}

.trak-prepost-approval p {
    margin: 0;
    color: #425466;
    font-size: 14px;
    line-height: 1.5;
}

.trak-prepost-approval__privacy {
    margin: 16px 0;
    padding: 11px 12px;
    border: 1px solid #cbdcf0;
    border-radius: 7px;
    background: #f2f7fc;
    color: #284b70;
    font-size: 13px;
    line-height: 1.45;
}

.trak-prepost-approval label {
    display: block;
    margin: 14px 0 6px;
    color: #263b50;
    font-size: 13px;
    font-weight: 700;
}

.trak-prepost-approval input {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #b9c7d6;
    border-radius: 7px;
    background: #ffffff;
    color: #182b3f;
    font: inherit;
}

.trak-prepost-approval input:focus {
    border-color: #2d7fb8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 127, 184, 0.18);
}

.trak-prepost-approval__status {
    min-height: 21px;
    margin-top: 16px !important;
    padding: 10px 12px;
    border-radius: 7px;
    background: #f5f7fa;
}

.trak-prepost-approval__status:empty {
    display: none;
}

.trak-prepost-approval__status[data-tone="progress"] { background: #eef6ff; color: #245d94; }
.trak-prepost-approval__status[data-tone="success"] { background: #edf9f1; color: #17633a; }
.trak-prepost-approval__status[data-tone="warning"] { background: #fff7e6; color: #704800; }
.trak-prepost-approval__status[data-tone="error"] { background: #fff1f1; color: #9f1d1d; }

.trak-prepost-approval__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.trak-prepost-approval__actions .btn {
    min-height: 40px;
    min-width: 110px;
}

.trak-prepost-approval form.is-complete label,
.trak-prepost-approval form.is-complete input {
    display: none;
}

@media (max-width: 480px) {
    .trak-prepost-approval-overlay { align-items: flex-start; padding: 12px; }
    .trak-prepost-approval { width: 100%; padding: 20px; }
    .trak-prepost-approval__actions { flex-direction: column; }
    .trak-prepost-approval__actions .btn { width: 100%; }
}

.wo-document-confirm-overlay,
.wo-file-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--trak-z-popup, 11000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 18, 31, 0.46);
}

.wo-document-confirm,
.wo-file-confirm {
    width: min(380px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    color: #182b3f;
}

.wo-document-confirm__title,
.wo-file-confirm__title {
    margin: 0 0 10px;
    color: #182b3f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.wo-document-confirm__body,
.wo-file-confirm__body {
    margin: 0;
    color: #425466;
    font-size: 14px;
    line-height: 1.45;
}

.wo-document-confirm__actions,
.wo-file-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.wo-document-confirm__actions .btn,
.wo-file-confirm__actions .btn {
    min-width: 96px;
    min-height: 36px;
}

.wo-document-confirm__actions .btn:focus,
.wo-file-confirm__actions .btn:focus {
    outline: none;
    box-shadow: var(--trak-visual-focus, 0 0 0 3px rgba(59, 130, 246, 0.24));
}

@media (max-width: 420px) {
    .wo-document-confirm__actions,
    .wo-file-confirm__actions {
        flex-direction: column;
    }

    .wo-document-confirm__actions .btn,
    .wo-file-confirm__actions .btn {
        width: 100%;
    }
}

.popup-error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--trak-radius-md, 6px);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#popup_error_send.popup-error-button--send {
    min-width: 100px;
    border-color: var(--trak-visual-primary, #3b82f6);
    background-color: var(--trak-visual-primary, #3b82f6);
    color: #ffffff;
}

#popup_error_send.popup-error-button--send:hover,
#popup_error_send.popup-error-button--send:focus {
    border-color: var(--trak-visual-primary-hover, #2563eb);
    background-color: var(--trak-visual-primary-hover, #2563eb);
    color: #ffffff;
}

#popup_error_close.popup-error-button--close {
    min-width: 90px;
    border-color: #d7dfe8;
    background-color: #f4f6f8;
    color: #1f2937;
}

#popup_error_close.popup-error-button--close:hover,
#popup_error_close.popup-error-button--close:focus {
    border-color: #b8c6d4;
    background-color: #e8eef5;
    color: #1f2937;
}

#popup_error_send.popup-error-button--send:focus,
#popup_error_close.popup-error-button--close:focus {
    outline: none;
    box-shadow: var(--trak-visual-focus, 0 0 0 3px rgba(59, 130, 246, 0.24));
}

.core-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--trak-z-modal, 9000);
    overflow: auto;
    padding: 28px 0;
    background: rgba(7, 18, 31, 0.68);
}

.core-modal-shell {
    width: min(960px, calc(100vw - 56px));
    max-width: calc(100vw - 24px);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #cfd8e2;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 56px);
    overflow: hidden;
}

.core-modal-shell--manual-adjustment {
    width: min(1360px, calc(100vw - 56px));
}

.core-modal-shell--admin-medium {
    width: min(880px, calc(100vw - 56px));
}

.core-modal-shell--admin-wide {
    width: min(1180px, calc(100vw - 56px));
}

.core-modal-shell--closeout {
    width: min(1520px, calc(100vw - 40px));
}

.core-modal-shell--progression {
    width: min(1500px, calc(100vw - 40px));
}

.core-modal-shell--sync-audit {
    width: min(1560px, calc(100vw - 32px));
}

.core-modal-shell--comments {
    width: min(1280px, calc(100vw - 40px));
}

.core-modal-shell--image-preview {
    width: min(1240px, calc(100vw - 32px));
}

.core-modal-shell--review {
    width: calc(100vw - 24px);
    height: calc(100dvh - 56px);
}

.core-modal-header {
    flex: 0 0 auto;
    overflow-wrap: anywhere;
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--trak-visual-panel-header, #2e3f51);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.core-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    padding: 22px 24px;
    background: #f6f8fb;
}

.core-modal-json-fallback {
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    background: #ffffff;
    color: #1f3344;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.core-modal-body--plain {
    background: #ffffff;
}

.core-modal-body--progression,
.core-modal-body--sync-audit,
.core-modal-body--manual-adjustment,
.core-modal-body--comments,
.core-modal-body--materials,
.core-modal-body--documents,
.core-modal-body--team {
    background: #f4f7fb;
}

.core-modal-body--status {
    background: #f7f9fc;
    padding: 26px 34px 30px;
}

.core-modal-body--reschedule {
    background: #ffffff;
}

.workorder-reschedule {
    display: grid;
    gap: 18px;
}

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

.workorder-reschedule__summary-item {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d8e2ed;
    border-radius: 6px;
    background: #f7f9fc;
}

.workorder-reschedule__summary-item span,
.workorder-reschedule__label {
    display: block;
    margin-bottom: 6px;
    color: #5f7083;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.workorder-reschedule__summary-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #182b3f;
    font-size: 15px;
}

.workorder-reschedule__field {
    display: block;
    margin: 0;
}

.workorder-reschedule__input {
    max-width: 360px;
    height: 40px;
    border-color: #c8d5e3;
    border-radius: 6px;
    box-shadow: none;
}

.workorder-reschedule__input:focus {
    border-color: #2d7fb8;
    box-shadow: 0 0 0 3px rgba(45, 127, 184, 0.18);
}

.workorder-reschedule__error {
    padding: 10px 12px;
    border: 1px solid #f0b8b8;
    border-radius: 6px;
    background: #fff5f5;
    color: #9f1d1d;
    font-weight: 600;
}

.workorder-reschedule__error[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .workorder-reschedule__summary {
        grid-template-columns: 1fr;
    }

    .workorder-reschedule__input {
        max-width: none;
    }
}

.core-modal-body--closeout {
    background: #ffffff;
}

.core-modal-body--review {
    background: #ffffff;
    padding: 12px;
    display: flex;
    overflow: hidden;
}

.wo-review-combined {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    gap: 16px;
}

.wo-review-evidence {
    min-width: 0;
}

.wo-review-section-title {
    margin: 0 0 12px;
    color: #203247;
    font-size: 18px;
    font-weight: 700;
}

.wo-review-workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border: 1px solid #d6e0ea;
    border-radius: 6px;
    background: #f8fafc;
}

.wo-review-workspace > .wo-review-section-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #d6e0ea;
}

.wo-review-iframe {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    border: 0;
    border-top: 1px solid #d6e0ea;
    background: #ffffff;
}

.wo-review-loading-state {
    display: flex;
    min-height: min(520px, calc(100vh - 260px));
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid #d6e0ea;
    border-radius: 6px;
    background: #f8fafc;
}

.wo-review-loading-state__box {
    width: min(100%, 560px);
    min-width: 240px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(29, 51, 74, 0.12);
    text-align: center;
}

.wo-review-loading-state__summary {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d6e0ea;
    text-align: left;
}

.wo-review-loading-state__heading {
    color: #203247;
    font-size: 18px;
    font-weight: 700;
}

.wo-review-loading-state__description {
    margin-top: 6px;
    color: #526579;
    font-size: 14px;
    line-height: 1.45;
}

.wo-review-loading-state__meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px 12px;
    margin: 14px 0 0;
    font-size: 13px;
}

.wo-review-loading-state__meta dt {
    color: #526579;
    font-weight: 600;
}

.wo-review-loading-state__meta dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #203247;
}

.wo-review-loading-state__text {
    color: #314457;
    font-size: 14px;
    font-weight: 600;
}

.tabs-4597 {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    background: #efefef;
}

.input-6421 {
    position: absolute;
    opacity: 0;
}

.label-8783 {
    width: 20%;
    min-width: 150px;
    padding: 10px 0;
    background: #e5e5e5;
    color: #7f7f7f;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: background 0.1s, color 0.1s;
}

.label-8783:hover {
    background: #d8d8d8;
}

.label-8783:active {
    background: #ccc;
}

.input-6421:focus + .label-8783 {
    z-index: 1;
}

.input-6421:checked + .label-8783 {
    position: relative;
    z-index: 1;
    color: #000;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-bottom-color: #fff;
}

.panel-1279 {
    display: none;
    order: 99;
    width: 100%;
    padding: 20px 30px 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.input-6421:checked + .label-8783 + .panel-1279 {
    position: relative;
    top: -1px;
    z-index: 0;
    display: block;
}

.wo-closeout-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid #dce3eb;
}

.wo-closeout-details--with-monitoring {
    grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
}

.wo-closeout-details-main,
.wo-closeout-monitoring {
    min-width: 0;
}

.wo-closeout-details-main > .panel {
    margin-bottom: 0;
}

.wo-closeout-monitoring {
    border-left: 1px solid #dce3eb;
    background: #f9fbfd;
}

.wo-closeout-monitoring h4 {
    margin: 14px 0 10px;
}

.wo-closeout-checks-empty {
    margin: 0;
    padding: 16px;
    color: #526577;
}

@media (max-width: 1000px) {
    .wo-closeout-details--with-monitoring {
        grid-template-columns: minmax(0, 1fr);
    }

    .wo-closeout-monitoring {
        border-left: 0;
        border-top: 1px solid #dce3eb;
    }
}

.wo-closeout-task-row {
    padding: 0;
}

.wo-closeout-entry-row {
    padding: 10px 0;
}

.wo-closeout-table {
    width: 100%;
}

.wo-closeout-audit-box {
    min-height: 96px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #c9d4df;
    background: #f9fbfd;
    padding: 10px;
}

.wo-closeout-audit-empty {
    color: #667788;
    font-style: italic;
}

.wo-closeout-audit-item {
    border-bottom: 1px solid #e1e7ee;
    padding: 8px 0;
}

.wo-closeout-audit-item:last-child {
    border-bottom: 0;
}

.wo-closeout-audit-meta {
    color: #5b6c7d;
    font-size: 12px;
}

.wo-closeout-audit-summary {
    font-weight: 600;
}

.wo-closeout-audit-values {
    color: #34485d;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.wo-closeout-photo {
    max-height: 600px;
}

.wo-bulk-targets {
    padding: 14px 16px;
    border: 1px solid #d4e1ed;
    border-radius: 8px;
    background: #ffffff;
}

.wo-bulk-targets__header {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.wo-bulk-targets__title {
    color: #1d334a;
    font-size: 15px;
    font-weight: 700;
}

.wo-bulk-targets__intro {
    color: #5f7083;
    font-size: 13px;
    line-height: 1.4;
}

.wo-bulk-targets__list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.wo-bulk-targets__item {
    display: flex;
    min-width: 0;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e1e9f1;
    border-radius: 6px;
    background: #f8fafc;
}

.wo-bulk-targets__main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.wo-bulk-targets__main strong {
    color: #182b3f;
    overflow-wrap: anywhere;
}

.wo-bulk-targets__meta,
.wo-bulk-targets__description {
    color: #5f7083;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wo-bulk-targets__badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8eef5;
    color: #34485d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.wo-bulk-targets__badge.is-success {
    background: #e8f6ed;
    color: #23613a;
}

.wo-bulk-targets__badge.is-neutral {
    background: #edf2f7;
    color: #526577;
}

.wo-bulk-targets__badge.is-failed {
    background: #fdecec;
    color: #9f1d1d;
}

.wo-bulk-result {
    display: grid;
    gap: 14px;
}

.wo-bulk-result__alert {
    margin-bottom: 0;
}

.wo-status-bulk-alert {
    margin-bottom: 12px;
}

.wo-status-view {
    min-height: 260px;
}

.wo-status-panel[hidden] {
    display: none !important;
}

.wo-status-panel .panel {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.wo-status-panel .panel-body {
    padding: 0;
}

.wo-status-panel-title {
    display: block;
    margin: 0 0 14px;
    color: #526577;
    font-size: 14px;
    font-weight: 700;
}

.wo-status-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);
    gap: 10px 12px;
    align-items: stretch;
}

.wo-status-category-button {
    width: 180px;
    min-height: 40px;
    white-space: normal;
    line-height: 1.25;
}

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

.wo-status-option {
    min-width: 0;
}

.wo-status-option-card {
    display: flex;
    min-height: 74px;
    margin: 0;
    padding: 14px 16px;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #d7e1eb;
    border-radius: 6px;
    background: #ffffff;
    color: #314457;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wo-status-option-card:hover {
    border-color: #8fb7e8;
    box-shadow: 0 8px 18px rgba(35, 75, 120, 0.08);
}

.wo-status-view input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    border: 2px solid #c5d2df;
    border-radius: 50%;
    background: #ffffff;
}

.wo-status-view input[type="radio"]:checked {
    border-color: #2f80ed;
    background: radial-gradient(circle at center, #2f80ed 0 38%, transparent 42%);
}

.wo-status-option-label {
    display: block;
    min-width: 0;
    padding: 0;
    color: #4e6072;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.wo-status-note-row {
    display: grid;
    justify-content: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dfe7ef;
}

.wo-status-note-field {
    width: min(420px, 100%);
}

.wo-status-note-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.wo-status-note-label-row label {
    margin: 0;
    color: #526577;
    font-size: 14px;
    font-weight: 700;
}

.wo-status-note-count {
    color: #718296;
    font-size: 12px;
    font-weight: 700;
}

.wo-status-note-input {
    height: 40px;
    border-color: #c7d4e1;
    border-radius: 6px;
    box-shadow: none;
}

.wo-status-note-input:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.16);
}

.wo-status-nav {
    margin-top: 20px;
}

.wo-status-back {
    min-width: 120px;
}

.wo-status-empty {
    color: #526577;
    font-weight: 600;
}

@media (max-width: 640px) {
    .core-modal-body--status {
        padding: 20px;
    }

    .wo-status-category-grid,
    .wo-status-options {
        grid-template-columns: 1fr;
    }

    .wo-status-category-button {
        width: 100%;
    }
}

.core-modal-body--image-preview {
    padding: 0;
    background: #0b1220;
}

.core-modal-body--flush {
    padding: 0;
    background: #ffffff;
    position: relative;
}

.core-modal-footer {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #d9e2ec;
    background: #ffffff;
}

body.body .core-modal-footer .btn {
    min-width: 140px;
    min-height: 44px;
    white-space: normal;
}

.wo-bulk-action-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-right: auto;
    color: #344b5d;
    font-size: 13px;
    font-weight: 700;
}

.wo-bulk-action-button--busy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.materials-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d5dce6;
    border-radius: 12px;
    overflow: hidden;
}

.materials-admin-table th,
.materials-admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e4e7ee;
    vertical-align: top;
}

.materials-admin-table th {
    background: #f6f8fc;
    color: #31425f;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.materials-admin-table tr:last-child td {
    border-bottom: 0;
}

.defect-materials-editor,
.defect-materials-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.defect-materials-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.defect-materials-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d6dde8;
    border-radius: 999px;
    background: #edf2f7;
    color: #42576d;
    font-size: 12px;
    font-weight: 700;
}

.defect-materials-composer,
.defect-material-card,
.defect-material-empty {
    border: 1px solid #d6dde8;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.defect-materials-composer {
    background: #f7fafc;
}

.defect-material-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.defect-materials-grid {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(120px, 1fr) minmax(88px, .7fr) minmax(110px, .8fr);
    gap: 10px;
    align-items: end;
}

.defect-materials-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}

.defect-materials-grid .form-control {
    min-width: 0;
}

.defect-materials-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    min-height: 34px;
}

.defect-material-empty {
    color: #5a6d80;
    font-weight: 700;
}

@media (max-width: 991px) and (min-width: 768px) {
    .defect-materials-composer,
    .defect-material-card {
        padding: 10px;
    }

    .defect-materials-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px 10px;
    }

    .defect-materials-grid label:first-child {
        grid-column: 1 / -1;
    }

    .defect-materials-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .defect-materials-actions .btn {
        min-width: 140px;
    }
}

@media (max-width: 767px) {
    .defect-materials-grid {
        grid-template-columns: 1fr;
    }

    .defect-materials-actions {
        justify-content: stretch;
    }

    .defect-materials-actions .btn {
        width: 100%;
    }
}

.wo-team-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #1f2933;
}

.wo-team-header,
.wo-team-panel {
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #ffffff;
}

.wo-team-header {
    padding: 18px 20px;
    text-align: center;
}

.wo-team-title {
    color: #1d334a;
    font-size: 22px;
    font-weight: 700;
}

.wo-team-description {
    margin-top: 8px;
    color: #5a6d80;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
}

.wo-team-panel {
    padding: 18px;
}

.wo-team-panel-title {
    margin-bottom: 12px;
    color: #1d334a;
    font-size: 15px;
    font-weight: 700;
}

.wo-team-panel-copy {
    max-width: 820px;
    margin: -4px 0 14px;
    color: #5a6d80;
    font-size: 13px;
    line-height: 1.45;
}

.wo-team-leader-select {
    max-width: 420px;
}

.wo-team-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 8px;
    align-items: stretch;
}

.wo-team-member-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    background: #f8fafc;
    color: #34495e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.wo-team-member-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wo-team-member-availability {
    display: block;
    margin-top: 2px;
    color: #60758b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.wo-team-member-checkbox {
    flex: 0 0 auto;
    margin: 0;
}

.wo-team-empty,
.wo-team-note {
    padding: 12px 14px;
    border: 1px dashed #d3dae6;
    border-radius: 8px;
    background: #f8fafc;
    color: #60758b;
    font-weight: 600;
}

.wo-team-empty {
    grid-column: 1 / -1;
}

.wo-team-note {
    margin-top: 12px;
    font-size: 13px;
}

.wo-team-search-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.wo-team-crew-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) minmax(220px, .85fr) auto;
    gap: 12px;
    align-items: end;
}

.wo-team-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.wo-team-field-label {
    margin: 0;
    color: #3f5368;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.wo-team-crew-picker .dropdown {
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    background: #ffffff;
}

.wo-team-crew-picker .dropdown:focus-within {
    border-color: #6aa3e8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.wo-team-crew-picker .dropdown-list {
    max-height: 260px;
    border-color: #cbd6e2;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 14px 30px rgba(20, 44, 67, 0.14);
}

.wo-team-crew-picker .dropdown-search-input {
    min-height: 36px;
    padding: 8px 12px;
    color: #1d334a;
    font-size: 14px;
}

.wo-team-crew-picker .dropdown-item {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    color: #1d334a;
    text-align: left;
}

.wo-team-crew-picker .dropdown-item:last-child {
    border-bottom: 0;
}

.wo-team-crew-picker .dropdown-item:hover,
.wo-team-crew-picker .dropdown-item:focus {
    background: #eef6fc;
    outline: none;
}

.wo-team-crew-picker .dropdown-item.is-selected {
    background: #eaf3ff;
}

.wo-team-crew-picker .dropdown-item strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.25;
}

.wo-team-crew-picker .dropdown-item small {
    color: #60758b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.wo-team-crew-picker .wo-team-crew-create {
    border-bottom-color: #d8e8f7;
    background: #f6fbff;
}

.wo-team-crew-picker .wo-team-crew-create strong {
    color: #1f5f99;
}

.wo-team-crew-picker .dropdown-item.is-disabled,
.wo-team-crew-picker .dropdown-item:disabled {
    background: #f8fafc;
    color: #71869b;
    cursor: default;
}

.wo-team-crew-save {
    min-width: 158px;
    min-height: 36px;
}

.wo-team-date-row {
    display: grid;
    grid-template-columns: 44px minmax(180px, 260px) 44px;
    gap: 10px;
    align-items: center;
}

.wo-team-date-step {
    min-width: 44px;
    min-height: 36px;
    padding-left: 0;
    padding-right: 0;
    font-weight: 700;
}

.wo-team-date-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    background: #fff8e5;
    color: #6b4f00;
    font-weight: 600;
}

.wo-team-bulk-alert {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .wo-bulk-targets__item {
        display: grid;
    }

    .wo-bulk-targets__badge {
        justify-self: start;
    }

    .wo-team-search-row,
    .wo-team-crew-controls {
        grid-template-columns: 1fr;
    }

    .wo-team-crew-save {
        width: 100%;
    }

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

@media (max-width: 520px) {
    .wo-team-member-grid {
        grid-template-columns: 1fr;
    }
}

.core-modal-body--documents [data-doc-rendered-editor] {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.35;
    color: #111;
}

.core-modal-body--documents [data-doc-rendered-editor] p {
    margin: 0 0 6px;
    line-height: 1.35;
}

.core-modal-body--documents [data-doc-rendered-editor] table {
    border-collapse: collapse;
    border-spacing: 0;
}

.core-modal-body--documents [data-doc-rendered-editor] table td,
.core-modal-body--documents [data-doc-rendered-editor] table th,
.core-modal-body--documents [data-doc-rendered-editor] .table > tbody > tr > td,
.core-modal-body--documents [data-doc-rendered-editor] .table > tbody > tr > th,
.core-modal-body--documents [data-doc-rendered-editor] .table > thead > tr > td,
.core-modal-body--documents [data-doc-rendered-editor] .table > thead > tr > th,
.core-modal-body--documents [data-doc-rendered-editor] .table > tfoot > tr > td,
.core-modal-body--documents [data-doc-rendered-editor] .table > tfoot > tr > th {
    padding: 0;
    vertical-align: top;
    line-height: 1.35;
}

.core-modal-body--documents [data-doc-rendered-editor] table p {
    margin: 0;
}

.sync-audit-view {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #1f2933;
}

.sync-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.sync-audit-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60758b;
}

.sync-audit-title {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 700;
    color: #17293d;
}

.sync-audit-subtitle {
    margin-top: 6px;
    max-width: 920px;
    color: #5f7285;
    line-height: 1.45;
}

.sync-audit-status-badge,
.sync-audit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d7dee8;
    white-space: nowrap;
}

.sync-audit-status-badge,
.sync-audit-badge--neutral {
    background: #eef3f8;
    color: #465b70;
}

.sync-audit-badge--success {
    background: #e8f7ec;
    color: #236a38;
    border-color: #c9e7d1;
}

.sync-audit-badge--error {
    background: #fde8e7;
    color: #ab2f2f;
    border-color: #f3c4c2;
}

.sync-audit-badge--warn {
    background: #fff3de;
    color: #8a5d0a;
    border-color: #f2ddb0;
}

.sync-audit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.sync-audit-summary-card,
.sync-audit-batch-card,
.sync-audit-panel {
    background: #ffffff;
    border: 1px solid #d5dce6;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.sync-audit-summary-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 112px;
    padding: 14px 16px;
}

.sync-audit-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6a7d90;
}

.sync-audit-value {
    margin-top: 2px;
    color: #1d334a;
    font-weight: 700;
    line-height: 1.4;
}

.sync-audit-summary-card .sync-audit-value {
    font-size: 21px;
}

.sync-audit-summary-subvalue,
.sync-audit-muted {
    color: #66788b;
    font-size: 12px;
}

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

.sync-audit-panel {
    padding: 16px;
}

.sync-audit-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.sync-audit-panel-title {
    margin: 0;
    font-size: 20px;
    color: #1d334a;
}

.sync-audit-panel-copy {
    margin: 4px 0 0;
    color: #617588;
    line-height: 1.45;
}

.sync-audit-panel-meta {
    color: #617588;
    font-weight: 700;
    white-space: nowrap;
}

.sync-audit-batch-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-audit-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.sync-audit-more-button[hidden] {
    display: none !important;
}

.sync-audit-batch-card {
    padding: 14px;
}

.sync-audit-batch-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.sync-audit-batch-title {
    font-size: 16px;
    font-weight: 700;
    color: #1c3147;
}

.sync-audit-batch-subtitle {
    margin-top: 4px;
    color: #617588;
    font-size: 12px;
}

.sync-audit-batch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.sync-audit-batch-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4f1;
    color: #9f362a;
    font-weight: 600;
}

.sync-audit-table-wrap {
    overflow: auto;
    border: 1px solid #d9e1ea;
    border-radius: 12px;
    background: #fff;
}

.sync-audit-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.sync-audit-table th,
.sync-audit-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e3e8ef;
    vertical-align: top;
}

.sync-audit-table th {
    position: sticky;
    top: 0;
    background: #f6f8fc;
    color: #32455f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.sync-audit-table tr:last-child td {
    border-bottom: 0;
}

.sync-audit-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.sync-audit-change-cell {
    min-width: 320px;
}

.sync-audit-change-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.sync-audit-change-label {
    color: #637688;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sync-audit-detail summary {
    cursor: pointer;
    color: #24507a;
    font-weight: 700;
}

.sync-audit-detail pre {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid #dde5ee;
    border-radius: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #21364b;
    font-size: 12px;
}

.sync-audit-empty,
.sync-audit-empty-row td {
    padding: 18px;
    color: #60758b;
    font-weight: 700;
}

.sync-audit-resolution-boundary {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #d8e3ed;
    border-radius: 10px;
    background: #f7fafc;
}

.sync-audit-resolution-controls {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.sync-audit-resolution-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sync-audit-resolution-controls textarea {
    min-width: 250px;
    resize: vertical;
}

.offline-operation-review-search {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(260px, 1fr) minmax(150px, 0.55fr) minmax(180px, 0.65fr) auto;
    gap: 12px;
    align-items: end;
}

.offline-operation-review-search__field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #40566d;
    font-size: 12px;
    font-weight: 700;
}

.offline-operation-review-search textarea {
    resize: vertical;
}

.offline-operation-review-message {
    min-height: 18px;
}

.offline-operation-review-table {
    min-width: 1320px;
}

.sync-audit-reference {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.offline-operation-review-detail {
    display: grid;
    gap: 16px;
    padding-top: 4px;
}

.offline-operation-review-detail__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #cdd9e5;
    border-radius: 14px;
    background: #f5f9fc;
}

.offline-operation-review-dependencies {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 22px;
    color: #40566d;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .sync-audit-layout {
        grid-template-columns: 1fr;
    }

    .offline-operation-review-search {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .offline-operation-review-search {
        grid-template-columns: 1fr;
    }

    .offline-operation-review-detail__head {
        flex-direction: column;
    }
}

.progression-modal {
    color: #1f2933;
}

.progression-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.progression-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #607286;
    margin-bottom: 4px;
}

.progression-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3149;
}

.progression-subtitle {
    margin-top: 8px;
    color: #5a6d81;
    font-size: 13px;
    max-width: 900px;
}

.progression-status-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eaf2fa;
    color: #21415f;
    font-weight: 700;
    white-space: nowrap;
}

.progression-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.progression-summary-card {
    background: #ffffff;
    border: 1px solid #d6dde6;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.progression-summary-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #61758a;
}

.progression-summary-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #203247;
}

.progression-summary-subvalue {
    display: block;
    margin-top: 6px;
    color: #5b6d80;
    font-size: 12px;
    line-height: 1.45;
}

.progression-layout {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(560px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.progression-panel {
    background: #ffffff;
    border: 1px solid #d5dce6;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.progression-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.progression-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #203247;
}

.progression-panel-copy {
    margin: 6px 0 0 0;
    color: #5b6d80;
    font-size: 13px;
}

.progression-scale-inline,
.progression-ledger-count {
    color: #5b6d80;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.progression-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.progression-legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #42576d;
    font-size: 12px;
    font-weight: 700;
}

.progression-legend-chip--status {
    background: #e3ecf7;
}

.progression-legend-chip--hold {
    background: #e5f0ea;
}

.progression-legend-chip--adjustment {
    background: #eef0ff;
}

.progression-legend-chip--reversal {
    background: #fce9e8;
}

.progression-lane + .progression-lane {
    margin-top: 16px;
}

.progression-lane {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.progression-lane-title {
    font-size: 15px;
    font-weight: 700;
    color: #203247;
}

.progression-lane-meta {
    margin-top: 6px;
    color: #5b6d80;
    font-size: 12px;
    line-height: 1.45;
}

.progression-track-wrap {
    min-width: 0;
}

.progression-track {
    position: relative;
    min-height: 44px;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fbfd 0%, #eef3f7 100%);
    overflow: hidden;
}

.progression-track--holds {
    background: linear-gradient(180deg, #f6faf7 0%, #eaf2ed 100%);
}

.progression-track--markers {
    background: linear-gradient(180deg, #fbfbfe 0%, #f0f2f9 100%);
}

.progression-track-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 44px;
    padding: 0 18px;
    color: #61758a;
    font-size: 12px;
    text-align: center;
}

.progression-segment {
    position: absolute;
    top: 8px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.progression-segment-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.progression-segment--status-planned {
    background: linear-gradient(90deg, #33404c 0%, #415260 100%);
}

.progression-segment--status-assigned {
    background: linear-gradient(90deg, #53697e 0%, #627b91 100%);
}

.progression-segment--status-active {
    background: linear-gradient(90deg, #4b86ab 0%, #68a4c8 100%);
}

.progression-segment--status-review {
    background: linear-gradient(90deg, #6aafe0 0%, #8ac6f0 100%);
}

.progression-segment--status-close {
    background: linear-gradient(90deg, #bb4747 0%, #d06666 100%);
}

.progression-segment--status-closed {
    background: linear-gradient(90deg, #4c816f 0%, #5e9a86 100%);
}

.progression-segment--manual-hold {
    background: linear-gradient(90deg, #896e3b 0%, #a88849 100%);
}

.progression-segment--status-hold {
    background: linear-gradient(90deg, #7b6a2e 0%, #9c8737 100%);
}

.progression-segment--active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.progression-segment--reversed {
    opacity: 0.45;
    border: 1px dashed rgba(71, 85, 105, 0.7);
}

.progression-marker {
    position: absolute;
    top: 8px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(31, 41, 51, 0.14);
}

.progression-marker--start {
    background: #3555d0;
}

.progression-marker--finish {
    background: #c0392b;
}

.progression-marker--reversed {
    opacity: 0.45;
}

.progression-scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #607286;
    font-size: 12px;
    font-weight: 700;
}

.progression-table-wrap {
    overflow: auto;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #ffffff;
}

.progression-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.progression-table th {
    padding: 11px 12px;
    background: #f0f5fa;
    border-bottom: 1px solid #d9e2ec;
    color: #50657b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.progression-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    color: #24384d;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.progression-table tbody tr:last-child td {
    border-bottom: none;
}

.progression-table-reason {
    white-space: pre-line;
}

.progression-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.progression-event-badge--created {
    background: #eaf1f8;
    color: #2b4a67;
}

.progression-event-badge--status {
    background: #dce8f7;
    color: #234868;
}

.progression-event-badge--hold {
    background: #e7f0e7;
    color: #2d5f36;
}

.progression-event-badge--adjustment {
    background: #eceefe;
    color: #3748a6;
}

.progression-event-badge--reversal {
    background: #fdecea;
    color: #9f2d2d;
}

.progression-empty-row td {
    text-align: center;
    background: #fafbfd;
    color: #61758a;
}

.core-modal-shell--review .core-modal-body {
    min-height: 0;
}

@media (max-width: 1200px) {
    .progression-layout {
        grid-template-columns: 1fr;
    }

    .progression-lane {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .wo-documents-header,
    .progression-header,
    .progression-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.manual-adjustment-modal {
    color: #1f2933;
}

.manual-adjustment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.manual-adjustment-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c8f;
    margin-bottom: 4px;
}

.manual-adjustment-workorder {
    font-size: 24px;
    font-weight: 700;
    color: #203247;
}

.manual-adjustment-subtitle {
    margin-top: 6px;
    color: #5b6b7c;
    font-size: 13px;
}

.manual-adjustment-status-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4fa;
    color: #274766;
    font-weight: 700;
    white-space: nowrap;
}

.manual-adjustment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.manual-adjustment-summary-card {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.manual-adjustment-summary-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7c8f;
    margin-bottom: 6px;
}

.manual-adjustment-summary-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1f2933;
}

.manual-adjustment-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(620px, 1.35fr);
    gap: 18px;
    align-items: start;
}

.manual-adjustment-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual-adjustment-panel {
    background: #ffffff;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.manual-adjustment-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #203247;
}

.manual-adjustment-panel-copy {
    margin: 6px 0 0 0;
    color: #5b6b7c;
    font-size: 13px;
}

.manual-adjustment-form-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.manual-adjustment-form-grid--timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.manual-adjustment-field {
    min-width: 0;
}

.manual-adjustment-field--full {
    grid-column: 1 / -1;
}

.manual-adjustment-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #203247;
}

.manual-adjustment-required {
    color: #b00020;
}

.manual-adjustment-static {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d5dde7;
    border-radius: 8px;
    background: #f7fafc;
    color: #32475b;
    font-weight: 600;
}

.manual-adjustment-input,
.manual-adjustment-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c7d2de;
    border-radius: 8px;
    color: #203247;
    background: #ffffff;
}

.manual-adjustment-input:focus,
.manual-adjustment-textarea:focus {
    outline: none;
    border-color: #5f8ec0;
    box-shadow: 0 0 0 3px rgba(95, 142, 192, 0.14);
}

.manual-adjustment-textarea {
    resize: vertical;
    min-height: 104px;
}

.manual-adjustment-inline-error {
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 4px solid #b42318;
    border-radius: 6px;
    background: #fff2f1;
    color: #8f1d1d;
    font-size: 13px;
}

.manual-adjustment-inline-error[hidden] {
    display: none !important;
}

.manual-adjustment-helper {
    margin-top: 6px;
    color: #637181;
    font-size: 12px;
}

.manual-adjustment-meta {
    margin-top: 8px;
    color: #667;
    font-size: 12px;
}

.manual-adjustment-visual {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    background: #f7fafc;
}

.manual-adjustment-visual-row + .manual-adjustment-visual-row {
    margin-top: 14px;
}

.manual-adjustment-visual-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 6px;
}

.manual-adjustment-visual-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5d6f82;
}

.manual-adjustment-visual-span {
    font-size: 13px;
    font-weight: 600;
    color: #24384d;
    text-align: right;
}

.manual-adjustment-visual-track {
    height: 18px;
    border-radius: 999px;
    background: #dfe6ed;
    overflow: hidden;
}

.manual-adjustment-visual-bar {
    height: 100%;
    border-radius: 999px;
}

.manual-adjustment-visual-bar--original {
    width: 100%;
    background: linear-gradient(90deg, #809fbe 0%, #5a7895 100%);
}

.manual-adjustment-visual-bar--effective {
    width: 100%;
    background: linear-gradient(90deg, #7dc4e3 0%, #4d9e5d 100%);
}

.manual-adjustment-visual-bar--changed {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.68);
}

.manual-adjustment-marker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.manual-adjustment-marker {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf1f8;
    color: #3c556e;
    font-size: 12px;
    font-weight: 700;
}

.manual-adjustment-table-wrap {
    margin-top: 14px;
    overflow: auto;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #ffffff;
}

.manual-adjustment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.manual-adjustment-table th {
    padding: 11px 12px;
    background: #f0f5fa;
    border-bottom: 1px solid #d9e2ec;
    color: #50657b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.manual-adjustment-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    color: #24384d;
    line-height: 1.45;
}

.manual-adjustment-table tbody tr:last-child td {
    border-bottom: none;
}

.manual-adjustment-type {
    font-weight: 700;
    color: #203247;
}

.manual-adjustment-muted {
    color: #6b7280;
}

.manual-adjustment-reason {
    min-width: 220px;
    max-width: 380px;
    color: #1f2933;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.manual-adjustment-action-cell {
    text-align: right;
    white-space: nowrap;
}

.manual-adjustment-add-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

.manual-adjustment-table th:nth-child(1),
.manual-adjustment-table td:nth-child(1) {
    width: 22%;
}

.manual-adjustment-table th:nth-child(2),
.manual-adjustment-table td:nth-child(2),
.manual-adjustment-table th:nth-child(3),
.manual-adjustment-table td:nth-child(3) {
    width: 15%;
}

.manual-adjustment-table th:nth-child(4),
.manual-adjustment-table td:nth-child(4) {
    width: 10%;
}

.manual-adjustment-table th:nth-child(5),
.manual-adjustment-table td:nth-child(5) {
    width: 26%;
}

.manual-adjustment-table th:nth-child(6),
.manual-adjustment-table td:nth-child(6) {
    width: 12%;
}

.manual-adjustment-empty-row td {
    padding: 18px 14px;
    background: #fafbfd;
    color: #667;
    text-align: center;
}

@media (max-width: 1180px) {
    .manual-adjustment-layout {
        grid-template-columns: 1fr;
    }

    .core-modal-body {
        padding: 18px 20px;
    }

    .manual-adjustment-panel {
        padding: 14px 16px;
    }

    .manual-adjustment-table th {
        padding: 10px 10px;
        font-size: 11px;
    }

    .manual-adjustment-table td {
        padding: 10px;
        font-size: 12px;
    }

    .manual-adjustment-reason {
        min-width: 180px;
        max-width: 300px;
    }
}

@media (max-width: 860px) {
    .manual-adjustment-form-grid--timeline,
    .manual-adjustment-form-grid--adjustment {
        grid-template-columns: 1fr;
    }

    .manual-adjustment-header,
    .manual-adjustment-visual-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .core-modal-footer {
        flex-wrap: wrap;
    }

    .core-modal-footer .btn {
        min-width: 0;
        flex: 1 1 180px;
    }
}





.trak-permissions-group {
    padding-bottom: 16px;
}

.trak-permissions-item {
    padding-bottom: 8px;
}

.trak-permissions-checkbox {
    margin: 0;
}

.trak-permissions-label {
    display: block;
}

.trak-permissions-description {
    padding-left: 22px;
    color: #647a70;
    font-size: 12px;
}

.trak-permissions-empty {
    color: #647a70;
    padding-top: 12px;
}

.popup_overlay {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: auto;
    height: auto;
    padding: 16px;
    overflow: auto;
    background-color: rgba(255,255,255,0.0);
    z-index: var(--trak-z-popup, 11000);
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.popup_overlay_view {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    min-height: 0;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background-color: #fafafa;
    padding: 16px;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    z-index: 1;
    pointer-events: auto;
}

.popup_overlay_body{
    text-align: left;
    margin-top: 0;
    max-width: 100%;
    z-index: 1;
    overflow-wrap: anywhere;
    white-space: pre-line;
    color: #19364f;
    font-size: 14px;
    line-height: 1.4;
}

.popup_overlay_view .btn {
    position: static;
    width: auto;
    max-width: 100%;
}

#popup .popup-action--close {
    align-self: flex-end;
    min-width: 96px;
}

#popup_error.popup_overlay {
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#popup_error .popup_overlay_view {
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(500px, calc(100vw - 32px));
    min-height: 220px;
    padding: 24px 20px;
}

#popup_error .popup_overlay_body {
    text-align: center;
}

.popup-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.trak-image-modal {
    position: fixed;
    z-index: var(--trak-z-modal, 9000);
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
    .modal_overlay.modal,
    .core-modal-overlay {
        padding: 10px 0;
    }

    .modal_overlay_view,
    .core-modal-shell {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        margin: 0 auto;
        border-radius: 8px;
    }

    .modal_overlay_body,
    .core-modal-body {
        padding: 14px;
    }

    .modal_overlay_view .modal-footer,
    .core-modal-footer {
        padding: 12px 14px;
    }

    .modal_overlay_view .modal-footer .btn,
    .core-modal-footer .btn,
    .popup_overlay_view .btn {
        width: 100%;
        min-width: 0;
    }

    .popup_overlay {
        padding: 10px;
        justify-content: center;
    }

    .popup_overlay_view {
        width: calc(100vw - 20px);
        min-height: 0;
        padding: 18px 14px;
    }

    #popup .popup-action--close {
        align-self: stretch;
        width: 100%;
    }

    #popup_error .popup_overlay_view {
        width: calc(100vw - 20px);
        min-height: 0;
        padding: 18px 14px;
    }
}

.trak-image-modal__close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.trak-image-modal__content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.trak-offline-issue-card__attempt {
  margin: .75rem 0 .15rem;
  color: #172b3e;
}

.trak-offline-issue-card__attempt-reference {
  margin: 0 0 .75rem;
  color: #5d6b78;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.trak-workorder-offline-review-banner {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e6aa35;
  border-left-width: .4rem;
  border-radius: .5rem;
  background: #fff8e8;
  color: #172b3e;
}

.trak-workorder-offline-review-banner h2 {
  margin: 0 0 .65rem;
  font-size: 1.15rem;
}

.trak-workorder-offline-review-banner p {
  margin: .35rem 0;
}

.trak-workorder-offline-review-banner__reference {
  color: #5d6b78;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.trak-workorder-offline-review-banner .btn {
  margin-top: .65rem;
}

.trak-workorder-offline-review-target {
  border-radius: .4rem;
  outline: .2rem solid rgba(230, 170, 53, .45);
  outline-offset: .25rem;
}

/* Asset Pre-Start choices, shared by the operator form and builder preview. */
.pbv-asset-checklist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
}

.pbv-asset-checklist-question {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pbv-asset-checklist-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pbv-asset-checklist-choices label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 76px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #b8c6d3;
  border-radius: 6px;
  background: #fff;
  color: #243d50;
  font-weight: 600;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.pbv-asset-checklist-choices input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  accent-color: #245b83;
}

.pbv-asset-checklist-choices label:has(input:checked) {
  border-color: #245b83;
  background: #edf5fc;
}

.pbv-asset-checklist-choices label:has(input:focus-visible) {
  outline: 2px solid #245b83;
  outline-offset: 2px;
}

.pbv-asset-checklist-hint,
.pbv-asset-checklist-failure,
.pbv-asset-checklist-row .pbv-open-control-warning {
  grid-column: 1 / -1;
}

.pbv-asset-checklist-hint {
  color: #526477;
  font-size: 12px;
}

.pbv-asset-checklist-failure {
  padding: 8px 10px;
  border-left: 3px solid #b42318;
  border-radius: 4px;
  background: #fff0ee;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pbv-asset-checklist-hint:empty,
.pbv-asset-checklist-failure:empty {
  display: none;
}

.pbv-asset-checklist-row.is-failed,
.pbv-asset-checklist-row.is-failed label:has(input:checked) {
  border-color: #b42318;
}

@media (max-width: 600px) {
  .pbv-asset-checklist-row { grid-template-columns: minmax(0, 1fr); }
  .pbv-asset-checklist-choices label { flex: 1 1 76px; min-width: 0; }
}

/* Independent closeout sections keep input responsive while server data loads. */
.wo-closeout-tabs {display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #ccd4dc;padding:0 0 8px;margin-bottom:14px;}
.wo-closeout-tab {flex:1 1 110px;padding:12px 14px;border:1px solid transparent;border-radius:4px;background:#eef1f4;color:#334b60;font-weight:600;}
.wo-closeout-tab[aria-selected="true"] {background:#fff;border-color:#bbc7d3;color:#142f47;box-shadow:inset 0 -3px #347bd1;}
.wo-closeout-tab:disabled {opacity:.5;cursor:not-allowed;}
.wo-closeout-tab:focus-visible {outline:3px solid #347bd1;outline-offset:2px;}
.wo-closeout-panel[hidden] {display:none;}
.wo-closeout-panel {min-height:240px;}
.wo-closeout-loading {display:flex;align-items:center;justify-content:center;gap:10px;padding:24px;color:#53677a;}
.wo-closeout-spinner {display:inline-block;width:20px;height:20px;border:3px solid #d7e0e9;border-top-color:#347bd1;border-radius:50%;animation:wo-closeout-spin .8s linear infinite;}
@keyframes wo-closeout-spin {to{transform:rotate(360deg)}}
.wo-closeout-placeholder,.wo-closeout-card {padding:16px;margin-bottom:12px;border:1px solid #d7e0e9;border-radius:6px;background:#fff;overflow-wrap:anywhere;}
.wo-closeout-photo-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;}
.wo-closeout-photo-grid .wo-closeout-placeholder,.wo-closeout-photo-preview {min-height:220px;display:grid;place-items:center;background:#f5f7fa;}
.wo-closeout-photo-preview img {width:100%;height:240px;object-fit:contain;}
.wo-closeout-provenance {font-size:.9em;color:#657488;}
.wo-closeout-text {white-space:pre-wrap;}
.wo-closeout-error {padding:12px;border:1px solid #df9d9d;background:#fff4f4;color:#852d37;}
.wo-closeout-status:empty {display:none;}
.wo-closeout-status {margin-bottom:12px;}
.wo-closeout-card table {display:block;overflow-x:auto;}
@media (prefers-reduced-motion:reduce) {.wo-closeout-spinner{animation:none;}}
