.main-import-big-modal .modal-dialog {
    width: 1080px;
    max-width: 1080px;
    margin: 30px auto;
}

/* Smaller modal size for year selector phase - using :has() selector */
.main-import-big-modal .modal-dialog:has(.year-selector-header) {
    width: 400px;
    max-width: 400px;
}

/* Fallback for browsers that don't support :has() - add class via JavaScript */
.main-import-big-modal.year-selector-phase .modal-dialog {
    width: 400px;
    max-width: 400px;
}

.main-import-big-modal .modal-content {
    overflow-x: hidden;
}
.main-import-big-modal .modal-body {
    overflow-x: hidden;
}

/* Year selector dropdown styling */
.main-import-big-modal .year-selector-body .ui-control {
    width: 275px;
}

.main-import-big-modal .year-selector-body .ui-select {
    width: 275px;
}

.main-import-big-modal .year-selector-body .ui-select select {
    width: 275px;
    padding-right: 10px;
    padding-left: 30px;
    direction: rtl;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 12px;
}

/* Fixed header for mainAccountingImport table - scrolling on ng-scope container */
.main-import-big-modal .table-scroll-container {
    position: relative;
    overflow-y: auto;
}

.main-import-big-modal .table-scroll-container .table.table-bordered thead tr th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #118dcf !important;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Button styling for mainAccountingImport - matching inspiration with brightening hover */
.main-import-big-modal .btn-paperless-order {
    background-color: white;
    color: #118dcf;
    border: 1px solid #118dcf;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(75, 137, 219, 0.3);
    font-weight: normal;
}

.main-import-big-modal .btn-paperless-order:hover {
    background-color: #f0f8ff;
    border-color: #118dcf;
    box-shadow: 0 2px 12px rgba(75, 137, 219, 0.4);
    transform: translateY(-1px);
}

.main-import-big-modal .btn-paperless-order:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(75, 137, 219, 0.3);
}

/* Status text styling for mainAccountingImport table - matching 1301 import screen (smaller, different colors) */
.main-import-big-modal .result-text {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    text-align: center;
}

/* Make numbers bold in result text */
.main-import-big-modal .result-text strong {
    font-weight: 700;
}

.main-import-big-modal .result-text.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.main-import-big-modal .result-text.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.main-import-big-modal .result-text.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.main-import-big-modal .result-text.pending {
    background-color: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.main-import-big-modal .result-text.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Category mapping button styling - orange-yellowish color matching inspiration */
.main-import-big-modal .btn-categories-check-small {
    background-color: #ffc107;
    color: #856404;
    border: 1px solid #ffb300;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.main-import-big-modal .btn-categories-check-small:hover {
    background-color: #ffb300;
    border-color: #ffa000;
}

.main-import-big-modal .btn-categories-check-small:active {
    background-color: #ffa000;
}


/* Loading indicator styling */
.main-import-big-modal .loading-indicator {
    color: #007bff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-import-big-modal .loading-indicator i {
    font-size: 16px;
}

/* Table border radius for mainAccountingImport */
.main-import-big-modal .table.table-bordered,
.main-import-big-modal .table.table-bordered.ng-scope {
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0;
}

/* Top-left AND top-right corners: עסק column header */
.main-import-big-modal .table.table-bordered thead tr th:first-child,
.main-import-big-modal .table.table-bordered.ng-scope thead tr th:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Top-left corner: First operation column header (יבוא מפייפרלס ל-6111) - where it touches עסק */
.main-import-big-modal .table.table-bordered thead tr th:nth-child(2),
.main-import-big-modal .table.table-bordered.ng-scope thead tr th:nth-child(2) {
    border-top-right-radius: 10px;
}

/* Top-left corner only: Last operation column header (יבוא 6111 ל1301) */
.main-import-big-modal .table.table-bordered thead tr th:last-child,
.main-import-big-modal .table.table-bordered.ng-scope thead tr th:last-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 0;
}

/* Bottom-left corner: עסק column, last row */
.main-import-big-modal .table.table-bordered tbody tr:last-child td:first-child,
.main-import-big-modal .table.table-bordered.ng-scope tbody tr:last-child td:first-child {
    border-bottom-left-radius: 5px;
}

/* Bottom-right corner: Last operation column, last row */
.main-import-big-modal .table.table-bordered tbody tr:last-child td:last-child,
.main-import-big-modal .table.table-bordered.ng-scope tbody tr:last-child td:last-child {
    border-bottom-right-radius: 5px;
}

/* Spacing between data rows (not between header and first row) - using border-top on cells */
.main-import-big-modal .table.table-bordered tbody tr:not(:first-child) td,
.main-import-big-modal .table.table-bordered.ng-scope tbody tr:not(:first-child) td {
    border-top: 5px solid #f8f9fa !important;
}

/* Ensure first row has normal border */
.main-import-big-modal .table.table-bordered tbody tr:first-child td,
.main-import-big-modal .table.table-bordered.ng-scope tbody tr:first-child td {
    border-top: 1px solid #f5f5f5;
}

/* Inner border color (paler) - borders between cells, not outer border */
.main-import-big-modal .table.table-bordered td,
.main-import-big-modal .table.table-bordered th,
.main-import-big-modal .table.table-bordered.ng-scope td,
.main-import-big-modal .table.table-bordered.ng-scope th {
    border-color: #f5f5f5;
}

/* Outer border set to 0px */
.main-import-big-modal .table.table-bordered,
.main-import-big-modal .table.table-bordered.ng-scope {
    border: 0px solid #dee2e6;
}
.main-import-big-modal.main-import-big-modal-1 .modal-dialog {
    width: 575px;
}
.main-import-big-modal.main-import-big-modal-2 .modal-dialog {
    width: 810px;
}
.main-import-big-modal.main-import-big-modal-3 .modal-dialog {
    width: 1055px;
}

.import-wizard-layout {
    display: flex;
    gap: 20px;
    height: 100%;
    overflow: visible;
}

.import-wizard-layout .operations-panel {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.import-wizard-layout .operations-header {
    background-color: #118dcf;
    color: white;
    padding: 19px 20px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.import-wizard-layout .operations-header h3 {
    margin: 0;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.import-wizard-layout .operations-list {
    padding: 15px;
}

.import-wizard-layout .operation-row {
    padding: 8px 15px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    text-align: right;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.import-wizard-layout .operation-row:last-child {
    border-bottom: none;
}

.import-wizard-layout .business-cards-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
    flex: 1;
    padding: 10px 0px 10px 0px;
}

.import-wizard-layout .business-cards-container::-webkit-scrollbar {
    height: 8px;
}

.import-wizard-layout .business-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.import-wizard-layout .business-cards-container::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

.import-wizard-layout .business-cards-container::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

.import-wizard-layout .business-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 225px;
    max-width: 225px;
    flex-shrink: 0;
    position: relative;
}

.import-wizard-layout .business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.import-wizard-layout .business-card-header {
    background-color: #118dcf;
    color: white;
    padding: 7px 10px 3px 10px;
    text-align: center;
}

.import-wizard-layout .business-card-title {
    margin: 0;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.import-wizard-layout .business-card-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-align: center;
    margin-top: 3px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.import-wizard-layout .business-card-content {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    overflow-y: auto;
    max-height: 345px;
}

.import-wizard-layout .business-card-id {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-size: 0.9em;
    text-align: center;
}

.import-wizard-layout .business-card-id a {
    color: #007bff;
    text-decoration: none;
}

.import-wizard-layout .business-card-id a:hover {
    text-decoration: underline;
}

.import-wizard-layout .paperless-order-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 240px;
}

.import-wizard-layout .btn-paperless-order {
    background-color: white;
    color: #118dcf;
    border: 1px solid #118dcf;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(75, 137, 219, 0.3);
}

.import-wizard-layout .btn-paperless-order:hover {
    transform: translateY(-2px);
    border: 1px solid #116ea0;
}

.import-wizard-layout .btn-paperless-order:active {
    transform: translateY(0);
}

.import-wizard-layout .categories-check-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
}

.import-wizard-layout .categories-check-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.import-wizard-layout .categories-check-message p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

.import-wizard-layout .btn-categories-check {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.import-wizard-layout .btn-categories-check:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.import-wizard-layout .btn-categories-check:active {
    transform: translateY(0);
}

.import-wizard-layout .categories-check-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.import-wizard-layout .btn-categories-check-small {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
    white-space: nowrap;
}

.import-wizard-layout .btn-categories-check-small:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

.import-wizard-layout .btn-categories-check-small:active {
    transform: translateY(0);
}

.import-wizard-layout .btn-skip-small {
    background-color: #e2e3e5;
    color: #6c757d;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.import-wizard-layout .btn-skip-small:hover {
    background-color: #5a6268;
    color: white;
}

.import-wizard-layout .btn-categories-check-small {
    border: none;
}

.import-wizard-layout .car-expense-inline {
    flex-direction: row;
    gap: 4px;
}

.import-wizard-layout .status-item {
    padding: 8px 1px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-wizard-layout .status-item:last-child {
    border-bottom: none;
}

.import-wizard-layout .loading-indicator {
    color: #007bff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-wizard-layout .loading-indicator i {
    font-size: 16px;
}

.import-wizard-layout .result-text {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.import-wizard-layout .result-text.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.import-wizard-layout .result-text.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.import-wizard-layout .result-text.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.import-wizard-layout .result-text.pending {
    background-color: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

.import-wizard-layout .result-text.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 768px) {
    .import-wizard-layout {
        flex-direction: column;
    }
    
    .import-wizard-layout .operations-panel {
        min-width: 100%;
        max-width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .import-wizard-layout .business-card {
        min-width: 150px;
        max-width: 150px;
    }
}
