:root {
    --my-color: #083652;
}

.pointer {
    cursor: pointer;
}

.fondo {
    background-image: url("../resources//fondo1.jpg");
}

.modalHeader {
    /*background-color: #007bff;*/
    /*color: #ffffff;*/
    height: 55px;
}

.modalHeaderTitle {
    font-size: 10px !important;
}

.cardTable-primary {
    border-top: 4px solid var(--my-color);
}

.cardTable-secondary {
    border-top: 4px solid #6c757d;
}

.cardTable-success {
    border-top: 4px solid #28a745;
}

.cardTable-danger {
    border-top: 4px solid #dc3545;
}

.cardTable-warning {
    border-top: 4px solid #ffc107;
}

.cardTable-info {
    border-top: 4px solid #17a2b8;
}

.fullwidth {
    width: 100%;
}

.color-danger {
    color: #dc3545;
}

.color-secondary {
    color: #6c757d;
}

.color-primary {
    color: var(--my-color);
}

.noPadding {
    padding: 0 !important;
    margin: 0 !important;
}

.miSideBarDerecho {
    background-color: #3f3f3f;
}

.asterisco {
    color: red;
}

.color-sistema {
    color: var(--my-color) !important;
}

.bgcolor-sistema {
    background: var(--my-color) !important;
    color: #ffffff !important;
}

.sidebar-dark-blue {
    background: var(--my-color) !important;
}

.cardTable-primary {
    border-top-color: var(--my-color) !important;
}

.btn-primary {
    background: var(--my-color) !important;
    border-color: var(--my-color) !important;
}

.btn-outline-primary {
    color: var(--my-color) !important;
    border-color: var(--my-color) !important;
}

.primary {
    color: var(--my-color) !important;
}

.border-success {
    border-color: var(--my-color) !important;
    border-width: 2px !important;
}

.callout-success {
    border-left-color: var(--my-color) !important;
}

.page-item.active .page-link {
    background: var(--my-color) !important;
    border-color: var(--my-color) !important;
    color: #ffffff !important;
}

.page-link {
    color: var(--my-color) !important;
}

.table.dataTable tbody tr.selected {
    color: white;
    background: var(--my-color) !important;
}

.swal2-styled.swal2-confirm {
    background: var(--my-color) !important;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active a {
    color: white;
    background: var(--my-color) !important;
    border-color: var(--my-color) !important;
}

.textoPos {
    font-size: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
    /* asegura altura uniforme */
}

.paddingLess {
    padding: 2px !important;
    margin: 3 !important;
}

.bgcolor-icono {
    color: rgba(255, 255, 255, 0.2) !important;
}

body {
    font-size: 12px;
    /* Tamaño de fuente base */
}


.swal2-error2 {
    background-color: #be3838 !important;
}

.swal2-success2 {
    background-color: #506aff !important;
}

.swal2-title2 {
    color: #e5e5e5 !important;
}

.precio-badge {
    top: -3px;
    left: -3px;
    border-radius: 0;
    /* cuadrado */
    padding: 6px 10px;
    font-size: 0.9rem;
    transform: translate(-2%, -2%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.fixed-img {
    object-fit: cover;
    height: 150px;
    /* Ajusta según el tamaño que quieras */
    width: 100%;
}

#my_camera {
    width: 210px;
    height: 200px;
    background-color: lightgrey;
    overflow: hidden;
    /* oculta recortes */
    display: flex;
    justify-content: center;
    align-items: center;
}

#my_camera video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    /* hace que tanto el video como la foto llenen el div */
    display: block;
}

#my_camera img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* hace que tanto el video como la foto llenen el div */
    display: block;
}

/* --- Modern Dashboard Styles --- */

.modern-stat-card {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    overflow: hidden;
}

.modern-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.modern-stat-card .inner {
    padding: 20px;
}

.modern-stat-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.modern-stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.modern-stat-card .icon {
    top: 15px;
    right: 15px;
}

.modern-stat-card .icon i {
    opacity: 0.2;
    font-size: 80px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modern-stat-card:hover .icon i {
    opacity: 0.3;
    transform: rotate(-5deg) scale(1.1);
}

.modern-stat-card .small-box-footer {
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 0 15px 15px;
    padding: 10px;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none !important;
}

.modern-stat-card .small-box-footer:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Charts */
.modern-chart-card {
    background: #fff;
    border-radius: 15px !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border: none !important;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.modern-chart-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modern-chart-card .card-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-chart-card .card-title {
    font-weight: 700;
    color: #444;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.modern-chart-card .card-body {
    padding: 25px;
}

.modern-chart-card .btn-tool {
    color: #adb5bd;
}

.modern-chart-card .btn-tool:hover {
    color: #495057;
}

/* --- POS System Modern Styles --- */

.pos-product-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pos-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--my-color) !important;
}

.pos-product-card .card-body {
    padding: 0;
    position: relative;
    height: 140px;
    /* Fixed height for image area */
    overflow: hidden;
    flex-shrink: 0;
}

.pos-product-card .fixed-img {
    height: 100%;
    width: 100%;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.pos-product-card:hover .fixed-img {
    transform: scale(1.05);
}

.pos-product-card .price-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    background: rgba(8, 54, 82, 0.95) !important;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: none;
}

.pos-product-card .card-footer {
    background: #fff;
    border-top: 1px solid #f0f0f0 !important;
    padding: 10px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pos-product-card .textoPos {
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #444;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 2px;
}

/* Empty Cart State */
.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 400px) !important;
    width: 100%;
    color: #cbd5e0;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #d1d8e0;
    /* Dashed border the user liked */
}

.empty-cart-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.empty-cart-text {
    font-size: 1.1rem;
    color: #a0aec0;
    font-weight: 500;
}

/* POS Layout Layout Helpers */
.pos-container-scroll {
    height: calc(100vh - 280px) !important;
    /* Adjust offset based on approximate header/inputs height */
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* --- Mobile POS Styles --- */
.mobile-view-container {
    padding-bottom: 80px;
    /* Space for bottom bar */
}

.mobile-fab-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.mobile-product-card {
    display: flex;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 90px;
}

.mobile-product-card:active {
    background-color: #f8f9fa;
    transform: scale(0.98);
}

.mobile-product-card .img-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.mobile-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-product-card .info-container {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.mobile-product-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.mobile-product-card .code {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
}

.mobile-product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--my-color);
}

.mobile-cart-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.mobile-cart-item:last-child {
    border-bottom: none;
}


.pos-cart-scroll {
    height: calc(100vh - 400px) !important;
    /* Larger offset because of payment buttons/totals below */
    overflow-y: auto !important;
    overflow-x: hidden;
}