/*
 * STEP-1631: one checkbox look everywhere - white box, grey border; when checked only the TICK is green
 * (no green fill). Indeterminate shows a green dash. Hidden checkboxes behind custom toggles / switches keep
 * their own look (they stay invisible; this file never changes opacity or position).
 */
html body input[type="checkbox"]:not(.cf-native-check) {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    padding: 0 !important;
    border: 1.5px solid #98a2b3 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    cursor: pointer;
    vertical-align: middle;
    flex: 0 0 auto;
    accent-color: auto;
}
html body input[type="checkbox"]:not(.cf-native-check):hover {
    border-color: #667085 !important;
}
html body input[type="checkbox"]:not(.cf-native-check):checked {
    border-color: #17b26a !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23079455' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
}
html body input[type="checkbox"]:not(.cf-native-check):indeterminate {
    border-color: #17b26a !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23079455' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat !important;
}
html body input[type="checkbox"]:not(.cf-native-check):focus-visible {
    outline: 2px solid #abefc6 !important;
    outline-offset: 1px;
}
html body input[type="checkbox"]:not(.cf-native-check):disabled {
    opacity: .55;
    cursor: not-allowed;
}

/*
 * STEP-1632: danger selections (the row is being picked for a destructive action such as Bulk Void) show a
 * light red cross instead of the green tick. Positive selections keep the green tick above.
 */
html body input[type="checkbox"].cf-check-danger:not(.cf-native-check):checked {
    border-color: #fda29b !important;
    background: #fef3f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23d92d20' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat !important;
}
html body input[type="checkbox"].cf-check-danger:not(.cf-native-check):indeterminate {
    border-color: #fda29b !important;
    background: #fef3f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23d92d20' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat !important;
}
html body input[type="checkbox"].cf-check-danger:not(.cf-native-check):focus-visible {
    outline-color: #fecdca !important;
}
