:root {
    --vrs-navy: #082343;
    --vrs-blue: #143f73;
    --vrs-blue-light: #eaf2fb;
    --vrs-gold: #d6b43c;
    --vrs-page-bg: #7f8ba5;
    --vrs-surface: #ffffff;
    --vrs-surface-muted: #f1f4f8;
    --vrs-border: #c8d1dc;
    --vrs-text: #172536;
    --vrs-text-muted: #607083;
    --vrs-danger: #b42318;
    --vrs-text-light: #ffffff;
}

@media print {
    .noprint {
        display: none !important;
    }
}

/* Shared application components migrated from /inc/css/. */
.vrs-card,
.vrs-panel {
    overflow: hidden;
    color: var(--vrs-text);
    background: var(--vrs-surface);
    border: 1px solid var(--vrs-border);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(8, 35, 67, 0.14);
}

.vrs-surface-strong,
.vrs-panel-header {
    color: var(--vrs-text-light);
    background: var(--vrs-navy);
}

.vrs-surface-muted,
.vrs-form-section {
    color: var(--vrs-text);
    background: var(--vrs-surface-muted);
    border: 1px solid var(--vrs-border);
    border-radius: 10px;
    padding: 15px;
}

.vrs-form-dialog {
    width: min(730px, 100%);
    margin: 0 auto;
}

.task-edit-form label {
    margin-left: 7px;
    font-weight: 700;
}

.vrs-form-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.vrs-form-content {
    overflow: hidden;
    padding: 5px;
}

.vrs-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 12px;
    max-width: 300px;
}

.vrs-time-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.vrs-field-value {
    min-height: 30px;
    line-height: 30px;
}

.vrs-upload-line {
    min-height: 32px;
    line-height: 32px;
}

.task-upload-field > label {
    display: block;
    margin-bottom: 8px;
}

.vrs-upload-help {
    margin: -4px 0 10px;
    color: #4c4c4c;
    font-size: 0.82rem;
}

.vrs-upload-queue:empty {
    display: none;
}

.vrs-upload-queue {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.vrs-upload-item {
    display: grid;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #a5a5a5;
    border-radius: 4px;
    background: #dedede;
}

.vrs-upload-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
}

.vrs-upload-name {
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrs-upload-size,
.vrs-upload-status {
    color: #4c4c4c;
    font-size: 0.85rem;
    white-space: nowrap;
}

.vrs-upload-remove {
    padding: 4px 12px;
    border: 1px solid #7d0000;
    border-radius: 4px;
    color: #ffffff;
    background: linear-gradient(#d30000, #800000);
    font-weight: 700;
    line-height: 1.25;
}

.vrs-upload-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    accent-color: #0b9302;
}

.vrs-upload-progress::-webkit-progress-bar {
    background: #b8b8b8;
    border-radius: 4px;
}

.vrs-upload-progress::-webkit-progress-value {
    background: #0b9302;
    border-radius: 4px;
}

.vrs-file-picker {
    position: relative;
    display: inline-block;
}

.vrs-file-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    padding: 7px 16px;
    border: 1px solid #44566c;
    border-radius: 4px;
    color: #ffffff;
    background: #566d89;
    font-weight: 700;
    cursor: pointer;
}

.vrs-file-trigger:hover,
.vrs-file-picker:focus-within .vrs-file-trigger {
    color: #ffffff;
    background: #44566c;
}

.vrs-file-picker:focus-within .vrs-file-trigger {
    outline: 2px solid #082343;
    outline-offset: 2px;
}

.vrs-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.vrs-upload-complete {
    border-color: #0b9302;
}

.vrs-upload-error {
    border-color: #a90000;
}

@media (max-width: 575.98px) {
    .vrs-upload-details {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vrs-upload-size,
    .vrs-upload-status {
        grid-column: 1;
    }

    .vrs-upload-remove {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

.vrs-editor-textarea {
    width: 100%;
    min-height: 90px;
}

.vrs-screenshot {
    display: block;
    max-width: min(800px, 100%);
    height: auto;
}

.vrs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
}

.vrs-panel-title {
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
}

.vrs-panel-body {
    padding: 16px;
}

.vrs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--vrs-text-light);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.vrs-button:hover,
.vrs-button:focus-visible {
    color: var(--vrs-text-light);
    transform: translateY(-1px);
}

.vrs-button-primary {
    background: var(--vrs-blue);
    border-color: var(--vrs-blue);
}

.vrs-button-primary:hover,
.vrs-button-primary:focus-visible {
    background: var(--vrs-navy);
    border-color: var(--vrs-navy);
}

.vrs-button-secondary {
    background: #566579;
    border-color: #566579;
}

.vrs-button-secondary:hover,
.vrs-button-secondary:focus-visible {
    background: #3f4d60;
    border-color: #3f4d60;
}

.vrs-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--vrs-text-light);
    cursor: pointer;
}

.vrs-icon-button-primary {
    background: var(--vrs-blue);
    border-color: var(--vrs-blue);
}

.vrs-clear {
    clear: both;
}

/* Task detail components. */
.task-detail {
    display: grid;
    gap: 8px;
    color: #000000;
    background: #d2d2d2;
}

.task-detail.p-4 {
    padding: 36px !important;
}

.task-detail > .vrs-card {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.task-detail-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 8px 12px;
}

.task-detail-overview-column {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 2px 10px;
    margin: 0;
    color: #000000;
    font-size: 1rem;
    line-height: 1.35;
}

.task-detail-overview-column dt,
.task-detail-overview-column dd {
    margin: 0;
    color: #000000;
    font-weight: 400;
}

.task-panel-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.task-detail-description-block {
    min-height: 0;
    margin-bottom: 0;
}

.task-detail-label {
    margin-bottom: 2px;
    color: #000000;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.task-detail-description {
    color: #000000;
    font-size: 1rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.task-detail-grid {
    display: grid;
    grid-template-columns: 110px minmax(180px, 1fr);
    gap: 2px 10px;
    width: min(100%, 360px);
    margin: 0;
}

.task-detail-grid dt,
.task-detail-grid dd {
    margin: 0;
    color: #000000;
    font-weight: 400;
    line-height: 1.35;
}

.task-party-contact-grid {
    display: grid;
    grid-template-columns: 110px minmax(140px, 1fr);
    gap: 2px 10px;
    margin: 0;
}

.task-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    margin-top: 18px;
    padding: 0 8px 10px;
}

.task-detail-actions .btn {
    flex: 0 1 430px;
    min-height: 38px;
    padding: 2px 12px;
    border: 1px solid #0b9302;
    border-radius: 4px;
    color: #ffffff;
    background: linear-gradient(#0fc502, #0b9302);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 30px;
    text-shadow: 0 1px 1px #333333;
}

.task-detail-actions .btn:first-child:nth-last-child(2),
.task-detail-actions .btn:first-child:nth-last-child(2) ~ .btn {
    flex-basis: calc(50% - 9px);
}

.task-detail-actions .btn:hover,
.task-detail-actions .btn:focus {
    color: #ffffff;
    background: linear-gradient(#0b9302, #087101);
}

.task-detail-actions .btn-danger {
    border-color: #7d0000;
    background: linear-gradient(#d30000, #800000);
}

.task-detail-actions .btn-danger:hover,
.task-detail-actions .btn-danger:focus {
    background: linear-gradient(#a90000, #650000);
}

.task-action-cell {
    width: 1%;
    white-space: nowrap;
}

.vrs-table-group {
    margin-bottom: 20px;
}

.task-detail-panel,
.task-parties-panel,
.task-docs-panel,
.task-notes-panel,
.task-doc-delete-panel {
    width: 100%;
    color: #000000;
    background: #bbbbbb;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.task-detail .vrs-panel-header {
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    background: var(--vrs-navy);
}

.task-detail .vrs-panel-body {
    padding: 8px;
    color: #000000;
    background: #bbbbbb;
}

.task-detail .row {
    margin-right: -8px;
    margin-left: -8px;
    padding: 8px;
    background: #d2d2d2;
}

.task-detail .row > [class*="col-"] {
    padding: 8px;
}

.task-text-action {
    color: var(--vrs-blue);
    text-decoration: underline;
    cursor: pointer;
}

.task-party-list,
.task-note-list {
    display: grid;
    gap: 5px;
}

.task-party,
.task-note,
.task-doc {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #bbbbbb;
}

.task-party-toggle,
.task-note-toggle,
.task-doc-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 28px;
    padding: 3px 6px;
    border: 0;
    color: #000000;
    background: #c8c8c8;
    text-align: left;
    cursor: pointer;
}

.task-party-toggle-icon,
.task-note-toggle-icon {
    width: 18px;
    color: #000000;
    text-align: center;
}

.task-party-role,
.task-note-date {
    color: #000000;
    font-size: 0.85rem;
}

.task-party-name,
.task-note-heading {
    font-weight: 700;
}

.task-party-contact,
.task-note-body,
.task-doc-body {
    padding: 6px;
    color: #000000;
    background: #bbbbbb;
}

.task-party-ext {
    color: #000000;
}

.task-empty-state {
    padding: 8px;
    color: #000000;
    text-align: left;
}

@media (max-width: 767.98px) {
    .task-detail.p-4 {
        padding: 16px !important;
    }

    .task-detail-description-block {
        min-height: 0;
    }

    .task-detail-overview {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .task-detail-actions .btn:first-child:nth-last-child(2),
    .task-detail-actions .btn:first-child:nth-last-child(2) ~ .btn {
        flex-basis: 100%;
    }
}

/* Paid-task report components migrated from pipeline/push-header styles. */
.vrs-report {
    color: var(--vrs-text);
    background: var(--vrs-surface);
    border-radius: 10px;
}

.vrs-report-content {
    padding: 10px 20px;
}

.vrs-report-filter {
    width: min(50%, 520px);
    padding: 15px;
}

.vrs-report-filter-title {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--vrs-text);
    font-weight: 700;
}

.vrs-report-toolbar {
    min-height: 45px;
    margin-inline-end: 0.5rem;
    line-height: 45px;
}

.vrs-report-group-body {
    display: none;
    font-size: 0.75rem;
    text-align: center;
}

.vrs-report-table-header th {
    cursor: default;
}

@media (max-width: 767.98px) {
    .vrs-report-filter {
        width: 100%;
    }
}

.vrs-report-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 7px;
    color: var(--vrs-blue);
    cursor: pointer;
}

.vrs-report-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin-top: 10px;
    padding: 8px 10px;
    color: var(--vrs-text-light);
    background: #566579;
    border-bottom: 1px solid #344155;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.vrs-report-table-header th {
    height: 40px;
    padding: 8px;
    color: var(--vrs-text-light);
    background: var(--vrs-navy);
    border: 1px solid var(--vrs-border);
    font-size: 0.78rem;
    text-align: center;
}

.vrs-report-row td {
    padding: 7px;
    border-bottom: 1px solid var(--vrs-border);
}

.vrs-report-row--alt {
    background: var(--vrs-surface-muted);
}

.vrs-report-summary {
    padding: 8px 10px;
    color: var(--vrs-text-light);
    background: var(--vrs-navy);
    font-weight: 700;
}

@media print {
    .vrs-report {
        color: #000;
        background: #fff;
    }

    .vrs-report-table-header th {
        padding: 3px;
        color: #000;
        background: none;
        border-width: 1px 0;
        border-color: #000;
        white-space: nowrap;
    }
}
