﻿/* hx-checks.css - Checkboxes como interruptores (mismo aspecto que "Reportar al cliente" de Ticket).
   Solo CSS: el input sigue siendo un checkbox. Excluye las grillas de datos (.mvc-grid / .dataTables_wrapper)
   y los interruptores que ya tienen su propio estilo (.hx-cm-switch, .tk-check). */
:root {
    --hxc-off: #B9B9BD;
    --hxc-off-border: #71737B;
    --hxc-off-hover: #71737B;
    --hxc-on: #005198;
    --hxc-on-border: #00284C;
    --hxc-knob: #FFFFFF;
    --hxc-knob-on: #DFF73F;
    --hxc-ring: rgba(1, 173, 255, .30);
}
html[data-hx-theme="dark"] {
    --hxc-off: #4A5668;
    --hxc-off-border: #8A8D96;
    --hxc-off-hover: #5E6B7F;
    --hxc-on: #01ADFF;
    --hxc-on-border: #01ADFF;
    --hxc-knob-on: #00284C;
    --hxc-ring: rgba(1, 173, 255, .45);
}

input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *) {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    vertical-align: middle;
    background: var(--hxc-off);
    border: 1px solid var(--hxc-off-border);
    outline: 0;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *)::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hxc-knob);
    box-shadow: 0 1px 2px rgba(0, 40, 76, .35);
    transition: transform .18s ease, background .18s ease;
}
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *):checked { background: var(--hxc-on); border-color: var(--hxc-on-border); }
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *):checked::after { transform: translateX(18px); background: var(--hxc-knob-on); }
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *):hover:not(:checked):not(:disabled) { background: var(--hxc-off-hover); }
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *):focus-visible { box-shadow: 0 0 0 3px var(--hxc-ring); }
input[type="checkbox"]:not(.mvc-grid *, .dataTables_wrapper *, .hx-cm-switch *, .tk-check *, .icheckbox_minimal-grey *):disabled { opacity: .5; cursor: not-allowed; }

/* iCheck (class="icheckbox"): el contenedor se dibuja como el mismo interruptor */
.icheckbox_minimal-grey:not(.mvc-grid *, .dataTables_wrapper *) {
    position: relative;
    box-sizing: border-box;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--hxc-off);
    border: 1px solid var(--hxc-off-border);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.icheckbox_minimal-grey:not(.mvc-grid *, .dataTables_wrapper *)::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hxc-knob);
    box-shadow: 0 1px 2px rgba(0, 40, 76, .35);
    transition: transform .18s ease, background .18s ease;
}
.icheckbox_minimal-grey.hover:not(.mvc-grid *, .dataTables_wrapper *):not(.checked) { background: var(--hxc-off-hover); }
.icheckbox_minimal-grey.checked:not(.mvc-grid *, .dataTables_wrapper *) { background: var(--hxc-on); border-color: var(--hxc-on-border); }
.icheckbox_minimal-grey.checked:not(.mvc-grid *, .dataTables_wrapper *)::after { transform: translateX(18px); background: var(--hxc-knob-on); }
.icheckbox_minimal-grey.focused:not(.mvc-grid *, .dataTables_wrapper *) { box-shadow: 0 0 0 3px var(--hxc-ring); }
.icheckbox_minimal-grey.disabled:not(.mvc-grid *, .dataTables_wrapper *) { opacity: .5; cursor: not-allowed; }
