/* Direcciones de facturación */
.table-customer tbody tr.invoice-address {
    background-color: #e8f4f8;
}

.table-customer tbody tr.invoice-address:hover {
    background-color: #d8eef5;
}

.invoice-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background-color: #17b2bc;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.addresses-table .table-filters-row {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.addresses-table .table-filters-row th {
    padding: 8px;
    vertical-align: middle;
}

.addresses-table .table-filter-input {
    width: 100%;
    font-size: inherit;
    padding: 6px 10px;
    border: 1px solid #b9c2cc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.addresses-table .table-filter-input:focus {
    outline: none;
    border-color: var(--darkblue);
    box-shadow: 0 0 0 0.2rem rgba(38, 31, 71, 0.25);
    background-color: #fff;
}

.addresses-table .table-filter-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.addresses-table #clear-address-filters {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.addresses-table #clear-address-filters:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.addresses-table .address-favorite-col {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding: 0 4px;
}

.addresses-table .favorite-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
}

.addresses-table .favorite-checkbox {
    margin: 0;
}

.addresses-table .address-actions {
    position: relative;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.addresses-table tbody tr:hover .address-actions {
    visibility: visible;
    opacity: 1;
}

.addresses-table .address-actions-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    color: #6c757d;
}

.addresses-table .address-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 0;
    min-width: 140px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.addresses-table .address-actions.open .address-actions-menu {
    display: block;
}

.addresses-table .address-actions-menu a,
.addresses-table .address-actions-menu button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.addresses-table .address-actions-menu a:hover,
.addresses-table .address-actions-menu button:hover {
    background: #f5f5f5;
    color: #000;
}

.addresses-table .address-actions-menu button.delete-address-btn {
    font-family: inherit;
}

.table-customer.addresses-table .addresses-table tr {
    height: 65px;
}

.table-customer.addresses-table thead tr {
    height: fit-content;
}