input[type="checkbox"], input[type="radio"]{
    position: relative;
    right: 9000px;
}

/*Check box*/
input[type="checkbox"] + .label-text:before{
    content: "\f096";
    font-family: "FontAwesome";
    /* speak: none; */
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing:antialiased;
    width: 1em;
    display: inline-block;
    margin-right: 5px;
}

input[type="checkbox"]:checked + .label-text:before{
    content: "\f14a";
    color: #2980b9;
    animation: effect 250ms ease-in;
}

input[type="checkbox"]:disabled + .label-text{
    color: #aaa;
}

input[type="checkbox"]:disabled + .label-text:before{
    content: "\f0c8";
    color: #ccc;
}

ul.dropdown-menu{
    /* background-color:#34495e; */
}

ul.dropdown-menu a{
    /* color:white; */
}

@keyframes effect{
    0%{transform: scale(0);}
    25%{transform: scale(1.3);}
    75%{transform: scale(1.4);}
    100%{transform: scale(1);}
}

/* INI - input radio/checkbox */
input[type=radio].with-font,
input[type=checkbox].with-font {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

input[type=radio].with-font~label,
input[type=checkbox].with-font~label {
    margin-bottom: 0px !important;
}

input[type=radio].with-font~label:before,
input[type=checkbox].with-font~label:before {
    font-family: FontAwesome;
    display: inline-block;
    content: "\f1db";
    letter-spacing: 4px;
    font-size: 1.5em;
    color: #535353;
    /*width: 1.4em;*/
}

input[type=radio].with-font:checked~label:before,
input[type=checkbox].with-font:checked~label:before {
    content: "\f00c";
    font-size: 1.5em;
    color: #1E519D;
    letter-spacing: 5px;
}

input[type=checkbox].with-font~label:before {
    content: "\f096";
}

input[type=checkbox].with-font:checked~label:before {
    content: "\f046";
    color: #1E519D;
}

input[type=radio].with-font:focus~label:before,
input[type=checkbox].with-font:focus~label:before,
input[type=radio].with-font:focus~label,
input[type=checkbox].with-font:focus~label {
    color: #1E519D;
}
/* FIN - input radio/checkbox */

ul.menu li {
    cursor: pointer;
}

aside.main-sidebar li > ul {
    padding-left: 11%!important;
}

.tab-content {
    padding-top: 1%!important;
}

.easy-auto {
    width: 100% !important;
}

label.error {
    color: #FF0000;
    font-size: 12px;
    font-style: italic;
    padding-left: 3px;
}

input.error,
select.error,
.dropdown.bootstrap-select > .btn.dropdown-toggle.error {
    border-color: #FF0000!important;
}

textarea {
    resize: none;
}

.wizard > .content > .body label.error {
    margin-left: 0.2em;
}

.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    padding: 0.5em 0.5em;
}

/* ════════════════════════════════════════
   NAVBAR PREMIUM
   ════════════════════════════════════════ */

.skin-red .main-header .navbar,
.skin-red .main-header .logo {
    background: linear-gradient(135deg, #7b0000 0%, #c0392b 40%, #922b21 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 3px 18px rgba(0,0,0,.35) !important;
}

.skin-red .main-header .logo {
    background: linear-gradient(135deg, #6a0000 0%, #a93226 100%) !important;
    border-right: 1px solid rgba(255,255,255,.1) !important;
}

.skin-red .main-header .logo:hover {
    background: linear-gradient(135deg, #5a0000 0%, #922b21 100%) !important;
}

.skin-red .main-header .navbar .sidebar-toggle:hover,
.skin-red .main-header .navbar .nav > li > a:hover {
    background: rgba(0,0,0,.18) !important;
}

.skin-red .main-header .navbar .nav > li > a {
    color: rgba(255,255,255,.9) !important;
}

/* Separador sutil entre logo y navbar */
.skin-red .main-header > .logo {
    box-shadow: inset -1px 0 0 rgba(255,255,255,.08);
}

/* ════════════════════════════════════════
   SIDEBAR PREMIUM
   ════════════════════════════════════════ */

/* Fondo del sidebar con degradado vertical */
.skin-red .main-sidebar,
.skin-red .left-side {
    background: linear-gradient(180deg, #1a1212 0%, #1e1616 40%, #221a1a 100%) !important;
    box-shadow: 3px 0 18px rgba(0,0,0,.4) !important;
}

/* Items del menú — base */
.skin-red .sidebar-menu > li > a {
    border-left: 3px solid transparent !important;
    transition: background .2s, border-color .2s !important;
    color: rgba(255,255,255,.65) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: .3px !important;
}

.skin-red .sidebar-menu > li > a:hover {
    background: rgba(192,57,43,.18) !important;
    border-left-color: #c0392b !important;
    color: #fff !important;
}

/* Item activo */
.skin-red .sidebar-menu > li.active > a,
.skin-red .sidebar-menu > li.active > a:hover {
    background: linear-gradient(90deg, rgba(192,57,43,.35) 0%, rgba(192,57,43,.08) 100%) !important;
    border-left-color: #e74c3c !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* Treeview (submenú) */
.skin-red .sidebar-menu .treeview-menu {
    background: rgba(0,0,0,.2) !important;
    padding-left: 0 !important;
}

.skin-red .sidebar-menu .treeview-menu > li > a {
    color: rgba(255,255,255,.5) !important;
    font-size: 12px !important;
    padding: 8px 5px 8px 30px !important;
    transition: color .2s, padding-left .15s !important;
    border-left: 3px solid transparent !important;
}

.skin-red .sidebar-menu .treeview-menu > li > a:hover,
.skin-red .sidebar-menu .treeview-menu > li.active > a {
    color: #fff !important;
    background: rgba(192,57,43,.15) !important;
    border-left-color: #c0392b !important;
    padding-left: 34px !important;
}

/* Header del menú (etiqueta "MENÚ") */
.skin-red .sidebar-menu > li.header {
    color: rgba(255,255,255,.3) !important;
    background: transparent !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
    padding: 14px 16px 6px !important;
}

/* Search form */
.skin-red .sidebar-form {
    background: rgba(0,0,0,.2) !important;
    border-top: 1px solid rgba(255,255,255,.05) !important;
    border-bottom: 1px solid rgba(255,255,255,.05) !important;
    margin-bottom: 6px !important;
}

.skin-red .sidebar-form input {
    background: rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.7) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 6px 0 0 6px !important;
}

.skin-red .sidebar-form input::placeholder { color: rgba(255,255,255,.3) !important; }

.skin-red .sidebar-form .btn {
    background: rgba(192,57,43,.4) !important;
    border: 1px solid rgba(192,57,43,.5) !important;
    color: rgba(255,255,255,.7) !important;
    border-radius: 0 6px 6px 0 !important;
}

.skin-red .sidebar-form .btn:hover {
    background: rgba(192,57,43,.6) !important;
    color: #fff !important;
}

/* User panel */
.skin-red .user-panel {
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    padding: 12px !important;
}

/* ════════════════════════════════════════
   WIDGETS PREMIUM — Sistema Generamás
   ════════════════════════════════════════ */

/* Base — widget de importe (subtotal / IVA / final) */
.widget-importe {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
    position: relative;
    overflow: hidden;
}
.widget-importe::before {
    content: '';
    position: absolute;
    top: -30px; right: -20px;
    width: 90px; height: 90px;
    border-radius: 50%;
    opacity: .08;
    background: #fff;
}
.widget-importe .wi-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 6px;
}
.widget-importe .wi-value {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}
.widget-importe .wi-icon {
    position: absolute;
    bottom: 10px; right: 14px;
    font-size: 36px;
    opacity: .12;
}
.wi-subtotal {
    background: linear-gradient(135deg, #2c3e50 0%, #3d5166 100%);
    color: #fff;
}
.wi-iva {
    background: linear-gradient(135deg, #636e72 0%, #7f8c8d 100%);
    color: #fff;
}
.wi-final {
    background: linear-gradient(135deg, #00b09b 0%, #1a7a4a 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,176,155,.35);
}
.wi-final .wi-value {
    font-size: 26px;
}

/* Base — widget contador (dashboard / stats) */
.widget-contador {
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.widget-contador .wc-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 4px;
}
.widget-contador .wc-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .8;
    margin: 0;
}
.widget-contador .wc-icon {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: .15;
}
.wc-total    { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); box-shadow: 0 6px 18px rgba(26,115,232,.3); }
.wc-fabrica  { background: linear-gradient(135deg, #434343 0%, #2c3e50 100%); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.wc-domicilio{ background: linear-gradient(135deg, #5f72bd 0%, #3a4ea1 100%); box-shadow: 0 4px 14px rgba(63,81,181,.25); }
.wc-garantia { background: linear-gradient(135deg, #e67e22 0%, #c0392b 100%); box-shadow: 0 4px 14px rgba(230,126,34,.3); }
.wc-proceso  { background: linear-gradient(135deg, #f39c12 0%, #d35400 100%); box-shadow: 0 4px 14px rgba(243,156,18,.3); }

/* Base — widget filtro de estado (listado reparaciones) */
.widget-filtro {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    background: #f4f6f9;
    transition: all .2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.widget-filtro:hover {
    background: #e8ecf3;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transform: translateY(-1px);
}
.widget-filtro.activo {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
    box-shadow: 0 4px 14px rgba(44,62,80,.35);
}
.widget-filtro .wf-text {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
