/* ============================================================
   FILAMENT PANEL — ESTILOS PERSONALIZADOS
   Los colores del panel se controlan desde:
     GymNetwork → Editar → sección "Identidad Visual"
   Las variables --brand-* se inyectan dinámicamente desde PHP.
   ============================================================ */

:root {
    --brand-primary:   #1e293b;
    --brand-secondary: #475569;
    --brand-accent:    #94a3b8;
}


/* ────────────────────────────────────────────────────────────
   MINI-POS · Contenedor principal
   .pos-wrapper → <div> raíz de product-picker.blade.php
   ------------------------------------------------------------ */
.pos-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dark .pos-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.pos-inner {
    padding: 1rem 1.25rem 0;
}

/* ── Etiqueta de sección ─────────────────────────────────── */
.pos-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.875rem 0;
}


/* ────────────────────────────────────────────────────────────
   MINI-POS · Barra de tabs
   ------------------------------------------------------------ */
.pos-tabs-bar {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 2px;
}

.pos-tabs-bar::-webkit-scrollbar {
    display: none;
}

.pos-tab {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    margin: 0 3px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    border-radius: 4px 4px 0 0;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.pos-tab:hover {
    color: rgba(255, 255, 255, 0.85);
}

.pos-tab.active {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: rgba(255, 255, 255, 0.9);
}


/* ────────────────────────────────────────────────────────────
   MINI-POS · Grid de productos
   ------------------------------------------------------------ */
.pos-grid {
    display: grid;
    gap: 0.625rem;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    padding: 1rem 0 0.85rem;
}

.pos-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    padding: 1.25rem 0;
}


/* ────────────────────────────────────────────────────────────
   MINI-POS · Card de producto
   ------------------------------------------------------------ */
.pos-card {
    position: relative;
    width: 100%;
    height: 82px;
    text-align: left;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* ── Decoración: arcos en esquina inferior derecha ─────────── */
.pos-card::before {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 9px solid rgba(0, 0, 0, 0.055);
    pointer-events: none;
    z-index: 0;
}

.pos-card::after {
    content: '';
    position: absolute;
    bottom: -28px;
    right: -28px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 9px solid rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 0;
}

.pos-card:hover {
    border-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pos-card.adding {
    border-color: #86efac;
    box-shadow: 0 0 0 2px rgba(134, 239, 172, 0.4);
    transform: scale(0.97);
}

/* ── Nombre del producto ──────────────────────────────────── */
.pos-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ── Badge de precio ─────────────────────────────────────── */
.pos-card-price {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    line-height: 1.6;
    margin-top: 0.375rem;
    position: relative;
    z-index: 1;
}

/* ── Overlay de confirmación ─────────────────────────────── */
.pos-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: rgba(240, 253, 244, 0.97);
    border-radius: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.pos-card-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.pos-card-overlay-icon {
    font-size: 1.125rem;
    line-height: 1;
    color: #16a34a;
}

.pos-card-overlay-text {
    font-size: 0.6rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
