/* =========================================
   GOKIEBOX UI/UX - MASTER CSS
   ========================================= */

/* --- 1. REGLAS MOVIDAS DESDE HEADER.TPL (Para limpiar el TPL) --- */
body, h1, h2, h3, h4, h5, h6, .btn, input, select, textarea, .navbar {
    font-family: 'Poppins', sans-serif !important;
}

/* Fix Iconos FontAwesome (Vital para que se vean los iconos) */
.gokie-menu-icon i, .gokie-avatar-icon, .fa, .fas, .fa-solid {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Estilo Botón Móvil */
.gokie-mobile-login-btn {
    background-color: #1ABC9C !important;
    color: #fff !important;
    font-weight: 700 !important;
    margin-top: 10px;
}


/* --- 2. ESTILOS GLOBALES & ESCRITORIO (TU CÓDIGO ORIGINAL) --- */

body {
    background-color: #effaf8;
    color: #444;
    line-height: 1.6;
    font-size: 14px; /* Forzamos base de 14px */
}

@media (min-width: 1400px) {
    .container { max-width: 1300px; }
}

a { color: #1abc9c; transition: all 0.2s ease; }
a:hover { color: #16a085; text-decoration: none; }

#main-body, .main-content, section {
    background-color: transparent !important;
}

/* HEADER & NAV */
.gokie-main-nav {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}
.gokie-navbar { display: flex; justify-content: space-between; align-items: center; }
.gokie-logo img { height: 45px; width: auto; }

/* Menú Items */
.gokie-menu-items { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; align-items: center; }
.gokie-menu-items li a:not(.btn-gokie-shop):not(.gokie-user-trigger) {
    color: #555; font-weight: 500; font-size: 15px; position: relative;
}
.gokie-menu-items li a:not(.btn-gokie-shop):not(.gokie-user-trigger):hover { color: #1abc9c; }

.navbar-main, .topbar, .header-lined, #header { display: none !important; }

/* Botón Tienda */
.btn-gokie-shop {
    background-color: #1ABC9C; color: #fff !important; padding: 9px 22px;
    border-radius: 6px; font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.2);
}
.btn-gokie-shop:hover {
    background-color: #16a085; transform: translateY(-2px);
}

/* Icono Usuario */
.gokie-user-trigger { padding-left: 15px; cursor: pointer; display: flex; align-items: center; }
.gokie-avatar-icon { font-size: 28px; color: #444; transition: color 0.3s; }
.gokie-user-trigger:hover .gokie-avatar-icon { color: #1ABC9C; }

/* Dropdown Menu (INTACTO) */
.gokie-custom-dropdown {
    border: 0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 10px 0; min-width: 240px; margin-top: 15px !important;
}
.gokie-custom-dropdown li a { padding: 10px 20px; color: #666; font-weight: 500; }
.gokie-custom-dropdown li a:hover { background-color: #f7f9fa; color: #1ABC9C !important; }
.gokie-menu-icon { width: 24px; margin-right: 10px; display: inline-flex; justify-content: center; }
.gokie-user-header { padding: 15px 20px 10px; font-size: 12px; font-weight: 800; color: #1ABC9C; text-transform: uppercase; }

/* BREADCRUMBS */
.master-breadcrumb {
    background-color: transparent;
    padding-top: 40px;      
    padding-bottom: 40px; 
    margin-bottom: 0;     
}
.breadcrumb {
    background: transparent; padding: 0; margin: 0; font-size: 14px; display: flex; align-items: center;
}
.breadcrumb-item a { color: #555; font-weight: 500; }
.breadcrumb-item.active { color: #1ABC9C; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; font-size: 18px; color: #ccc; line-height: 14px; }

/* CAJAS & CONTENIDO */
.card, .login-container {
    border: none; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.05);
    background: #fff; padding: 25px; margin-bottom: 25px;
}
.card-header, h3.card-title {
    background: transparent; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 20px;
    font-weight: 700; color: #333; font-size: 18px;
}
.form-control {
    height: 45px; border-radius: 6px; border: 1px solid #ddd; background-color: #fbfbfb; font-size: 14px;
}
.form-control:focus { background-color: #fff; border-color: #1ABC9C; box-shadow: none; }
.btn-primary {
    background-color: #1ABC9C; border-color: #1ABC9C; height: 45px; border-radius: 6px; font-weight: 600; box-shadow: 0 4px 10px rgba(26, 188, 156, 0.2);
}
.btn-primary:hover { background-color: #16a085 !important; border-color: #16a085 !important; }

/* FOOTER */
#footer {
    background-color: #111; color: #aaa; border-top: none; padding: 60px 0 30px 0; margin-top: 60px; text-align: center; font-size: 14px;
}
#footer a { color: #fff; font-weight: 500; text-decoration: none; margin: 0 10px; transition: color 0.3s; }
#footer a:hover { color: #1ABC9C; }
#footer .social-icons a i { color: #fff; font-size: 18px; transition: all 0.3s; }
#footer .social-icons a:hover i { color: #1ABC9C; transform: scale(1.1); }
.footer-copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #222; font-size: 13px; color: #666; }


/* --- 3. MÓVIL (INTACTO) --- */
@media (max-width: 991px) {
    .gokie-navbar { padding: 0 10px; }
    .gokie-logo img { height: 38px; }
    .navbar-toggler { border: none; padding: 5px 10px; border-radius: 6px; background-color: #f4f6f8; outline: none !important; }
    .navbar-toggler:active { background-color: #e0e0e0; }

    #gokie-mobile-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: #fff;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-radius: 0 0 15px 15px; padding: 20px; border-top: 1px solid #f0f0f0;
    }
    #gokie-mobile-menu ul { display: flex; flex-direction: column; gap: 10px; list-style: none !important; padding: 0 !important; margin: 0 !important; }
    #gokie-mobile-menu li { border-bottom: none !important; list-style: none !important; }
    #gokie-mobile-menu li a { display: flex; align-items: center; padding: 12px 15px; background-color: #f9f9f9; border-radius: 8px; color: #444; font-weight: 500; font-size: 15px; text-decoration: none !important; }
    #gokie-mobile-menu li a:active { background-color: #effaf8; color: #1ABC9C; }
    #gokie-mobile-menu li a i { width: 25px; text-align: center; color: #1ABC9C; margin-right: 10px; font-size: 16px; }
    #gokie-mobile-menu .btn-gokie-shop { background-color: #1ABC9C !important; color: #fff !important; text-align: center; justify-content: center; margin-top: 10px; padding: 15px; width: 100%; display: block; }
    .gokie-mobile-user-info { background-color: #1ABC9C !important; color: #fff !important; padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; list-style: none !important; }
    .gokie-mobile-user-info i { color: #fff !important; font-size: 20px; margin-right: 10px; }
    .master-breadcrumb { padding-top: 20px; padding-bottom: 20px; }
    .breadcrumb { font-size: 12px; flex-wrap: wrap; }
    .card, .login-container { padding: 20px; margin-bottom: 20px; }
    .table-responsive { border: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .login-container { width: 100%; max-width: 100%; margin-top: 20px; }
    #footer { padding: 40px 15px 30px; }
    #footer a { display: block; margin: 12px 0; font-size: 15px; }
    #footer .social-icons a { display: inline-block; margin: 0 10px; }
}


/* =========================================================
   4. CORRECCIÓN DE TAMAÑOS (AQUÍ ESTÁ LA MAGIA)
   ========================================================= */

/* Forzar reducción de los títulos H4 (Fecha, Importe, etc) en TODAS las pestañas */
#main-body .tab-content h4 {
    font-size: 13px !important;    /* Forzamos tamaño pequeño */
    font-weight: 700 !important;
    color: #1abc9c !important;     /* Tu color Menta */
    margin-bottom: 4px !important;
    margin-top: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reducir el texto de los valores (ej: S/270.00) */
#main-body .tab-content, 
#main-body .tab-content .text-center, 
#main-body .product-details {
    font-size: 14px !important;
    color: #555;
}

/* Reducir títulos H3 (Encabezados de pestañas) */
#main-body .tab-content h3 {
    font-size: 18px !important;
    margin-top: 20px !important;
    color: #333;
}

/* --- ESTILOS DE LA LICENCIA (GOKIE COMPACTA) --- */
.gokie-license-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #1abc9c !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-top: 25px;
    overflow: hidden;
}

.gokie-license-header {
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 10px 20px; /* Header compacto */
}

.gokie-license-header h3 {
    margin: 0 !important;
    font-size: 15px !important;
    color: #444;
    display: flex; align-items: center; gap: 8px;
    font-weight: 600 !important;
}

.gokie-license-body { padding: 15px 20px; text-align: center; }

.gokie-license-key {
    background: #effaf8 !important;
    color: #16a085 !important;
    border: 1px dashed #1abc9c !important;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px !important; /* Clave tamaño normal */
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    word-break: break-all;
    margin: 10px 0;
}