/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 30 may. 2024, 14:51:42
    Author     : wie
*/
/* Barra Pace del tema SeanTheme (línea horizontal + spinner arriba a la derecha) */
.pace,
.pace .pace-progress,
.pace .pace-activity {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

:root {
    --bs-bg-opacity: 1; /* Valor por defecto de la opacidad de fondo */
    --bs-red-rgb: 229, 46, 61; /* Valores RGB de #e52e3d */
    --bs-purple-rgb: 149, 37, 130; /* Valores RGB de #952582 */
    --bs-green-rgb: 76, 172, 78; /* Valores RGB de #4cac4e */
    --bs-blueligth-rgb: 85, 179, 229; /* Valores RGB de #55b3e5 */
    --bs-blue-rgb: 42, 73, 148; /* Valores RGB de #2a4994 */
    --bs-yellow-rgb: var(--tenant-primary-rgb);
}
.float-right{
    float: right;
}
/* ============================================
   Logo Styles
   ============================================ */
.pos .pos-header .logo > a .logo-img img,
.pos .pos-header .logo > div .logo-img img {
    height: 47px;
}

/* ============================================
   System Background Colors
   ============================================ */
.bg-sys-red {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-red-rgb), var(--bs-bg-opacity));
}

.bg-sys-pos {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-purple-rgb), var(--bs-bg-opacity));
}

.bg-sys-medic {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-green-rgb), var(--bs-bg-opacity));
}

.bg-sys-pet {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-yellow-rgb), var(--bs-bg-opacity));
}

.bg-sys-pedidos {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-blueligth-rgb), var(--bs-bg-opacity));
}

.bg-sys-facturacion {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-blue-rgb), var(--bs-bg-opacity));
}
.icon-appbar img{
    max-width: 30px;
}
#bg-empresa {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    padding-left: 20px;
}
#bg-empresa-truncated {
    display: none;
}

/* ============================================
   Navbar Styles
   ============================================ */
.app-header .navbar-nav .navbar-item .navbar-link {
    padding: 10px;
}

/* Oculta el texto completo en móviles */
@media (max-width: 768px) {
    #bg-empresa {
        display: none;
    }

    #bg-empresa-truncated {
        display: inline-block;
    }
    .fixed-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .pos .pos-header {
        top: 100px;
    }
}
/* ============================================
   Menu Icon Styles
   ============================================ */
.menu-icon {
    color: rgb(var(--bs-yellow-rgb));
}



.pos .pos-header{
    top: 50px;
}
.pos .pos-menu{
    /*width: 13rem !important;*/
    /*padding-right: 3.7375rem !important;*/
    background-color: #DEE2E6;
    margin-top: 3rem;
}
.pos .pos-with-sidebar-wide{
    padding-right: 0;
}/*
.pos.pos-with-sidebar{
    padding-right: 20.5rem !important;
}*/
.pos.pos-with-menu{

    /*padding-left: 8rem !important;*/
}
.pos .pos-sidebar {
    margin-top: 4rem;
    margin-right: 15px;
}
.pos .pos-sidebar .pos-sidebar-footer{
    padding-bottom: 6rem;
}
.pos-wide .widget-card-wide {
    box-shadow: 0 4rem 2rem rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.pos-wide .widget-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pos-wide .widget-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pos-wide .widget-card-cover {
    background-size: cover;
    background-position: center;
    height: 200px;
}

.pos-wide .widget-card-content {
    text-align: center;
    padding: 20px;
}

.pos-wide .widget-card:hover .widget-card-cover {
    filter: brightness(0.95);
}

.pos-wide .widget-card:hover .widget-card-content h4,
.widget-card:hover .widget-card-content i {
    transform: scale(1.3);
    transition: transform 0.5s ease;
}

/*Styles for the selected table*/
.pos-table.selected {
    border: 2px solid #00aaff;
}

/*Styles for the sidebar*/
.pos-sidebar {
    display: none;
    width: 300px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}


/* ============================================
   Notifications
   ============================================ */
.timeout-alert {
    color: yellow;
    font-weight: bold;
}

.gritter-title {
    color: yellow;
}

.gritter-close {
    color: aqua;
}
.gritter-close :before{
    content: 'Aceptar';
}
#pos-table{
    height: 290px;

}
.pos-content{
    padding-left:10rem;
}
#pos{
    padding-top: 0rem;
}
@media (max-width: 995px) {
    #newOrderTab #pos-table{
        height:100%;
        overflow-y: auto;
    }

    .pos .pos-sidebar .pos-sidebar-footer{
        padding-bottom: 2rem;
    }
    .pos-content{
        padding-left:0rem;
    }
    .pos .pos-sidebar {
        margin-top: 0;
        margin-right: 0;
    }
    #pos{
        padding-top: 6rem;
    }
}

/* ============================================
   FIX: Flechas de ordenamiento en DataTables
   Corrige el desbordamiento de los indicadores
   de sorting al estar en focus/activo
   ============================================ */
table.dataTable thead > tr > th,
table.dataTable thead > tr > td {
    box-sizing: border-box;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:after {
    position: absolute;
    right: 10px;
    line-height: 9px;
    font-size: 0.8em;
    top: auto;
    bottom: auto;
}

table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:before {
    bottom: 50%;
    top: auto;
}

table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:after {
    top: 50%;
    bottom: auto;
}

table.dataTable thead > tr > th:focus,
table.dataTable thead > tr > th:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ============================================
   Modal Buttons - Glass Effect
   ============================================ */
.modal .btn-light,
.modal-footer .btn-light,
.modal .btn.btn-light[data-bs-dismiss="modal"] {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal .btn-light:hover,
.modal-footer .btn-light:hover,
.modal .btn.btn-light[data-bs-dismiss="modal"]:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    color: #1f2937;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.modal .btn-light:active,
.modal-footer .btn-light:active,
.modal .btn.btn-light[data-bs-dismiss="modal"]:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal .btn-light i,
.modal-footer .btn-light i,
.modal .btn.btn-light[data-bs-dismiss="modal"] i {
    color: #6b7280;
    transition: all 0.3s ease;
}

.modal .btn-light:hover i,
.modal-footer .btn-light:hover i,
.modal .btn.btn-light[data-bs-dismiss="modal"]:hover i {
    color: #374151;
    transform: scale(1.1);
}
