/**
 * MHsys SaaS & ERP - Manual do Administrador Stylesheet
 * Arquivo Modular CSS Extraído de manual-erp.html
 * Versão 1.4.0 Premium
 */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Layout Grid */
.wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar Navegação */
aside {
    background-color: var(--dark);
    color: #ffffff;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: brightness(1.2);
}

.btn-acessar-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    margin-top: 12px;
}

.btn-acessar-saas:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-ver-planos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background-color: transparent;
    color: #ffffff !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-ver-planos:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.btn-assinar-agora {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
    margin-top: 8px;
}

.btn-assinar-agora:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item a:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.05);
}

.nav-item.active a {
    color: #ffffff;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-item.search-hidden {
    display: none !important;
}

/* Main Content */
main {
    padding: 48px 64px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Premium Header */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 750px;
    font-weight: 300;
}

/* Seções e Cards */
.section-block {
    margin-bottom: 64px;
    scroll-margin-top: 48px;
}

.section-block.search-hidden {
    display: none !important;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.section-title i {
    color: var(--primary);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.premium-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37,99,235,0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.premium-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.premium-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Callouts / Avisos Premium */
.callout {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
}

.callout i {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.callout-dica {
    background-color: #f0fdf4;
    border-left: 4px solid var(--success);
    color: #166534;
}

.callout-dica i { color: var(--success); }

.callout-atencao {
    background-color: #fffbeb;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.callout-atencao i { color: var(--warning); }

.callout-pratica {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    color: #1e40af;
}

.callout-pratica i { color: var(--primary); }

/* Mockup Layout */
.mockup-container {
    background-color: #0f172a;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 32px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot-red { background-color: #ef4444; }
.mockup-dot-yellow { background-color: #f59e0b; }
.mockup-dot-green { background-color: #10b981; }

.mockup-title {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.mockup-display {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .mockup-display {
        grid-template-columns: 1fr;
    }
}

.mockup-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mockup-caption {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 8px;
}

/* Passo a Passo */
.step-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-badge {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(37,99,235,0.25);
}

.step-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Estilos de Mockups Interativos Internos */
.doc-mockup-wrapper {
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
    border: 1px solid rgba(255,255,255,0.06);
    font-family: 'Inter', sans-serif;
}
.doc-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.doc-mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.doc-mockup-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    color: white;
}

/* Rodapé */
footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 64px;
    border: 1px solid rgba(255,255,255,0.05);
}

footer h3 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.badge-footer {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.08);
}

/* Backdrop blur */
.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================================
   SISTEMA DE BUSCA E FILTRO AVANÇADO DO MANUAL (ERP SEARCH ENGINE)
   ========================================================================= */

/* Sidebar Search Box */
.manual-search-wrapper {
    margin-bottom: 12px;
    width: 100%;
}

.manual-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: all 0.25s ease;
}

.manual-search-box:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.manual-search-box .search-icon {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.manual-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.manual-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 6px;
    pointer-events: none;
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: #ffffff;
}

/* Top Sticky Filter Card in Main */
.manual-top-filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.manual-top-filter-card:focus-within {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.filter-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.filter-search-main {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    gap: 10px;
    transition: all 0.25s ease;
}

.filter-search-main:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-search-main i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.filter-search-main input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
}

.filter-search-main input::placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
}

.filter-search-main .search-clear-btn {
    color: var(--text-light);
}

.filter-search-main .search-clear-btn:hover {
    color: var(--danger);
}

.search-results-counter {
    flex-shrink: 0;
}

.badge-count {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-tags-container {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-top: 4px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-tags-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.filter-tags-scroll::-webkit-scrollbar {
    height: 4px;
}

.filter-chip {
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

/* Instant Search Dropdown */
.manual-dropdown-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 20px 35px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
    padding: 8px 0;
}

.dropdown-item-result {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: block;
}

.dropdown-item-result:last-child {
    border-bottom: none;
}

.dropdown-item-result:hover,
.dropdown-item-result.selected {
    background: var(--primary-light);
}

.dropdown-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.dropdown-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    text-transform: uppercase;
}

.dropdown-item-snippet {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Highlighting */
.manual-highlight {
    background: #fef08a;
    color: #854d0e;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Empty State */
.manual-empty-state {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    margin: 32px 0;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 16px;
}

.manual-empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.manual-empty-state p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto 20px;
}

.btn-clear-search-action {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-clear-search-action:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Pulse Animation on Focus */
@keyframes targetPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.search-target-pulse {
    animation: targetPulse 1.4s ease-out 2;
    border-color: var(--primary) !important;
}

/* Media Queries para Mobile e Tablet */
@media (max-width: 992px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .mobile-header {
        display: flex;
    }

    .backdrop {
        display: block;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    }

    aside.open {
        transform: translateX(0);
    }

    main {
        padding: 24px 16px;
    }

    .hero {
        padding: 32px 20px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.45rem;
        margin-bottom: 20px;
    }

    .premium-card {
        padding: 24px;
    }

    .section-block {
        margin-bottom: 48px;
    }

    .manual-top-filter-card {
        padding: 14px 16px;
    }

    .filter-header-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   MOCKUPS E COMPONENTES DO MÓDULO DE AGÊNCIA & DUAL THEME (MANUAL ERP)
   ========================================================================== */
.doc-mockup-wrapper {
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
    border: 1px solid rgba(255,255,255,0.06);
    font-family: 'Inter', sans-serif;
}
.doc-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.mockup-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.doc-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #f59e0b; }
.mockup-dot-green { background: #10b981; }

.doc-mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.doc-mockup-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    color: white;
}
.doc-mockup-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
}
.doc-mockup-stat-num.green { color: #10b981; }
.doc-mockup-stat-num.yellow { color: #f59e0b; }
.doc-mockup-stat-num.cyan { color: #06b6d4; }

.doc-mockup-linkbox {
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #93c5fd;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.doc-mockup-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}
.doc-mockup-btn:hover {
    background: #1d4ed8;
}
.doc-mockup-table {
    width: 100%;
    color: #94a3b8;
    font-size: 0.85rem;
    border-collapse: collapse;
}
.doc-mockup-table th {
    text-align: left;
    color: white;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.doc-mockup-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.doc-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
}
.doc-badge-green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.doc-badge-yellow { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* Dual Theme Mockup */
.doc-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .doc-dual-grid { grid-template-columns: 1fr; }
}
.doc-theme-box {
    padding: 20px;
    border-radius: var(--radius-lg);
}
.doc-theme-modern {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}
.doc-theme-classic {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: black;
    font-family: "MS Sans Serif", Tahoma, sans-serif;
}
.doc-classic-input {
    background: white;
    color: black;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    width: 100%;
    outline: none;
}
.doc-classic-btn {
    background: #c0c0c0;
    color: black;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 14px;
    font-weight: bold;
    font-size: 12px;
}
.doc-classic-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}
.doc-classic-checkbox {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    position: relative;
    vertical-align: middle;
}
.doc-classic-checkbox.checked::after {
    content: "✓";
    position: absolute;
    top: -4px;
    left: 1px;
    font-size: 11px;
    font-weight: bold;
    color: black;
}
.doc-switch-ios {
    width: 44px;
    height: 24px;
    background: #10b981;
    border-radius: 99px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.doc-switch-ios::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* =========================================================================
   SUBMENUS DA SIDEBAR & DESTAQUE DE ÂNCORAS
   ========================================================================= */
.subnav-menu {
    list-style: none;
    margin: 4px 0 8px 14px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.subnav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subnav-item a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.subnav-item.active a,
.subnav-item a:focus {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.12);
    font-weight: 600;
}

.subnav-item a i {
    font-size: 0.85rem;
    color: #38bdf8;
    flex-shrink: 0;
}

/* Scroll Offset e Efeito Pulse para Âncoras */
.plugin-doc-card,
.sub-app-block,
.doc-section,
.section-block,
.premium-card[id],
.faq-item[id],
[id] {
    scroll-margin-top: 42px;
}

@media (max-width: 992px) {
    html {
        scroll-padding-top: 84px;
    }

    .plugin-doc-card,
    .sub-app-block,
    .doc-section,
    .section-block,
    .premium-card[id],
    .faq-item[id],
    [id] {
        scroll-margin-top: 84px;
    }
}

.sub-app-block:target,
.plugin-doc-card:target,
.section-block:target,
.search-target-pulse,
.pulse-highlight {
    animation: anchorHighlightPulse 2.5s ease-out;
}

@keyframes anchorHighlightPulse {
    0% {
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.6), 0 10px 30px rgba(37, 99, 235, 0.25);
        border-color: #2563eb !important;
    }
    100% {
        box-shadow: none;
    }
}

/* ==========================================================================
   Document Mockup Containers (Molduras de Telas & Interfaces Fidedignas)
   ========================================================================== */
.doc-mockup-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 20px 0;
}

.doc-mockup-header {
    background: #0f172a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot-red {
    background-color: #ef4444;
}

.mockup-dot-yellow {
    background-color: #f59e0b;
}

.mockup-dot-green {
    background-color: #10b981;
}

.mockup-title {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}



