/* ============================================
   Portal da Transparência - Câmara Municipal de Manaus
   Adaptado para WordPress Theme CMM
   ============================================ */

/* Bridge: mapeia variáveis do portal para variáveis do tema WordPress (theme-settings.php)
   As variáveis --cor-* são geradas dinamicamente via painel admin > Cores do Tema.
   Os valores após a vírgula são fallbacks caso as variáveis não estejam definidas. */
body.portal-transparencia {
    /* Cores do tema (recuperadas do painel administrativo) */
    --primary: var(--cor-primaria, #008eb7);
    --primary-dark: var(--cor-primaria-dark, #006d8f);
    --primary-light: var(--cor-primaria-light, #e6f4f9);
    --secondary: var(--cor-secundaria, #00c8f5);
    --secondary-light: var(--cor-secundaria-light, #e0f7fd);
    --tertiary: var(--cor-terciaria, #f57300);
    --tertiary-light: var(--cor-terciaria-light, #fff3e6);
    --sidebar-bg: var(--cor-primaria, #008eb7);
    --sidebar-hover: rgba(255, 255, 255, 0.12);
    --sidebar-active: rgba(0, 0, 0, 0.18);

    /* Layout */
    --sidebar-width: 290px;
    --sidebar-collapsed-width: 0px;
    --header-height: 64px;

    /* Tipografia e neutros */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;

    /* Elevação */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ---- Base ---- */

body.portal-transparencia {
    font-family: var(--fonte-secundaria, 'Lato'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.portal-transparencia a,
body.portal-transparencia a:link,
body.portal-transparencia a:visited {
    text-decoration: none;
    transition: var(--transition);
}

body.portal-transparencia a:hover {
    text-decoration: none;
}

/* Cores de links apenas na área de conteúdo (não no sidebar) */
body.portal-transparencia .main-content a {
    color: var(--primary);
}

body.portal-transparencia .main-content a:hover {
    color: var(--tertiary);
}

button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible,
.btn-export:focus,
.btn-export:focus-visible,
.btn-action-primary:focus,
.btn-action-primary:focus-visible,
.btn-search:focus,
.btn-search:focus-visible,
.module-cat-btn:focus,
.module-cat-btn:focus-visible,
.btn-table-action:focus,
.btn-table-action:focus-visible,
.btn-header-action:focus,
.btn-header-action:focus-visible {
    outline: none;
    box-shadow: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   HEADER / TOP BAR
   ============================================ */
.top-header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: var(--transition);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.top-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-header .btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header .btn-toggle-sidebar:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.header-breadcrumb .bi {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.breadcrumb-home {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-home:hover {
    color: var(--primary);
}

.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--primary);
    background: rgba(0, 142, 183, 0.08);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.breadcrumb-back:hover {
    background: rgba(0, 142, 183, 0.15);
    color: var(--primary);
}

.breadcrumb-back .bi {
    font-size: 1rem;
    color: inherit;
}

.breadcrumb-parent {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-parent:hover {
    color: var(--primary);
}

.header-breadcrumb .current {
    color: var(--primary);
    font-weight: 700;
}

.sidebar-logo-link {
    display: block;
    transition: opacity 0.2s ease;
}

.sidebar-logo-link:hover {
    opacity: 0.85;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-iso-badge {
    height: auto;
    width: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1);
    opacity: 0.7;
}

.header-right .btn-header-action {
    background: none;
    border: 2px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.header-right .btn-header-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 142, 183, 0.12);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    min-height: var(--header-height);
}

.sidebar-header .sidebar-logo {
    width: 160px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.sidebar-header .sidebar-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-header .sidebar-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 400;
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-item {
    position: relative;
}

/* Parent link (collapsible) */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover);
}

.sidebar-link.active {
    color: #ffffff;
    background-color: var(--sidebar-active);
    box-shadow: inset 3px 0 0 #ffffff;
    font-weight: 700;
}

.sidebar-link .bi {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link .link-text {
    flex: 1;
    white-space: normal;
    line-height: 1.3;
}

.sidebar-link .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.sidebar-link[aria-expanded="true"] .arrow {
    transform: rotate(90deg);
}

/* Parent link quando submenu está aberto */
.sidebar-link[aria-expanded="true"] {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Parent link quando possui filho ativo */
.sidebar-item.has-active-child>.sidebar-link {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Submenu */
.sidebar-submenu {
    background-color: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.sidebar-submenu .sidebar-link {
    padding: 8px 18px 8px 56px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    transition: all 0.2s ease;
}

.sidebar-submenu .sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 60px;
}

.sidebar-submenu .sidebar-link.active {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.18);
    box-shadow: inset 3px 0 0 var(--tertiary, #f57300);
    font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 30px;
    padding: 24px;
    min-height: calc(100vh - var(--header-height));
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* ============================================
   PAGE TITLE SECTION
   ============================================ */
.page-title-section {
    margin-bottom: 28px;
}

.page-title-section h1 {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.page-title-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-title-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 10px;
}

/* ============================================
   MODULE SEARCH (Home Page)
   ============================================ */
.module-search-wrapper {
    max-width: 740px;
    margin: 0 auto 36px;
}

.module-search-bar {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.module-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 24px rgba(0, 142, 183, 0.12), 0 0 0 4px rgba(0, 142, 183, 0.06);
}

/* Dropdown select */
.search-select-wrapper {
    position: relative;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.search-category-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: #f1f5f9;
    padding: 0 36px 0 16px;
    height: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    min-width: 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: background-color 0.2s ease;
}

.search-category-select:hover {
    background-color: #e8edf2;
}

.search-category-select:focus {
    background-color: #e2e8f0;
}

/* Input wrapper */
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    padding: 0 56px 0 18px;
    height: 50px;
    font-size: 1rem;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    background: transparent;
    color: var(--text-dark);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Search button */
.search-bar-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar-btn:hover {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 142, 183, 0.3);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

.search-results-header {
    padding: 10px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

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

.search-result-item:hover {
    background: var(--primary-light);
    color: var(--text-dark);
}

.sri-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sri-title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sri-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sri-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    white-space: nowrap;
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-no-results .bi {
    margin-right: 4px;
}

/* Category Tabs */
.module-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
    padding: 6px 4px;
}

.module-cat-btn {
    padding: 9px 18px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-card);
    font-size: 0.82rem;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.2px;
    white-space: nowrap;
    position: relative;
}

.module-cat-btn:hover {
    color: #ffffff;
    background: var(--tertiary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 142, 183, 0.12);
}

.module-cat-btn.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.module-cat-btn.active:hover {
    background: var(--secondary);
}

/* Module Cards Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 20px 22px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.module-card:hover::before {
    width: 100%;
}

.module-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 142, 183, 0.12);
    transform: translateY(-6px);
    color: var(--text-dark);
}

.module-card .mc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background-color: rgb(245 115 0 / 10%);
    color: var(--tertiary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 14px;
}

.module-card:hover .mc-icon {
    background: var(--tertiary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245, 115, 0, 0.3);
    transform: scale(1.08);
}

.module-card .mc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.module-card .mc-title {
    font-size: 0.90rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.module-card:hover .mc-title {
    color: var(--tertiary);
}

.module-card .mc-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.module-card .mc-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-top: auto;
    background: rgb(0 200 245 / 10%);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 142, 183, 0.1);
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin: 36px 0 12px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 142, 183, 0.25);
    transform: translateY(-2px);
}

.btn-load-more .bi {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-load-more:hover .bi {
    transform: rotate(90deg);
}

.load-more-done {
    margin: 24px 0 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.load-more-done .bi {
    color: var(--primary);
    margin-right: 6px;
}

/* No results */
.module-no-results {
    text-align: center;
    padding: 48px 24px;
    display: none;
}

.module-no-results .bi {
    font-size: 3rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}

/* ============================================
   INFORMATIONAL BLOCK
   ============================================ */
.info-block {
    margin-top: 48px;
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.info-block-header span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block-header span .bi {
    color: var(--primary);
    font-size: 1rem;
}

.info-block-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Main Info Grid */
.info-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card-main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card-main-watermark {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-size: 10rem;
    color: var(--tertiary);
    opacity: 0.08;
    pointer-events: none;
    line-height: 1;
}

.info-card-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.info-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 4px 0 16px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.info-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

body.portal-transparencia .main-content a.info-card-btn,
body.portal-transparencia .main-content a.info-card-btn:link,
body.portal-transparencia .main-content a.info-card-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgb(0 142 183 / 25%);
}

body.portal-transparencia .main-content a.info-card-btn:hover {
    background: var(--tertiary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(0 142 183 / 35%);
}

/* Side Info Cards */
.info-card-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-link {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    flex: 1;
}

.info-card-link:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 142, 183, 0.1);
    transform: translateY(-2px);
}

.info-card-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgb(245 115 0 / 10%);
    color: var(--tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-card-link:hover .info-card-link-icon {
    background: var(--tertiary);
    color: #fff;
}

.info-card-link h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.info-card-link p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.info-card-arrow {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card-link:hover .info-card-arrow {
    color: var(--tertiary);
    transform: translateX(4px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 142, 183, 0.08);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tertiary);
    line-height: 1;
}

.stat-icon {
    font-size: 2.8rem;
    color: var(--tertiary);
    line-height: 1;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-text span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stat-text strong {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================
   SITEMAP
   ============================================ */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sitemap-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sitemap-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 142, 183, 0.08);
}

.sitemap-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.sitemap-card-header h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.sitemap-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 4px;
}

.sitemap-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sitemap-links a .bi {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.sitemap-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 14px;
}

.sitemap-links a:hover .bi {
    color: var(--tertiary);
    transform: translateX(2px);
}

/* ============================================
   FILTER BAR (Horizontal Filters)
   ============================================ */
.filter-bar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-bar .filter-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-bar .filter-title .bi {
    font-size: 0.85rem;
    color: var(--primary);
}

.filter-bar label {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    font-size: 0.86rem;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    height: 38px;
    transition: var(--transition);
    background-color: #f8fafc;
    color: var(--text-dark);
}

.filter-bar .form-control:hover,
.filter-bar .form-select:hover {
    border-color: #cbd5e1;
    background-color: var(--bg-card);
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0, 142, 183, 0.1);
}

.filter-bar .btn-search {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.filter-bar .btn-search:hover {
    background: var(--tertiary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 142, 183, 0.25);
}

/* Global button style */
.btn-action-primary {
    background: var(--tertiary);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(245, 115, 0, 0.2);
}

.btn-action-primary:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 200, 245, 0.25);
    transform: translateY(-1px);
}

.filter-bar .btn-clear {
    background: none;
    border: none;
    color: #dc2626;
    padding: 0 8px;
    height: 38px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    display: none;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
}

.filter-bar .btn-clear.visible {
    display: inline-flex;
}

.filter-bar .btn-clear:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
}

.data-card-header .data-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-card-header .data-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 142, 183, 0.15);
}

.data-card-header .data-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-card-header .btn-export {
    background: none;
    border: 2px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
}

.data-card-header .btn-export:hover {
    transform: translateY(-1px);
}

.btn-export.export-pdf {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff5f5;
}

.btn-export.export-pdf:hover {
    background: #fef2f2;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.btn-export.export-xlsx {
    color: #059669;
    border-color: #86efac;
    background: #f0fdf9;
}

.btn-export.export-xlsx:hover {
    background: #ecfdf5;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.btn-export.export-docx {
    color: #2563eb;
    border-color: #93c5fd;
    background: #f0f5ff;
}

.btn-export.export-docx:hover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100% !important;
    min-width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f8fafc;
}

.data-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    padding: 14px 16px;
    border-bottom: 2px solid var(--primary);
    white-space: nowrap;
    vertical-align: middle;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 0.80rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-status.success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.badge-status.warning {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.badge-status.danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.badge-status.info {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(0, 142, 183, 0.15);
}

/* Table actions */
.data-table td:last-child {
    white-space: nowrap;
}

.btn-table-action {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    vertical-align: middle;
    margin-right: 4px;
}

.btn-table-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-table-action.pdf {
    border-color: #dc2626;
    color: #dc2626;
    background-color: #fef2f2;
}

.btn-table-action.pdf:hover {
    background-color: #dc2626;
    color: #fff;
}

/* Currency */
.text-currency {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.text-currency.positive {
    color: #059669;
}

.text-currency.negative {
    color: #dc2626;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-info strong {
    color: var(--text-dark);
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    font-size: 0.85rem;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 8px !important;
    transition: var(--transition);
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    font-weight: 600;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 142, 183, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background-color: #f8fafc;
    border-color: #f1f5f9;
}

.per-page-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.per-page-select select {
    width: auto;
    min-width: 64px;
    font-size: 0.85rem;
    padding: 4px 28px 4px 10px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: var(--fonte-secundaria, 'Lato'), sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-color: #fff;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-spinner .spinner-border {
    color: var(--primary);
}

.loading-spinner span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   DOCUMENT ICONS (inline na tabela)
   ============================================ */
.tp-doc-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-doc-link {
    font-size: 1.75rem;
    line-height: 1;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.85;
}

.tp-doc-link:hover {
    opacity: 1;
}

/* Borda apenas nos botões de texto de Licitação (sem classe de tipo) */
a.tp-doc-link.tp-doc-named:not(.tp-doc-pdf):not(.tp-doc-excel):not(.tp-doc-docx):not(.tp-doc-other) {
    border: 1px solid var(--primary);
    padding: 5px 0;
    width: 100%;
    margin: 2px 0;
}

.tp-doc-link.tp-doc-pdf,
.tp-doc-link.tp-doc-pdf:link,
.tp-doc-link.tp-doc-pdf:visited {
    color: #dc2626 !important;
}

.tp-doc-link.tp-doc-pdf:hover {
    color: #b91c1c !important;
}

.tp-doc-link.tp-doc-excel,
.tp-doc-link.tp-doc-excel:link,
.tp-doc-link.tp-doc-excel:visited {
    color: #059669 !important;
}

.tp-doc-link.tp-doc-excel:hover {
    color: #047857 !important;
}

.tp-doc-link.tp-doc-docx,
.tp-doc-link.tp-doc-docx:link,
.tp-doc-link.tp-doc-docx:visited {
    color: #2563eb !important;
}

.tp-doc-link.tp-doc-docx:hover {
    color: #1d4ed8 !important;
}

.tp-doc-link.tp-doc-other,
.tp-doc-link.tp-doc-other:link,
.tp-doc-link.tp-doc-other:visited {
    color: #6b7280 !important;
}

.tp-doc-link.tp-doc-other:hover {
    color: #374151 !important;
}

/* Named document buttons (Licitações) */
.tp-doc-named-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tp-doc-link.tp-doc-named {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 2px;
}

.tp-doc-link.tp-doc-named .bi {
    font-size: 1.6rem;
    display: block;
}

.tp-doc-link.tp-doc-named:hover {
    opacity: 0.7;
}

/* Objeto text truncation (ver mais / ver menos) with fade */
.tp-objeto-short,
.tp-objeto-full {
    animation: tpFadeIn 0.35s ease;
}

@keyframes tpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-objeto-text .tp-objeto-full {
    display: none;
}

.tp-objeto-text.expanded .tp-objeto-short {
    display: none;
}

.tp-objeto-text.expanded .tp-objeto-full {
    display: inline;
}

.tp-objeto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary, #008eb7) !important;
    font-weight: 600;
    font-size: 0.72rem;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(0, 142, 183, 0.08);
    padding: 2px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 4px;
}

.tp-objeto-toggle:hover {
    background: var(--primary, #008eb7);
    color: #fff !important;
    text-decoration: none !important;
}

/* Licitações table layout tweaks */
#view-licitacoes .data-table td:nth-child(7) {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 350px;
}

#view-licitacoes .data-table td:nth-child(8) {
    min-width: 150px;
    vertical-align: middle;
}

#view-licitacoes .data-table td:nth-child(6) {
    max-width: 180px;
    word-break: break-word;
}

/* ============================================
   SKELETON LOADER (tabelas AJAX)
   ============================================ */
.tp-skeleton {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: tp-shimmer 1.4s ease-in-out infinite;
}

.tp-skeleton-row td {
    padding: 16px !important;
}

@keyframes tp-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   DETAIL MODAL
   ============================================ */
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-label {
    width: 180px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    flex: 1;
}

/* ============================================
   SIDEBAR COLLAPSED
   ============================================ */
body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .top-header {
    left: 0;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    margin-top: 40px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -24px;
}

.footer-top {
    background: var(--primary);
    color: #ffffff;
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.footer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    padding: 2px 0;
}

.footer-item-icon {
    font-size: 0.8rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 12px;
    user-select: none;
}

.footer-top a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.footer-top a:hover {
    color: var(--tertiary);
}

.footer-bottom {
    background: var(--tertiary);
    color: #ffffff;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1399.98px) {
    .module-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1199.98px) {
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991.98px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .top-header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .module-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-bar .btn-search {
        justify-content: center;
    }

    .pagination-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .info-block-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table thead th {
        padding: 12px 10px;
        font-size: 0.72rem;
    }

    .data-table tbody td {
        padding: 12px 10px;
        font-size: 0.84rem;
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 16px;
    }

    .main-footer {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -16px;
    }

    .page-title-section {
        margin-bottom: 20px;
    }

    .page-title-section h1 {
        font-size: 1.3rem;
    }

    .page-title-section p {
        font-size: 0.85rem;
    }

    .data-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .data-card-header .data-title {
        font-size: 0.9rem;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .module-card {
        padding: 22px 14px 18px;
    }

    .module-card .mc-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .module-card .mc-title {
        font-size: 0.88rem;
    }

    .module-card .mc-desc {
        font-size: 0.75rem;
    }

    .header-breadcrumb {
        display: none;
    }

    .header-iso-badge {
        height: 28px;
        width: 48px;
    }

    .module-categories {
        justify-content: center;
    }

    .module-cat-btn {
        padding: 7px 16px;
        font-size: 0.82rem;
    }

    .module-search-bar {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-select-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .search-category-select {
        width: 100%;
        min-width: auto;
        height: 42px;
    }

    .search-input-wrapper input {
        height: 44px;
    }

    .footer-top {
        padding: 14px 16px;
        gap: 8px;
    }

    .footer-row {
        flex-direction: column;
        gap: 6px;
    }

    .footer-sep {
        display: none;
    }

    .footer-item {
        justify-content: center;
        text-align: center;
    }

    .info-block-grid {
        grid-template-columns: 1fr;
    }

    .info-card-main {
        padding: 28px 24px;
    }

    .info-card-title {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .data-table thead th {
        padding: 10px 8px;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    .data-table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .detail-label {
        width: 120px;
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.85rem;
    }

    .filter-bar {
        padding: 14px 16px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 12px;
    }

    .main-footer {
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: -12px;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .module-card {
        padding: 18px 12px 16px;
        border-radius: 12px;
    }

    .module-card .mc-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .module-card .mc-title {
        font-size: 0.82rem;
    }

    .module-card .mc-desc {
        font-size: 0.72rem;
        display: none;
    }

    .module-card .mc-category {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .top-header {
        padding: 0 12px;
    }

    .module-search-wrapper {
        margin: 0 auto 24px;
    }

    .module-categories {
        gap: 6px;
    }

    .module-cat-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .data-card-header .data-actions {
        flex-wrap: wrap;
    }

    .data-card-header .btn-export {
        padding: 4px 10px;
        font-size: 0.78rem;
    }

    .data-table thead th {
        padding: 8px 6px;
        font-size: 0.68rem;
    }

    .data-table tbody td {
        padding: 8px 6px;
        font-size: 0.76rem;
    }

    .pagination-wrapper {
        padding: 12px;
        gap: 8px;
    }

    .pagination .page-link {
        padding: 4px 8px;
        font-size: 0.78rem;
    }

    .page-title-section h1 {
        font-size: 1.15rem;
    }

    .filter-bar {
        padding: 12px;
    }

    .filter-bar .filter-title {
        font-size: 0.68rem;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 20px 16px;
    }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
.page-view {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.page-view.active {
    display: block;
    flex: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-secondary-custom {
    color: var(--secondary) !important;
}

.text-tertiary-custom {
    color: var(--tertiary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

.alert-info-custom {
    background-color: var(--primary-light);
    border: 1px solid rgba(0, 142, 183, 0.2);
    color: var(--primary-dark);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state .bi {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h5 {
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    color: var(--primary);
}

.sortable .bi {
    font-size: 0.65rem;
    margin-left: 4px;
}

/* Static pages */
.static-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.static-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.static-card .stat-icon.primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.static-card .stat-icon.secondary {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.static-card .stat-icon.tertiary {
    background-color: var(--tertiary-light);
    color: var(--tertiary);
}

/* ============================================
   DADOS ABERTOS
   ============================================ */

/* Stats Row */
.od-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.od-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.od-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.od-stat-icon.secondary {
    background: var(--secondary-light);
    color: var(--secondary);
}

.od-stat-icon.tertiary {
    background: var(--tertiary-light);
    color: var(--tertiary);
}

.od-stat-icon.quaternary {
    background: #fef3e2;
    color: #d97706;
}

.od-stat-number {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.od-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Dataset Grid */
.od-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Dataset Card */
.od-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.od-card:hover {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    box-shadow: 0 8px 28px rgba(0, 142, 183, 0.12);
    transform: translateY(-4px);
    padding: 23px;
}

/* Card Top: icon + badge */
.od-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.od-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--primary-light);
    color: var(--primary);
}

.od-card-icon.secondary {
    background: var(--secondary-light);
    color: var(--secondary);
}

.od-card-icon.tertiary {
    background: var(--tertiary-light);
    color: var(--tertiary);
}

.od-card-icon.quaternary {
    background: #fef3e2;
    color: #d97706;
}

.od-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Card Title & Desc */
.od-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.od-card:hover .od-card-title {
    color: var(--primary);
}

.od-card-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Card Meta */
.od-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.od-card-meta span {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.od-card-meta span .bi {
    font-size: 0.72rem;
    color: var(--primary);
}

/* Card Actions */
.od-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
}

.od-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.od-btn.csv {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.od-btn.csv:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.od-btn.json {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.od-btn.json:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Responsive */
@media (max-width: 991.98px) {
    .od-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .od-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .od-stats-row {
        grid-template-columns: 1fr;
    }

    .od-grid {
        grid-template-columns: 1fr;
    }

    .od-stat-box {
        padding: 16px;
    }

    .od-card {
        padding: 18px;
    }

    .od-card:hover {
        padding: 17px;
    }
}

/* ============================================
   WordPress Admin Bar offset
   ============================================ */
body.admin-bar.portal-transparencia .top-header {
    top: 32px;
}

body.admin-bar.portal-transparencia .sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar.portal-transparencia .top-header {
        top: 46px;
    }

    body.admin-bar.portal-transparencia .sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }

    body.admin-bar.portal-transparencia .main-content {
        margin-top: calc(var(--header-height) + 46px);
    }
}

/* ============================================
   CEAP - Interface SIGAE Moderna
   ============================================ */

/* Profile Card */
.ceap-profile-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.ceap-profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ceap-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

.ceap-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    flex-shrink: 0;
}

.ceap-profile-info {
    flex: 1;
    min-width: 0;
}

.ceap-profile-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ceap-profile-role {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
}

.ceap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceap-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.ceap-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Profile Body */
.ceap-profile-body {
    padding: 24px 32px;
}

.ceap-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.ceap-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.ceap-meta-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.ceap-meta-item strong {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.ceap-hero-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.ceap-hero-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ceap-hero-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

/* Stats Grid */
.ceap-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ceap-stat-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ceap-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ceap-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ceap-stat-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.ceap-stat-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.ceap-stat-icon.teal {
    background: #e0f7fd;
    color: #0891b2;
}

.ceap-stat-icon.orange {
    background: #fff3e6;
    color: #ea580c;
}

.ceap-stat-icon.red {
    background: #fef2f2;
    color: #dc2626;
}

.ceap-stat-content {
    flex: 1;
    min-width: 0;
}

.ceap-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.ceap-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
}

/* Table Enhancements */
#ceap-sigae-table td:nth-child(2) {
    white-space: nowrap;
}

.ceap-nota-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ceap-nota-row:hover {
    background-color: var(--primary-light) !important;
}

.ceap-nota-row .ceap-row-action {
    color: var(--text-light);
    transition: var(--transition);
}

.ceap-nota-row:hover .ceap-row-action {
    color: var(--primary);
}

/* Modal Enhancements */
#ceap-modais-container .modal-dialog.modal-lg {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.ceap-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 24px 28px;
    color: #fff;
    border-radius: 0;
}

.ceap-modal-header h5 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.ceap-modal-header .ceap-modal-valor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

.ceap-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.ceap-modal-header .btn-close:hover {
    opacity: 1;
}

.ceap-modal-section {
    padding: 20px 28px;
}

.ceap-modal-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ceap-modal-field {
    margin-bottom: 14px;
}

.ceap-modal-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.ceap-modal-field span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.eo-image-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.eo-image-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.eo-image-wrapper img:hover {
    opacity: 0.85;
}

.eo-image-hint {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.eo-image-hint .bi {
    font-size: 0.9rem;
}

.eo-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.eo-empty-state .bi {
    font-size: 3rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

#estruturaOrgModal .modal-content {
    border: none;
    border-radius: 12px;
}

#estruturaOrgModal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

#estruturaOrgModal .modal-body {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

@media (max-width: 575.98px) {
    .eo-image-wrapper {
        padding: 14px;
    }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .ceap-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    #ceap-modais-container .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }

    .ceap-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceap-profile-header {
        padding: 20px 24px;
    }

    .ceap-profile-body {
        padding: 20px 24px;
    }
}

@media (max-width: 767.98px) {
    .ceap-stats-grid {
        grid-template-columns: 1fr;
    }

    .ceap-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .ceap-hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ceap-hero-value {
        font-size: 1.5rem;
    }

    .ceap-meta-row {
        flex-direction: column;
        gap: 10px;
    }

    .ceap-stat-card {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .ceap-profile-name {
        font-size: 1.2rem;
    }

    .ceap-avatar,
    .ceap-avatar-placeholder {
        width: 100px;
        height: 100px;
    }
}

/* =====================================================
   INFORMAÇÕES AO CIDADÃO – SIC
   ===================================================== */

/* ── Card ── */
.sic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, 0.07));
}

/* ── Cabeçalho ── */
.sic-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--primary);
    padding: 18px 28px;
}

.sic-card-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #fff;
}

.sic-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ── Lista ── */
.sic-lista {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

/* ── Item ── */
.sic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 28px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

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

.sic-item:hover {
    background: rgba(0, 0, 0, 0.018);
}

/* Lado esquerdo: bullet + texto */
.sic-item-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sic-item-bullet {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.65rem;
    margin-top: 1px;
    opacity: 0.8;
}

.sic-item-texto {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.65;
}

/* ── Botão de download ── */
.sic-item-action {
    flex-shrink: 0;
}

.sic-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    max-width: 260px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sic-btn-download:hover {
    background: var(--primary-dark, #0d5fa3);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sic-btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sic-btn-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.sic-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.sic-btn-ext {
    font-size: 0.65rem;
    opacity: 0.75;
    flex-shrink: 0;
}

/* ── Rodapé informativo ── */
.sic-info-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    background: var(--primary-light, #e8f4fb);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 22px;
    margin-bottom: 32px;
}

.sic-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.sic-info-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.sic-mail-link {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none;
}

.sic-mail-link:hover {
    text-decoration: underline;
    color: var(--primary-dark, #0d5fa3) !important;
}

/* ── Estado vazio ── */
.sic-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.sic-empty .bi {
    font-size: 2.5rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 14px;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

/* Tablet */
@media (max-width: 768px) {
    .sic-card-header {
        padding: 16px 20px;
    }

    .sic-item {
        padding: 12px 20px;
        gap: 12px;
    }

    .sic-btn-download {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .sic-btn-label {
        max-width: 140px;
    }

    .sic-info-footer {
        flex-direction: column;
        gap: 8px;
        padding: 14px 18px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .sic-card-header {
        padding: 14px 16px;
        gap: 10px;
    }

    .sic-card-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .sic-card-title {
        font-size: 0.82rem;
    }

    .sic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    .sic-item-content {
        width: 100%;
    }

    .sic-item-action {
        width: 100%;
    }

    .sic-btn-download {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    .sic-btn-label {
        max-width: none;
    }

    .sic-info-footer {
        padding: 12px 14px;
    }
}

/* ============================================
   EMPTY STATE — componente reutilizável
   ============================================ */

.tp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 72px;
    gap: 0;
}

/* --- Ilustração em camadas --- */
.tp-empty-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

/* Anel externo — pulso suave */
.tp-empty-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tp-empty-ring--outer {
    inset: 0;
    background: var(--primary-light);
    opacity: 0.45;
    animation: tp-pulse 3s ease-in-out infinite;
}

.tp-empty-ring--inner {
    inset: 16px;
    background: var(--primary-light);
    opacity: 0.7;
}

@keyframes tp-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.07);
        opacity: 0.25;
    }
}

/* Círculo central com ícone */
.tp-empty-icon-wrap {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.tp-empty-icon-wrap .bi {
    font-size: 1.75rem;
    color: var(--primary);
}

/* --- Texto --- */
.tp-empty-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 600px;
    width: 100%;
}

.tp-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.tp-empty-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
}

/* --- Responsivo --- */
@media (max-width: 575.98px) {
    .tp-empty-state {
        padding: 48px 16px 56px;
    }

    .tp-empty-illustration {
        width: 96px;
        height: 96px;
        margin-bottom: 20px;
    }

    .tp-empty-ring--inner {
        inset: 12px;
    }

    .tp-empty-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .tp-empty-icon-wrap .bi {
        font-size: 1.4rem;
    }

    .tp-empty-title,
    .tp-empty-subtitle {
        font-size: 0.88rem;
        white-space: normal;
        text-align: center;
    }
}

/* === Carta de Serviços ao Usuário === */

.cs-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: var(--transition);
}

.cs-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    border-left-color: var(--primary);
    transform: translateY(-1px);
}

/* Número */
.cs-item-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
}

/* Conteúdo central */
.cs-item-body {
    flex: 1;
    min-width: 0;
}

.cs-item-titulo {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    line-height: 1.4;
}

.cs-item-descricao {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cs-item-descricao a {
    color: var(--primary);
}

.cs-item-descricao a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botão de download */
.cs-item-action {
    flex-shrink: 0;
}

.cs-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    width: 180px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cs-btn-download:hover {
    background: var(--primary-dark, #0d5fa3);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cs-btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cs-btn-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Estado vazio */
.cs-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cs-empty .bi {
    font-size: 2.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

/* === Responsivo === */

/* Tablet (≤768px): label some-se, fica só ícone */
@media (max-width: 768px) {
    .cs-item {
        gap: 16px;
        padding: 18px 20px;
    }

    .cs-btn-label {
        display: none;
    }

    .cs-btn-download {
        padding: 10px 12px;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .cs-btn-icon {
        font-size: 1.1rem;
    }
}

/* Mobile (≤575px): empilha verticalmente, botão full-width */
@media (max-width: 575.98px) {
    .cs-item {
        flex-wrap: wrap;
        padding: 16px 16px;
        gap: 12px;
    }

    .cs-item-body {
        flex: 1 1 calc(100% - 56px);
    }

    .cs-item-action {
        flex: 1 1 100%;
        order: 3;
    }

    .cs-btn-download {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        padding: 10px 16px;
    }

    .cs-btn-label {
        display: inline;
    }

    .cs-item-number {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .cs-item-titulo {
        font-size: 0.87rem;
    }
}

/* ============================================
   LEGISLAÇÃO SOBRE O PORTAL
   ============================================ */

.leg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.leg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.leg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.leg-card:hover::before {
    transform: scaleX(1);
}

.leg-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.leg-card-icon {
    width: 72px;
    height: 72px;
    background: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Suporte a Font Awesome via ACF font-awesome field */
.leg-card-icon i,
.leg-card-icon svg {
    font-size: 1.9rem;
    color: var(--primary-light);
}

.leg-card:hover .leg-card-icon {
    background: var(--primary);
    transform: scale(1.05);
}

.leg-card:hover .leg-card-icon i,
.leg-card:hover .leg-card-icon svg {
    color: #fff;
}

.leg-card-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.45;
    text-align: center;
}

.leg-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 20px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.leg-card-btn:hover {
    background: var(--primary);
    color: #fff !important;
}

/* Tablet: 2 colunas */
@media (max-width: 900px) {
    .leg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile: 1 coluna */
@media (max-width: 575.98px) {
    .leg-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .leg-card {
        padding: 28px 20px;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 16px;
    }

    .leg-card-icon {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .leg-card-icon i,
    .leg-card-icon svg {
        font-size: 1.4rem;
    }

    .leg-card-titulo {
        text-align: left;
    }

    .leg-card-btn {
        align-self: flex-start;
    }
}

/* ============================================
   LAI — Lei de Acesso à Informação
   ============================================ */

.lai-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 36px;
}

/* Tipografia do conteúdo WordPress */
.lai-content h1,
.lai-content h2,
.lai-content h3,
.lai-content h4 {
    color: var(--text-dark);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.lai-content h2 {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 6px;
}

.lai-content h3 {
    font-size: 1.05rem;
    color: var(--primary);
}

.lai-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1em;
}

.lai-content a {
    color: var(--primary);
    text-decoration: underline;
}

.lai-content a:hover {
    color: var(--primary-dark);
}

.lai-content ul,
.lai-content ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}

.lai-content li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 4px;
}

.lai-content strong {
    color: var(--text-dark);
}

.lai-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 1.2em 0;
    padding: 12px 20px;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .lai-content {
        padding: 20px 18px;
    }
}

/* ============================================
   FAQ - Perguntas Frequentes
   ============================================ */

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 40px;
}

/* Seção / Grupo */
.faq-section {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Cabeçalho do grupo */
.faq-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    position: relative;
}

.faq-section-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, transparent 60%);
    pointer-events: none;
}

.faq-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--tertiary);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.faq-section-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
    color: #fff;
}

/* Accordion */
.faq-accordion {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Item */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Pergunta (botão) */
.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: none;
    border: none;
    padding: 15px 22px;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
    color: var(--text-dark);
}

.faq-question:hover {
    background: rgba(0, 0, 0, .025);
}

.faq-question:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.faq-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: #f0f0f0;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.faq-question:not(.collapsed) .faq-question-number {
    background: var(--secondary);
    color: #fff;
}

.faq-question-text {
    flex: 1;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.45;
}

.faq-question-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.faq-question:not(.collapsed) .faq-question-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Resposta */
.faq-answer-body {
    padding: 2px 22px 20px 68px;
    font-size: 0.91rem;
    color: var(--text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--border-color);
}

.faq-answer-body p {
    margin-bottom: 0.55em;
}

.faq-answer-body p:last-child {
    margin-bottom: 0;
}

.faq-answer-body a {
    color: var(--primary);
    text-decoration: underline;
}

.faq-answer-body a:hover {
    opacity: .8;
}

.faq-answer-body ul,
.faq-answer-body ol {
    padding-left: 20px;
    margin-bottom: 0.55em;
}

.faq-answer-body li {
    margin-bottom: 4px;
}

.faq-answer-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .faq-section-header {
        padding: 16px 20px;
        gap: 10px;
    }

    .faq-section-title {
        font-size: 0.93rem;
    }

    .faq-accordion {
        padding: 10px;
        gap: 5px;
    }

    .faq-question {
        padding: 14px 18px;
        gap: 12px;
    }

    .faq-answer-body {
        padding: 2px 18px 16px 54px;
    }
}

@media (max-width: 575px) {
    .faq-section-header {
        padding: 14px 16px;
    }

    .faq-accordion {
        padding: 8px;
    }

    .faq-question {
        padding: 13px 14px;
    }

    .faq-answer-body {
        padding: 8px 14px 16px 14px;
    }

    .faq-question-number {
        display: none;
    }
}

/* ============================================
   SUGIRA UM PROJETO
   ============================================ */

/* Grade de cards */
.sugira-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 48px;
}

/* Card individual */
.sugira-item {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.sugira-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Barra lateral colorida do card */
.sugira-item-accent {
    width: 5px;
    flex-shrink: 0;
}

.sugira-item-accent--primary {
    background: var(--primary);
}

.sugira-item-accent--secondary {
    background: var(--primary);
}


/* Coluna do ícone — alinhada ao topo do card, com padding generoso */
.sugira-item-icon-col {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 18px 28px 22px;
}

/* Ícone circular */
.sugira-item-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}

/* Paleta dos ícones — fundo suave + ícone colorido com cor do tema */
.sugira-icon--primary {
    background: var(--tertiary);
    color: #fff !important;
}

.sugira-icon--secondary {
    background: var(--tertiary);
    color: #fff !important;
}

.sugira-icon--tertiary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.sugira-icon--quaternary {
    background: var(--secondary-light);
    color: var(--primary);
}

/* Corpo do card */
.sugira-item-body {
    flex: 1;
    min-width: 0;
    padding: 28px 28px 28px 4px;
    display: flex;
    flex-direction: column;
}

/* Título */
.sugira-item-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
    line-height: 1.35;
}

/* Conteúdo wysiwyg */
.sugira-item-conteudo {
    flex: 1;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.sugira-item-conteudo p {
    margin-bottom: 0.55em;
}

.sugira-item-conteudo p:last-child {
    margin-bottom: 0;
}

.sugira-item-conteudo a {
    color: var(--primary);
    text-decoration: underline;
}

.sugira-item-conteudo a:hover {
    color: var(--primary-dark);
}

.sugira-item-conteudo ul,
.sugira-item-conteudo ol {
    padding-left: 18px;
    margin-bottom: 0.55em;
}

.sugira-item-conteudo li {
    margin-bottom: 4px;
}

.sugira-item-conteudo strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Área do botão */
.sugira-item-link-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Botão CTA */
.sugira-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 9px 20px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.sugira-item-link i {
    font-size: 0.78rem;
    transition: transform var(--transition);
}

.sugira-item-link:hover i {
    transform: translateX(4px);
}

/* Variantes do botão — todas com cores do tema */
.sugira-link--primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.sugira-link--primary:hover {
    background: var(--tertiary);
    border-color: var(--tertiary);
    color: #fff !important;
}

.sugira-link--secondary {
    background: var(--primary);
    color: #fff !important;
}

.sugira-link--secondary:hover {
    background: var(--tertiary);
    color: #fff !important;
}

.sugira-link--tertiary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.sugira-link--tertiary:hover {
    background: var(--tertiary);
    border-color: var(--tertiary);
    color: #fff !important;
}

.sugira-link--quaternary {
    background: transparent;
    color: var(--secondary) !important;
    border-color: var(--secondary);
}

.sugira-link--quaternary:hover {
    background: var(--secondary);
    color: #fff !important;
}

/* Responsivo — tablet */
@media (max-width: 768px) {
    .sugira-item-icon-col {
        padding: 22px 16px 22px 18px;
    }

    .sugira-item-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .sugira-item-body {
        padding: 22px 20px 22px 4px;
    }

    .sugira-item-titulo {
        font-size: 1rem;
    }
}

/* Responsivo — mobile */
@media (max-width: 575px) {
    .sugira-item {
        flex-wrap: wrap;
    }

    .sugira-item-accent {
        width: 100%;
        height: 5px;
    }

    .sugira-item-icon-col {
        padding: 18px 0 0 18px;
    }

    .sugira-item-body {
        padding: 12px 18px 20px 18px;
    }

    .sugira-item-link-wrapper {
        justify-content: flex-start;
    }

    .sugira-item-link {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Fade-in escalonado dos cards ao ativar a view */
@keyframes sugiraCardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estado inicial: cards invisíveis */
#view-sugira-um-projeto .sugira-item {
    opacity: 0;
}

/* Quando a view fica ativa, dispara a animação com stagger */
#view-sugira-um-projeto.active .sugira-item {
    animation: sugiraCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(1) {
    animation-delay: 0.05s;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(2) {
    animation-delay: 0.15s;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(3) {
    animation-delay: 0.25s;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(4) {
    animation-delay: 0.35s;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(5) {
    animation-delay: 0.42s;
}

#view-sugira-um-projeto.active .sugira-item:nth-child(n+6) {
    animation-delay: 0.48s;
}

/* Reduz movimento para quem prefere */
@media (prefers-reduced-motion: reduce) {
    #view-sugira-um-projeto .sugira-item {
        opacity: 1;
    }

    #view-sugira-um-projeto.active .sugira-item {
        animation: none;
    }
}