/* Impakt custom styles */

/* Tighter accordion spacing */
.accordion-button {
    padding: 6px 12px;
    font-size: 12px;
}

.accordion-body {
    padding: 4px 12px;
}

/* Channel items */
.channel-item {
    padding: 1px 0;
}

.channel-item .form-check {
    margin-bottom: 0;
    min-height: 0;
}

.channel-item .form-check-label {
    font-size: 12px;
    line-height: 1.3;
}

.channel-item .form-check-input {
    margin-top: 3px;
}

/* Card headers */
.card-header {
    padding: 6px 12px;
    font-size: 13px;
}

/* Compact card body */
.card-body {
    padding: 8px 12px;
}

/* Selected channel badges */
.badge {
    font-weight: 500;
}

/* Table styling */
.table-sm th,
.table-sm td {
    padding: 3px 6px;
}

/* Resizable DataTable columns */
.dash-spreadsheet .dash-header th {
    resize: horizontal;
    overflow: hidden;
}

/* Don't make the tiny # column or the checkbox column resizable */
.dash-spreadsheet .dash-header th:first-child {
    resize: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Layout button active state */
.btn-group .btn.active {
    font-weight: bold;
}

/* Criteria row hover */
tr[id*="criteria-row"]:hover {
    background-color: #f0f7ff;
    cursor: pointer;
}

/* Splitter handle */
#splitter-handle {
    display: flex;
    align-items: center;
    justify-content: center;
}

#splitter-handle::after {
    content: "";
    display: block;
    width: 2px;
    height: 32px;
    background-color: #ced4da;
    border-radius: 1px;
}

#splitter-handle:hover::after {
    background-color: #6c757d;
}

/* Prevent layout shift during splitter drag */
#main-content {
    user-select: none;
}

/* Navbar tight */
.navbar {
    padding: 4px 0;
}

/* Remove input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}
