.ant-input,
.dga-input,
.calendar-input, .search-input {
    background-image: linear-gradient(#000, #000);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 0 2px;
    transition: background-size 200ms ease;
}

.dga-input {
    display: block;
    width: 100%;
    padding: 4px 11px;
    font-size: 14px;
    line-height: 1.5715;
    color: rgba(0, 0, 0, 0.88);
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-sizing: border-box;
}

.dga-input::placeholder {
    color: #98a2b3;
}

.calendar-input::placeholder {
    color: #98a2b3;
}

.ant-input:focus,
.ant-input:hover,
.dga-input:focus,
.dga-input:hover,
.calendar-input:focus,
.calendar-input:hover,
.search-input:focus,
.search-input:hover
{
    background-size: 100% 2px;
}

.ant-input:focus,
.ant-input-focused, .ant-input:hover,
.dga-input:focus, .dga-input:hover,
input:focus, input:hover, .ant-select-selection-search-input:hover, .ant-select-selection-search-input:focus,
.ant-select:hover, .ant-select:focus {
    border-color: rgb(239, 248, 242) !important;
    box-shadow: 0 0 0 2px rgba(239, 248, 242, 0.2) !important;
}

:root {
    --dga-checkbox-radius: var(--radius-xs, 4px);
    --dga-checkbox-border: var(--controls-control-border, #dee2e6);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-check-label {
    order: 1;
}

input.form-check-input[type="checkbox"] {
    order: 2;
}

[dir="ltr"] .form-check-label {
    order: 2;
}

[dir="rtl"] input.form-check-input[type="checkbox"] {
    order: 1;
}

input.form-check-input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    border-radius: var(--dga-checkbox-radius);
    border: 1px solid var(--dga-checkbox-border);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, border-color 0.2s;
}

input.form-check-input[type="checkbox"]:checked {
    background-color: #1b8354;
    border-color: #1b8354;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
}

input.form-check-input[type="checkbox"]:indeterminate {
    background-color: #28a745;
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2' y='5' width='8' height='2' fill='%23fff' rx='1'/%3E%3C/svg%3E");
}

input.form-check-input[type="checkbox"]:hover {
    border-color: var(--dga-checkbox-border) !important;
    box-shadow: none !important;
}

input.form-check-input[type="checkbox"]:checked:hover {
    border-color: #28a745 !important;
    box-shadow: none !important;
}

input.form-check-input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--dga-checkbox-border) !important;
    box-shadow: none !important;
}

input.form-check-input[type="checkbox"]:checked:focus {
    border-color: #28a745 !important;
    box-shadow: none !important;
}

input.form-check-input[type="checkbox"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

input.form-check-input[type="checkbox"].form-check-input-neutral:checked,
input.form-check-input[type="checkbox"].form-check-input-neutral:indeterminate {
    background-color: #343a40;
    border-color: #343a40;
}

input.form-check-input[type="checkbox"]:checked + .form-check-label,
.form-check:has(input.form-check-input[type="checkbox"]:checked) .form-check-label {
    color: #28a745!important;
}
