/* ============================================================================
   账单导入/取消模块样式 (Bill Import/Cancel Module)
   ============================================================================ */

/* 账单列表表格 */
#billListTable {
    table-layout: fixed;
    width: 100%;
}

#billListTable td, #billListTable th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#billListTable .tracking-number {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline dotted;
}

#billListTable .tracking-number:hover {
    position: absolute;
    background: white;
    z-index: 100;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    max-width: none;
    white-space: normal;
}

#billListTable input[type="radio"] {
    transform: scale(0.9);
    margin-top: 0;
}

#billListTable tr:hover input[type="radio"] {
    border-color: #0d6efd;
}

#billListTable td:first-child, 
#billListTable th:first-child {
    width: 40px !important;
    padding-right: 0 !important;
}

#operationSelection .d-flex {
    align-items: center;
}

#adjustAmountContainer {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #operationSelection .d-flex {
        flex-direction: column;
    }
    
    #adjustAmountContainer {
        width: 100% !important;
        margin-top: 10px;
    }
}

/* 账单取消模态框 */
#billCancelModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-bottom: none;
}

#billCancelModal .modal-title {
    font-weight: 600;
}

#billCancelModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelModal .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    transition: all 0.3s ease;
}

#billCancelModal .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#billCancelListTable {
    font-size: 0.875rem;
}

#billCancelListTable th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

#billCancelListTable td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

#billCancelListTable tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

#billCancelListTable .form-check-input[type="radio"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

#billCancelListTable .form-check-input[type="radio"]:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

#billCancelListTable .form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelListTable .form-check-input[type="radio"]:checked::after {
    background-color: white;
}

#billCancelListTable .btn-outline-secondary {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

#billCancelListTable .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: scale(1.05);
}

#billCancelListTable .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

#billCancelOperation {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

#billCancelOperation h6 {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
}

#billCancelOperation .alert {
    border: none;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 0.375rem;
}

#billCancelOperation .form-select:focus,
#billCancelOperation .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelOperation .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

#billCancelOperation .form-text {
    color: #6c757d;
    font-size: 0.75rem;
}

#billCancelOperation .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#billCancelOperation .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#billCancelOperation .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#billCancelOperation .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

#billCancelPagination .pagination {
    margin-bottom: 0;
}

#billCancelPagination .page-link {
    color: #dc3545;
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

#billCancelPagination .page-link:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#billCancelPagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#billCancelPagination #pageJumpInput {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#billCancelPagination #pageJumpInput:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

#billCancelPagination #pageJumpInput::-webkit-outer-spin-button,
#billCancelPagination #pageJumpInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#billCancelPagination #pageJumpInput[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#billCancelPagination .btn-outline-primary {
    border-color: #dc3545;
    color: #dc3545;
    transition: all 0.2s ease;
}

#billCancelPagination .btn-outline-primary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

#billCancelPagination .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

#billCancelSearchBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#billCancelList .text-muted {
    color: #6c757d !important;
    font-style: italic;
}

#billCancelListTable tr.selected {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3;
}

@media (max-width: 768px) {
    #billCancelModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #billCancelListTable {
        font-size: 0.75rem;
    }
    
    #billCancelListTable th,
    #billCancelListTable td {
        padding: 0.5rem 0.25rem;
    }
    
    #billCancelOperation {
        padding: 1rem;
    }
    
    #billCancelOperation .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #billCancelOperation .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #billCancelPagination .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #billCancelPagination .page-item {
        margin-bottom: 0.25rem;
    }
    
    #billCancelPagination .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    #billCancelPagination #pageJumpInput {
        width: 80px !important;
    }
}

