table.dataTable th {
    text-align: left !important;
}

table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) {
    padding-right: 30px;
}

.tooltip {
    z-index: 1200 !important;
}

.form-select-xs {
    height: 28px;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    padding-right: 1.5rem;
}

.form-select-xs:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.campaign-status option,
.tool-rating option {
    background-color: #fff;
    color: #212529;
}

.popover-wide {
    max-width: 400px;
}

.top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    pointer-events: auto;
}

.top-btn.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

@media (max-width: 768px) {
    .top-btn {
        bottom: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
}

.form-control-xs {
    height: 26px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

a.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.slash {
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.slash::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%) rotate(-20deg);
    background: #000;
    transform-origin: center;
    pointer-events: none;
}
