/* ========================================
   Gestão de Loja - Estilos adicionais
   ======================================== */

/* Tabs internas */
.gl-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.gl-tab {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.gl-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Card de funcionario */
.gl-func-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.gl-func-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
}

.gl-func-foto {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.gl-func-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Perfil */
.gl-perfil-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.gl-perfil-foto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gl-perfil-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-foto-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid var(--bg-primary);
}

/* Checklist */
.gl-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.gl-check-item:last-child { border-bottom: none; }

.gl-check-toggle {
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.gl-check-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.gl-check-toggle.on {
    background: var(--accent);
    border-color: var(--accent);
}

.gl-check-toggle.on::after {
    left: 22px;
    background: white;
}

.gl-pontos-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Barra de progresso */
.gl-progress-track {
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.gl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Status badges de pedidos */
.gl-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.gl-status-solicitado { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.gl-status-aprovado { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.gl-status-reprovado { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.gl-status-comprado { background: rgba(16, 185, 129, 0.15); color: var(--accent-light); }

/* Relatorios grid */
.gl-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gl-report-card {
    text-align: center;
    cursor: pointer;
    padding: 20px 12px;
    margin-bottom: 0;
    transition: var(--transition);
}

.gl-report-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Home de modulos */
.gl-modules-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.gl-module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.gl-module-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.gl-module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.gl-module-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.gl-module-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Lista config */
.gl-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.gl-config-item:last-child { border-bottom: none; }

.gl-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 6px;
    opacity: 0.8;
}

.gl-icon-btn:hover { opacity: 1; }

/* Anexos */
.gl-anexo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    gap: 10px;
}

/* Comparativo de vendas */
.gl-venda-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.gl-venda-row:last-child { border-bottom: none; }

.gl-var-up { color: var(--accent-light); font-weight: 700; font-size: 0.8rem; }
.gl-var-down { color: var(--danger); font-weight: 700; font-size: 0.8rem; }

@media (min-width: 768px) {
    .gl-report-grid { grid-template-columns: repeat(3, 1fr); }
}
