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

.rpt-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, 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: 1;
    min-width: 0;
}

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

.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 {
    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: var(--primary-color, #ff0000);
}

.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: 600;
    color: #111827;
    background-color: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

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

/* Clear button */
.rpt-clear-btn {
    height: 36px;
    padding: 0 16px;
    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 {
    background-color: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
}

/* 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 #e5e7eb;
    border-radius: 6px;
    overflow-x: auto;
    box-sizing: border-box;
}

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

.rpt-table th {
    background-color: #ffffff;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    white-space: nowrap;
    height: 44px;
    box-sizing: border-box;
}

.rpt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1a1a1a;
    text-align: left;
    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;
}