/* ==================== QBR Dashboard Styles ==================== */

.qbr-dashboard {
    padding: 20px;
    background: linear-gradient(135deg, #104862 0%, #0d3a4d 100%);
    min-height: calc(100vh - 120px);
}

/* ==================== QBR Header ==================== */

.qbr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.qbr-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    font-weight: 300;
}

.qbr-header .btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto;
    flex-shrink: 0;
}

.qbr-header .btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* ==================== QBR Filters ==================== */

.qbr-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qbr-search-container {
    flex: 1;
    position: relative;
}

.qbr-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: white;
}

.qbr-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.qbr-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFBA49;
    box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.2);
}

.qbr-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.qbr-filter-group {
    display: flex;
    gap: 10px;
}

.qbr-filter-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    color: white;
    cursor: pointer;
}

.qbr-filter-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.qbr-filter-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFBA49;
    box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.2);
}

.qbr-filter-select option {
    background: #104862;
    color: white;
}

/* ==================== QBR Table ==================== */

.qbr-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.qbr-table thead {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.qbr-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.qbr-table thead th i {
    margin-left: 5px;
    opacity: 0.6;
}

.qbr-table thead th:hover {
    background: rgba(255, 255, 255, 0.15);
}

.qbr-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.qbr-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.qbr-table tbody td {
    padding: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.qbr-supplier-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.qbr-period {
    color: rgba(255, 255, 255, 0.7);
}

.qbr-scheduled-date {
    color: rgba(255, 255, 255, 0.7);
}

.qbr-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.qbr-actions {
    display: flex;
    gap: 5px;
}

.qbr-list-view .btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: all 0.2s;
}

.qbr-list-view .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.qbr-list-view .btn-icon i {
    font-size: 14px;
}

/* Status Badges */

.qbr-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-draft {
    color: #64b5f6;
}

.status-scheduled {
    background: rgba(255, 170, 0, 0.2);
    color: #ffc966;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.status-cancelled {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
}

/* Stage Badges */

.qbr-stage-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.stage-preparation {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.stage-shared {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.stage-collaborative {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

.stage-finalized {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* Empty State */

.qbr-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-content i {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.empty-state-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin: 0;
}

/* ==================== QBR Editor ==================== */

.qbr-editor-view {
    background: linear-gradient(135deg, #104862 0%, #0d3a4d 100%);
}

/* Container */
.qbr-editor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Glass wrapper */
.qbr-editor-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    overflow: hidden;
}

/* Glass header */
.qbr-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.qbr-editor-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.qbr-editor-title-section h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
}

.qbr-editor-header .qbr-status-badge {
    background: rgba(255, 186, 73, 0.2);
    color: #FFBA49;
    border: 1px solid rgba(255, 186, 73, 0.3);
}

.qbr-editor-actions .btn-group {
    display: flex;
    gap: 10px;
}

/* Glass-style buttons */
.qbr-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px !important;
    min-width: 70px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.qbr-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

.qbr-btn:active,
.qbr-btn:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-color: #FFBA49 !important;
    box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.2) !important;
    outline: none;
    transform: translateY(0);
}

.qbr-btn-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.qbr-btn-text {
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding-top: 5px;
    color: rgba(255, 255, 255, 0.8);
}

/* Export Dropdown */
.qbr-export-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #1a5f7a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
    min-width: 170px;
    overflow: hidden;
}

.qbr-export-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qbr-export-option:hover {
    background: rgba(255, 255, 255, 0.12);
}

.qbr-export-option i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

.qbr-export-option .fa-file-excel {
    color: #28a745;
}

.qbr-export-option .fa-file-pdf {
    color: #dc3545;
}

/* ==================== QBR Sections ==================== */

.qbr-sections-container {
    padding: 10px 0;
}

.qbr-section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.qbr-section-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qbr-section-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.qbr-section-header i {
    margin-right: 10px;
}

.qbr-section-content {
    padding: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.section-text {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.section-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #FFBA49;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.section-note i {
    margin-right: 8px;
    color: #FFBA49;
}

.qbr-editor-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    color: white;
}

.qbr-editor-textarea:focus {
    outline: none;
    border-color: #FFBA49;
    box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.qbr-editor-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Spend Analysis */

.spend-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.spend-metric {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.spend-metric.positive .metric-value {
    color: #66bb6a;
}

.spend-metric.negative .metric-value {
    color: #ef5350;
}

.qbr-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.qbr-data-table thead {
    background: rgba(255, 255, 255, 0.08);
}

.qbr-data-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.qbr-data-table td {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Scorecard Trends Section */

.scorecard-trends-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.trends-table-wrapper {
    flex: 0 0 60%;
    overflow-x: auto;
}

.trends-chart-wrapper {
    flex: 0 0 40%;
    min-width: 300px;
}

.scorecard-trends-table {
    font-size: 13px;
}

.scorecard-trends-table th {
    white-space: nowrap;
    text-align: center;
}

.scorecard-trends-table th:first-child {
    text-align: left;
}

.scorecard-trends-table td {
    text-align: center;
}

.scorecard-trends-table td:first-child {
    text-align: left;
}

.trend-cell {
    font-weight: 600;
}

.trend-cell.positive {
    color: #81c784;
}

.trend-cell.negative {
    color: #ff8888;
}

.trend-cell.stable {
    color: #64b5f6;
}

.trend-icon {
    font-size: 16px;
    margin-right: 4px;
}

/* Responsive - stack on smaller screens */
@media (max-width: 1024px) {
    .scorecard-trends-container {
        flex-direction: column;
    }

    .trends-table-wrapper,
    .trends-chart-wrapper {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Spend Analysis Section */

.spend-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.spend-metric-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spend-metric-card.high {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(239, 83, 80, 0.4);
}

.spend-metric-card.medium {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.4);
}

.metric-value-large {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0;
}

.metric-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.metric-change.increase {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
}

.metric-change.decrease {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.metric-change.stable {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.spend-chart-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spend-chart-container h5 {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .spend-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spend-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Action Items Section */

.action-items-summary {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.ai-stat {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
}

.ai-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 5px;
}

.ai-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.ai-stat.overdue .ai-stat-value {
    color: #ff8888;
}

.action-items-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
    width: 100%;
}

.action-items-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    display: table;
}

.action-items-table thead {
    background: rgba(255, 255, 255, 0.08);
    display: table-header-group;
}

.action-items-table tbody {
    display: table-row-group;
}

.action-items-table tr {
    display: table-row;
}

.action-items-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    display: table-cell;
}

.action-items-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    vertical-align: top;
    display: table-cell;
    color: rgba(255, 255, 255, 0.85);
}

/* Column widths - apply to both th and td */
.action-items-table th:nth-child(1),
.action-items-table td:nth-child(1) {
    width: 40%;
    max-width: 40%;
}

.action-items-table th:nth-child(2),
.action-items-table td:nth-child(2) {
    width: 12%;
    max-width: 12%;
}

.action-items-table th:nth-child(3),
.action-items-table td:nth-child(3) {
    width: 12%;
    max-width: 12%;
}

.action-items-table th:nth-child(4),
.action-items-table td:nth-child(4) {
    width: 16%;
    max-width: 16%;
}

.action-items-table th:nth-child(5),
.action-items-table td:nth-child(5) {
    width: 20%;
    max-width: 20%;
}

.action-item-row {
    cursor: pointer;
    transition: background-color 0.2s;
    height: auto;
}

.action-item-row td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.action-item-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.action-item-row.action-item-overdue {
    background-color: rgba(255, 68, 68, 0.1);
}

.action-item-row.action-item-overdue:hover {
    background-color: rgba(255, 68, 68, 0.15);
}

.action-item-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.action-item-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.qbr-action-status-badge,
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.qbr-action-status-badge.status-open {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.qbr-action-status-badge.status-in-progress {
    background: rgba(255, 170, 0, 0.2);
    color: #ffc966;
}

.qbr-action-status-badge.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.priority-badge.priority-high {
    background: #ffebee;
    color: #d32f2f;
}

.priority-badge.priority-medium {
    background: #fff3e0;
    color: #f57c00;
}

.priority-badge.priority-low {
    background: #f5f5f5;
    color: #757575;
}

.no-items {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 20px;
}

/* Custom Metrics Section */

.custom-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.custom-metric-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.metric-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.metric-value-large {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.metric-trend {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.metric-trend.up {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.metric-trend.down {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
}

.metric-trend.stable {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.metric-target {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Meeting Notes Section */

/* Custom Metrics - Edit Mode */
.custom-metric-card {
    position: relative;
}

.metric-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.custom-metric-card:hover .metric-actions {
    opacity: 1;
}

.qbr-section-content .btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.7);
}

.qbr-section-content .btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.qbr-section-content .btn-icon i {
    font-size: 14px;
}

.add-metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.btn-add-metric {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 20px;
    text-align: center;
    width: 100%;
    height: 100%;
    transition: all 0.2s;
}

.btn-add-metric:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.btn-add-metric i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.btn-add-metric div {
    font-size: 14px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Toast Notifications */
.qbr-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #388e3c;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
}

.qbr-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.qbr-toast i {
    font-size: 20px;
}

/* Meeting Notes Section */
.meeting-notes-section h5 {
    margin: 20px 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
}

.meeting-notes-section h5:first-child {
    margin-top: 0;
}

.agenda-list {
    padding-left: 20px;
}

.agenda-list li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== Wizard Modal ==================== */

.qbr-wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 50px;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wizard-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.wizard-step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    z-index: 1;
    position: relative;
}

.wizard-step.active .step-number {
    background: #104862;
    color: white;
}

.wizard-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 13px;
    color: #999;
    text-align: center;
}

.wizard-step.active .step-label {
    color: #104862;
    font-weight: 600;
}

.wizard-step-content {
    min-height: 250px;
}

.wizard-step-content h6 {
    color: #104862;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.supplier-info-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

.period-suggestion {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.period-validation {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
}

.validation-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qbr-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-label {
    font-weight: 600;
    color: #666;
}

.summary-value {
    color: #333;
}

.generation-progress {
    margin-top: 20px;
}

/* ==================== Sharing Modal ==================== */

.recipient-input-group {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 1024px) {
    .qbr-filters {
        flex-wrap: wrap;
    }

    .qbr-search-container {
        flex: 1 1 100%;
    }

    .qbr-filter-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .qbr-header {
        flex-direction: column;
        gap: 15px;
    }

    .qbr-header .btn-primary {
        width: 100%;
    }

    .qbr-editor-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .qbr-editor-title-section {
        justify-content: center;
    }

    .qbr-editor-actions .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .qbr-btn {
        min-width: 60px;
        padding: 8px 12px !important;
    }

    .qbr-table {
        font-size: 12px;
    }

    .qbr-table thead th,
    .qbr-table tbody td {
        padding: 10px 8px;
    }

    .spend-summary,
    .action-items-summary {
        flex-direction: column;
    }

    .custom-metrics-grid {
        grid-template-columns: 1fr;
    }

    .qbr-wizard-steps {
        padding: 0 20px;
    }

    .step-label {
        font-size: 11px;
    }
}

/* ==================== Print Styles ==================== */

@media print {
    .qbr-header,
    .qbr-filters,
    .qbr-editor-header,
    .btn,
    .qbr-btn {
        display: none !important;
    }

    .qbr-editor-wrapper {
        background: white;
        border: none;
    }

    .qbr-section-card {
        page-break-inside: avoid;
        margin-bottom: 30px;
        background: white;
        border: 1px solid #ddd;
    }

    .qbr-section-header {
        background: #104862 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .qbr-section-content,
    .section-text,
    .action-item-title,
    .qbr-data-table td,
    .action-items-table td {
        color: #333 !important;
    }
}
