/* ---------------------------------------------
   TABLE BASE STYLES
   --------------------------------------------- */
.reports-table {
    font-size: 14px;
    width: 100%;
}

.reports-table thead {
    background-color: #f8f9fa;
}

.reports-table thead tr {
    height: 55px;
}

.reports-table thead th {
    font-weight: 500;
    color: #002E45;
    vertical-align: middle;
}

.reports-table thead th:first-child {
    border-top-left-radius: 10px;
}

.reports-table thead th:last-child {
    border-top-right-radius: 10px;
}

.reports-table tbody tr {
    height: 70px;
}

.reports-table tbody td {
    padding: 20px 12px;
    vertical-align: middle;
}

/* Spacer rows (invisible) */
.reports-table .spacer-row td {
    border: none;
    padding: 0;
}

/* Empty state */
.reports-table .empty-state {
    text-align: center;
    padding: 24px 12px;
    color: #6c757d;
}


/* ---------------------------------------------
   BADGE BASE STYLES
   --------------------------------------------- */
.badge-base {
    display: inline-block;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
}


/* ---------------------------------------------
   STATUS BADGES
   --------------------------------------------- */
.badge-completed {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-failed {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-expired {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-building {
    background-color: #f1f5f9;
    color: #64748b;
}

.badge-preparing {
    background-color: #f1f5f9;
    color: #64748b;
}


/* ---------------------------------------------
   TYPE BADGES
   --------------------------------------------- */
.badge-single-lot {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-multi-lot {
    background-color: #cff4fc;
    color: #055160;
}


/* ---------------------------------------------
   SOURCE BADGES
   --------------------------------------------- */
.badge-api {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 6px;
}

.badge-count {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 6px;
}


/* ---------------------------------------------
   CHECKBOX STYLES
   --------------------------------------------- */
.reports-table .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-cell {
    width: 40px;
}

.checkbox-cell .form-check {
    margin: 0;
    display: flex;
    justify-content: center;
}


/* ---------------------------------------------
   ACTION BUTTONS
   --------------------------------------------- */
.btn-download {
    background-color: #3857F0;
    border-color: #3857F0;
    color: #ffffff;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-download:hover {
    background-color: #2d46c4;
    border-color: #2d46c4;
    color: #ffffff;
}

.btn-action-menu {
    background: none;
    border: none;
    padding: 4px 8px;
    color: #6c757d;
}

.btn-action-menu:hover {
    color: #495057;
}

.btn-action-menu i {
    font-size: 16px;
}


/* ---------------------------------------------
   USER FILTER DROPDOWN
   --------------------------------------------- */
#userFilterDropdown,
#userFilterDropdown:hover,
#userFilterDropdown:focus,
#userFilterDropdown:focus-visible,
#userFilterDropdown:active,
#userFilterDropdown.show,
.show > #userFilterDropdown {
    background-color: #fff !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.user-filter-menu {
    padding: 4px;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    max-height: 240px;
    overflow-y: auto;
}

.user-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d !important;
    margin: 0;
    width: 100%;
}

.user-filter-item:hover {
    background-color: #f8f9fa !important;
    color: #002E45 !important;
}

.user-filter-item .form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.user-filter-item .form-check-input:checked {
    background-color: #3857F0;
    border-color: #3857F0;
}

.user-filter-menu .dropdown-divider {
    border-color: #e9ecef;
    margin: 4px 0;
}

.user-filter-clear {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    color: #6c757d;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
}

.user-filter-clear:hover {
    background-color: #f8f9fa;
    color: #002E45;
}


/* ---------------------------------------------
   BULK ACTION BAR (inline version)
   --------------------------------------------- */
.bulk-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background-color: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 16px;
}

.bulk-action-bar.hidden {
    display: none;
}

.bulk-action-count {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.bulk-action-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
}

.bulk-action-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.bulk-action-btn.primary {
    background-color: #3857F0;
    border-color: #3857F0;
    color: #ffffff;
}

.bulk-action-btn.primary:hover {
    background-color: #2d46c4;
}


/* ---------------------------------------------
   BULK ACTION CARD (sidebar version)
   --------------------------------------------- */
#intro-bulk-action {
    width: 100%;
    position: sticky;
    top: 20px;
    z-index: 1;
}

#intro-bulk-action .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #002E45;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

#intro-bulk-action .card-description {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

#intro-bulk-action .card-description strong {
    color: #495057;
}

.bulk-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-bulk-download {
    background-color: #3857F0;
    border-color: #3857F0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-bulk-download:hover:not(:disabled) {
    background-color: #2d46c4;
    border-color: #2d46c4;
    color: #ffffff;
}

.btn-bulk-download:disabled {
    background-color: #a5b4fc;
    border-color: #a5b4fc;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-bulk-reorder {
    background-color: #ffffff;
    border: 2px solid #3857F0;
    color: #3857F0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-bulk-reorder:hover:not(:disabled) {
    background-color: #3857F0;
    color: #ffffff;
}

.btn-bulk-reorder:disabled {
    border-color: #a5b4fc;
    color: #a5b4fc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Selection counter badge */
.bulk-selection-count {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f0f4ff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #3857F0;
    font-weight: 500;
}

.bulk-selection-count.visible {
    display: flex;
}

.bulk-selection-count .count {
    font-weight: 700;
}


/* ---------------------------------------------
   PAGINATION
   --------------------------------------------- */
.reports-pagination {
    margin-top: 24px;
}

.reports-pagination .pagination {
    justify-content: center;
}

.reports-pagination .page-link {
    color: #374151;
    border-color: #e5e7eb;
}

.reports-pagination .page-item.active .page-link {
    background-color: #002E45;
    border-color: #002E45;
    color: #ffffff;
}

.reports-pagination .page-item.disabled .page-link {
    color: #9ca3af;
}


/* ---------------------------------------------
   STATUS INDICATORS (Building/Preparing)
   --------------------------------------------- */
.status-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-spinner {
    width: 12px;
    height: 12px;
    color: #64748b;
}

.status-hammer {
    font-size: 12px;
    color: #64748b;
    background: transparent;
}


/* ---------------------------------------------
   ADDRESS DISPLAY
   --------------------------------------------- */
.address-text {
    color: #111827;
}

.address-text.muted {
    color: #9ca3af;
}

#intro-reports{
    margin-left: 0px;
    margin-right: 0px;
}

/* ---------------------------------------------
   RESPONSIVE ADJUSTMENTS
   --------------------------------------------- */
@media (max-width: 768px) {
    .reports-table {
        font-size: 13px;
    }
    
    .reports-table tbody td {
        padding: 16px 8px;
    }
    
    .badge-base {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .btn-download {
        padding: 4px 12px;
        font-size: 13px;
    }

    #intro-bulk-action .card-title {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    #intro-bulk-action .card-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .bulk-action-buttons {
        gap: 12px;
        margin-bottom: 20px;
        width: 100%;
    }

    .btn-bulk-download,
    .btn-bulk-reorder {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 18px;
    }

    .bulk-selection-count {
        width: 100%;
        text-align: center;
        margin-bottom: 16px;
    }
}