.report-section {
    padding-bottom: 40px;
}

.report-section .report-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, #bc39c5, #41143e 55%, #0b1320 100%);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    margin-bottom: 20px;
}

.report-section .report-hero h2 {
    font-size: 28px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section .report-hero p {
    margin: 0;
    color: rgba(248, 250, 252, 0.75);
}

.report-hero-meta {
    display: grid;
    gap: 12px;
    text-align: right;
}

.report-meta-item {
    
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.report-meta-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.7);
}

.report-meta-item span:last-child {
    font-size: 14px;
    font-weight: 600;
}

.report-filter-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.report-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.report-range-btn {
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-range-btn.active,
.report-range-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.report-filter-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}


.report-filter-custom label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.report-filter-custom input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    min-width: 150px;
}


.report-tabs {
    display: flex;
    gap: 10px;
    margin: 16px 0 10px;
}

.report-tab {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-tab.active {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.report-content {
    display: none;
}

.report-content.active {
    display: block;
}

.report-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.report-panel-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.report-panel-header h3 {
    margin: 0 0 6px;
}

.report-panel-header p {
    margin: 0;
    color: #64748b;
}

.report-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.report-panel-actions select {
    padding: 8px 12px;
    min-width: 200px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
}

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

.report-kpi {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.report-kpi .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.report-kpi .value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.report-kpi .meta {
    font-size: 12px;
    color: #475569;
}

.report-kpi.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.report-kpi.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.report-kpi.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.report-kpi.kpi-breakdown {
    grid-column: span 2;
}

.kpi-breakdown-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.kpi-breakdown-part {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 108px;
}

.kpi-breakdown-part-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
}

.kpi-breakdown-part-label small {
    display: block;
    font-size: 9.5px;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.8;
}

.kpi-breakdown-part-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.kpi-breakdown-part-value.exception {
    color: #b91c1c;
}

.kpi-breakdown-part.total .kpi-breakdown-part-value.total {
    font-size: 20px;
    color: #b45309;
}

.kpi-breakdown-part-count {
    font-size: 10.5px;
    color: #92400e;
    opacity: 0.85;
}

.kpi-breakdown-op {
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
    padding-bottom: 16px;
}

.report-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.report-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.report-card h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #0f172a;
}

.report-card.chart-card canvas {
    cursor: pointer;
}

.chart-card canvas {
    width: 100%;
    min-height: 220px;
}

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

.report-table {
    max-height: 320px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.report-table table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
}

.report-insights {
    display: grid;
    gap: 12px;
    font-size: 13px;
    color: #334155;
}

.report-insight {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.report-admin-badge {
    background: #fef3c7;
    color: #92400e;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    margin-left: 6px;
    font-weight: 700;
}

.report-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.report-status-chip.approved,
.report-status-chip.processed,
.report-status-chip.resolved {
    background: #dcfce7;
    color: #166534;
}

.report-status-chip.pending,
.report-status-chip.open {
    background: #fef3c7;
    color: #92400e;
}

.report-status-chip.rejected,
.report-status-chip.exception {
    background: #fee2e2;
    color: #991b1b;
}

.report-status-chip.in-progress,
.report-status-chip.validation {
    background: #dbeafe;
    color: #1e40af;
}

.report-status-chip.approved-level-1 {
    background: #dcfce7;
    color: #16a34a;
}

.report-status-chip.approved-level-2 {
    background: #86efac;
    color: #14532d;
}

.report-status-chip.on-hold,
.report-status-chip.partially-approved {
    background: #fef3c7;
    color: #92400e;
}

.vendor-log-stacked > div {
    padding: 2px 0;
}

.vendor-log-stacked > div:not(:last-child) {
    border-bottom: 1px dashed #eef1f6;
}

.report-table td {
    vertical-align: top;
}

@media (max-width: 700px) {
    .report-section .report-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-hero-meta {
        text-align: left;
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .report-filter-card {
        align-items: flex-start;
    }

}

/* Dashboard theme alignment */
.report-section {
    padding: 1rem 1rem 2.5rem;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 26rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.report-section .report-hero {
    align-items: center;
    padding: 1.35rem 1.55rem;
    border-radius: 1.4rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 45%, rgba(91, 33, 182, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    color: #eef2ff;
    position: relative;
    overflow: hidden;
}

.report-section .report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.18), transparent 24rem),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07));
    pointer-events: none;
}

.report-section .report-hero > * {
    position: relative;
    z-index: 1;
}

.report-section .report-hero h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.report-section .report-hero p {
    color: rgba(226, 232, 240, 0.82);
}

.report-hero-meta {
    min-width: min(260px, 100%);
}

.report-meta-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 1rem;
}

.report-meta-item .label {
    color: rgba(226, 232, 240, 0.72);
    letter-spacing: 0.12em;
}

.report-filter-card,
.report-panel,
.report-card,
.report-kpi {
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.report-filter-card,
.report-panel,
.report-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.15rem;
}

.report-range-btn,
.report-tab {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
}

.report-range-btn:hover,
.report-tab:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.24);
    color: #1d4ed8;
}

.report-range-btn.active,
.report-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.report-filter-custom label,
.report-panel-header p,
.report-kpi .label,
.report-kpi .meta {
    color: #64748b;
}

.report-filter-custom input,
.report-panel-actions select {
    border-color: rgba(148, 163, 184, 0.36);
    border-radius: 0.75rem;
}

.report-filter-custom input:focus,
.report-panel-actions select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.12);
    outline: none;
}

.report-section .btn-primary,
.report-section .btn-dark {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.report-panel-header h3,
.report-card h4 {
    color: #0f172a;
    font-weight: 700;
}

.report-kpi {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
}

.report-kpi .value {
    color: #0f172a;
    font-weight: 700;
}

.report-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom-color: rgba(148, 163, 184, 0.24);
}

/* Vendor Reports page (monthly + overview PDF reports) */
.vendor-reports-header-card {
    padding: 20px 24px;
    margin-bottom: 20px;
}

.vendor-reports-vendor-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vendor-reports-logo,
.vendor-reports-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.vendor-reports-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 22px;
}

.vendor-reports-vendor-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #0f172a;
}

.vendor-reports-vendor-info .meta {
    color: #64748b;
    font-size: 13px;
}

.vendor-reports-card {
    margin-bottom: 20px;
}

.vendor-reports-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.vendor-reports-status-pill.no-data {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.vendor-reports-status-pill.available {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.vendor-reports-status-pill.draft {
    background: rgba(217, 119, 6, 0.16);
    color: #b45309;
}

.vendor-reports-row-actions {
    display: flex;
    gap: 8px;
}

.vendor-reports-row-actions .btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

.vendor-reports-row-actions .btn.is-disabled,
.vendor-reports-row-actions .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.vendor-reports-draft-row td {
    background: rgba(217, 119, 6, 0.04);
}

.vendor-reports-draft-note-row td {
    padding: 0;
    border-top: none;
}

.vendor-reports-draft-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 4px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 8px;
    color: #92400e;
    font-size: 12.5px;
}

.vendor-reports-draft-note i {
    color: #d97706;
}

.vendor-reports-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vendor-reports-overview-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}

.vendor-reports-overview-actions {
    display: flex;
    gap: 10px;
}

/* Vendor Report PDF viewer modal.
   This app has no Bootstrap CSS loaded (only its JS bundle), so real
   bootstrap.Modal.show() setting inline display:block would fight the
   app's own .modal.show{display:flex} centering rules in root.css. This
   modal is therefore shown/hidden manually (see report.js), and sized here
   with class-scoped selectors so it wins over root.css's generic, much
   smaller .modal-content default (width:800px). */
.vendor-report-pdf-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.vendor-report-pdf-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #eef2f7;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vendor-report-pdf-close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    transform: translateY(-1px);
}

.vendor-report-pdf-toolbar-close {
    margin-left: 0;
}

.vendor-report-pdf-dialog {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.vendor-report-pdf-modal .modal-content {
    width: min(1480px, 96vw);
    max-width: 96vw;
    height: min(94vh, 980px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    /* Without this, a flex column's children default to min-height:auto,
       which lets them grow to fit their content (the PDF canvas) instead
       of honoring flex:1 - breaking overflow:auto below and making any
       "fit to window" size calculation measure the content instead of the
       actual visible viewport. */
    min-height: 0;
}

.vendor-report-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.vendor-report-pdf-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vendor-report-pdf-title-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #7e22ce;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
}

.vendor-report-pdf-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.vendor-report-pdf-header .modal-title {
    max-width: min(880px, 68vw);
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-report-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #dbe4ee;
    background: #f8fafc;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.vendor-report-pdf-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.vendor-report-pdf-toolbar-actions {
    margin-left: auto;
}

.vendor-report-pdf-toolbar .btn {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    box-shadow: none;
}

.vendor-report-pdf-toolbar .btn:hover {
    border-color: #d8b4fe;
    background: #faf5ff;
    color: #7e22ce;
    transform: none;
}

.vendor-report-pdf-toolbar .btn.is-disabled,
.vendor-report-pdf-toolbar .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.vendor-report-pdf-toolbar .btn.active {
    background: #7e22ce;
    border-color: #7e22ce;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(126, 34, 206, 0.18);
}

.vendor-report-pdf-toolbar .btn.btn-dark {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.vendor-report-pdf-toolbar .btn.btn-dark:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.vendor-report-pdf-toolbar span#vendor-report-pdf-page-info,
.vendor-report-pdf-toolbar span#vendor-report-pdf-zoom-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    min-width: 84px;
    text-align: center;
}

.vendor-report-pdf-toolbar-divider {
    width: 1px;
    height: 22px;
    background: rgba(148, 163, 184, 0.32);
}

.vendor-report-pdf-body {
    padding: 0;
    background: #3f464d;
    flex: 1;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}

.vendor-report-pdf-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.vendor-report-pdf-body::-webkit-scrollbar-thumb {
    border: 2px solid #3f464d;
    border-radius: 999px;
    background: #94a3b8;
}

.vendor-report-pdf-body::-webkit-scrollbar-track {
    background: #3f464d;
}

.vendor-report-pdf-canvas-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    box-sizing: border-box;
    gap: 12px;
    padding: 24px;
}

.vendor-report-pdf-body.is-fit-page .vendor-report-pdf-canvas-wrap {
    justify-content: center;
}

.vendor-report-pdf-body.is-fit-width .vendor-report-pdf-canvas-wrap {
    align-items: center;
    justify-content: flex-start;
}

.vendor-report-pdf-canvas-wrap canvas {
    border-radius: 2px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    background: #ffffff;
    display: block;
}

.vendor-report-pdf-canvas-wrap .pdf-loading,
.vendor-report-pdf-canvas-wrap .pdf-error {
    min-width: min(360px, calc(100vw - 80px));
    margin: auto;
    padding: 22px 26px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.48);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

@media (max-width: 900px) {
    .vendor-report-pdf-modal.show {
        padding: 10px;
    }

    .vendor-report-pdf-modal .modal-content {
        width: 98vw;
        max-width: 98vw;
        height: 96vh;
        max-height: 96vh;
        border-radius: 14px;
    }

    .vendor-report-pdf-header {
        padding: 14px 16px;
    }

    .vendor-report-pdf-title-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .vendor-report-pdf-header .modal-title {
        max-width: calc(100vw - 132px);
        font-size: 15px;
    }

    .vendor-report-pdf-toolbar {
        gap: 8px;
        padding: 10px;
    }

    .vendor-report-pdf-toolbar-group,
    .vendor-report-pdf-toolbar-actions {
        margin-left: 0;
    }

    .vendor-report-pdf-toolbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .vendor-report-pdf-canvas-wrap {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .vendor-report-pdf-toolbar-group {
        width: 100%;
        justify-content: center;
    }

    .vendor-report-pdf-toolbar-actions {
        justify-content: stretch;
    }

    .vendor-report-pdf-toolbar-actions .btn {
        flex: 1;
    }
}

/* Vendor Report Share/Email modal - same manual show/hide .modal system as
   the PDF viewer modal above (see its comment for why: this app has no
   Bootstrap CSS loaded, only its JS bundle). */
.vendor-report-share-modal.show {
    display: flex;
}

.vendor-report-share-dialog {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vendor-report-share-modal .modal-content {
    width: min(560px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.vendor-report-share-body {
    padding: 20px;
    overflow-y: auto;
}

.vendor-report-share-info {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.vendor-report-share-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.vendor-report-share-emails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.vendor-report-share-empty {
    font-size: 13px;
    color: #94a3b8;
    padding: 4px;
}

.vendor-report-share-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    font-size: 13px;
    color: #3730a3;
}

.vendor-report-share-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #4338ca;
    cursor: pointer;
    font-size: 11px;
}

.vendor-report-share-chip-remove:hover {
    background: rgba(67, 56, 202, 0.16);
}

.vendor-report-share-add-row {
    display: flex;
    gap: 8px;
}

.vendor-report-share-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.vendor-report-share-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}

.vendor-report-share-status {
    margin-top: 12px;
    font-size: 13px;
    min-height: 18px;
    color: #475569;
}

.vendor-report-share-status.is-success {
    color: #047857;
}

.vendor-report-share-status.is-error {
    color: #b91c1c;
}

.vendor-report-share-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}
