/* ==========================================================================
   1. ESTILOS BASE Y GENERALES
   ========================================================================== */
@import url('app.css');
html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f1f5f9;
}

.fw-bold {
    font-weight: 800 !important;
}

.text-primary {
    color: #1A73E8 !important;
}

.bg-light {
    background-color: #f1f5f9 !important;
}

/* ==========================================================================
   2. NAVEGACIÓN (MAIN LAYOUT)
   ========================================================================== */
.sidebar-negra {
    background-color: #000000 !important;
    border-right: 1px solid #333;
}

.custom-nav-menu .mud-nav-link {
    text-decoration: none !important;
    color: rgba(255,255,255,0.85) !important;
}

    .custom-nav-menu .mud-nav-link:hover {
        background-color: rgba(255,255,255,0.1) !important;
    }

.custom-nav-menu .mud-nav-group,
.custom-nav-menu .mud-expand-icon,
.text-white {
    color: #ffffff !important;
}

/* ==========================================================================
   3. SISTEMA DE FIGURAS GEOMÉTRICAS (HOME Y SUBMENÚS)
   ========================================================================== */

/* Botón Base */
.shape-btn, .shape-btn-sub {
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tamaños */
.shape-btn {
    width: 240px;
    height: 240px;
    filter: drop-shadow(0 10px 8px rgba(0,0,0,0.2));
}

.shape-btn-sub {
    width: 170px;
    height: 170px;
    filter: drop-shadow(0 6px 4px rgba(0,0,0,0.15));
    padding: 15px;
}

    .shape-btn:hover, .shape-btn-sub:hover {
        transform: scale(1.05) translateY(-5px);
        filter: brightness(1.15) drop-shadow(0 15px 12px rgba(0,0,0,0.3));
    }

/* Iconos y Textos dentro de Figuras */
.shape-icon {
    font-size: 4.5rem !important;
    margin-bottom: 8px;
}

.submenu-icon-sub {
    font-size: 2.8rem !important;
    margin-bottom: 5px;
}

.btn-text-sub {
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
    width: 85%; /* Evita que el texto toque los bordes de la figura */
}

/* Definición de Formas y Colores */
.circle-red {
    background-color: #f44336;
    border-radius: 50%;
}

.triangle-blue {
    background-color: #2196f3;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    padding-top: 40px;
}

.square-green {
    background-color: #4caf50;
    border-radius: 24px;
}

.rhombus-purple {
    background-color: #9c27b0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.hexagon-orange {
    background-color: #ff9800;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.octagon-cyan {
    background-color: #00bcd4;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* ==========================================================================
   4. SUBMENÚS COMPACTOS (ESTILO ADMIN / CONFIG)
   ========================================================================== */
.section-title {
    font-weight: 800;
    margin-bottom: 2px;
    display: block;
    letter-spacing: 1px;
}

.section-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 15px;
    width: 100%;
}

.parent-indicator-square, .parent-indicator-hexagon, .parent-indicator-rhombus, .parent-indicator-octagon {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.parent-indicator-square {
    background-color: #4caf50;
    border-radius: 4px;
}

.parent-indicator-hexagon {
    background-color: #ff9800;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.parent-indicator-rhombus {
    background-color: #9c27b0;
    transform: rotate(45deg);
}

.parent-indicator-octagon {
    background-color: #00bcd4;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* ==========================================================================
   5. COMPONENTES MUDBLAZOR (TABS, SELECTS, TABLES)
   ========================================================================== */
.custom-tabs-white .mud-tab {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 0.8;
}

.custom-tabs-white .mud-tab-active {
    color: #ffffff !important;
    font-weight: 800;
    opacity: 1;
}

.custom-tabs-white .mud-tab-icon {
    color: #ffffff !important;
}

.custom-tabs-white .mud-tabs-slider {
    background-color: #ffffff !important;
    height: 4px;
}

.compact-select.mud-input-control {
    margin-bottom: 0px !important;
}

.compact-select .mud-input-control-helper-container {
    display: none !important;
    height: 0px !important;
}

/* ==========================================================================
   6. PÁGINAS ESPECÍFICAS (LOGIN Y TICKETS)
   ========================================================================== */
/* Login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #F8F9FA;
    background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
    background-size: 40px 40px;
}

.login-card {
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.logo-box {
    background: #F1F3F4;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28%;
    margin: 0 auto;
}

/* Ticket View/Print */
.preview-container {
    background-color: #525659;
    min-height: 100vh;
    padding: 40px 0;
}

.paper-ticket {
    width: 350px;
    background: white;
    padding: 25px;
    margin: 40px auto;
    font-family: 'Courier New', monospace;
    color: black;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.ticket-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.grand-total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    border-top: 1px solid black;
    padding-top: 10px;
}

/* Contenedor principal del POS para forzar simetría vertical */
.pos-grid-container {
    height: calc(100vh - 180px); /* Ajusta según el alto de tu topbar */
}

/* La tabla debe ocupar todo el espacio del MudPaper que la contiene */
.flex-grow-1 .mud-table-container {
    height: 100% !important;
}

/* Botones del sub-diálogo táctil */
.rounded-lg {
    border-radius: 12px !important;
}

@media print {
    .no-print {
        display: none !important;
    }

    .preview-container {
        background: white;
        padding: 0;
    }

    .paper-ticket {
        box-shadow: none;
        margin: 0;
        width: 100%;
    }
}
