.login-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.loading{position: relative;}
body.loading:after{position: absolute;width: 100%;height: 100vh;background-color: #000;opacity: 0.5;top: 0;left: 0;}

.login-form{width: auto;
padding: 20px;background-color: aquamarine;}

.bg-green{background: #d9ead3;}
.bg-orange{background: #fce5cd;}

.loading{pointer-events: none; position: relative;}
.loading::after{ position: absolute; content: "loading...";display: flex;justify-content: center;align-items: center; width: 100%; height: 100%; text-align: center; font-weight: bold; color: white; top: 0;left: 0; background-color: #000; opacity: 0.5;}
td.updated::after{content: "updated";}
.hidden-column {
    display: none;
}

/* Progress container styles */
#progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

/* Progress bar styles */
#progress-bar {
    width: 0%;
    height: 20px;
    background-color: #4caf50;
    text-align: center;
    line-height: 20px;
    color: white;
    font-weight: bold;
    transition: width 0.4s ease;
}


.details-control {
    cursor: pointer;
}

.details-control::before {
    content: '▶';
    /* Right arrow by default */
    color: blue;
    font-size: 14px;
    padding-right: 5px;
}

.shown .details-control::before {
    content: '▼';
    /* Down arrow when expanded */
}

.collapse-content {
    display: none;
}

.weightedAvgTablulator{min-height: 100vh;}

body.loading{position: relative;}
body.loading:after{position: fixed; top: 0; left: 0; background-color: white; z-index: 10; display: flex;justify-content: center;align-items: center; height: 100vh; width: 100%; opacity: 0.5; content: "loading...";}

.chargeback_status{padding: 2px 5px; border-radius: 4px;}
.chargeback_lost{background: #DFDFDF; }
.chargeback_won{background: #9dea9d; }

.tabulator-row.red-row{background: #ff0000 !important;}
.tabulator-row.orange-row{background: #FFA726 !important;}
.tabulator-row.yellow-row{background: #FFF176 !important;}
.tabulator-row.green-row{background: #C8E6C9 !important;}

/* View PO Page Styling */
.card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}


/* Clean label styling */
.po-label {
    font-size: 0.875rem;
    color: #6d7175;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.po-value {
    font-size: 1.125rem;
    color: #202223;
    font-weight: 600;
    margin-bottom: 0;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}



/* Modern File Upload Styles */
.modern-file-upload {
    position: relative;
    width: 300px;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #0d6efd;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.file-upload-area.dragover {
    border-color: #198754;
    background: #f0fff4;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.2);
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.file-upload-area:hover .file-upload-icon {
    color: #0d6efd;
}

.file-upload-area.dragover .file-upload-icon {
    color: #198754;
}

.file-upload-text {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-browse {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.file-upload-hint {
    margin: 0;
    color: #6c757d;
    font-size: 0.8rem;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    background: white;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 1.5rem;
    color: #198754;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    word-break: break-all;
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #f8d7da;
    transform: scale(1.1);
}

/* Upload button states */
.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments for file upload */
@media (max-width: 768px) {
    .modern-file-upload {
        width: 100%;
        max-width: 300px;
    }
    
    .file-upload-area {
        padding: 15px;
    }
    
    .file-upload-icon {
        font-size: 2rem;
    }
}

/* PO Page Specific Styles */
.file-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.file-link {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.file-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.text-muted i {
    margin-right: 5px;
}

/* Custom Bootstrap utility classes for opacity */
.bg-primary-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-purple-10 {
    background-color: rgba(102, 16, 242, 0.1) !important;
}

.border-primary-20 {
    border-color: rgba(13, 110, 253, 0.2) !important;
}

.border-success-20 {
    border-color: rgba(25, 135, 84, 0.2) !important;
}

.border-warning-20 {
    border-color: rgba(255, 193, 7, 0.2) !important;
}

.border-info-20 {
    border-color: rgba(13, 202, 240, 0.2) !important;
}

.border-purple-20 {
    border-color: rgba(102, 16, 242, 0.2) !important;
}

.text-purple {
    color: #6610f2 !important;
}


.sync-progress-container{
z-index: 99;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sync-progress-container .progress{width: 80%;}