/* ===== TABS STYLING ===== */
.processing-tabs-container {
    display: flex;
    width: 100%;
    background: var(--bs-gray-100, #f8f9fa);
    border-radius: 0.75rem;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--bs-gray-200, #e9ecef);
}

.processing-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border: 1px solid var(--bs-gray-300, #dee2e6);
    background: #fff;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-gray-700, #495057);
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 0.5rem;
}

.processing-tab:hover:not(.active) {
    background: var(--bs-gray-50, #f9fafb);
    border-color: var(--bs-gray-400, #ced4da);
    color: var(--bs-gray-900, #212529);
}

.processing-tab.active {
    background: #fff;
    color: #8e44ad;
    border-color: #8e44ad;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.processing-tab i {
    font-size: 1.125rem;
}

.processing-tab .tab-label {
    display: none;
}

.processing-tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bs-gray-200, #e9ecef);
    border-radius: 6px;
    color: var(--bs-gray-700, #495057);
}

.processing-tab.active .tab-count {
    background: #8e44ad;
    color: #fff;
}

/* ===== TABLE STYLING ===== */
.processing-table-wrapper {
    border-radius: 0.5rem;
    overflow: visible;
}

.processing-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.processing-table thead th {
    background: var(--bs-gray-50, #f9fafb);
    border-bottom: 1px solid var(--bs-gray-200, #e9ecef);
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-gray-600, #6c757d);
    white-space: nowrap;
}

.processing-table tbody tr {
    transition: background-color 0.15s ease;
}

.processing-table tbody tr:hover {
    background-color: var(--bs-gray-50, #f9fafb);
}

.processing-table tbody tr.table-active {
    background-color: rgba(142, 68, 173, 0.05);
}

.processing-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--bs-gray-100, #f1f3f5);
}

.processing-table .col-checkbox {
    width: 40px;
    text-align: center;
}

.processing-table .col-name {
    min-width: 200px;
    max-width: 280px;
}

.processing-table .col-company {
    max-width: 180px;
}

.processing-table .col-total {
    white-space: nowrap;
}

.processing-table .col-date {
    white-space: nowrap;
    font-size: 0.8125rem;
}

.processing-table .col-status {
    white-space: nowrap;
}

.processing-table .col-actions {
    width: 140px;
    text-align: right;
}

.doc-info {
    min-width: 0;
    flex: 1;
}

.doc-name {
    max-width: 200px;
    font-size: 0.875rem;
}

.doc-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-gray-100, #f8f9fa);
    border-radius: 6px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    color: #fff !important;
}

/* Ensure all status badges in processing page have white text */
.processing-table .status-badge,
.processing-table .badge,
.processing-table-wrapper ~ .d-md-none .badge {
    color: #fff !important;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--bs-gray-600, #6c757d);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bs-gray-100, #f1f3f5);
    color: var(--bs-gray-800, #343a40);
}

.action-btn-primary {
    color: #8e44ad;
}

.action-btn-primary:hover {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
}

.action-btn-warning {
    color: var(--bs-warning, #ffc107);
}

.action-btn-warning:hover {
    background: rgba(var(--bs-warning-rgb), 0.15);
    color: #cc9a06;
}

.action-btn-more {
    color: var(--bs-gray-500, #adb5bd);
}

.action-btn-more:hover {
    background: var(--bs-gray-100, #f1f3f5);
    color: var(--bs-gray-700, #495057);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== DROPDOWN MENU ===== */
.processing-table-wrapper .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--bs-gray-200, #e9ecef);
    border-radius: 0.5rem;
    z-index: 1100;
}

.processing-table-wrapper .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.processing-table-wrapper .dropdown-item:hover {
    background: var(--bs-gray-100, #f8f9fa);
}
.processing-table tbody tr.table-success td {
    background-color: rgba(25, 135, 84, 0.08) !important; /* soft green */
}

.processing-table tbody tr.table-warning td {
    background-color: rgba(255, 140, 0, 0.08) !important;
}

.processing-table tbody tr.table-danger td {
    background-color: rgba(220, 53, 69, 0.08) !important; /* soft red */
}
.processing-table tbody tr.table-success:hover td {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

.processing-table tbody tr.table-warning:hover td {
    background-color: rgba(255, 193, 7, 0.14) !important;
}

.processing-table tbody tr.table-danger:hover td {
    background-color: rgba(220, 53, 69, 0.12) !important;
}
/* ===== RESPONSIVE ===== */
/* ===== MOBILE DROPDOWN STYLING ===== */
.d-md-none .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--bs-gray-200, #e9ecef);
    border-radius: 0.5rem;
    z-index: 1100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.d-md-none .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.d-md-none .dropdown-item:hover {
    background: var(--bs-gray-100, #f8f9fa);
}

.d-md-none .dropdown-toggle::after {
    display: none;
}

@media (min-width: 576px) {
    .processing-tab .tab-label {
        display: inline;
    }
}

@media (min-width: 768px) {
    .processing-table-wrapper {
        overflow-y: visible;
    }
}

@media (min-width: 992px) {
    .processing-tab {
        padding: 0.75rem 1.25rem;
    }
}
