/* Meditor Partner Price Export */

/* --- Override narrow .container width on this page --- */
.mpe-export-page .container {
    width: 95%;
    max-width: 1400px;
}

.mpe-export-page {
    padding-bottom: 40px;
}

.mpe-intro {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* --- Filters --- */
.mpe-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 16px;
    background: #f5f7fa;
    border-radius: 6px;
}

.mpe-filter-group {
    flex: 1;
    min-width: 180px;
}

.mpe-filter-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.mpe-filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.mpe-filter-group select:focus {
    border-color: #1E3A5F;
    outline: none;
}

/* --- Column checkboxes --- */
.mpe-columns-panel {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.mpe-columns-panel strong {
    margin-right: 12px;
    font-size: 13px;
}

.mpe-columns-panel label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.mpe-columns-panel label.mpe-col-active {
    background: #e8f0fe;
    border-color: #1E3A5F;
    color: #1E3A5F;
    font-weight: 600;
}

.mpe-columns-panel label.mpe-col-inactive {
    color: #999;
}

.mpe-columns-panel input[type="checkbox"] {
    accent-color: #1E3A5F;
}

/* --- Product count --- */
.mpe-product-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

/* --- Export buttons --- */
.mpe-export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: fit-content;
}

.mpe-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    color: #fff;
    text-decoration: none;
}

.mpe-btn:hover {
    opacity: 0.85;
}

.mpe-btn-xlsx {
    background: #217346;
}

.mpe-btn-csv {
    background: #1a73e8;
}

.mpe-btn-pdf {
    background: #d32f2f;
}

.mpe-btn-xml {
    background: #e67e22;
}

/* --- Preview table --- */
.mpe-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.mpe-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mpe-preview-table th[data-col="name"],
.mpe-preview-table td[data-col="name"] {
    min-width: 280px;
    white-space: normal;
}

.mpe-preview-table thead th {
    background: #1E3A5F;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.mpe-preview-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpe-preview-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.mpe-preview-table tbody tr:hover td {
    background: #eef2f7;
}

.mpe-preview-table td a {
    color: #1a73e8;
    text-decoration: none;
}

.mpe-preview-table td a:hover {
    text-decoration: underline;
}

.mpe-empty {
    text-align: center;
    padding: 30px 10px !important;
    color: #999;
    font-style: italic;
}

/* --- Show all --- */
.mpe-show-all {
    text-align: center;
}

.mpe-show-all a {
    color: #1E3A5F;
    font-weight: 600;
    text-decoration: none;
}

.mpe-show-all a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media ( max-width: 768px ) {
    .mpe-filters {
        flex-direction: column;
    }

    .mpe-export-buttons {
        flex-direction: column;
    }

    .mpe-btn {
        justify-content: center;
    }
}
