/* Light form and table polish. Disable by removing the link to this file. */
:root {
    --light-control-border: #cfd8e3;
    --light-control-border-focus: #2f80ed;
    --light-control-bg: #ffffff;
    --light-control-bg-soft: #f8fafc;
    --light-control-text: #1f2937;
    --light-control-muted: #64748b;
    --light-control-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --light-control-focus: 0 0 0 3px rgba(47, 128, 237, 0.14);
}

.form-control,
.form-select,
.input-sm,
.input-lg,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="file"],
select,
textarea,
.cbt-form-control,
.chosen-container-single .chosen-single,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: var(--light-control-border);
    border-radius: 5px;
    background-color: var(--light-control-bg);
    color: var(--light-control-text);
    box-shadow: var(--light-control-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus,
.cbt-form-control:focus,
.chosen-container-active .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--light-control-border-focus);
    box-shadow: var(--light-control-focus);
    outline: 0;
}

.form-control:hover,
.form-select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="file"]:hover,
select:hover,
textarea:hover,
.cbt-form-control:hover {
    border-color: #b7c4d4;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
input[disabled],
select[disabled],
textarea[disabled] {
    background-color: #eef2f7;
    color: var(--light-control-muted);
    box-shadow: none;
}

textarea.form-control,
textarea,
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--light-control-border-focus);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid rgba(47, 128, 237, 0.24);
    outline-offset: 2px;
}

.checkbox label,
.radio label,
label.checkbox-inline,
label.radio-inline {
    line-height: 1.5;
}

.ace[type="checkbox"] + .lbl::before,
.ace[type="radio"] + .lbl::before {
    border-color: var(--light-control-border);
    box-shadow: var(--light-control-shadow);
}

.ace[type="checkbox"]:checked + .lbl::before,
.ace[type="radio"]:checked + .lbl::before {
    border-color: var(--light-control-border-focus);
    color: var(--light-control-border-focus);
}

.table,
.table-bordered,
.table-striped,
.cbt-table {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.table > thead > tr > th,
.table > tbody > tr > th,
.cbt-table th {
    background: var(--light-control-bg-soft);
    border-bottom-color: #d9e2ec;
    color: #334155;
    font-weight: 600;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th,
.cbt-table td,
.cbt-table th {
    border-color: #e4ebf3;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd),
.cbt-table tbody tr:nth-of-type(odd) {
    background-color: #fbfdff;
}

.table-hover > tbody > tr:hover,
.table > tbody > tr:hover,
.cbt-table tbody tr:hover {
    background-color: #eef6ff;
}

.table-responsive {
    border-radius: 6px;
}
