/*!
 * This file is part of FacturaScripts
 * Copyright (C) 2013-2025 Carlos Garcia Gomez <carlos@facturascripts.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/* bootstrap customizations */
.navbar .dropdown-toggle::after {
    display: none;
}

.nav-pills-sm.nav > li > a,
.nav-pills-sm a {
    padding-top: 3px;
    padding-bottom: 3px;
}

.table th {
    border-top: none;
}

.clickable, .clickableRow:hover, .clickableListRow:hover {
    cursor: pointer;
}

.cancelClickable {
    cursor: default;
}

.custom-checkbox-control {
    position: relative;
    display: -ms-inline-flexbox;
    display: inline-flex;
    min-height: 1.2rem;
    padding-left: 1.5rem;
    margin-right: 1rem;
}

.dropdown-menu {
    position: absolute !important;
}

.dropdown-submenu {
    position: relative
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0;
    border-radius: 0.25rem;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-left-width: 0.3em;
    border-left-color: inherit;
    margin-right: -0.6em;
    margin-top: 0.6em;
}

.dropdown-submenu.pull-left {
    float: none
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

input[required].form-control:not(:read-only) {
    background-image: linear-gradient(to bottom, rgba(253, 253, 150, 0.5), rgba(253, 253, 150, 0.25));
}

textarea[required].form-control:not(:read-only) {
    background-image: linear-gradient(to bottom, rgba(253, 253, 150, 0.5), rgba(253, 253, 150, 0.25));
}

select[required].form-control:not(:disabled) {
    background-image: linear-gradient(to bottom, rgba(253, 253, 150, 0.5), rgba(253, 253, 150, 0.25));
}

/* Select2 required fields */
select[required].form-select.select2 + .select2-container--bootstrap-5 .select2-selection {
    box-shadow: 0 0 0 0.2rem rgba(253, 253, 150, 0.4) !important;
}

/* pace customizations */
.pace {
    -webkit-pointer-events: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.pace-inactive {
    display: none;
}

.pace .pace-progress {
    background: #ffffff;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 2px;
}

/* end pace customizations */
.pointer {
    cursor: pointer;
}

/* migrate to bootstrap5 */
.form-control[readonly], .form-select[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.order-6 {
    order: 6 !important;
}

.order-7 {
    order: 7 !important;
}

.order-8 {
    order: 8 !important;
}

.order-9 {
    order: 9 !important;
}

.order-10 {
    order: 10 !important;
}

.order-11 {
    order: 11 !important;
}

.order-12 {
    order: 12 !important;
}

a {
    text-decoration: none;
}

.table-warning {
    background-color: #ffeeba;
}
/* TEMA LUJO CLINICO INYECTADO */
body{background:#F8F4EA !important;}

/* =====================================================
   OVERRIDE TOTAL BOOTSTRAP (ELIMINA AZUL DEFINITIVAMENTE)
===================================================== */

/* Variables Bootstrap */
:root {
    --bs-primary: #3B3B39 !important;
    --bs-primary-rgb: 59, 59, 57 !important;

    --bs-link-color: #C79F41 !important;
    --bs-link-hover-color: #A98531 !important;
}

/* NAVBAR */
.navbar,
.main-header,
.bg-primary {
    background-color: #3B3B39 !important;
}

/* enlaces navbar */
.navbar a,
.navbar .nav-link,
.main-header a,
.main-header .nav-link {
    color: #FFFFFF !important;
}

.navbar .nav-link:hover,
.main-header .nav-link:hover {
    color: #F0DFC0 !important;
}

/* enlaces globales */
a,
a:visited {
    color: #C79F41 !important;
}

a:hover {
    color: #A98531 !important;
}

/* BOTONES PRIMARY */
.btn-primary,
button.btn-primary {
    background-color: #3B3B39 !important;
    border-color: #3B3B39 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #C79F41 !important;
    border-color: #C79F41 !important;
}

/* BOTONES OUTLINE */
.btn-outline-primary {
    color: #C79F41 !important;
    border-color: #C79F41 !important;
}

.btn-outline-primary:hover {
    background-color: #C79F41 !important;
    color: #fff !important;
}

/* enlaces tipo bot贸n */
.btn-link {
    color: #C79F41 !important;
}

.btn-link:hover {
    color: #A98531 !important;
}

/* BADGES */
.badge.bg-primary,
.bg-primary {
    background-color: #3B3B39 !important;
}

/* =====================================================
   SUBMENÚS DESPLEGABLES - TEXTO VISIBLE
===================================================== */

.navbar .dropdown-menu,
.main-header .dropdown-menu,
.dropdown-menu {
    background-color: #FFFFFF !important;
    border: 1px solid #D9CDB7 !important;
    border-radius: 12px !important;
}

.navbar .dropdown-menu a,
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .nav-link,
.main-header .dropdown-menu a,
.main-header .dropdown-menu .dropdown-item,
.main-header .dropdown-menu .nav-link,
.dropdown-menu a,
.dropdown-menu .dropdown-item,
.dropdown-menu .nav-link {
    color: #3B3B39 !important;
    background-color: transparent !important;
}

.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .nav-link:hover,
.main-header .dropdown-menu a:hover,
.main-header .dropdown-menu .dropdown-item:hover,
.main-header .dropdown-menu .nav-link:hover,
.dropdown-menu a:hover,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .nav-link:hover {
    color: #C79F41 !important;
    background-color: #F8F4EA !important;
}

.navbar .dropdown-menu .dropdown-header,
.main-header .dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-header {
    color: #7D766B !important;
}

.navbar .dropdown-menu .dropdown-divider,
.main-header .dropdown-menu .dropdown-divider,
.dropdown-menu .dropdown-divider {
    border-color: #E7DCC8 !important;
}
