/* Customer Import Page Styles */

.customer-import-page .content-header {
    margin-bottom: 0.25rem;
}

/* Dashboard Button - Fixed Position */
.customer-import-page .dashboard-btn-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #212529;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.customer-import-page .dashboard-btn-corner:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

@media (min-width: 769px) {
    .customer-import-page .dashboard-btn-corner {
        display: none;
    }
}

@media (max-width: 768px) {
    .customer-import-page .dashboard-btn-corner {
        top: 15px;
        right: 15px;
        display: flex;
    }
}

/* Breadcrumb */
.customer-import-page .breadcrumb-nav {
    margin-bottom: 0.5rem;
}

.customer-import-page .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.customer-import-page .breadcrumb-item {
    font-size: 0.75rem;
}

.customer-import-page .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #6c757d;
}

.customer-import-page .breadcrumb-link {
    color: #007bff;
    text-decoration: none;
}

.customer-import-page .breadcrumb-link:hover {
    text-decoration: underline;
}

.customer-import-page .breadcrumb-item.active {
    color: #6c757d;
}

/* Import steps */
.customer-import-page .import-step {
    padding-bottom: 0.5rem;
}

.customer-import-page .file-select-area {
    min-height: 60px;
}

.customer-import-page #merchantSearchContainer #merchantSearch_selectedInfo .selected-merchant-name::before {
    content: attr(data-display);
}

/* Check data tables - full display without scrolling */
.customer-import-page .check-data-table-scroll {
    overflow: visible;
}

.customer-import-page #checkDataIssuesTable thead th,
.customer-import-page #checkDataFullListTable thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 1;
    white-space: nowrap;
}

.customer-import-page .badge-duplicated {
    background-color: #fd7e14;
}

.customer-import-page .badge-missing {
    background-color: #dc3545;
}

.customer-import-page .badge-invalid-prefix {
    background-color: #6f42c1;
}

/* Issues filter bar and actions */
.customer-import-page .issues-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.customer-import-page .issues-filter-select {
    min-width: 150px;
    width: auto;
    flex: 0 0 auto;
}

.customer-import-page .issues-filter-clear {
    color: #6c757d;
    white-space: nowrap;
}

.customer-import-page .issues-filter-clear:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.customer-import-page .issues-cta {
    white-space: nowrap;
}

/* Differentiate duplicate badges */
.customer-import-page .badge-duplicated-same {
    background-color: #0d6efd;
}

.customer-import-page .badge-duplicated-diff {
    background-color: #fd7e14;
}

/* Existing DB value shown in same column as file data (duplicates) */
.customer-import-page .existing-data-inline {
    color: #0d6efd;
    font-size: 0.875em;
}

.customer-import-page .existing-data-row {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
}

.customer-import-page .existing-data-row td {
    padding: 0.25rem 0.5rem;
    border-top: none;
}

.customer-import-page .duplicate-ignore-col {
    width: 70px;
    min-width: 70px;
    text-align: center;
    vertical-align: middle;
}

.customer-import-page #checkDataIssuesTable .form-check-input.ignore-duplicate-cb {
    width: 1.1em;
    height: 1.1em;
    margin: 0;
    cursor: pointer;
}

.customer-import-page #checkDataTablesWrapper h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

/* Ensure buttons are always visible (including when disabled) */
.customer-import-page #browseFileBtn,
.customer-import-page #submitImportBtn {
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.customer-import-page #browseFileBtn:disabled,
.customer-import-page #submitImportBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.customer-import-page #removeFileBtn {
    display: inline-flex;
    align-items: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
}

/* Complete list table: show 10 by default, hide over-limit when collapsed */
.customer-import-page .full-list-table-wrap.collapsed tr.full-list-row--over-limit {
    display: none !important;
}

.customer-import-page .full-list-table-wrap.expanded tr.full-list-row--over-limit {
    display: table-row;
}

.customer-import-page .full-list-actions .btn {
    margin-right: 0.5rem;
}

.customer-import-page .full-list-cta {
    white-space: nowrap;
}

/* Floating collapse button - appears on scroll when table is expanded */
.customer-import-page .full-list-collapse-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.customer-import-page .full-list-collapse-float .btn {
    white-space: nowrap;
}

/* Issues table: show 20 by default, hide over-limit when collapsed */
.customer-import-page .issues-table-wrap.collapsed tr.issues-row--over-limit {
    display: none !important;
}

.customer-import-page .issues-table-wrap.expanded tr.issues-row--over-limit {
    display: table-row;
}

/* Result card styling */
.customer-import-page #resultCard.result-card-success {
    background-color: hsl(154, 100%, 93%);
    border-color: #76ffc4;
}

@media (min-width: 769px) {
    .customer-import-page .full-list-collapse-float {
        right: calc(1.5rem + 2rem);
    }
}
