/**
 * =============================================
 * WAREHOUSE MANAGEMENT SYSTEM - STYLES
 * =============================================
 */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-header .nupco-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.sidebar-header .dsv-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-logo-nupco {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.login-logo-dsv {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}


.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav li a.active {
    border-left: 3px solid var(--primary);
}

.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info .name {
    font-weight: 600;
}

.user-info .role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card.primary { border-left: 4px solid var(--primary); }
.stat-card.success { border-left: 4px solid var(--success); }
.stat-card.warning { border-left: 4px solid var(--warning); }
.stat-card.danger { border-left: 4px solid var(--danger); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon {
    font-size: 1rem;
    font-weight: 700;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--light);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--light);
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--secondary);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.trk-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Step Columns */
.step-col {
    text-align: center;
    width: 70px;
}

.step-cell {
    text-align: center;
    padding: 8px !important;
}

.step-cell small {
    display: block;
    font-size: 0.65rem;
    color: var(--secondary);
    margin-top: 2px;
}

.step-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
}

.step-waiting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--light);
    color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
}

.step-waiting.active {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Global IDs Cell */
.global-ids-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-csr_scanned { background: #dbeafe; color: #1e40af; }
.badge-in_progress { background: #e0e7ff; color: #3730a3; }
.badge-completed { background: #dcfce7; color: #166534; }
.badge-closed { background: #f1f5f9; color: #475569; }

.badge-admin { background: #fae8ff; color: #86198f; }
.badge-manager { background: #dbeafe; color: #1e40af; }
.badge-csr { background: #dcfce7; color: #166534; }
.badge-operation_team { background: #fef3c7; color: #92400e; }

.badge-info { background: #cffafe; color: #0e7490; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-primary { background: #dbeafe; color: #1e40af; }

.badge-ambient { background: #dcfce7; color: #166534; }
.badge-chilled { background: #dbeafe; color: #1e40af; }
.badge-frozen { background: #e0e7ff; color: #3730a3; }

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, #334155 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.login-box p {
    color: var(--secondary);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 30px;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #cffafe;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal.modal-lg {
    max-width: 650px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Scanner Card */
.scanner-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.scanner-card .card-header {
    border-bottom-color: rgba(255,255,255,0.2);
}

.scanner-card .card-header h3 {
    color: white;
}

.scanner-body {
    padding: 10px 0;
}

.scanner-input-wrapper {
    position: relative;
}

.scanner-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    border: 3px dashed rgba(255,255,255,0.5);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.scanner-input::placeholder {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    letter-spacing: normal;
}

.scanner-input:focus {
    border-color: white;
    background: rgba(255,255,255,0.2);
}

.scanner-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.scanner-status {
    margin-top: 10px;
    min-height: 24px;
    text-align: center;
}

.status-processing {
    color: #fef3c7;
}

.status-success {
    color: #86efac;
    font-weight: 600;
}

.status-error {
    color: #fca5a5;
    font-weight: 600;
}

.scan-result {
    margin-top: 15px;
}

.scan-success {
    background: rgba(34, 197, 94, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius);
    border-left: 4px solid #22c55e;
}

.scan-error {
    background: rgba(239, 68, 68, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius);
    border-left: 4px solid #ef4444;
}

/* Workflow Legend Card */
.workflow-legend-card {
    padding: 16px 24px;
    background: white;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.workflow-step .step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 6px;
}

.workflow-step .step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.workflow-step .step-note {
    font-size: 0.65rem;
    color: var(--success);
}

.workflow-arrow {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Upload Instructions */
.upload-instructions {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.upload-instructions h4 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 0.9rem;
}

.column-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.column-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.column-item.required {
    border-left-color: var(--danger);
}

.column-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--dark);
}

.column-desc {
    font-size: 0.7rem;
    color: var(--secondary);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.dropzone-text {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.dropzone-subtext {
    font-size: 0.875rem;
    color: var(--secondary);
}

.file-name {
    margin-top: 12px;
    padding: 10px 15px;
    background: var(--light);
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name:empty {
    display: none;
}

.file-icon {
    font-size: 1.2rem;
}

.file-size {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* Row animations */
.row-scanned {
    animation: rowHighlight 1.5s ease-out;
}

.row-completed {
    animation: rowComplete 2s ease-out;
}

@keyframes rowHighlight {
    0% { background: rgba(34, 197, 94, 0.3); }
    100% { background: transparent; opacity: 0; }
}

@keyframes rowComplete {
    0% { background: rgba(34, 197, 94, 0.5); }
    50% { background: rgba(34, 197, 94, 0.3); }
    100% { background: transparent; opacity: 0; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px !important;
    color: var(--secondary);
    font-style: italic;
}

/* Record Count */
.record-count {
    font-size: 0.875rem;
    color: var(--secondary);
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .scanner-input {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .workflow-steps {
        gap: 5px;
    }
    
    .workflow-step {
        min-width: 70px;
    }
    
    .workflow-arrow {
        font-size: 0.9rem;
    }
    
    .column-list {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Operations Table Specific */
.operations-table th {
    white-space: nowrap;
}

.operations-table td {
    vertical-align: middle;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters .form-control {
    width: auto;
    min-width: 150px;
}

/* Read-only Banner */
.read-only-banner {
    background: var(--warning);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.app-footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0f1419 100%);
    color: white;
    border-top: 3px solid var(--primary);
    margin-top: auto;
    padding: 30px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
}

.footer-logo-nupco {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95) drop-shadow(0 0 4px rgba(255,255,255,0.1));
    transition: all 0.3s ease;
}

.footer-logo-nupco:hover {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,165,0,0.3));
}

.footer-logo-dsv {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95) drop-shadow(0 0 4px rgba(255,255,255,0.1));
    transition: all 0.3s ease;
}

.footer-logo-dsv:hover {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.footer-info {
    text-align: left;
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.footer-subtext {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Sidebar Logo Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-logos {
        justify-content: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .sidebar-header .logo-container {
        justify-content: center;
    }
}

/* Page with Footer */
body {
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
}

/* ===== Missing utility and page components ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 8px 14px;
    margin: 0 0 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}
.breadcrumb li + li:before {
    content: "›";
    padding: 0 8px;
    color: #6b7280;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.pagination a,
.pagination span {
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #334155;
    font-size: 0.85rem;
}
.pagination a:hover {
    background: var(--light);
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* content empty/placeholder card */
.empty-state {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: #64748b;
    font-size: 0.95rem;
}

/* top table controls toolbar */
.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.table-toolbar .toolbar-item {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 0.85rem;
}

/* Linux list style for selected rows */
.row-selected {
    background: rgba(37, 99, 235, 0.13) !important;
}

/* Off-canvas alerts and notifications */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 260px;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    color: #1e293b;
    z-index: 2000;
}
.toast .toast-title {
    font-weight: 700;
    margin-bottom: 4px;
}
.toast .toast-body {
    font-size: 0.84rem;
}

/* Form validation state */
.is-invalid {
    border-color: #ef4444 !important;
}
.invalid-feedback {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* fix for missing table header sticky override on small screens */
.table-wrapper.sticky thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

/* keep original page flow for .app-footer always at bottom */
.app-footer {
    width: 100%;
    box-sizing: border-box;
}
