/* =============================================
   REPORTS PAGES — PMR Report & Color Wise Price List
   Shared styles for both report pages
   ============================================= */

.rpt-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* ---- Page Header ---- */

.rpt-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rpt-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.rpt-page-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

/* ---- Filter Bar ---- */

.rpt-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 16px;
    box-sizing: border-box;
}

.rpt-filter-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    min-width: 0;
}

.rpt-filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.rpt-filter-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Radio buttons */
.rpt-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.rpt-radio-selected {
    font-weight: 600;
}

/* New radio button styling */
.rpt-radio-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    padding: 0;
    transition: color 0.15s;
}

.rpt-radio-button:hover {
    color: #374151;
}

.rpt-radio-button.rpt-radio-active {
    font-weight: 600;
    color: #111827;
}

.rpt-radio-dot-outer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #ff0000);
    background-color: #ffffff;
    flex-shrink: 0;
    transition: all 0.15s;
}

.rpt-radio-button:not(.rpt-radio-active) .rpt-radio-dot-outer {
    background-color: transparent;
    border: 2px solid #d1d5db;
}

.rpt-radio-dot-inner {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color, #ff0000);
    transition: all 0.15s;
}

.rpt-radio-button:not(.rpt-radio-active) .rpt-radio-dot-inner {
    display: none;
}

/* Select dropdown */
.rpt-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rpt-select-wrapper .filter-select-radzen.rz-dropdown {
    width: 100%;
    height: 36px;
    min-height: 36px;
}

.rpt-select {
    height: 36px;
    width: 120px;
    min-width: 120px;
    padding: 0 24px 0 10px;
    font-size: 12px;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rpt-select:focus {
    outline: none;
    border-color: #9CA3AF;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

.rpt-chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #6b7280;
}

.rpt-chevron svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Generate button */
.rpt-generate-btn {
    height: 36px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 500;
    background-color: #fff;
    border: 1.5px solid #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
    color: #111827;
}

    .rpt-generate-btn:hover {
        background-color: #f9fafb;
    }

/* Clear button */
.rpt-clear-btn {
    height: 36px;
    width: 36px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.rpt-clear-btn:hover {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

/* Date Range Picker Filter */
.rpt-filter-bar .filter-daterange-item {
    position: relative;
    width: 185px;
    min-width: 170px;
    flex-shrink: 0;
}

.rpt-filter-bar .pmr-daterange-input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 12px;
    color: #1f2937;
    padding: 0 28px 0 10px;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.rpt-filter-bar .pmr-daterange-input:hover,
.rpt-filter-bar .pmr-daterange-input:focus {
    outline: none;
    border-color: #9CA3AF;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

.rpt-filter-bar .pmr-daterange-input::placeholder {
    color: #999999;
}

.rpt-filter-bar .pmr-daterange-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Export buttons */
.rpt-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.rpt-export-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.rpt-export-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rpt-export-excel {
    color: #16a34a;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.rpt-export-excel:hover {
    background-color: #d1fae5;
}

.rpt-export-pdf {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.rpt-export-pdf:hover {
    background-color: #fee2e2;
}

/* ---- Table ---- */

.rpt-table-wrapper {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.rpt-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rpt-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.rpt-table-scroll::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.rpt-table-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.rpt-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.rpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 700px;
}

.rpt-table th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: var(--page-bg, #F2F2F2);
    color: #555555 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5ea;
    box-shadow: inset 0 -1px 0 #E2E8F0;
    white-space: nowrap;
    height: 44px;
    box-sizing: border-box;
}

.rpt-table tbody tr {
    transition: background-color 0.15s ease;
}

.rpt-table tbody tr:hover:not(:has(.no-data)):not(:has(td[colspan])) {
    background-color: #F8FAFC !important;
}

.rpt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1a1a1a;
    white-space: nowrap;
    vertical-align: middle;
    height: 50px;
    box-sizing: border-box;
}

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

/* ---- Pagination ---- */

.rpt-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
}

.rpt-pagination-info {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.rpt-pagination-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rpt-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s;
}

.rpt-pg-btn:hover:not(.rpt-pg-active):not(.rpt-pg-disabled) {
    background-color: #f9fafb;
}

.rpt-pg-btn.rpt-pg-active {
    color: #ffffff;
    border-color: transparent;
    /* background-color set inline */
}

.rpt-pg-btn.rpt-pg-disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.rpt-pg-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* =============================================
   COLOR WISE PRICE LIST — header action buttons
   ============================================= */

.cwpl-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cwpl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.cwpl-btn-outline svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    flex-shrink: 0;
}

.cwpl-btn-outline:hover {
    background-color: #f9fafb;
}

.cwpl-btn-primary {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.cwpl-btn-primary:hover {
    opacity: 0.9;
}



/* Report filter bar — Radzen dropdown sizing (smaller than PMR list dropdowns) */
.rpt-filter-bar .filter-item .filter-select-radzen.rz-dropdown {
    min-width: 130px;
    max-width: 150px;
    height: 32px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
}
.rpt-filter-bar .filter-item .filter-select-radzen.rz-dropdown:hover {
    border-color: #9ca3af !important;
}
.rpt-filter-bar .filter-item .filter-select-radzen.rz-dropdown.rz-state-focused,
.rpt-filter-bar .filter-item .filter-select-radzen.rz-dropdown:focus-within {
    border-color: #4b5563 !important;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2) !important;
    outline: none !important;
}
.rpt-filter-bar .filter-item .filter-select-radzen .rz-dropdown-label,
.rpt-filter-bar .filter-item .filter-select-radzen .rz-inputtext {
    font-size: 12px !important;
    line-height: 32px !important;
}
.rpt-filter-bar .filter-item .filter-select-radzen .rz-placeholder {
    font-size: 12px !important;
    color: #9ca3af !important;
}

/* Groups the conditional dropdown + date range picker so the gap between
   them stays tight (8px) regardless of which dropdown is shown. */
.rpt-filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
