/* ============================================
   IMPORT/EXPORT STYLES
   ============================================ */

.modal-large {
    max-width: 900px;
    width: 90%;
}

.import-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.import-file-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.file-input-label svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-color);
}

.file-input-label span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-info span {
    font-weight: 500;
    color: var(--text-primary);
}

.import-instructions {
    padding: 1rem;
    background: hsl(210, 100%, 97%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.import-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.import-instructions p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.import-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.preview-stats {
    display: flex;
    gap: 1rem;
}

.stat-valid,
.stat-invalid {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-valid {
    background: hsl(142, 76%, 95%);
    color: hsl(142, 76%, 36%);
}

.stat-invalid {
    background: hsl(0, 100%, 97%);
    color: hsl(0, 84%, 60%);
}

.preview-table-container {
    max-height: 400px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.preview-table thead {
    position: sticky;
    top: 0;
    background: var(--surface-color);
    z-index: 1;
}

.preview-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.preview-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.preview-table tr:hover {
    background: var(--hover-bg);
}

.preview-table tr.row-invalid {
    background: hsl(0, 100%, 98%);
}

.preview-table tr.row-invalid td {
    color: hsl(0, 84%, 60%);
}

.preview-errors {
    padding: 1rem;
    background: hsl(0, 100%, 98%);
    border-left: 4px solid hsl(0, 84%, 60%);
    border-radius: 8px;
}

.preview-errors h5 {
    margin: 0 0 0.75rem 0;
    color: hsl(0, 84%, 60%);
    font-size: 1rem;
}

.preview-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.preview-errors li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Button adjustments for import/export */
.clients-header,
.sales-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.clients-filters,
.sales-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Push export button to the right */
.clients-filters #exportClientsBtn,
.sales-filters #exportSalesBtn {
    margin-left: auto;
}