/* One-Pager landing page — scoped to /opr; does not rewrite global FDS styles. */
@font-face { font-family: "OPR Interface"; src: url("../assets/fonts/Inter-normal-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OPR Interface"; src: url("../assets/fonts/Inter-normal-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

.opr-page.fds-page-shell,
.fds-page-shell.opr-page {
    --opr-gold: #FFC904;
    --opr-ink: #1a1f2e;
    --opr-muted: #6b7280;
    --opr-line: rgba(26, 31, 46, 0.08);
    --opr-card: #ffffff;
    --opr-ground: #f3f4f7;
    --opr-ground-tint: #eef1f6;
    background: #f7f8fa;
    font-family: "OPR Interface", system-ui, sans-serif;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.25rem 0.75rem 2rem;
    box-sizing: border-box;
}

.opr-hero {
    margin-bottom: 1rem;
}

.opr-hero h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.65rem, 2.2vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--opr-ink);
    line-height: 1.15;
}

.opr-hero p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--opr-muted);
}

.opr-card {
    background: var(--opr-card);
    border: 1px solid var(--opr-line);
    border-top: 3px solid var(--opr-gold);
    border-radius: 0;
    box-shadow: none;
    padding: 1.35rem 1.4rem 1.45rem;
}

.opr-card + .opr-card,
.opr-selection-panel + .opr-card {
    margin-top: 1rem;
}

.opr-card-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--opr-ink);
    letter-spacing: -0.01em;
}

.opr-card-lead {
    margin: 0 0 1.15rem;
    font-size: 0.875rem;
    color: var(--opr-muted);
    line-height: 1.4;
}

.opr-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem 1rem;
}

@media (max-width: 680px) {
    .opr-field-grid {
        grid-template-columns: 1fr;
    }
}

.opr-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4b5563;
}

.opr-field .form-select-modern {
    width: 100%;
}

.opr-enable-hint {
    margin-top: 1.1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e5ea;
    color: #596579;
    font-size: 0.875rem;
    line-height: 1.35;
}

.opr-enable-hint.ready {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
    color: #065f46;
}

.opr-plan-note {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.opr-plan-note.info {
    background: #eef6ff;
    color: #164e82;
    border: 1px solid #bfdbfe;
}

.opr-plan-note.warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.opr-plan-note.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.opr-plan-note.muted {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.opr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--opr-line);
}



.opr-actions .btn-primary-modern {
    min-height: 2.55rem;
}

.opr-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.opr-btn-secondary:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

.opr-btn-secondary:disabled,
.opr-btn-secondary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
}



.opr-btn-tertiary {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
    border: none;
    background: transparent;
    color: var(--opr-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.opr-btn-tertiary:hover:not(:disabled) {
    color: var(--opr-ink);
}

.opr-btn-tertiary:disabled,
.opr-btn-tertiary[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    color: #cbd5e1;
}

.opr-bulk-note {
    width: 100%;
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--opr-muted);
}


.opr-recent-card {
    container: opr-recent / inline-size;
}

.opr-recent-intro {
    margin: 0.4rem 0 0;
    color: var(--opr-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.opr-recent-count {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    vertical-align: middle;
}

.opr-recent-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.opr-recent-header .opr-card-title {
    margin-bottom: 0;
}

.opr-recent-clear-confirm {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.opr-recent-clear-text {
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
}

.opr-recent-clear-danger {
    color: #b91c1c;
}

.opr-recent-clear-danger:hover:not(:disabled) {
    color: #7f1d1d;
}

.opr-recent-empty {
    color: var(--opr-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.opr-recent-empty.warning {
    color: #9a3412;
}

.opr-recent-list {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.opr-recent-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 16px;
    color: #667085;
    font-size: 13px;
}
.opr-recent-pagination-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.opr-recent-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    border: 1px solid var(--opr-line);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: #fff;
    min-width: 0;
}

.opr-recent-details {
    min-width: 0;
}

.opr-recent-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.opr-recent-format {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.opr-recent-format.is-bulk {
    background: #fff3c4;
    color: #713f12;
}

.opr-recent-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--opr-ink);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.opr-recent-meta {
    margin: 0.2rem 0 0;
    color: #4b5563;
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.opr-recent-footer {
    display: flex;
    align-items: baseline;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    color: var(--opr-muted);
    font-size: 0.73rem;
    line-height: 1.5;
}

.opr-recent-file {
    min-width: 0;
    max-width: 100%;
}

.opr-recent-file summary {
    cursor: pointer;
    color: #4b5563;
}

.opr-recent-file[open] {
    flex-basis: 100%;
}

.opr-recent-file code {
    display: block;
    margin-top: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: #f8fafc;
    color: #374151;
    font-size: 0.73rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.opr-recent-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.opr-recent-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.opr-recent-actions .opr-btn-secondary {
    padding: 0.5rem 0.75rem;
    min-height: 40px;
    font-size: 0.8rem;
}

.opr-recent-reuse {
    border: 0;
    background: transparent;
    color: #4b5563;
    padding: 0.25rem 0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.opr-recent-reuse:hover {
    color: var(--opr-ink);
    text-decoration: underline;
}

.opr-recent-card :is(button, summary):focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

/* Respond to the card's width, including when it sits inside a narrow iframe. */
@container opr-recent (max-width: 620px) {
    .opr-recent-item {
        grid-template-columns: minmax(0, 1fr);
    }
    .opr-recent-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        border-top: 1px solid #f1f2f4;
        padding-top: 0.75rem;
    }
}

.opr-btn-preview {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a3412;
}

.opr-btn-preview:hover {
    border-color: #d97706;
    background: #ffedd5;
}

.opr-btn-download {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.opr-btn-download:hover {
    border-color: #15803d;
    background: #dcfce7;
}

.opr-bulk-files-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.45);
}

.opr-bulk-files-backdrop.opr-backdrop-embedded {
    bottom: auto;
}

.opr-bulk-files-backdrop.opr-backdrop-embedded .opr-bulk-files-modal {
    max-height: calc(100% - 24px);
}

.opr-bulk-files-modal {
    width: min(860px, 96vw);
    max-height: min(680px, 88vh);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
}

.opr-bulk-files-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--opr-line);
}

.opr-bulk-files-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--opr-ink);
}

.opr-bulk-files-header p {
    margin: 0.25rem 0 0;
    color: var(--opr-muted);
    font-size: 0.82rem;
}

.opr-bulk-files-list {
    overflow: auto;
    padding: 0.5rem 1rem 1rem;
}

.opr-bulk-files-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--opr-line);
}

.opr-bulk-files-main {
    min-width: 0;
}

.opr-bulk-files-main strong,
.opr-bulk-files-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opr-bulk-files-main strong {
    color: var(--opr-ink);
    font-size: 0.86rem;
}

.opr-bulk-files-main span {
    margin-top: 0.2rem;
    color: var(--opr-muted);
    font-size: 0.78rem;
}

.opr-bulk-files-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}

.opr-bulk-files-status.included {
    background: #dcfce7;
    color: #166534;
}

.opr-bulk-files-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.opr-bulk-files-status.cancelled {
    background: #fef3c7;
    color: #92400e;
}

.opr-whats-on-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opr-whats-on-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--opr-line);
}

.opr-whats-on-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.opr-whats-on-list li:first-child {
    padding-top: 0;
}

.opr-whats-on-num {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: #FFC904;
    color: #1a1f2e;
    text-align: center;
}

.opr-whats-on-num::before {
    content: none;
}

.opr-whats-on-body {
    min-width: 0;
    flex: 1;
    /* Align first text line with the optical center of the 24px chip */
    padding-top: 3px;
}

.opr-whats-on-list strong {
    display: block;
    font-size: 0.84rem;
    color: var(--opr-ink);
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.opr-whats-on-body span {
    display: block;
    color: var(--opr-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.opr-alert {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Restrained dashboard layout; all rules remain scoped to the reporting interface. */
.opr-page-inner { width: 100%; min-width: 0; }
.opr-workspace { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.opr-workspace-main, .opr-workspace-aside { min-width: 0; }
.opr-field { min-width: 0; }
.opr-field-dependent { grid-column: 1 / -1; }
.opr-page .form-select-modern { font-size: 13px; min-height: 44px; border-radius: 5px; box-shadow: none; }
.opr-page .opr-actions .btn-primary-modern { background: #ffc904; color: #1a1f2e; border: 1px solid #d8aa00; border-radius: 5px; box-shadow: none; font-weight: 600; }
.opr-page .opr-actions .btn-primary-modern:disabled { background: #f1f3f5; color: #637083; border-color: #dce1e7; opacity: 1; }
.opr-actions-right { width: 100%; padding-top: 12px; border-top: 1px solid var(--opr-line); }
.opr-tools-label { color: #647084; font-size: 12px; margin-right: 4px; }
.opr-report-summary p { font-size: 13px; margin: 8px 0; line-height: 1.6; }
.opr-summary-empty, .opr-summary-coverage { color: #647084; }
.opr-report-summary .opr-summary-state { padding: 9px 11px; background: #f3f5f7; border-radius: 4px; margin: 16px 0; }
.opr-report-summary .is-unavailable { color: #9a3412; background: #fff7ed; }
.opr-report-guide > details { border-top: 1px solid var(--opr-line); margin-top: 14px; padding-top: 14px; }
.opr-report-guide summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.opr-report-guide p { font-size: 12px; line-height: 1.7; margin: 12px 0; color: #596579; }
.opr-report-guide .opr-whats-on-list { margin-top: 16px; }
.opr-page :is(a, button, select, summary):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (max-width: 1050px) {
    .opr-workspace { grid-template-columns: minmax(0, 1fr); }
    .opr-workspace-main, .opr-workspace-aside { display: contents; }
    .opr-configure { order: 0; }
    .opr-report-summary { order: 1; }
    .opr-recent-card { order: 2; }
    .opr-report-guide { order: 3; }
    .opr-workspace .opr-card { margin-top: 0; }
}
@media (max-width: 480px) {
    .fds-page-shell.opr-page { padding: 22px 14px 30px; }
    .opr-card { padding: 18px 16px; }
}

.opr-report-summary .opr-card-title { font-size: 14px; font-weight: 400; }
.opr-selection-rows { margin: 14px 0 0; font-size: 0.86rem; line-height: 1.35; }
.opr-selection-rows > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e9edf2; }
.opr-selection-rows > div:last-child { border-bottom: 0; }
.opr-selection-rows dt { margin: 0; color: #6b7280; font-weight: 700; }
.opr-selection-rows dd { margin: 0; color: #1a1f2e; overflow-wrap: anywhere; }
.opr-selection-rows code { color: inherit; font-size: 0.8rem; overflow-wrap: anywhere; }
