

/* Reset margin for radio and checkbox inputs */
.rc-input[type="radio"],
.rc-input[type="checkbox"] {
    margin: 0;
}

/* Remove outline and set border on focus for radio and checkbox inputs */
.rc-input[type="radio"]:focus,
.rc-input[type="checkbox"]:focus {
    outline: none;
    border: 1px solid #cccccc;
}

/* Base styles for rc-input */
.rc-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-height: 16px;
    min-width: 16px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

/* Styles when rc-input is checked */
.rc-input:checked,
.rc-input:checked:focus {
    background-color: #e15057;
    border-color: #e15057;
}

/* Specific styles for checkbox */
.rc-input[type="checkbox"] {
    border-radius: 3px;
}

/* Specific styles for radio */
.rc-input[type="radio"] {
    border-radius: 50%;
}

/* Checkmark for checked checkbox */
.rc-input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Dot for checked radio */
.rc-input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover state for rc-input */
.rc-input:hover {
    background-color: #f6f6f6;
}

/* Hover state when rc-input is checked */
.rc-input:checked:hover {
    background-color: #cf4e55;
    border-color: #cf4e55;
}

/* Remove outline and box-shadow on focus */
.rc-input:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

/* Visible focus for accessibility */
.rc-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(225, 80, 87, 0.3);
}

/* Disabled state for rc-input */
.rc-input:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Label styles */
.rc-input-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
    margin: 0;
}

.rc-filter-label label, .rc-filter-label input {
    padding: 0 2px;
    font-size: 11px;
    font-weight: 400;
}

/* Label style with additional text */
.rc-input-label-with-span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.rc-input-label-with-span span {
    font-size: 11px;
    font-weight: 500;
    margin-left: 27px;
}

/* Style for checkbox in treeNode */
.rc-input[type="checkbox"]:indeterminate {
    background-color: #e15057;
    border-color: #e15057;
}

.rc-input[type="checkbox"]:indeterminate:hover {
    background-color: #cf4e55;
    border-color: #cf4e55;
}

.rc-input[type="checkbox"]:indeterminate:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    border: solid #ffffff;
    border-width: 0 0 2px 0;
    transform: translate(-50%, -60%);
}

/* Spacing between input and label text */
.rc-input-label .rc-input {
    margin-right: 8px;
}

/* Grouping inputs vertically */
.rc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Container for input groups with horizontal gap */
.rc-input-group-container {
    display: flex;
    gap: 60px;
}

/* Override classes */

.ui-state-focus {
    outline: none;
}

.ui-state-active {
    outline: none;
    border: 1px solid #cf4e55 !important;
    background: #cf4e55 !important;
}