@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* =========================================
   Tipografía base
========================================= */
body, #pos-app, #pos-app input, #pos-app table, #pos-app button {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}

/* =========================================
   Estructura principal
========================================= */
#pos-app {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
}

#pos-layout-with-sidebar {
    display: flex;
    min-height: calc(100vh - 40px);
}


/* =========================================
   Sidebar
========================================= */
#pos-sidebar .pos-sidebar-item {
    margin: 0;
    position: relative;
}

#pos-sidebar .pos-sidebar-item a {
    color: #535455 !important;
    display: block;
    text-align: center;
    padding: 8px;
}

#pos-sidebar .pos-sidebar-item.active {
    background: #34495e;
    border-radius: 4px;
}

#pos-sidebar .pos-sidebar-item:hover::after {
    content: attr(title);
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: #34495e;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 999;
}

/* =========================================
   Buscador
========================================= */
#pos-search-bar {
   

    margin-bottom: 15px;
   
}

#pos-search-bar input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
   
   
    transition: all 0.2s ease;
}

#pos-search-bar input:focus {
    outline: none;
}


/* =========================================
   Layout interno
========================================= */
#pos-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#pos-results {
    flex: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 900px;
    display: flex;
    flex-direction: column;
    /* NUEVO */
    max-height: calc(100vh - 200px); /* o ajusta el valor según tu diseño */
    overflow-y: auto;
}

#pos-results-list {
    flex: 1;
    overflow-y: auto;
    padding-top: 3px;
}

#pos-results::-webkit-scrollbar {
    width: 8px;
}

#pos-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#pos-results::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

#pos-results::-webkit-scrollbar-thumb:hover {
    background: #999;
}


#pos-results, #pos-cart {
    flex: 1;
    background: #fff;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 800px;
}

#pos-results ul {
    list-style: none;
    padding: 0;
}

#pos-results li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#pos-results img {
    width: 100px;
}

/* Scrollbar clara */
#pos-results::-webkit-scrollbar,
#pos-cart::-webkit-scrollbar {
    width: 8px;
}

#pos-results::-webkit-scrollbar-track,
#pos-cart::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#pos-results::-webkit-scrollbar-thumb,
#pos-cart::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

#pos-results::-webkit-scrollbar-thumb:hover,
#pos-cart::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Scrollbar para dark mode */
body.pos-dark #pos-results::-webkit-scrollbar,
body.pos-dark #pos-cart::-webkit-scrollbar {
    width: 8px;
}

body.pos-dark #pos-results::-webkit-scrollbar-track,
body.pos-dark #pos-cart::-webkit-scrollbar-track {
    background: #222;
}

body.pos-dark #pos-results::-webkit-scrollbar-thumb,
body.pos-dark #pos-cart::-webkit-scrollbar-thumb {
    background: #444;
}

body.pos-dark #pos-results::-webkit-scrollbar-thumb:hover,
body.pos-dark #pos-cart::-webkit-scrollbar-thumb:hover {
    background: #666;
}


/* =========================================
   Carrito
========================================= */
#pos-cart h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
}

.pos-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.pos-cart-table th,
.pos-cart-table td {
    text-align: center;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.pos-cart-table th {
    background: #e9ecef;
}

.pos-summary {
    text-align: right;
}

.pos-summary p {
    margin: 2px 0;
}

.pos-summary strong {
    font-size: 14px;
}

/* =========================================
   Botones
========================================= */
button,
.pos-btn {
    font-size: 14px;
    border-radius: 4px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pos-btn-primary, #pos-open-payment {
    background: #007bff;
    color: #fff;
}

.pos-btn-primary:hover {
    opacity:0.8;
}

#pos-open-payment {
   padding: 21px 27px;
}


.pos-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.pos-btn-secondary:hover {
    background: #5a6268;
}

.pos-btn-danger {
    background: #dc3545;
    color: #fff;
}

.pos-btn-danger:hover {
    background: #c82333;
}

.qty-plus,
.qty-minus {
    background: #0073aa;
    border: 1px solid #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 20px;
    text-align: center;
    padding: 1px;
    margin: 6px;
}

/* =========================================
   Modales
========================================= */
#pos-overlay,
#pos-ticket-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

#pos-payment-modal,
#pos-ticket-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001;
    display: none;
}

#pos-ticket-modal {
   
    padding: 0;
}
#pos-payment-modal {
    min-width: 300px;
}

#pos-payment-modal .pos-modal-content,
#pos-ticket-modal .pos-ticket-modal-content {
    text-align: center;
}

#pos-ticket-modal {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#pos-ticket-html {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 15px;
}

#pos-ticket-html img {
    padding-bottom: 21px;
}

#pos-ticket-html table th,
#pos-ticket-html table td {
    border-bottom: 1px solid #ddd;
    padding: 4px;
}

#pos-ticket-html table th {
    background: #f5f5f5;
}

#pos-ticket-html hr {
    margin-top: 1.5em;
}

/* =========================================
   Ticket tamaños
========================================= */
.ticket-58 #pos-ticket-modal {
    width: 58mm !important;
    max-width: 58mm !important;
}

.ticket-80 #pos-ticket-modal {
    width: 80mm !important;
    max-width: 80mm !important;
}

/* =========================================
   Print
========================================= */
@media print {
    body * {
        visibility: hidden !important;
    }

    #pos-ticket-modal,
    #pos-ticket-modal * {
        visibility: visible !important;
    }

    #pos-ticket-modal {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 58mm !important;
        max-width: 58mm !important;
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    #pos-ticket-html {
        font-size: 10px;
        line-height: 1.3;
        padding: 5px;
    }

    .pos-ticket-buttons {
        display: none !important;
    }
}

/* =========================================
   Animación carrito
========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.pos-cart-table tbody tr {
    animation: fadeIn 0.3s ease;
}

/* =========================================
   Tema oscuro opcional
========================================= */
body.pos-dark {
    background-color: #121212;
    color: #e0e0e0;
}

body.pos-dark #pos-app,
body.pos-dark #pos-main-content,
body.pos-dark #pos-results,
body.pos-dark #pos-cart {
    background-color: #1e1e1e;
    border-color: #333;
}

body.pos-dark #pos-search {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

body.pos-dark #pos-sidebar {
    background: #2c2c2c;
}

body.pos-dark #pos-sidebar .pos-sidebar-item.active,
body.pos-dark #pos-sidebar .pos-sidebar-item:hover::after {
    background: #3c3c3c;
}

body.pos-dark .pos-cart-table th {
    background-color: #2c2c2c;
}



#pos-layout-with-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#pos-header {
    height: 50px;
    background: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: 500;
}

#pos-content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
}

#pos-sidebar {
    width: 60px;
    background: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

#pos-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    overflow-y: auto;
}



#pos-header .pos-header-logo img {
    height: 40px;
}

#pos-header .pos-header-title {
    font-size: 18px;
    font-weight: bold;
    display: flex
;
    gap: 20px;
    align-content: center;
    align-items: center;
}
#pos-header .pos-header-user {
    font-size: 14px;
}

#pos-payment-modal select#pos-payment-method {
    width: 140px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

#pos-payment-modal select#pos-payment-method:hover {
    border-color: #007bff;
}

#pos-payment-modal select#pos-payment-method:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}


.woocommerce-js input[type=number] {
    max-width: 116px;
    min-height: 36px;
}

/* =========================================
   Modal de pago: maquetación profesional
========================================= */
#pos-payment-modal .pos-modal-content {
    text-align: left;
    font-size: 15px;
    color: #333;
}

#pos-payment-modal h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

#pos-payment-modal .payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

#pos-payment-modal .payment-row label {
    flex: 1;
    font-weight: 500;
}

#pos-payment-modal .payment-row select,
#pos-payment-modal .payment-row input {
    flex: 1;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#pos-payment-modal .payment-row input {
    text-align: right;
}

#pos-payment-modal .payment-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#pos-payment-modal .payment-buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 10px 12px;
    font-size: 15px;
}

#pos-payment-modal .payment-total {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
   color :var(--color-gris-claro)!important;
}

.pos-cart-table img {
    width: 50px;
}

#pos-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#pos-cart .pos-cart-content {
    flex: 1;
    overflow-y: auto;
}

#pos-cart .pos-summary {
    margin-top: auto;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}


#pos-app,
#pos-layout-with-sidebar,
#pos-content-wrapper {
    height: 100vh;
    min-height: 100vh;
}

#pos-main-content {
    flex: 1;
    overflow-y: auto;
}

.pos-add.pos-btn-primary {
    padding: 6px 10px;
    font-size: 21px !important;
}

.pos-cart-table td.price-column {
    width: 100px; /* o el valor que prefieras */
}

.woocommerce-js  .pos-cart-table input[type=number] {
     max-width: 100px; 
     
}

button.pos-remove-item {
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

button.pos-remove-item:hover {
    background: #c82333;
}


.pos-customer-fields {
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pos-customer-fields h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #2c3e50;
}

.customer-fields-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.customer-input-group {
    flex: 1 1 200px;
}

.customer-input-group label {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
    display: block;
}

.customer-input-wrapper {
    position: relative;
}

.customer-input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.customer-input-wrapper input {
    width: 100%;
    padding: 8px 8px 8px 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#pos-layout input[type="text"], #pos-layout input[type="email"] , #pos-layout input[type="tel"] {
       padding: 12px 30px; 
}

/* POS Stylesheet con paleta de colores */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    --color-claro: #FFFCF2;
    --color-gris-claro: #80bd01;
    --color-gris-medio: #80bd01;
    --color-gris-oscuro: #000000;
    --color-acento: #535455;
}

body, #pos-app, #pos-app input, #pos-app table, #pos-app button, .button {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}

#pos-app {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-claro);
}

#pos-main-content {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#pos-sidebar {
    background: #ececec;
}

#pos-sidebar .pos-sidebar-item.active,
#pos-sidebar .pos-sidebar-item:hover::after {
    background: var(--color-gris-medio);
}

#pos-sidebar .pos-sidebar-item a {
    height: 40px;
}

#pos-search-bar {
     background: #ccc;
}


#pos-results, #pos-cart {
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.pos-btn-primary, #pos-open-payment {
    background: var(--color-acento);
    color: white;
}



.qty-plus, .qty-minus {
    background: var(--color-gris-oscuro);
    border: 1px solid var(--color-gris-oscuro);
    color: white;
}

#pos-header {
    background: #ececec;
    color: white;
}

.pos-cart-table th {
    background: var(--color-gris-claro);
}

#pos-payment-modal {
    background: white;
}

#pos-payment-modal .payment-buttons button {
    background: var(--color-acento);
    color: white;
}

#pos-payment-modal .payment-buttons button:hover {
    background: #d34f20;
}

#pos-results li {
    border-bottom: 1px solid var(--color-gris-claro);
}


.pos-customer-fields {
    background: var(--color-claro);
}

/* Botones principales en 535455 */
button,
.pos-btn {
    font-size: 14px;
    border-radius: 4px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pos-btn-primary,
#pos-open-payment {
    background: #535455;
    color: #fff;
}

.pos-btn-primary:hover,
#pos-open-payment:hover {
    background: #c74d1f;
}

.pos-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.pos-btn-secondary:hover {
    background: #5a6268;
}

.pos-btn-danger {
    background: #dc3545;
    color: #fff;
}

.pos-btn-danger:hover {
    background: #c82333;
}

.qty-plus,
.qty-minus {
    background: #535455;
    border: 1px solid #535455;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 20px;
    text-align: center;
    padding: 1px;
    margin: 6px;
}

button.pos-remove-item {
    background: #dc3545;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

button.pos-remove-item:hover {
    background: #c82333;
}


.pos-add.pos-btn-primary, #pos-add-customer, #pos-open-payment {
        background: #535455;
    color: #fff;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-name {
    cursor: pointer;
}

.user-submenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    min-width: 150px;
    z-index: 1002;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-submenu li {
    padding: 5px 15px;
}

.user-submenu li a {
    color: #333;
    text-decoration: none;
}

.user-submenu li:hover {
    background: #f1f1f1;
}

.user-menu:hover .user-submenu {
    display: block;
}

#pos-main-content table {
    width: 100%;
    border-collapse: collapse;
}
#pos-main-content th,
#pos-main-content td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}
#pos-main-content th {
    background: #f4f4f4;
}



#inventory-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

#inventory-filters input[type="text"],
#inventory-filters select {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#inventory-filters select {
    margin-left: 5px;
    margin-right: 5px;
    padding: 4px 8px;
}

.wp-list-table img {
    width: 50px;
}

.table-inventory .view_more {
    color: #535455!important;
    cursor: pointer;
    font-weight: 600;
}

.table-inventory .button-edit {
    background: #535455 !important;
    border: none;
    color: #fff;
    padding: 14px 17px !important;
    border-radius: 4px;
}
.table-inventory .button-edit:hover {
   opacity:0.8;
}
button.button-primary, .pos-btn-primary{
      background: #535455 !important;
    border: none;
    color: #fff;
    border-radius: 4px;
}


.pos-btn-secondary {
    background: var(--color-gris-claro)!important;;
    color:  #fff!important;;
}

.pos-btn-secondary:hover {
    opacity:0.8;
}

.pos-btn-danger {
    background: #c82333!important;;
    color: white!important;;
}

.pos-btn-danger:hover {
    background: #a71d2a!important;;
}

#pos-customer-suggestions div {
    padding: 5px 10px;
    cursor: pointer;
}

#pos-customer-suggestions div:hover {
    background: #f1f1f1;
}

.pos-customer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

#pos-search-customer {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#pos-customer-suggestions {
    position: absolute;
    top: 40px;
    width: 250px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 2px 0 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pos-customer-suggestions li {
    padding: 6px 10px;
    cursor: pointer;
}

#pos-customer-suggestions li:hover {
    background: #535455;
    color: #fff;
}


.selected-customer-box {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #ccc;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

.pos-giftcard-form {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.giftcard-fields-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.giftcard-input-group {
    flex: 1 1 200px;
}

.giftcard-input-group label {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
    display: block;
}

.giftcard-input-wrapper {
    position: relative;
}

.giftcard-input-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.giftcard-input-wrapper input {
    width: 100%;
    padding: 8px 8px 8px 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* =========================================
   Vales regalo
========================================= */

#giftcard-form {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
}

#giftcard-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
}

#giftcard-form input {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}

#giftcard-form button {
    padding: 8px 12px;
    font-size: 14px;
}

.giftcard-list {
    margin-top: 20px;
}

.giftcard-list table {
    width: 100%;
    border-collapse: collapse;
}

.giftcard-list th,
.giftcard-list td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 13px;
    text-align: center;
}

.giftcard-list th {
    background: #f1f1f1;
    font-weight: 600;
}

.giftcard-code {
    font-family: monospace;
    color: #0073aa;
}

/* ====== Vales Regalo ====== */

#pos-giftcards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

#pos-giftcards-table th,
#pos-giftcards-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e2e2e2;
}

#pos-giftcards-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

#pos-giftcards-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

#pos-giftcards-table tbody tr:hover {
    background-color: #f1f1f1;
}

#pos-giftcards-table .pos-btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#pos-giftcards-table .pos-btn-secondary:hover {
    background-color: #5a6268;
}

#pos-giftcards-table .status-pendiente {
    color: #007bff;
    font-weight: 500;
}

#pos-giftcards-table .status-canjeado {
    color: #28a745;
    font-weight: 500;
}

#pos-giftcards-table .status-expirado {
    color: #dc3545;
    font-weight: 500;
}

#pos-giftcards-table td code {
    font-family: monospace;
    font-size: 13px;
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
}
@media print {
    body * {
        visibility: hidden;
    }

    #giftcard-result, #giftcard-result * {
        visibility: visible;
    }

    #giftcard-result {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
     #pos-abono-modal,
    #pos-abono-modal * {
        visibility: visible;
    }

    #pos-abono-modal {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Opcional: Ocultar botones */
    #btn-imprimir-recibo,
    #btn-cerrar-recibo {
        display: none !important;
    }
}


.ea11y-widget-button--open-widget.ea11y-widget-open-button--icon.ea11y-widget-open-button--large {
    display:none;
}
#pos-ticket-modal button {
    font-size: 17px;
    padding: 10px;
    background: var(--color-acento);
}

button:hover {
    opacity: 0.8;
}

#pos-ticket-modal button {
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 4px;
}

.pos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.pos-table th,
.pos-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pos-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.pos-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.pos-table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Opcional para tablas con acciones */
.pos-table td .pos-btn {
    margin: 0 2px;
    padding: 4px 8px;
    font-size: 13px;
}

#pos-giftcard-create-form table {
    width: 34%;
}

#giftcard-amount {
    max-width: 150px;
}

#ea11y-root {
    display:none !important;
}
#pos-sound-toggle {
    cursor: pointer;
    font-size: 18px;
    margin-left: 15px;
    display: inline-block;
}


/* En tu CSS o dentro de <style> */
#counted-badge.ok {
    background: #28a745;
}
#counted-badge.ko {
    background: #dc3545;
}
#counted-badge.neutral {
    background: #007bff;
}
#counted-badge {
    transition: background 0.3s ease, transform 0.2s ease;
}


.closure-section {
        max-width: 800px;
        margin: 0 auto;
    }
    .breakdown-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }
    .breakdown-item {
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 8px;
        text-align: center;
        background: #f9f9f9;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .totals .row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .badge {
        font-weight: 600;
        padding: 9px 14px;
        border-radius: 4px;
        color: #fff;
        width: 109px;
    }
    .badge-green {
        background: var(--color-gris-claro) !important;
    }
    .badge-grey {
        background: #afafaf !important;
    }
    .badge-red {
        background: #dc3545!important;
    }
    .submit-btn {
        margin-top: 20px;
        display: block;
        width: 100%;
        padding: 10px;
        background: var(--color-gris-claro);
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
    }
    .submit-btn:hover {
        background: #c74d1f;
    }

      .closure-section h2 {
        font-size: 23px;
    }

    #total_to_deliver, .denomination, #real_cash, #discrepancy_cash,#discrepancy_cards, #counted-badge, #total_cards,#real_cards, #cash_outflows, #cash_bank {
        max-width: 110px;
    }
    
    #total_to_deliver {
        font-weight: bold;
        background: green;
        color: #fff;
    }
       
  #pos-main-content h2 {
    background: #f9f9f9;
    padding: 5px 16px;
    color: var(--color-gris-claro);
}

.message-box {
  width: 440px;
  border-radius: 6px;
  margin: 20px auto;
  padding: auto 0;
  position: relative;
}
.message-box i {
  vertical-align: middle;
  padding: 20px;
}
.message-box i.exit-button {
  float: right;
  opacity: 0.4;
}
.message-box i.exit-button:hover {
  opacity: 0.8;
}

.message-text {
  vertical-align: middle;
}

.message-box-info {
  background-color: #CDE8F6;
  border: #2697d1 2px solid;
  color: #447EAF;
}

.message-box-warn {
  background-color: #F8F4D5;
  border: #e9dd7e 2px solid;
  color: #96722E;
}

.message-box-error {
  background-color: #ECC8C5;
  border: #d37f78 2px solid;
  color: #B83C37;
}

.message-box-success {
  background-color: #DDF3D5;
  border: #9ddc86 2px solid;
  color: #597151;
}
.message-box p {
padding: 12px;
margin: 0;
}


#pos-content-wrapper.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/*RESPONSIVE*/

@media (max-width: 1024px) {
  #pos-layout {
    flex-direction: column;
  }

  #pos-content-wrapper {
    flex-direction: column;
  }

  #pos-sidebar {
    flex-direction: row;
    width: 100%;
    height: auto;
    justify-content: space-around;
    padding: 10px 0;
  }

  #pos-sidebar .pos-sidebar-item a {
    padding: 6px;
    font-size: 12px;
  }

  #pos-main-content {
    padding: 15px;
  }

  #pos-results, #pos-cart {
    min-height: auto;
  }

  .pos-cart-table img, #pos-results img {
    width: 40px;
  }

  .pos-btn,
  .pos-btn-primary,
  .pos-btn-secondary,
  .pos-btn-danger {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }

  .pos-summary {
    text-align: left;
  }

  .payment-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-row label,
  .payment-row input,
  .payment-row select {
    width: 100%;
  }

  .payment-buttons {
    flex-direction: column;
  }

  .payment-buttons button {
    width: 100%;
    margin: 5px 0;
  }
}

@media (max-width: 600px) {
  .customer-fields-row,
  .giftcard-fields-row {
    flex-direction: column;
  }

  .customer-input-group,
  .giftcard-input-group {
    width: 100%;
  }

  .breakdown-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  #pos-payment-modal {
    width: 95% !important;
    max-width: 95% !important;
  }

  #pos-ticket-modal {
    max-width: 95%;
  }

  #pos-search-bar input {
    font-size: 14px;
    padding: 8px;
  }

  .pos-add.pos-btn-primary {
    font-size: 18px !important;
    padding: 8px 12px;
  }

  .pos-table th,
  .pos-table td {
    font-size: 13px;
    padding: 6px 8px;
  }

  #pos-header {
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    padding: 10px;
  }

  .pos-cart-table td.price-column {
    width: auto;
  }
}

.pos-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pending-search {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    width: 25% !important;
    margin-left: 42px;
}
.pending-payment-item {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f9f9f9;
}

#pos-abono-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pos-ticket-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#pos-abono-html p {
    margin: 6px 0;
}

#btn-imprimir-recibo,
#btn-cerrar-recibo {
    padding: 8px 16px;
    margin: 10px 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#btn-imprimir-recibo {
    background-color: #007cba;
    color: white;
}

#btn-cerrar-recibo {
    background-color: #ccc;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 3px;
    margin: 0;
}
.pos-favorite-toggle.pulse {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}
.pos-favorite-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.product-card {
  position: relative;
  cursor: pointer;
}

.product-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    line-height: normal;
}

.product-card .product-image img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 6px;
}

.product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    min-height: 40px;
}

.product-card .product-price {
    font-size: 14px;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card .pos-add {
    align-self: center;
    font-size: 18px;
    padding: 6px 10px;
    line-height: 1;
}

.product-card {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.product-card:hover {
    box-shadow: 0 0 0 3px #ccc;
}

.pos-extras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(127px, 1fr));
    gap: 12px;
    margin-top: 0px;
}

#calculator-modal {
    display:none; 
    position:fixed; 
    top:50%; 
    left:50%; 
    transform:translate(-50%,-50%);
    background:#fff; 
    padding:20px; 
    z-index:9999; 
    border-radius:8px; 
    box-shadow:0 0 10px rgba(0,0,0,0.3); 
    width:400px;
}

.calc-btn {
    line-height: 2em;
}

#pos-add-customer {
    padding: 12px 18px;
}

/* Switch redondo */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 40px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background-color: #ddd;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}

input[type="checkbox"]::before {
      content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 1px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Activo */
input[type="checkbox"]:checked {
  background-color: var(--color-gris-claro)!important;
  border-color: var(--color-gris-claro)!important;
}

input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}
.alinear {
  display: flex;
  align-items: center;  /* alinea verticalmente */
  gap: 8px;             /* espacio entre el toggle y el texto */
}

.alinear input[type="checkbox"] {
  accent-color: #007bff; /* color del toggle en navegadores modernos */
  transform: scale(1.3); /* opcional: hacerlo más grande */
}

.alinear label {
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

#toggle-alta-rapida {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding: 6px 12px;
    cursor: pointer;
}

#toggle-icon {
    font-size: 20px;
    font-weight: bold;
}

#toggle-alta-rapida{
    height: 38px;
}

.pos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-modal {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
  max-width: 70%;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: sans-serif;
    text-align: center;
}


.pos-popup-content {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.pos-order-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.pos-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.pos-order-item:last-child {
    border-bottom: none;
}


.pos-modal-content ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.pos-modal-content ul li {
    padding: 3px 0;
    list-style: none;
    margin: 6px;
}

.pos-order-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.pos-order-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    transition: box-shadow 0.2s, background 0.2s;
}

.pos-order-card:hover {
    background: #eef5ff;
    box-shadow: 0 0 0 2px #0073aa40;
}

.pos-order-info {
    font-size: 14px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.woocommerce-js input[type=number] {
    max-width: 110px!important;
    min-height: 36px;
}

.swal2-centered-input {
    display: block;
    margin: 0 auto !important;
    width: 120px !important; /* o lo que quieras */
    text-align: center;
}

.swal2-popup .swal2-input {
    margin: 0 auto !important;
    width: 150px !important;
    text-align: center;
}

div:where(.swal2-container) label:where(.swal2-input-label) {
    margin-bottom: 9px !important;
}

.swal2-confirm {
  background-color: var(--color-gris-claro) !important;
  border: none !important;
  color: #fff !important; /* cambia el color del texto si hace falta */
}

.swal2-confirm:hover {
  opacity: 0.7 !important;
}

/* Botón Deny */
.swal2-deny.swal2-styled {
  background-color: #535455 !important;
  border: none !important;
  color: #fff !important; /* cambia el texto si lo quieres en negro */
  transition: opacity 0.2s ease-in-out;
}

.swal2-deny.swal2-styled:hover {
  opacity: 0.7 !important;
}

#pos-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10040; /* 👈 Por encima del ticket */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-spinner {
  border: 6px solid #f3f3f3;      /* color de fondo */
  border-top: 6px solid var(--color-gris-claro); /* color activo */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: pos-spin 1s linear infinite;
}

@keyframes pos-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SweetAlert2 select */
.swal2-popup .swal2-select {
  display: block;
  width: 80% !important;
  margin: 1em auto !important;
  padding: 0.5em 2em 0.5em 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7em center;
  background-size: 1em;
}


    .required-field {
        border: 2px solid #f44336 !important;
        background-color: #fff5f5;
    }
    .required-field:focus {
        outline: 2px solid #e53935;
    }

    .submit-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.wrapper-listados {
    width: 70%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .wrapper-listados {
    width: 100%;
    margin: 0 auto;
}
}

.swal2-container {
    z-index: 10050 !important;
}

#pos-ticket-modal {
    max-height: 90vh;            /* Máximo 90% de la altura de la pantalla */
    overflow-y: visible !important; /* Mostrar todo, sin scroll */
    overflow-x: hidden;
    padding: 20px;
    border-radius: 10px;
}

#pos-ticket-html {
    max-height: none !important; /* Asegura que no hay límite interno */
    overflow: visible !important;
}

@media print {
    #pos-ticket-modal {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    body * {
        visibility: hidden;
    }

    #pos-ticket-modal, #pos-ticket-modal * {
        visibility: visible;
    }

    #pos-ticket-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
.quick-amount-btn {
    background: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
        color: #000;
}

.quick-amount-btn:hover {
    background: #d5f5d5;
    border-color: #8bc34a;
}

.quick-amount-btn,
.quick-amount-clear,
.quick-amount-undo {
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.quick-amount-clear:hover {
    background: #ffe0e0;
}

.quick-amount-undo:hover {
    background: #d0eaff;
}

#pos-initial-payment {
        max-width: 110px !important;
}

h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6,input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    color: #535455 !important;
}

body, h1, .entry-title a, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6 {
    color: #535455 !important;
}

.pos-header-user {
    color: #535455 !important;
}

 #pos-main-content h2 {
    background: #f9f9f9;
    padding: 5px 16px;
    color: var(--color-gris-claro) !important;
}

.pos-store-name {
    font-family: "Poppins", sans-serif;
    color: #535455 !important;
}

.total_to_deliver {
    color:#fff !important
}

#pos-closure-form {
    background: var(--color-gris-claro) !important;
}

.pos-cart-table td {
    vertical-align: middle;
}

.pos-discount-wrapper {
    display: flex;
    align-items: center;
    gap: 4px; /* espacio entre input y select */
}

.pos-discount-wrapper input.pos-discount-edit {
    width: 60px;
    padding: 4px;
    font-size: 13px;
}

.pos-discount-wrapper select.pos-discount-type {
    width: 55px;
    padding: 4px;
    font-size: 13px;
}

/* Hacer el modal más ancho y centrado */
#pos-payment-modal {
    width: 450px !important;   /* antes seguro eran 300px o menos */
    max-width: 95%;
    padding: 25px 30px !important;
    font-size: 16px;           /* agrandar tipografía */
    border-radius: 12px;
}

/* Título y total */
#pos-payment-modal h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

#pos-payment-modal #pos-total {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0 20px;
}

/* Inputs más grandes */
#pos-payment-modal input[type="text"],
#pos-payment-modal input[type="number"],
#pos-payment-modal select {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Etiquetas más visibles */
#pos-payment-modal label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Botones grandes */
#pos-payment-modal button {
    font-size: 18px !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
}


#pos-results-list .pos-image-wrap {
  position: relative;
  width: 120px;  /* ajusta al tamaño que uses */
  height: 120px;
  overflow: hidden;
}
#pos-results-list .product-image {
        display: flex
;
    justify-content: center;
}



#pos-cart .pos-image-wrap {
  position: relative;
      width: 50px;
    height: 50px;
  overflow: hidden;
}

.pos-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Imagen de variación visible por defecto */
.pos-variation-img {
  opacity: 1;
  z-index: 1;
}

/* Imagen del padre oculta al inicio */
.pos-parent-img {
  opacity: 0;
  z-index: 2;
}

/* Al pasar el ratón → mostramos la del padre */
.pos-image-wrap:hover .pos-variation-img {
  opacity: 0;
}

.pos-image-wrap:hover .pos-parent-img {
  opacity: 1;
}


.cart-product {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre imagen y texto */
}

.cart-product-image {
  flex-shrink: 0;
  width: 50px;   /* ajusta al tamaño que prefieras */
  height: 50px;
}

.cart-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cart-product-info {
  font-size: 14px;
  line-height: 1.2;
}

/* Contenedor grid */
.pos-hold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

/* Tarjeta */
.pos-hold-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Cabecera */
.pos-hold-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: #666;
}

/* Cuerpo */
.pos-hold-body {
  flex: 1;
  margin-bottom: 10px;
}

.pos-hold-body div {
  font-size: 14px;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* evita romper email en varias líneas */
}

.pos-hold-body i {
  margin-right: 6px;
  color: #444;
}

/* Total destacado */
.pos-hold-total {
  font-weight: bold;
  color: #2a7;
  font-size: 15px;
}

/* Botones */
.pos-hold-actions {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.pos-hold-actions button {
flex: 1;
    margin: 0 3px;
    padding: 5px;
    font-size: 13px;
}

.swal2-close {
        background: transparent !important;
    border: none !important;
    color: #000 !important;
        box-shadow: none !important;
}

#total_to_deliver {
    color:#fff !important;
    font-style: bold;
}


.qty-edit-wrapper {
        display: flex;
}

.pos-favorite-toggle {
   background: none;
    border: none;
    font-size: 20px !important;
    cursor: pointer;
    color: #aaa !important;
    position: absolute;
    top: -7px;
    right: -24px;
}
.pos-favorite-toggle.active {
    color: gold;
    text-shadow: 0 0 2px #ffca28;
}
.product-card {
    position: relative;
    transition: transform 0.1s;
}
.product-card:hover {
    transform: scale(1.02);
}
.pos-btn.active {
    background-color: gold;
    color: #000;
    font-weight: bold;
}


.pos-favorite-toggle:focus, .pos-favorite-toggle:active, .pos-favorite-toggle:hover {

    color: #ffffff;
    background-color: transparent!important;
    border-color: #000 !important;
    opacity: 0.7;}

    

    /* GRID DE CATEGORÍAS */
#pos-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* ITEM DE CATEGORÍA */
.pos-category-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 160px;
}

.pos-category-item:hover {
    transform: scale(1.05);
}

/* IMAGEN */
.pos-category-thumb {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px auto;
