@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&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;
    font-weight: 400;
}
html, body {
    height: 100%;
    overflow: hidden;
}
a {
    color: #55545a !important;
}
/* =========================================
   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;
    width: 100%;
    padding: 8px;
    padding-top: 0;
    padding-bottom: 1px;
}

#pos-sidebar .pos-sidebar-item a {
    color: #535455 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

#pos-sidebar .pos-sidebar-item .pos-icon {
    min-width: 20px;
    text-align: center;
}

#pos-sidebar .pos-sidebar-item .pos-text {
    display: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

/* Cuando el sidebar está expandido */
#pos-sidebar.expanded .pos-sidebar-item a {
    justify-content: flex-start;
    padding-left: 12px;
}

#pos-sidebar.expanded .pos-sidebar-item .pos-text {
    display: block;
}

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

/* Tooltip solo cuando está colapsado */
/*#pos-sidebar:not(.expanded) .pos-sidebar-item:hover::after {
    content: attr(title);
    position: absolute;
    left: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: #ecf0f1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 300px;
}*/

/* Botón toggle para expandir/colapsar sidebar */
.sidebar-toggle {
    position: absolute;
    top: 12px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #34495e;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: #435f7a;
    transform: scale(1.1);
}

.sidebar-toggle i {
    font-size: 12px;
    color: #ecf0f1;
    transition: transform 0.3s ease;
}

#pos-sidebar.expanded .sidebar-toggle i {
    transform: rotate(180deg);
}

/* =========================================
   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 {
    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-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: separate;
    border-spacing: 0;
    margin-bottom: 15px;
}

.pos-cart-table th,
.pos-cart-table td {
    text-align: center;
    padding: 12px 8px;
    font-size: 14px;
}

.pos-cart-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 8px;
}

.pos-cart-table tbody tr {
    animation: fadeIn 0.3s ease;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
}

.pos-cart-table tbody tr:hover {
    background: #f8f9fa;
}

.pos-cart-table tbody tr td {
    padding: 14px 8px;
    vertical-align: middle;
}

/* Separador más visible entre productos */
.pos-cart-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid #e9ecef;
}

.pos-summary {
    text-align: right;
    padding: 16px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.pos-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.pos-summary strong {
    font-weight: 600;
}

/* Subtotal */
.pos-summary-subtotal {
    font-size: 14px;
    color: #6c757d;
}

/* Total - MÁS GRANDE Y DESTACADO */
.pos-summary-total {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #212529 !important;
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
    margin-top: 12px !important;
}

.pos-summary-total span:first-child {
    font-weight: 700;
}

.pos-summary-total span:last-child {
    font-weight: 700;
    color: #28a745;
}
/* =========================================
   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-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: 45px;
    transition: width 0.3s ease;
    position: relative;
}

/* Sidebar expandido */
#pos-sidebar.expanded {
    width: 174px;
}

#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;
    width: auto;
}

#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;
}

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

/* Botones de cantidad mejorados */
.pos-cart-table button {
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

/* Botón decrementar (-) */
.pos-cart-table button {
    background: #6c757d;
    color: #fff;
}

.pos-cart-table button:hover {
    background: #6c757d;
   opacity: 0.7;
}
/* Botón incrementar (+) */
.pos-cart-table button:nth-of-type(2) {
      background: #6c757d;
    color: white;
}



/* Cantidad actual */
.pos-cart-table input[type="number"] {
    max-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 6px;
    margin: 0 4px;
}

.pos-cart-table input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.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: #fff;
    color: #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #f8d7da;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

button.pos-remove-item:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.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 !important;
}

.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 {
    --cosmic-primary: #ececec;        /* gris principal */
    --cosmic-primary-light: #5A5A5A;  /* gris medio */
    --cosmic-border: #E6E6E6;         /* borde suave */
    --cosmic-bg: #F5F5F5;             /* fondo muy claro */
    --cosmic-text: #0f1729;           /* texto base */

    /* Secundario (toque del logo) */
    --cosmic-accent: #0f1729;         /* fucsia */
    --cosmic-accent-dark: #A32AA3;
}



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

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

#pos-sidebar {
    background: #ececec;
    padding-bottom: 100px;
}

#pos-sidebar .pos-sidebar-item.active,
#pos-sidebar .pos-sidebar-item:hover::after {
    background: var(--cosmic-primary);
    padding: 8px;
}

#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;
}

.pos-sidebar-item.active {
    background-color: #b051dc !important /* color CosmicPOS */;
    color: #fff !important;
}


.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;
    font-weight: 500;
    font-size: 15px !important;
}

#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: 13px 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}


#pos-open-payment {
    background: #535455;
    color: #fff;
}


#pos-open-payment:hover {
    background: #c74d1f;
}



.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: center;
    border-bottom: 1px solid #ddd;
}
#pos-main-content th {
    background: #f4f4f4;
    text-align: center;
}



#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 !important;
}

.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-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: 14px;
    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;
    font-size: 14px;
}

#pos-giftcards-table th,
#pos-giftcards-table td {
    text-align: center;
    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;
    cursor: pointer;
    font-size: 14px;
}

#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: 14px;
    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-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;
        width: 100%;
  }

  #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%;
    
    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-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;
}
.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(120px, 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;
}
#pos-complete-sale[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

input[type="checkbox"]::before {
      content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    top: 1px;
    left: 2px;
    background: #2563EB;
    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: 85%;
    margin: 0 auto;
}

.pos-order-lines-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding-bottom: 5px;
}

.pos-order-lines-toggle-wrap label {
    font-size: 13px;
    font-weight: 500;
}

.pos-order-lines-row td {
    padding-top: 0 !important;
    border-top: 0 !important;
}

.pos-order-lines {
    padding: 10px 14px 10px 40px;
    background: #f9fafb;
    border-radius: 6px;
}

.pos-order-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
}

.pos-order-line img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 28px;
}

.pos-order-line .name {
    font-weight: 500;
}

.pos-order-line .sku,
.pos-order-line .qty,
.pos-order-line .total {
    color: #4b5563;
}

.pos-order-line .total {
    margin-left: auto;
    font-weight: 600;
}

.pos-order-line-empty {
    color: #6b7280;
}

@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;
}

 #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-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: 14px;
}

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

/* 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: 14px;
  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: 14px;
}

.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: 16px !important;
    cursor: pointer;
    color: #aaa !important;
    position: absolute;
    top: 5px;
    right: 3px;
    padding: 0;
}
.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;}

    


    /*MULTIPOS*/

    /* ===========================================================
   PALETA COSMICPOS (GRIS → PRINCIPAL / FUCSIA → SECUNDARIO)
=========================================================== */

/* ===========================================================
   BASE GENERAL
=========================================================== */
body, #pos-app {
    background: var(--cosmic-bg);
    color: var(--cosmic-text);
}

/* Header */
#pos-header {
    background: var(--cosmic-primary);
    color: white;
}

/* Sidebar */
#pos-sidebar {
    background: var(--cosmic-primary);
}

#pos-sidebar .pos-sidebar-item.active {
    background: var(--cosmic-primary-light);
}

/* Iconos menu */
#pos-sidebar .pos-sidebar-item a {
    color: #535455 !important;
}

/* ===========================================================
   BOTONES
=========================================================== */

/* Principal → Gris elegante */
#pos-open-payment,
button.button-primary {
    background: var(--cosmic-primary) !important;
    color: white !important;
}
#pos-open-payment:hover {
    opacity: 0.5;
    color: #000 !important;
}


/* Danger */
.pos-btn-danger {
    background: #D9534F !important;
}

/* Iconos cantidad */
.qty-plus, .qty-minus {
    background: var(--cosmic-primary);
    border: 1px solid var(--cosmic-primary);
    color: white;
}

/* ===========================================================
   PRODUCTOS
=========================================================== */

.product-card {
    border: 1px solid var(--cosmic-border);
    background: white;
}

.product-card:hover {
    box-shadow: 0 0 0 2px var(--cosmic-primary-light);
}

.product-card .product-price {
    color: var(--cosmic-accent);    /* fucsia solo en precios */
}

/* ===========================================================
   MODALES
=========================================================== */

#pos-payment-modal,
#pos-ticket-modal {
    background: white;
    border: 1px solid var(--cosmic-border);
    border-radius: 10px;
}

#pos-payment-modal button {
        font-weight: 300;
}

/* Badges */
.badge-green   { background: #4CAF50 !important; }
.badge-grey    { background: var(--cosmic-primary-light) !important; }
.badge-red     { background: #D9534F !important; }

/* ===========================================================
   TITULOS
=========================================================== */


/* BOTÓN CREAR USUARIO (manager) */
#pos-add-user-btn {
    background: #535455;          /* gris principal */
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    transition: background 0.2s ease;
}

#pos-add-user-btn:hover {
    background: #404142;
}

/* Si quieres usar el fucsia como secundario */
#pos-add-user-btn.secondary {
    background: #e4007f;     /* Fucsia */
}

#pos-add-user-btn.secondary:hover {
    background: #c6006e;
}

/* ============================
   FIX SWEETALERT2 BUTTON STYLE
   ============================ */

.swal2-popup .swal2-styled.swal2-confirm {
    background: var(--cosmic-primary-light) !important;     /* gris principal */
    color: #fff !important;
    font-size: 15px;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
}

.swal2-popup .swal2-styled.swal2-cancel {
    background: #DC2626 !important;
    color: #fff !important;
    font-size: 15px;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    border: none !important;
}

/* Hover */
.swal2-popup .swal2-styled.swal2-confirm:hover {
    background: #404142 !important;
    color: #fff !important;
}

.swal2-popup .swal2-styled.swal2-cancel:hover {
    background: #b5b5b5 !important;
        color: #fff !important;
}
.values-dropdown-wrapper {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
}

.values-dropdown-display {
    font-size: 14px;
    color: #444;
}

.values-dropdown-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 110%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    padding: 10px;
}

.values-dropdown-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
}

.values-dropdown-panel input[type="checkbox"] {
    transform: scale(1.2);
}
.swal2-close.swal-close-x {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #333 !important;
    top: 12px !important;
    right: 12px !important;
    opacity: 0.8 !important;
    transition: 0.2s;
}

.swal2-close.swal-close-x:hover {
    opacity: 1 !important;
    color: #000 !important;
}
   

    .pos-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pos-order-actions .button {
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
}

/* Colores unificados */
.pos-btn-green {
    background: #7cb518 !important;
    color: #fff !important;
}

.pos-btn-danger {
    background: #d9534f !important;
    color: #fff !important;
}

.pos-btn-primary {
    background: #34495e !important;
    color: #fff !important;
}

.pos-btn-warning {
    background: #f39c12 !important;
    color: #fff !important;
}

.pos-btn-success {
    background: #28a745 !important;
    color: #fff !important;
}

.pos-btn-secondary {
    background: #6c757d !important;
    color: #fff !important;
}
.pos-invoice-form {
    margin-top: 10px;
}

.pos-invoice-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pos-invoice-row .swal2-input {
        width: 100% !important;
    margin: 0 !important;
    padding: 10px;
    font-size: 14px;
}

/* Ajustes SweetAlert */
.swal2-popup {
    border-radius: 8px;
}

.swal2-title {
    font-size: 20px !important;
}

.swal2-confirm {
    background-color: #28a745 !important;
}

.swal2-cancel {
    background-color: #6c757d !important;
}

.pos-product-grid {
   display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 24px;
    align-items: start;
}
.pos-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.06);
    border: 1px solid #d4dbe7;
    margin-bottom: 20px;
}

.pos-card h3 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 500;
    color: #0f172a !important;
}


.pos-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pos-input-euro {
    display: flex;
    align-items: center;
}

.pos-input-euro span {
    margin-left: 8px;
}

.pos-image-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pos-thumb {
    text-align: center;
}

.pos-thumb img {
    width: 80px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.pos-upload-box {
    border: 2px dashed #d0d7ff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: #f7f9ff;
    cursor: pointer;
}

.pos-btn-full {
    width: 100%;
    font-size: 16px;
}
.pos-boxed {
    max-width: 85%;
    margin: 0 auto;
}
.pos-card label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0f1729;
    margin-bottom: 6px;
    margin-top: 19px;
    letter-spacing: -0.025em;
}

.pos-card input[type="text"],
.pos-card input[type="number"],
.pos-card textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
    transition: all .15s ease;
}

.pos-card input:focus,
.pos-card textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.pos-input-euro {
    display: flex;
    align-items: center;

    border-radius: 10px;
    padding-right: 10px;
}

.pos-input-euro input {
    border: 0;
    background: transparent;
}

.pos-input-euro span {
    font-size: 14px;
    color: #64748b;
}
.values-dropdown-panel label {
    display: inline-block;
    margin: 0px 6px 0 0;
  padding: 2px 0px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 14px;
    cursor: pointer;
}

.values-dropdown-panel input {
    display: none;
}

.values-dropdown-panel input:checked + span {
    background: #4f46e5;
    color: #fff;
}
.pos-upload-box {
    border: 2px dashed #c7d2fe;
    background: #f8faff;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}


.attr-pill span {
 padding: 4px 10px;
}
   

.pos-upload-box:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

.pos-upload-box p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #64748b;
}
.pos-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
}

.pos-thumb input:checked + img {
    border-color: #4f46e5;
}
.pos-btn-primary.pos-btn-full {
      background: #34495e !important;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.pos-btn-primary.pos-btn-full:hover {
    transform: translateY(-1px);
}
/* Contenedor de valores */
.values-dropdown-panel {
   display: flex;
    flex-wrap: wrap;
    gap: 0px;
    padding: 9px 7px;
}

.attr-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.attr-pill input {
    display: none;
}

/* ✅ ESTADO SELECCIONADO */
.attr-pill input:checked + span {
    background: #4f46e5;
    color: #fff;
padding: 5px 10px;
    border-radius: 20px;
}

/* Hover */
.attr-pill:hover {
    background: #e9ecef;
}

.pos-icon {
    font-size: 22px;   /* prueba 20–26px */
}

.pos-billing-modal {
    margin-top: 10px;
}

.pos-billing-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.pos-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pos-field-wide {
    flex: 2;
}

.pos-field label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-align: left;
}

.pos-billing-modal .swal2-input {
margin: 0 !important;
    width: 100% !important;
    height: 38px;
    font-size: 14px;
    text-align: left;
}

.pos-suggestions-box {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    width: calc(100% - 2px);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.pos-customer-suggestion {
    padding: 8px 10px;
    cursor: pointer;
}

.pos-customer-suggestion:hover {
    background: #f2f6ff;
}
.pos-category-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}
.pos-selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pos-cat-pill {
    background: #eef3ff;
    border: 1px solid #c7d2ff;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-cat-pill button {
    background: none;
    border: none;
    cursor: pointer !important;
    font-weight: bold;
    color: #ff0000;
    padding: 0px 7px;
}
table, td, th {
    border: none !important;
}
 td, th {
    padding:1rem;
 }
table, td, th {
    border-bottom:1px solid #c7d2ff !important;
}
.pos-card input, .pos-card textarea{
    background-color: #f6f7f9 !important;
    border-radius: 10px !important;
        margin-top: calc(.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(.5rem * var(--tw-space-y-reverse));
}
.table-inventory a, #swal2-html-container button, .wp-list-table a,  .wp-list-table button, #add-attribute-row, #product-attributes-container button {
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
}
.pos-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2f6;
    padding: 6px 10px;
    border-radius: 16px;
    margin: 4px;
    font-size: 14px;
}

.pos-cat-pill .remove-cat {
    cursor: pointer;
    font-weight: bold !important;
    font-size: 20px !important;
}

#product-attributes-container{
   margin-bottom: 20px;
}
 
.product-attrs {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    line-height: 1.2;
}

.product-price {
    margin-top: 4px;
    font-weight: 600;
}

.variations-panel {
    background: #f7f7f7;
    border-top: 1px solid #ddd;
    margin-top: 6px;
}

.variation-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
}

.variation-row:hover {
    background: #eaeaea;
}

.product-card.has-variations {
    cursor: default;
}

.toggle-variations {
    margin-top: 6px;
    font-size: 14px;
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
}

.variation-row {
    padding: 6px 8px;
    border-top: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.variation-row:hover {
    background: #f7f7f7;
}

.block-border {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.pos-pagination a {
 color:var(--cosmic-primary);   
     border: 1px solid #000;
    padding: 5px 10px;
}

.pos-product-image-cell {
    position: relative;
}

.pos-image-hover {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}

.pos-image-preview {
    position: absolute;
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
    z-index: 9999;

    background: #fff;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 6px;

    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    display: none;
}

.pos-image-preview img {
    width: auto !important;
    height: auto !important;

    max-width: 500px !important;
    max-height: 500px !important;

    min-width: 200px;
    min-height: auto;

    object-fit: contain;
}


.pos-image-hover:hover .pos-image-preview {
    display: block;
}
.pos-grid { display:grid; gap:20px; }
.pos-grid-2 { grid-template-columns:1fr 2fr; }

.pos-card {
    background:#fff;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,.06);
}

.pos-card-header {
    border-bottom: 1px solid #eee;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.pos-card-body { padding:18px; }

.pos-btn-full { width:100%; margin-top:24px; }

.pos-category-tree .pos-cat-node { margin-left:20px; }

.pos-cat-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 0;
}

.pos-cat-actions button { margin-left:6px; }

.pos-card-stats {
    margin-top:20px;
    text-align:center;
}

.pos-stat strong {
    font-size:28px;
    display:block;
}
.pos-category-tree {
    font-size: 14px;
}

.pos-cat-level {
    margin-left: 18px;
    border-left: 2px solid #e6e9ef;
    padding-left: 12px;
}

.pos-cat-item {
    margin: 6px 0;
}

.pos-cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
}

.pos-cat-row:hover {
    background: #f6f8fc;
}

.pos-cat-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-cat-toggle {
    width: 14px;
    cursor: pointer;
    color: #666;
}

.pos-cat-toggle.empty {
    visibility: hidden;
}

.pos-cat-folder {
    font-size: 15px;
}

.pos-cat-name {
    font-weight: 500;
}

.pos-cat-badge {
    background: #eef1f6;
    color: #555;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
}

.pos-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-col-right {
    min-height: 0;
}
.pos-cat-toggle {
    width: 14px;
    font-size: 14px;
    cursor: pointer;
    color: #6b7280;
}

.pos-cat-toggle.empty {
    visibility: hidden;
}

.pos-cat-folder {
    font-size: 15px;
    color: #4b5563;
}

.pos-cat-row:hover .pos-cat-folder {
    color: #2563eb;
}

/* ===============================
   POS TABLE SYSTEM
   =============================== */

.pos-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
    overflow: hidden;
}

.pos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.pos-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.pos-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.pos-table tbody tr:hover {
    background: #f9fafb;
}

.pos-table tbody tr:last-child td {
    border-bottom: none;
}

.pos-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
}

/* Estados */
.pos-badge-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pos-badge-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.pos-badge-warning {
    background: #fff7ed;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.pos-badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.pos-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.pos-action-btn {
    margin-top: 5px;
   display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background: #f9fafb;
    cursor: pointer !important;
}

.pos-action-btn:hover {
    background: #f3f4f6;
}

.pos-action-btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

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

.pos-filters {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.pos-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pos-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 14px;
    color: #6b7280;
}

.pos-pagination-buttons {
    display: flex;
    gap: 6px;
}

.pos-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.pos-page-btn.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}

/* ===============================
   POS PAGINATION (DISEÑO FINAL)
   =============================== */

.pos-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pos-page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    border: 1px solid #e5e7eb;

    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    transition: all .15s ease;
}

.pos-page-link:hover {
    background: #f3f4f6;
}

.pos-page-link.active {
    background: var(--cosmic-primary-light);
    border-color: var(--cosmic-primary);
       color: #fff !important;
}

#pos-sidebar .pos-sidebar-item.active,
#pos-sidebar .pos-sidebar-item.active a,
#pos-sidebar .pos-sidebar-item.active .pos-text,
#pos-sidebar .pos-sidebar-item.active .pos-icon {
    color: #fff !important;
}

/* ===============================
   SWEETALERT FORM POS
   =============================== */

.pos-swal-popup {
    border-radius: 14px !important;
}

.pos-swal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.pos-swal-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pos-swal-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.pos-swal-row .pos-input,
.pos-swal-row .pos-select {
    height: 42px;
    font-size: 14px;
}

.pos-mark-giftcard {
    background:#f9fafb;
    color: #55545a;
    font-size: 14px !important;
}
.pos-mark-giftcard:hover, .pos-pay-installment:hover {
    color: #55545a;
    font-size: 14px !important;
}
.show-variations {
    font-size: 14px !important;
}

 .pos-pay-installment, .pos-pay-installment:focus {
     color: #55545a;
        font-size: 14px !important;
 }

#swal2-input {
    margin-top: 5px;
}

.calc-btn {
    background: #55545a;
}
#pos-cancel-payment {
    background: #ff5b5b !important;
}


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

/* ========================= */
/* BASE & RESET */
/* ========================= */
.pos-page.pos-single-order-page {
  background-color: #f8fafc;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}

/* ========================= */
/* CONTENEDOR BOXED */
/* ========================= */
.pos-boxed {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-left: auto;
  margin-right: auto;
}

/* ========================= */
/* CABECERA */
/* ========================= */
.pos-boxed h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
}



/* ========================= */
/* GRID DE INFO DEL PEDIDO */
/* ========================= */
.pos-order-header-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .pos-order-header-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pos-order-header-grid > div strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.pos-order-header-grid > div {
  line-height: 1.8;
}

/* Total destacado */
.pos-order-header-grid > div:last-child .woocommerce-Price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
}

/* ========================= */
/* ESTADOS (BADGES) */
/* ========================= */
.pos-status {
    display: inline-flex;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid;
    line-height: 19px;
}

.pos-status-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.pos-status-processing {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.pos-status-completed {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.pos-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

/* ========================= */
/* LISTA DE PAGOS */
/* ========================= */
.pos-payment-breakdown {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.pos-installment-box {
      margin: 1rem 0 0;
}
.pos-payment-breakdown li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

/* ========================= */
/* CLIENTE / CAJERO */
/* ========================= */
.pos-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .pos-two-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pos-two-cols h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.pos-two-cols p {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

/* ========================= */
/* TABLA PRODUCTOS */
/* ========================= */
.pos-boxed h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.pos-table thead tr {
  background: #f8fafc;
}

.pos-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e2e8f0;
}

.pos-table th:nth-child(2),
.pos-table td:nth-child(2) {
  text-align: center;
}

.pos-table th:nth-child(3),
.pos-table th:nth-child(4),
.pos-table td:nth-child(3),
.pos-table td:nth-child(4) {
  text-align: right;
}

.pos-table tbody td {
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.pos-table tbody tr:last-child td {
  border-bottom: none;
}

.pos-table tbody td:first-child {
  font-weight: 500;
}

.pos-table tbody td:nth-child(3) {
  color: #64748b;
}

/* ========================= */
/* CAJA DE TOTALES */
/* ========================= */


.pos-totals-box .pos-table {
  border: none;
}

.pos-totals-box .pos-table tr:first-child th,
.pos-totals-box .pos-table tr:first-child td {
  background: #f8fafc;
  padding: 1rem 1.25rem;
}

.pos-totals-box .pos-table tr:last-child th,
.pos-totals-box .pos-table tr:last-child td {
  background: rgba(37, 99, 235, 0.1);
  padding: 1rem 1.25rem;
}

.pos-totals-box .pos-table th {
  text-align: left;
  font-weight: 500;
  color: #64748b;
  border: none;
}

.pos-totals-box .pos-table tr:last-child th {
  font-weight: 600;
  color: #1e293b;
}

.pos-totals-box .pos-table td {
  text-align: right;
  font-weight: 500;
  border: none;
}

.pos-totals-box .pos-table tr:last-child td strong {
  font-size: 1.125rem;
  color: #2563eb;
}

/* ========================= */
/* BOTONES DE ACCIÓN */
/* ========================= */
.pos-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pos-order-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}



.pos-btn-warning {
  background: #f59e0b;
}

.pos-btn-warning:hover {
  background: #d97706;
}

.pos-btn-success {
  background: #10b981;
}

.pos-btn-success:hover {
  background: #059669;
}

.qty-edit-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
}

.qty-btn {
  background: grey;
    padding-top: 12px;
    padding-bottom: 12px;
}

.pos-totals-box {
    display: flex;
    justify-content: flex-end;
}

.pos-totals-inner {
    width: 320px;              /* ancho fijo elegante */
}

.pos-totals-inner table th {
    text-align: left;
}

.pos-totals-inner table td {
    text-align: right;
}

.pos-ok {
    color: #2e7d32;
    font-weight: 600;
}

.pos-bad {
    color: #c62828;
    font-weight: 700;
}

/* ===============================
   GIFT CARDS – LAYOUT
================================ */

.pos-giftcards-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: flex-start;
}

/* Columna izquierda */
.pos-giftcards-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Columna derecha */
.pos-giftcards-right {
    min-width: 0; /* evita overflow de la tabla */
}

/* Responsive */
@media (max-width: 1100px) {
    .pos-giftcards-layout {
        grid-template-columns: 1fr;
    }
}



table {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
     font-family: "Poppins", sans-serif;
}

/* Contenedor opcional si lo tienes */
.pos-user-switcher {
    display: inline-flex;
    align-items: center;
}

/* SELECT */
#wc_pos_cajero_id {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: rgba(255, 255, 255, 0.15);
    color: #1f2937 !important;

    border: none;
    border-radius: 6px;

    padding: 6px 34px 6px 12px;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
#wc_pos_cajero_id:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Focus (accesible pero limpio) */
#wc_pos_cajero_id:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Flecha personalizada */
#wc_pos_cajero_id {
    background-image:
        linear-gradient(45deg, transparent 50%, #374151 50%),
        linear-gradient(135deg, #374151 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 3px),
        calc(100% - 10px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.pos-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;
    border-radius: 6px;

    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.pos-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* Focus accesible */
.pos-logout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.pos-table-actions a, .cosmic-card a, .pos-order-recovery a, .pos-order-recovery button {
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
}

.cosmic-card input {
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
}

#cosmicpos_attribute_submit {
    margin-top: 11px;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny) {
    font-size: 14px!important;
}

/* =========================
   MODAL OVERLAY
========================= */
.pos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* =========================
   MODAL CONTENEDOR
========================= */
.pos-modal {
  background: #ffffff;
  width: 380px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: posModalFade 0.15s ease-out;
}

/* =========================
   HEADER
========================= */
.pos-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.pos-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

/* =========================
   BODY
========================= */
.pos-modal-body {
  padding: 20px;
}

.pos-form-group {
  flex-direction: column;
  margin-bottom: 14px;
}

.pos-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.pos-form-group input {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Dos columnas */
.pos-form-row {
  display: flex;
  gap: 12px;
}

.pos-form-row .pos-form-group {
  flex: 1;
}

/* =========================
   FOOTER / BOTONES
========================= */
.pos-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}



/* =========================
   ANIMACIÓN
========================= */
@keyframes posModalFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pos-view-invoice {
    background: #c937af;
}

.pos-view-invoice:hover {
    opacity: 0.7;
    background: #c937af;
}

.pos-view-invoice:focus {
    background: #c937af;
}
#pos-open-payment {
    background: #b051dc !important /* color CosmicPOS */;
}
.pos-stock {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.pos-stock.ok {
    color: #28a745;
}

.pos-stock.low {
    color: #ffc107;
}

.pos-stock.out {
    color: #dc3545;
}
.pos-variation-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pos-variation-form label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.pos-variation-form input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.pos-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pos-save-btn {
    margin-top: 10px;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.pos-save-btn:hover {
    background: #135e96;
}
.pos-help {
    padding: 25px;
}

.pos-help-subtitle {
    color: #6c757d;
    margin-bottom: 20px;
}
.pos-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 1200px) {
    .pos-help-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .pos-help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pos-help-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* Contenedor del video */
.pos-help-video {
    position: relative;
    width: 100%;
    background: #000;
    display: none;
}

.pos-help-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.pos-help-video iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
}

#pos-invoice-customer-search {
    font-size: 14px;
}

.ui-menu .ui-menu-item-wrapper {
    position: relative;
    padding: 3px 1em 3px .4em;
    font-size: 14px;
}
.pos-upload-box input {
    border-radius: 0 !important;
}
.pos-btn-secondary:hover {
    opacity: 0.7;
}
.pos-locked {
    background: #f5f5f5;
    cursor: not-allowed;
}
.ui-autocomplete {
    position: fixed !important;
    z-index: 9999999 !important;
}

#pos-installment-customer-search, #pos-installment-name {
    font-size: 14px!important;
}
/* ==========================
   FIX CONTROLES VIDEO AYUDA
========================== */

.pos-help-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;

    pointer-events: auto !important;
}

.pos-help-video video::-webkit-media-controls {
    display: flex !important;
}

.pos-help-video video::-webkit-media-controls-panel {
    display: flex !important;
}

.pos-help-video {
    overflow: visible !important;
}
.pos-order-pending {
    background: #fff6e5 !important;
    border-left: 5px solid #f59e0b;
}

.pos-order-pending td {
    font-weight: 500;
}


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

.pos-dashboard {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ── */
.pos-dashboard .dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.pos-dashboard .dash-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
}
.pos-dashboard .dash-range-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pos-dashboard .dash-range-btns button {
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}
.pos-dashboard .dash-range-btns button:hover {
    border-color: #b051dc !important /* color CosmicPOS */;
    color: #fff !important /* color CosmicPOS */;
    background: #b051dc !important /* color CosmicPOS */;
}
.pos-dashboard .dash-range-btns button.active {
    background: #b051dc !important /* color CosmicPOS */;
    color: #fff;
    border-color: #b051dc !important /* color CosmicPOS */;
}
.pos-dashboard .dash-custom-dates {
    display: none;
    gap: 6px;
    align-items: center;
}
.pos-dashboard .dash-custom-dates.visible {
    display: flex;
}
.pos-dashboard .dash-custom-dates input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.pos-dashboard .dash-custom-dates button {
    padding: 6px 12px;
    background: #b051dc !important /* color CosmicPOS */;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* ── KPI Grid ── */
.pos-dashboard .dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.pos-dashboard .dash-kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    position: relative;
}
.pos-dashboard .dash-kpi-card .kpi-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
    font-weight: 600;
}
.pos-dashboard .dash-kpi-card .kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.pos-dashboard .dash-kpi-card .kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 20px;
}
.pos-dashboard .dash-kpi-card .kpi-badge.up {
    background: #dcfce7;
    color: #16a34a;
}
.pos-dashboard .dash-kpi-card .kpi-badge.down {
    background: #fee2e2;
    color: #dc2626;
}
.pos-dashboard .dash-kpi-card .kpi-badge.neutral {
    background: #f1f5f9;
    color: #64748b;
}
.pos-dashboard .dash-kpi-card .kpi-icon {
      position: absolute;
    top: 0px;
    right: 6px;
    font-size: 20px;
    opacity: .25;
}

/* ── Bottom row: chart + tables ── */
.pos-dashboard .dash-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 860px) {
    .pos-dashboard .dash-bottom {
        grid-template-columns: 1fr;
    }
}

/* ── Panels ── */
.pos-dashboard .dash-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pos-dashboard .dash-panel h3 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* ── Chart canvas ── */
.pos-dashboard .dash-chart-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}

/* ── Tables inside panels ── */
.pos-dashboard .dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pos-dashboard .dash-table th {
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0 0 8px;
    border-bottom: 2px solid #e2e8f0;
}
.pos-dashboard .dash-table td {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.pos-dashboard .dash-table tr:last-child td {
    border-bottom: none;
}
.pos-dashboard .dash-table .td-right {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}
.pos-dashboard .dash-table .td-muted {
    color: #94a3b8;
    font-size: 12px;
}

/* ── Payment bar ── */
.pos-dashboard .pay-bar-wrap {
    margin-top: 4px;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.pos-dashboard .pay-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease;
}
.pos-dashboard .pay-bar-fill.efectivo   { background: #b051dc; }
.pos-dashboard .pay-bar-fill.tarjeta    { background: #f59e0b; }
.pos-dashboard .pay-bar-fill.bizum-trans { background: #10b981; }
.pos-dashboard .pay-bar-fill.other      { background: #64748b; }

/* ── Loading skeleton ── */
.pos-dashboard .dash-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Right column stacking ── */
.pos-dashboard .dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.pos-dashboard input[type=date] {
    height: 29px;
}

.pos-importer-container h2 {
        padding: 0px 15px !important;
        margin-bottom: 0 !important;
         background: #b051dc!important;
}

.pos-importer-container .pos-card-header {
           background: #b051dc;
    color: #fff;
    padding: 19px 29px;
}

.pos-importer-container th {
    background: #f4f4f4;
    text-align: center;
    color: #000;
}

.pos-sidebar-item.active .pos-icon {
    color:#fff;
}

.selected-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #2c3e50;
    color: white;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
}

.selected-category-tag .remove-category {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-category-tag .remove-category:hover {
    color: #ff6b6b;
}
/* =========================================
   Tippy.js - Tema personalizado para tooltips
========================================= */
.tippy-box[data-theme~='custom-pos'] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tippy-box[data-theme~='custom-pos'] .tippy-arrow {
    color: #2c3e50;
}

.tippy-box[data-theme~='custom-pos'] .tippy-content {
    padding: 2px 4px;
    line-height: 1.4;
}

/* Efecto hover adicional */
.tippy-box[data-theme~='custom-pos']:hover {
    transform: scale(1.02);
}

/* =========================================
   Mejoras adicionales tabla del ticket
========================================= */

/* Nombre del producto más destacado */
.pos-cart-table tbody tr td:first-child {
    text-align: left;
    font-weight: 500;
    color: #212529;
}

/* Columna de precio */
.pos-cart-table tbody tr td.price-column {
    font-weight: 600;
    color: #28a745;
}

/* Columna de descuento */
.pos-cart-table tbody tr td select {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-cart-table tbody tr td select:hover {
    border-color: #007bff;
}

.pos-cart-table tbody tr td select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Columna total más destacada */
.pos-cart-table tbody tr td:last-child {
    font-weight: 700;
    font-size: 15px;
    color: #212529;
}

/* Icono de eliminar más visible */
button.pos-remove-item i {
    font-size: 14px;
}

/* Estilo para cantidad cuando está en 0 o sin stock */
.pos-cart-table input[type="number"][value="0"] {
    color: #dc3545;
    border-color: #f8d7da;
    background: #fff5f5;
}

/* Botón Finalizar Venta más grande y llamativo */
#pos-open-payment {
    width: 100%;
    margin-top: 16px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #00d084 0%, #00b373 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.2);
}

#pos-open-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.3);
    background: linear-gradient(135deg, #00b373 0%, #009961 100%);
}

#pos-open-payment:active {
    transform: translateY(0);
}
/* =========================================
   Centro de Ayuda - Lazy Loading Videos
========================================= */



.pos-help h2 {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.pos-help-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 32px;
}

.pos-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.pos-help-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pos-help-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Placeholder con gradiente */
.pos-help-placeholder {
    position: relative;
    height: 169px;
    cursor: pointer;
    overflow: hidden;
}

.placeholder-gradient {
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

/* Gradientes por categoría */
.category-ventas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-caja {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-productos {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-clientes {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-gestion {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.placeholder-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.pos-help-placeholder:hover .placeholder-icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Botón de play */
.placeholder-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.placeholder-play i {
    font-size: 80px;
    color: white;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.pos-help-placeholder:hover .placeholder-play i {
    transform: scale(1.15);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

/* Duración del video */
.placeholder-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

/* Loading state */
.pos-help-placeholder.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-help-placeholder.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Contenido del card */
.pos-help-content {
    padding: 20px;
}

.pos-help-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.pos-help-content p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Contenedor del video */

.pos-help-video video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .pos-help-grid {
        grid-template-columns: 1fr;
    }
    
    .pos-help-placeholder {
        height: 180px;
    }
}

/* Dark mode */
body.pos-dark .pos-help-card {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.pos-dark .pos-help h2 {
    color: #e0e0e0;
}

body.pos-dark .pos-help-subtitle {
    color: #9e9e9e;
}

body.pos-dark .pos-help-content h4 {
    color: #e0e0e0;
}

body.pos-dark .pos-help-content p {
    color: #9e9e9e;
}

.pos-extras .pos-btn {
    font-size: 13px !important;
    border-radius: 4px;
    padding: 12px 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s 
ease;
    line-height: 15px;
    text-transform: uppercase;
}

.woocommerce-js input[type=number] {
    max-width: 74px !important;
    min-height: 36px;
}
.pos-price-edit {
    width: 65px !important;
}

.closure-section input[type=number] {
    max-width: 112px !important;
    min-height: 36px;
}
