/* ============================================================
   sistema.css - Estilos Globais do G2G Sistema de Gestao
   ============================================================
   Esse arquivo contem TODOS os estilos CSS do sistema.
   Ele e carregado pelo head.php em todas as paginas.

   ORGANIZACAO DAS SECOES:
   1.  Design Tokens (variaveis CSS - cores, fontes, espacamentos)
   2.  Tema Claro (overrides para [data-theme="light"])
   3.  Reset e Base (body, headings, paragrafos)
   4.  Utilitarios Globais (hidden, text-muted, flex helpers)
   5.  Layout Principal (sidebar, topbar, main-content)
   6.  Componentes de Navegacao (sidebar, subnav, nav-items)
   7.  Topbar e Barra de Busca
   8.  Cards e Paineis (panel, action-panel, stat-widget)
   9.  Tabelas (table, rh-table, os-table)
   10. Formularios (form-control, labels, inputs)
   11. Botoes (btn, btn-action, btn-icon)
   12. Modais (modal, modal-content, modal-header)
   13. Dashboard (metricas, graficos, nexus-hero)
   14. Tela de O.S. Colaborador (os-hcard, os-period-*)
   15. Sala de Reuniao (mr-hcard, mr-period-*)
   16. RH (rh-record-card, rh-batch-*)
   17. Kanban / Demandas (board, card, list)
   18. Chat (chat-bubble, chat-input)
   19. Calendario de Gestao
   20. Atividades Mensais
   21. Sugestoes e Painel de Sugestoes
   22. Campanhas e Templates
   23. Financeiro e Relatorios
   24. Notificacoes e Toasts
   25. Animacoes e Transicoes (keyframes)
   26. Responsividade (media queries)
   27. Overrides Compactos de Alta Densidade

   COMO EDITAR:
   - Encontre a secao pelo comentario de bloco
   - Utilize as variaveis CSS de :root em vez de cores fixas
   - Ao adicionar novas telas, crie uma secao numerada nova no final
   ============================================================ */
/* ==========================================================================
   G2G PREMIUM — Design Tokens
   Sistema de tokens de design para o G2G SaaS Platform
   ========================================================================== */

:root,
[data-theme="dark"] {

    /* ── Font ──────────────────────────────────────────────── */
    --font-sans: wf_segoe-ui_normal, SegoeUI-Regular-final, Segoe UI, Arial, Helvetica Neue, Lucida Grande, sans-serif;
    --fs-main: 12px;
    --fs-menu: 14px;
    --fs-icon: 14px;
    --fs-badge: 14px;
    --fs-aux: 12px;
    --fs-btn-lg: 24px;

    /* ── Core Backgrounds ──────────────────────────────────── */
    --bg:          #0F172A; /* slate-900 premium */
    --bg-deep:     #0B0F19; /* premium deep dark */
    --bg-elevated: #162033;

    /* ── Sidebar ───────────────────────────────────────────── */
    --sidebar:     #081120;
    --sidebar-2:   #060B14;
    --sidebar-border: rgba(255, 255, 255, 0.05);

    /* ── Surfaces (cards, panels) ──────────────────────────── */
    --surface:         #162033;
    --surface-2:       #162033;
    --surface-3:       #1e293b;
    --surface-hover:   #1E293B;
    --surface-active:  #334155;

    /* ── Borders & Lines ───────────────────────────────────── */
    --line:      rgba(255, 255, 255, 0.05);
    --line-soft: rgba(255, 255, 255, 0.03);
    --line-mid:  rgba(255, 255, 255, 0.1);

    /* ── Typography ────────────────────────────────────────── */
    --text:       #F8FAFC; /* slate-50 */
    --text-soft:  #CBD5E1; /* slate-300 */
    --muted:      #94A3B8; /* slate-400 */
    --muted-2:    #64748B; /* slate-500 */

    /* ── Brand / Primary ───────────────────────────────────── */
    --blue:        #3B82F6;
    --blue-light:  #60A5FA;
    --blue-glow:   rgba(59, 130, 246, 0.18);
    --blue-subtle: rgba(59, 130, 246, 0.08);
    --blue-strong: #2563EB;
    --blue-deep:   #1D4ED8;

    /* ── Semantic Colors ───────────────────────────────────── */
    --green:   #10B981;
    --orange:  #F59E0B;
    --red:     #EF4444;
    --yellow:  #EAB308;
    --purple:  #8B5CF6;
    --cyan:    #22D3EE;
    --pink:    #EC4899;

    /* ── Semantic Aliases ──────────────────────────────────── */
    --primary:        var(--blue);
    --primary-hover:  #60a5fa;
    --primary-glow:   var(--blue-glow);
    --accent:         var(--blue-strong);
    --success:        var(--green);
    --warning:        var(--orange);
    --danger:         var(--red);
    --info:           var(--blue);

    /* ── Semantic Background Tints ─────────────────────────── */
    --success-bg:     rgba(16, 185, 129, 0.12);
    --warning-bg:     rgba(245, 158, 11, 0.12);
    --danger-bg:      rgba(239, 68, 68, 0.12);
    --info-bg:        rgba(59, 130, 246, 0.12);
    --purple-bg:      rgba(139, 92, 246, 0.12);

    /* ── Radius ────────────────────────────────────────────── */
    --radius-xs:  6px;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-2xl: 28px;
    --radius-pill: 999px;

    /* ── Spacing ───────────────────────────────────────────── */
    --space-xs:  0.375rem;
    --space-sm:  0.625rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* ── Shadows ───────────────────────────────────────────── */
    --shadow-xs:   0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm:   0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --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.15), 0 4px 6px -4px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow-blue: 0 0 0 2px rgba(59, 130, 246, 0.25);

    /* ── Transitions ───────────────────────────────────────── */
    --transition:       all 0.20s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:  all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Topbar / Header ───────────────────────────────────── */
    --topbar-height: 48px;
    --topbar-bg:     #0B0F19;

    /* ── Sidebar Dimensions ────────────────────────────────── */
    --sidebar-width:       250px;
    --sidebar-collapsed:   66px;

    /* ── Z-Index Scale ─────────────────────────────────────── */
    --z-sidebar:  50;
    --z-topbar:   60;
    --z-dropdown: 100;
    --z-modal:    200;
    --z-toast:    300;

    /* ── Aliases for backward compat ───────────────────────── */
    --bg-main:           var(--bg);
    --bg-surface:        var(--surface);
    --bg-color:          var(--bg);
    --bg-surface-hover:  var(--surface-hover);
    --text-primary:      var(--text);
    --text-secondary:    var(--text-soft);
    --text-muted:        var(--muted);
    --text-color:        var(--text);
    --border-light:      var(--line);
    --border-focus:      var(--blue-glow);
}

[data-theme="light"] {
    --blue-subtle: rgba(59, 130, 246, 0.08);
    --blue-strong: #2563eb;
    --blue-deep:   #1d4ed8;
    --success-bg:     rgba(34, 197, 94, 0.12);
    --warning-bg:     rgba(245, 158, 11, 0.12);
    --danger-bg:      rgba(239, 68, 68, 0.12);
    --info-bg:        rgba(59, 130, 246, 0.12);
    --purple-bg:      rgba(139, 92, 246, 0.12);
    
    --shadow-xs:   0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm:   0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --primary:        var(--blue);
    --primary-hover:  #2563eb;
    --primary-glow:   var(--blue-glow);
    --accent:         var(--blue-strong);
    --info:           var(--blue);

    --topbar-bg:      #20242c;

    --bg-main:           var(--bg);
    --bg-surface:        var(--surface);
    --bg-color:          var(--bg);
    --bg-surface-hover:  var(--surface-hover);
    --text-primary:      var(--text);
    --text-secondary:    var(--text-soft);
    --text-muted:        var(--muted);
    --text-color:        var(--text);
    --border-light:      var(--line);
    --border-focus:      var(--blue-glow);
}


body {
    font-family: var(--font-sans);
    font-size: var(--fs-main);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body,
.sidebar,
.topbar,
.main-content,
.content-wrapper,
.content-section,
.modal-content,
.modal-body,
.form-control,
.search-container,
.btn-icon,
.topbar-user-chip {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h2 {
    font-size: clamp(1.2rem, 1.5vw, 1.55rem);
}

h3 {
    font-size: 1.05rem;
}

p,
.message-content,
.message-text,
.chat-bubble,
.chat-message,
.dashboard-campaign-card-desc,
.dashboard-scheduled-item p {
    font-size: var(--fs-main);
}

/* 14px → menus/ícones/badges */
.sidebar-nav a,
.sidebar-nav a span,
.topbar a,
.nav-link,
.menu-item,
.badge,
.status-badge,
.tag,
.pill,
.stat-pill,
.nav-badge,
.ph,
[class^="ph-"],
[class*=" ph-"] {
    font-size: var(--fs-menu) !important;
}

/* 11px–13px → textos auxiliares */
.text-muted,
.text-xs,
small,
.stat-helper,
.metadata,
.info-row span,
.stat-label,
.dashboard-users-presence-meta,
.dashboard-campaign-card-date {
    font-size: var(--fs-aux) !important;
}

/* 24px → botões grandes destacados */
.btn-lg,
.btn-large,
.btn-destacado,
.btn-highlighted,
.btn-primary.btn-large,
.btn-premium.btn-large {
    font-size: var(--fs-btn-lg) !important;
    padding: 0.85rem 1.75rem !important;
    min-height: 54px !important;
}

@layer utilities {
/* --- From styles/utils/helpers.css --- */
/* ==========================================================================
   Utilitarios e ajustes reutilizaveis
   ========================================================================== */

/* ==========================================================================
   Utilitarios
   ========================================================================== */

.hidden {
    display: none !important;
}

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

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

.text-center {
    text-align: center !important;
}

.font-semibold {
    font-weight: 650 !important;
}

.font-bold {
    font-weight: 780 !important;
}

.mt-2 {
    margin-top: 0.75rem !important;
}

.flex-col-gap-md {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-2,
.truncate-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.truncate-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.truncate-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* Acabamento global para telas que ainda vinham com estilos antigos */

.section-subview {
    min-width: 0;
}

.section-subview:not([style*="display: none"]) {
    animation: fadeIn 0.16s ease-out;
}

.section-subview > .data-grid,
.section-subview > .panel,
.section-subview > .action-panel {
    margin-top: 0.25rem;
}

.system-updates-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1rem 0 !important;
}

.system-updates-container > h2 {
    margin-bottom: 1rem !important;
    color: var(--text) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.system-updates-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.2rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

.system-updates-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid var(--line-soft) !important;
}

.system-updates-header h3 {
    color: var(--text) !important;
    font-weight: 800 !important;
}

.system-updates-header p {
    color: var(--muted) !important;
}

#system-updates-search {
    border-radius: 14px !important;
    background: transparent !important;
    border-color: transparent !important;
}

#system-updates-list > div {
    border-color: var(--line-soft) !important;
}

.info-row,
.info-card,
.preview-card,
.attachment-card,
.notification-item,
.toast-card,
.suggestion-admin-metric-card {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

.toast-card {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

.info-value,
.toast-card-content,
.notification-item strong {
    color: var(--text) !important;
}

.toast-card p,
.notification-item p,
.info-row span,
.info-card p,
.preview-card p {
    color: var(--muted) !important;
}

#modal-preview-template {
    background:
        radial-gradient(circle at 18% 12%, rgba(24, 92, 118, 0.22), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(15, 62, 90, 0.2), transparent 30%),
        linear-gradient(180deg, rgba(5, 14, 24, 0.78), rgba(5, 14, 24, 0.88)) !important;
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.template-preview-shell {
    position: relative;
    width: min(100%, 980px);
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: g2gWhatsAppPreviewFade 0.24s ease-out;
}

.template-preview-stage {
    position: relative;
    width: min(100%, 820px);
    height: min(82vh, 700px);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(9, 20, 34, 0.94), rgba(10, 22, 36, 0.98)),
        #0b1621;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.template-preview-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(24, 88, 117, 0.18), transparent 20%),
        radial-gradient(circle at 88% 12%, rgba(18, 69, 99, 0.16), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(32, 57, 77, 0.12), transparent 34%);
    pointer-events: none;
}

.template-preview-phone {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #e9edef;
    background: transparent !important;
}

.template-preview-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.82rem 1.15rem 0.35rem;
    color: rgba(233, 237, 239, 0.92);
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.template-preview-statusbar span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.template-preview-chat-header {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 1rem;
    background: rgba(32, 44, 51, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.template-preview-header-icon,
.template-preview-composer-icon,
.template-preview-composer-mic,
.template-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #aebac1;
    cursor: pointer;
}

.template-preview-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.template-preview-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e9f6e, #0a7c66);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.template-preview-contact-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.template-preview-contact-meta strong {
    color: #e9edef !important;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.template-preview-contact-meta span {
    color: #8696a0;
    font-size: 0.78rem;
    line-height: 1.2;
}

.template-preview-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: #aebac1;
    font-size: 1.05rem;
}

.template-preview-chat-body {
    position: relative;
    overflow: hidden;
    background: #0b141a !important;
}

.template-preview-chat-wallpaper {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 16%, rgba(21, 59, 83, 0.26), transparent 22%),
        radial-gradient(circle at 78% 20%, rgba(27, 47, 66, 0.24), transparent 26%),
        radial-gradient(circle at 48% 100%, rgba(21, 44, 61, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(10, 20, 26, 0.98), rgba(11, 20, 26, 0.98));
    filter: blur(0.5px);
    opacity: 1;
}

.template-preview-chat-wallpaper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.018) 0.7px, transparent 0.7px),
        radial-gradient(rgba(255, 255, 255, 0.012) 0.6px, transparent 0.6px);
    background-position: 0 0, 14px 16px;
    background-size: 28px 28px, 34px 34px;
    opacity: 0.22;
}

.template-preview-conversation {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 1.15rem 1.4rem;
}

.template-preview-message {
    width: min(75%, 540px);
    max-width: 75%;
    animation: g2gWhatsAppPreviewFade 0.28s ease-out;
}

.template-preview-message-bubble,
.template-preview-message.message-received {
    position: relative;
    border: none !important;
    border-radius: 8px !important;
    background: #202c33 !important;
    color: #e9edef !important;
    box-shadow: none !important;
}

.template-preview-message-bubble {
    padding: 0.66rem 0.78rem 1.25rem;
}

.template-preview-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #202c33 50%, transparent 50%);
}

.template-preview-message-text {
    color: #e9edef !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.template-preview-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem 0.75rem;
    margin-top: 0.72rem;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.template-preview-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #53bdeb !important;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none !important;
}

.template-preview-inline-link i {
    font-size: 0.95rem;
}

.template-preview-bubble-time {
    position: absolute;
    right: 0.72rem;
    bottom: 0.42rem;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: rgba(134, 150, 160, 0.92);
    font-size: 11px;
    line-height: 1;
}

.template-preview-bubble-time i {
    color: #8696a0;
    font-size: 0.86rem;
}

.template-preview-composer {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem 0.85rem;
    background: rgba(32, 44, 51, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.template-preview-composer-icon,
.template-preview-composer-mic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.template-preview-composer-field {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-radius: 999px;
    background: #202c33;
    color: #8696a0;
    font-size: 14px;
}

.template-preview-composer-mic {
    background: #00a884;
    color: #fff;
}

.template-preview-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.24);
    color: rgba(255, 255, 255, 0.88);
}

@keyframes g2gWhatsAppPreviewFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .template-preview-shell {
        padding: 0.75rem;
        min-height: 100vh;
    }

    .template-preview-stage {
        width: 100%;
        height: calc(100vh - 1.5rem);
        border-radius: 0;
    }

    .template-preview-conversation {
        padding: 1rem 0.8rem;
    }

    .template-preview-message {
        width: min(84%, 100%);
        max-width: 84%;
    }
}

#modal-custom-alert,
#modal-custom-confirm,
#modal-custom-input {
    background: rgba(13, 16, 23, 0.72) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#modal-custom-alert > div,
#modal-custom-confirm > div,
#modal-custom-input > div {
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-float) !important;
}

#modal-custom-alert h3,
#modal-custom-confirm h3,
#modal-custom-input h3 {
    color: var(--text) !important;
}

#modal-custom-alert p,
#modal-custom-confirm p,
#modal-custom-input p {
    color: var(--muted) !important;
}

#modal-alert-ok,
#modal-confirm-ok,
#modal-input-ok {
    border-radius: 12px !important;
    background: #343b50 !important;
    box-shadow: none !important;
}

#modal-confirm-cancel,
#modal-input-cancel {
    border-radius: 12px !important;
    background: #252b39 !important;
    color: var(--text-soft) !important;
}

.stat-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label {
    color: var(--text-soft);
    font-size: 0.93rem;
    font-weight: 760;
    line-height: 1.25;
}

.stat-value {
    color: var(--text);
    font-size: 1.85rem;
    font-weight: 820;
    line-height: 1;
}

.stat-helper {
    color: var(--muted);
    font-size: 0.82rem;
}

.stat-icon {
    display: inline-flex;
    width: 64px;
    min-width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(0, 157, 229, 0.12);
    color: #009de5;
    font-size: 27px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.stat-icon.blue {
    background: rgba(0, 157, 229, 0.12);
    color: #009de5;
}

.stat-icon.orange {
    background: rgba(255, 138, 0, 0.13);
    color: var(--orange);
}

.stat-icon.green {
    background: rgba(0, 191, 47, 0.12);
    color: var(--green);
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: rgba(145, 92, 255, 0.14);
    color: var(--purple);
}

.stat-icon-red-soft {
    background: rgba(239, 29, 29, 0.14);
    color: var(--red);
}

.stat-icon.red {
    background: rgba(239, 29, 29, 0.14);
    color: var(--red);
}

#section-rh .section-subnav {
    border-radius: 18px;
}

#section-rh .rh-overview-grid .stat-widget {
    min-height: 112px;
}

#section-rh .rh-overview-grid + .section-subnav {
    margin-top: 0.25rem;
}

.rh-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.rh-filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.rh-filter-actions {
    display: flex;
    align-items: end;
}

.rh-table-shell,
.rh-batches-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.rh-sent-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
}

.rh-batches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.rh-batches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}


/* ==========================================================================
   Camada final de polimento visual - aplicada em todas as telas
   ========================================================================== */

body {
    background: radial-gradient(circle at 50% 50%, #14113c 0%, #050512 100%) !important;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.05;
    animation: spaceStars 180s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes spaceStars {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

.sidebar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    background: var(--sidebar) !important;
    border-right: 1px solid var(--sidebar-border) !important;
}

.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.stat-widget,
.dashboard-nexus-hero {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--surface) !important;
    border: 1px solid var(--line-mid) !important;
}

.topbar {
    background: rgba(6, 12, 24, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line) !important;
}

.content-wrapper {
    padding-top: 24px;
}

.content-section.section-active {
    gap: 1.15rem;
}

.section-header,
.suite-command-header {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.35rem;
    border-color: #3d4860;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(93, 183, 231, 0.08), rgba(145, 92, 255, 0.055) 42%, rgba(255, 255, 255, 0.018)),
        var(--surface);
}

.section-header::after,
.suite-command-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 26%);
    opacity: 0.5;
}

.section-header > *,
.suite-command-header > *,
.dashboard-nexus-hero > * {
    position: relative;
    z-index: 1;
}

.section-title h2,
.section-header h2,
.suite-command-copy h2,
.dashboard-nexus-copy h2 {
    font-size: clamp(1.15rem, 1.2vw, 1.45rem);
    font-weight: 850;
}

.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p {
    max-width: 72ch;
    color: #aeb8ce;
    font-size: 0.96rem;
}

.bento-grid,
.dashboard-metrics-grid,
.rh-overview-grid,
.calendar-overview-grid,
.calendar-demands-overview,
#os-dashboard,
.stats-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bento-grid .stat-widget,
.dashboard-metrics-grid .stat-widget,
.rh-overview-grid .stat-widget,
.calendar-overview-grid .stat-widget,
.calendar-demands-overview .stat-widget,
#os-dashboard .stat-widget,
.stats-grid .stat-widget,
.metrics-grid .stat-widget {
    min-height: 116px !important;
    padding: 1.1rem !important;
    border-radius: 20px !important;
}

/* Barra de progresso da taxa de finalização (O.S.) */

.os-taxa-bar-track {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.os-taxa-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-widget {
    isolation: isolate;
}

.stat-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 20%, rgba(93, 183, 231, 0.13), transparent 11rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 52%);
    opacity: 0.9;
}

.stat-content {
    justify-content: center;
}

.stat-value.text-sm,
.stat-value {
    font-size: clamp(1.65rem, 2vw, 2.15rem) !important;
}

.stat-label {
    color: #c7d0e5;
    font-size: 0.88rem;
}

.stat-icon {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    font-size: 25px !important;
}

.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content {
    border-color: #3a445c;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0)),
        var(--surface);
}

.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item {
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 50%),
        var(--surface-2) !important;
}

.filter-actions,
.section-subnav {
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pill,
.section-subnav-btn,
.users-view-tab {
    min-height: 44px;
    border-radius: 14px !important;
}

.pill.active,
.section-subnav-btn.active,
.users-view-tab.active {
    background:
        linear-gradient(135deg, rgba(93, 183, 231, 0.18), rgba(145, 92, 255, 0.16)),
        #343b50 !important;
    border-color: #5a6686 !important;
}

.local.search-container,
.filter-actions .search-container {
    min-width: min(380px, 100%);
}

#active-tab-title {
    display: flex !important;
    width: fit-content;
    margin: 0.25rem 0 0.6rem !important;
    padding: 0.55rem 0.8rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft) !important;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

@media (min-width: 1280px) {
    .content-section > .bento-grid .stat-widget,
    .content-section > .metrics-grid .stat-widget,
    .content-section > .stats-grid .stat-widget {
        max-width: none;
    }
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
}

.sync-status.online {
    color: var(--green);
}

.sync-status.syncing {
    color: var(--blue);
}

.sync-status.offline {
    color: var(--red);
}

/* ==========================================================================
   Tema unico do sistema
   ========================================================================== */


/* --- From styles/utils/mobile.css --- */
/* ==========================================================================
   G2G Sistemas — Mobile Responsive Layer
   Estratégia: Mobile-last (preserva 100% do desktop, sobrepõe para mobile)
   Breakpoints:
     ≤ 860px  → Tablet / mobile grande
     ≤ 640px  → Mobile médio
     ≤ 480px  → Mobile pequeno / telas estreitas
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   1. SIDEBAR & LAYOUT PRINCIPAL
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {

    /* Sidebar: desliza para fora por padrão */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.28s ease;
        box-shadow: none;
        width: 292px !important;
        min-width: 292px !important;
    }

    /* Sidebar aberta (via JS: sidebar.classList.add('open')) */
    .sidebar.open,
    body.mobile-menu-open .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.55);
    }

    /* Overlay escuro atrás da sidebar */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 199;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    body.mobile-menu-open .sidebar-backdrop {
        display: block;
    }

    /* Conteúdo principal ocupa a tela toda */
    .main-content,
    .sidebar.collapsed + .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Botão hambúrguer fica visível */
    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(93, 183, 231, 0.08);
        border: 1px solid rgba(93, 183, 231, 0.18);
        color: var(--blue);
        font-size: 1.25rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-menu-toggle:hover {
        background: rgba(93, 183, 231, 0.15);
    }

    /* Ocultar botão de colapso no mobile (não faz sentido) */
    .btn-toggle-sidebar {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. TOPBAR
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .topbar {
        min-height: 0;
        padding: 12px 16px 10px;
        gap: 0.5rem;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .topbar-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    /* Search bar ocupa toda a largura */
    .topbar .search-container {
        width: 100% !important;
        max-width: none;
        min-width: 0;
    }

    .page-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 10px 12px 8px;
    }

    .topbar-right {
        gap: 0.35rem;
    }

    /* Esconder botões menos essenciais no mobile pequeno */
    .topbar-right .btn-icon:not(.notification-btn):not(.mobile-menu-toggle) {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. CONTEÚDO GERAL & PADDING
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .content-wrapper {
        padding: 14px 16px 24px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px 12px 20px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   4. GRIDS DE CARDS / BENTO / MÉTRICAS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-layout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-grid,
    .data-grid,
    .rh-overview-grid,
    .calendar-overview-grid,
    .stats-grid,
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .users-group-grid,
    .calendar-demands-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
    }

    .calendar-demands-card-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }

    .suite-command-header,
    .dashboard-nexus-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0 1.25rem;
    }

    .dashboard-nexus-status {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-nexus-status > div {
        flex-shrink: 0;
        min-width: 80px;
    }
}

@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-widget {
        min-height: 100px;
        padding: 0.95rem;
        gap: 0.85rem;
    }

    .stat-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bento-grid,
    .data-grid {
        grid-template-columns: 1fr;
    }

    .calendar-demands-card-grid,
    .users-group-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   5. CARDS — touch targets, font-size, overflow
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .data-card,
    .managed-user-card,
    .campaign-card,
    .meeting-room-card,
    .rh-card,
    .suggestion-record,
    .calendar-demand-card,
    .template-card,
    .update-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-desc,
    .card-description {
        font-size: 0.85rem;
    }

    .calendar-demand-card-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Aumentar área clicável dos botões de ação */
    .btn-action,
    .os-action-btn,
    .os-hcard-action {
        min-width: 44px;
        min-height: 44px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-actions,
    .card-actions-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   6. TABELAS — scroll horizontal, sem overflow quebrado
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .table-container,
    .table-wrapper,
    .os-hybrid-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    .os-hybrid-table {
        min-width: 700px;
    }
}

@media (max-width: 640px) {
    /* Linhas de tabela: font menor para caber mais */
    td,
    .table tbody td,
    .os-hybrid-table td {
        font-size: 0.82rem;
        padding: 0.7rem 0.85rem;
    }

    th,
    .table thead th,
    .os-hybrid-table th {
        font-size: 0.72rem;
        padding: 0.55rem 0.85rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   7. FORMULÁRIOS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .form-group,
    .input-block {
        gap: 0.5rem;
    }

    .form-control,
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    select,
    textarea,
    .input-wrapper,
    .search-container {
        min-height: 46px; /* touch-friendly */
        border-radius: 12px;
        font-size: 1rem; /* evita zoom automático no iOS */
    }

    textarea {
        min-height: 90px;
    }

    /* Botões de submit/action no form */
    .btn,
    button[type="submit"],
    .btn-primary,
    .btn-outline {
        min-height: 46px;
        font-size: 0.95rem;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
    }

    /* Exceção: botões menores que não precisam ser full-width */
    .btn.btn-sm,
    .btn-icon,
    .btn-action,
    .os-action-btn {
        width: auto;
        min-height: 38px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   8. MODAIS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .modal-overlay,
    .popover-backdrop {
        padding: 0;
        align-items: flex-end; /* sheet bottom-up */
    }

    .modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0;
        max-height: 90dvh;
        margin: 0;
    }

    .modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .modal-body {
        max-height: calc(90dvh - 140px);
        padding: 1rem 1.25rem;
    }

    .modal-footer,
    .os-modal-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn,
    .os-modal-footer .btn {
        width: 100%;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   9. O.S COLABORADOR — hcards e filtros
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    #section-os-colaborador {
        padding: 1rem;
        gap: 1rem;
    }

    #section-os-colaborador .os-compact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #section-os-colaborador .os-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    #section-os-colaborador .os-metrics-toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    #section-os-colaborador .os-metric-item {
        min-width: 0;
        flex: none;
    }

    #section-os-colaborador .os-filter-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    #section-os-colaborador .os-filter-toolbar .os-filter-divider {
        display: none;
    }

    #section-os-colaborador .os-filter-toolbar .input-block {
        flex: 1 1 120px;
    }

    #section-os-colaborador .os-filter-toolbar .form-control {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    #section-os-colaborador .os-metrics-toolbar {
        grid-template-columns: repeat(2, 1fr);
    }

    /* hcard em coluna no mobile */
    .os-hcard {
        flex-wrap: wrap;
        min-height: auto;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .os-hcard-left {
        flex: 1 1 100%;
    }

    .os-hcard-center {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .os-hcard-date {
        margin-left: 0;
        width: 100%;
    }

    .os-hcard-right {
        width: 100%;
    }

    .os-hcard-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .os-hcard-action {
        flex: 1;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #section-os-colaborador .os-metrics-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    #section-os-colaborador .os-metric-value {
        font-size: 1.2rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   10. COCKPIT MODAL (Ficha O.S)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .os-cockpit-identity {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .os-cockpit-title {
        font-size: 1.05rem;
    }

    .os-cockpit-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        gap: 0.25rem;
    }

    .os-cockpit-tabs button,
    .os-cockpit-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 42px;
    }

    .os-cockpit-body {
        padding: 1rem;
    }

    .os-cockpit-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   11. DASHBOARD — Seção específica
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .dashboard-nexus-copy h2 {
        font-size: 1.35rem;
    }

    .dashboard-nexus-copy p {
        font-size: 0.85rem;
    }

    .dashboard-main-col,
    .dashboard-side-col {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .dashboard-nexus-copy h2 {
        font-size: 1.2rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   12. LOGIN PREMIUM (mobile)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .login-premium-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100dvh;
    }

    .login-premium-brand-col {
        display: none; /* Oculta coluna de branding no mobile */
    }

    .login-premium-form-col {
        padding: 2rem 1.25rem;
        min-height: 100dvh;
        justify-content: center;
    }

    .login-glass-card {
        max-width: 100%;
        border-radius: 20px;
        padding: 2rem 1.5rem;
    }

    .login-mobile-logo {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .login-glass-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   13. SEÇÕES DIVERSAS (Campanhas, Templates, Kanban, etc.)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    /* Action-headers (Toolbar + filtro) */
    .action-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .action-header > * {
        min-width: 0;
    }

    /* Toolbar de filtros genérica */
    .filter-toolbar,
    .toolbar-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Tabs horizontais: scroll se necessário */
    .tab-bar,
    .nav-tabs,
    .page-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 0.15rem;
    }

    .tab-bar button,
    .nav-tabs button,
    .page-tabs button,
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
    }

    /* Kanban: scroll horizontal por colunas */
    .kanban-board {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .kanban-column {
        min-width: 280px;
        flex-shrink: 0;
    }

    /* Seção de Sala de Reunião */
    .sala-reuniao-grid {
        grid-template-columns: 1fr !important;
    }

    /* RH grid */
    .rh-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 640px) {
    /* Botões na toolbar que têm texto + ícone: comprimir para só ícone */
    .btn-compact-mobile span {
        display: none;
    }

    .btn-compact-mobile {
        padding: 0 0.75rem;
    }

    /* Seção de painel de sugestões */
    .sugestoes-grid,
    .painel-sugestoes-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sala de reunião cards */
    .meeting-room-card {
        padding: 0.9rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   14. UTILITÁRIOS MOBILE
   ────────────────────────────────────────────────────────────────────────── */

/* Visibilidade seletiva */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: initial;
}

@media (max-width: 860px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Evitar overflow horizontal global */
    body {
        overflow-x: hidden;
    }

    /* Melhorar scrolling em listas longas */
    .sidebar-nav {
        -webkit-overflow-scrolling: touch;
    }

    /* Aumentar área clicável de links de navegação */
    .sidebar-nav a,
    .nav-item,
    .nav-sub-item {
        min-height: 46px;
    }
}

@media (max-width: 480px) {
    /* Body font levemente menor */
    body {
        font-size: 13.5px;
    }

    /* Títulos de seção comprimidos */
    .section-title h2,
    .section-header h2 {
        font-size: 0.95rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   15. SCROLL E INPUTS iOS — Anti-patterns
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    /* Prevenir zoom no foco de inputs no iOS (Safari) */
    input,
    select,
    textarea {
        font-size: max(16px, 1em);
    }

    /* Remover destaque de tap azul no iOS */
    * {
        -webkit-tap-highlight-color: rgba(93, 183, 231, 0.12);
    }

    /* Suavizar scroll em containers com overflow */
    .modal-body,
    .sidebar-nav,
    .table-container,
    .table-wrapper,
    .kanban-board {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}


/* --- From styles/utils/corporate-overrides.css --- */
body {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.08), transparent 24rem),
        radial-gradient(circle at top right, rgba(15, 47, 87, 0.05), transparent 22rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 18%, var(--bg) 100%);
    color: var(--text);
}

a,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

.main-layout,
.main-content,
.content-wrapper {
    background: transparent;
}

.content-wrapper {
    padding: 1.5rem 1.75rem 2rem;
}

.content-section.section-active {
    gap: 1.25rem;
    min-height: calc(100vh - 144px);
}

.sidebar {
    --sidebar-opa-bg: #1e2029;
    --sidebar-opa-surface: rgba(255, 255, 255, 0.05);
    --sidebar-opa-surface-strong: rgba(255, 255, 255, 0.08);
    --sidebar-opa-stroke: rgba(255, 255, 255, 0.08);
    --sidebar-opa-stroke-soft: rgba(255, 255, 255, 0.04);
    --sidebar-opa-text: #ffffff;
    --sidebar-opa-text-muted: #cbd5e1;
    --sidebar-opa-text-soft: #7d8594;
    --sidebar-opa-hover: rgba(255, 255, 255, 0.04);
    --sidebar-opa-hover-border: rgba(255, 255, 255, 0.06);
    --sidebar-opa-active: rgba(255, 255, 255, 0.07);
    --sidebar-opa-active-border: rgba(255, 255, 255, 0.1);
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-opa-bg);
    border-right: 1px solid var(--sidebar-opa-stroke-soft);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    color: var(--sidebar-opa-text);
}

.sidebar::before {
    display: none;
}

.sidebar-profile-box {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-sidebar-back {
    transition: color 0.15s ease;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.profile-status-badge {
    transition: background-color 0.2s ease;
}

.profile-pause-btn {
    transition: color 0.15s ease, transform 0.15s ease;
}
.profile-pause-btn:hover {
    transform: translateY(-0.5px);
}

.sidebar-search {
    margin: 0.85rem 0.75rem 0.6rem;
    padding: 0 0.75rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.sidebar-search:focus-within {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.sidebar-nav a,
.nav-item,
.nav-sub-item {
    color: var(--sidebar-opa-text-muted);
}

.sidebar-search i,
.sidebar-search input {
    color: var(--sidebar-opa-text-muted);
}

.sidebar-search input::placeholder {
    color: var(--sidebar-opa-text-soft);
}

.nav-section-title {
    margin: 1.25rem 0.75rem 0.45rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 0.15rem 0.6rem 1rem;
}

.menu-group + .menu-group {
    margin-top: 1.2rem !important;
    padding-top: 1.2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar-nav ul {
    gap: 0.25rem;
}

.sidebar-nav a,
.nav-item,
.nav-sub-item {
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-nav a i,
.nav-item i,
.nav-sub-item i {
    color: var(--sidebar-opa-text-muted);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: color 0.15s ease;
}

.sidebar-nav a:hover,
.nav-item:hover,
.nav-sub-item:hover {
    background: var(--sidebar-opa-hover);
    border-color: var(--sidebar-opa-hover-border);
    color: #ffffff;
}

.sidebar-nav a:hover i,
.nav-item:hover i,
.nav-sub-item:hover i {
    color: #ffffff;
}

.sidebar-nav a.active,
.nav-item.active,
.nav-sub-item.active {
    background: var(--sidebar-opa-active);
    border: 1px solid var(--sidebar-opa-active-border);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-nav a.active i,
.nav-item.active i,
.nav-sub-item.active i {
    color: #ffffff;
}

.nav-submenu {
    margin: 0.1rem 0 0.35rem 1rem;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-group.nav-group-open .nav-submenu {
    margin: 0.25rem 0 0.5rem 1rem;
}

.nav-sub-item {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sidebar-opa-text-soft);
}

.sidebar.collapsed .sidebar-nav {
    padding: 8px 6px 12px;
}

.sidebar.collapsed .sidebar-nav ul {
    gap: 6px;
}

.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-sub-item {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid transparent;
    border-left-width: 1px;
    border-radius: 10px;
    background: transparent;
}

.sidebar.collapsed .sidebar-nav a:hover,
.sidebar.collapsed .nav-item:hover {
    background: var(--sidebar-opa-hover);
    border-color: var(--sidebar-opa-hover-border);
}

.sidebar.collapsed .sidebar-nav a.active,
.sidebar.collapsed .nav-item.active {
    background: var(--sidebar-opa-active);
    border: 1px solid var(--sidebar-opa-active-border);
    border-left-width: 1px;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-nav a i,
.sidebar.collapsed .nav-item i {
    color: var(--sidebar-opa-text-soft);
    font-size: 18px;
}

.sidebar.collapsed .sidebar-nav a:hover i,
.sidebar.collapsed .nav-item:hover i,
.sidebar.collapsed .sidebar-nav a.active i,
.sidebar.collapsed .nav-item.active i {
    color: var(--sidebar-opa-text);
}


.main-content {
    margin-left: 260px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 92px;
    align-items: center;
    padding: 1.05rem 1.75rem 0;
    background: linear-gradient(180deg, rgba(244, 246, 249, 0.92) 0%, rgba(244, 246, 249, 0.72) 100%);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-right {
    gap: 0.85rem;
}

.page-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--blue-strong);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    background: var(--surface);
    border-color: rgba(31, 122, 224, 0.24);
    color: var(--primary);
}

.notification-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px #ffffff;
}

.search-container,
.input-wrapper,
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
select,
textarea {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.input-block label,
.form-label,
label {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-control,
input,
select,
textarea {
    min-height: 46px;
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
    font-size: 0.94rem;
}

textarea {
    min-height: 116px;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9aa4b2;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus,
.input-wrapper:focus-within,
.search-container:focus-within {
    border-color: rgba(31, 122, 224, 0.42);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}

.icon-left {
    color: #94a3b8;
}

.topbar .search-container {
    width: 180px;
    min-width: 180px;
    height: 34px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.topbar .search-container .icon-left {
    color: var(--primary);
}

.btn,
.btn-action,
.section-subnav-btn,
.users-view-tab,
.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn:hover,
.btn-action:hover,
.section-subnav-btn:hover,
.users-view-tab:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-quiet-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 122, 224, 0.14);
    background: var(--surface);
    color: var(--primary);
}

.btn-primary,
.btn-action.primary,
.section-subnav-btn.active,
.users-view-tab.active,
.kanban-dark-primary-btn,
.os-add-row-btn,
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1562ba 100%);
    color: #ffffff;
    border-color: rgba(15, 47, 87, 0.28);
    box-shadow: 0 16px 30px rgba(31, 122, 224, 0.18);
}

.btn-primary:hover,
.btn-action.primary:hover,
.section-subnav-btn.active:hover,
.users-view-tab.active:hover,
.kanban-dark-primary-btn:hover,
.os-add-row-btn:hover,
.btn-premium:hover {
    background: linear-gradient(135deg, #1562ba 0%, var(--blue-strong) 100%);
    color: #ffffff;
}

.btn-outline,
.btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text-soft);
}

.btn-danger,
.btn-action.danger {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fecaca;
    box-shadow: none;
}

.btn-danger:hover,
.btn-action.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.btn-sm {
    min-height: 36px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
}

.btn-shortcut {
    min-height: 118px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-sm);
}

.btn-shortcut:hover,
.btn-shortcut.primary-action {
    border-color: rgba(31, 122, 224, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
}

.section-header,
.suite-command-header,
.dashboard-nexus-hero,
.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content,
.notification-center-panel {
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text) !important;
}

.section-header,
.suite-command-header {
    padding: 1.3rem 1.45rem;
}

.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p {
    color: var(--muted) !important;
}

.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item,
.update-item {
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text) !important;
    cursor: default;
}

.data-card:hover,
.managed-user-card:hover,
.campaign-card:hover,
.meeting-room-card:hover,
.rh-card:hover,
.suggestion-record:hover,
.calendar-demand-card:hover,
.template-card:hover,
.update-card:hover,
.update-item:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 122, 224, 0.22) !important;
    background: var(--surface) !important;
    box-shadow: 0 22px 40px rgba(15, 47, 87, 0.12) !important;
}

.data-card::before,
.managed-user-card::before,
.campaign-card::before,
.meeting-room-card::before,
.rh-card::before,
.suggestion-record::before,
.calendar-demand-card::before,
.template-card::before,
.update-card::before {
    background: linear-gradient(180deg, var(--primary) 0%, var(--blue-strong) 100%) !important;
}

.card-title,
.dashboard-campaign-card-title,
.dashboard-users-presence-name {
    color: var(--text) !important;
}

.card-desc,
.card-description,
.card-meta,
.card-date,
.dashboard-campaign-card-desc,
.dashboard-campaign-card-meta,
.dashboard-scheduled-item p,
.dashboard-users-presence-meta {
    color: var(--muted) !important;
}

.badge,
.status-badge,
.tag,
.pill,
.stat-pill,
.nav-badge,
.suggestion-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--surface-3);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: none;
}

.badge-primary,
.status-info {
    background: #edf5ff;
    border-color: #cfe0ff;
    color: #1554a4;
}

.badge-success,
.status-success,
.tag-success {
    background: #edf9f3;
    border-color: #c7ecd7;
    color: #157347;
}

.badge-warning,
.status-warning,
.tag-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.badge-danger,
.status-danger,
.tag-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.badge-neutral {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

table,
.table,
.rh-table,
.os-table,
.calendar-table,
.meeting-room-table {
    background: var(--surface);
}

th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th {
    background: var(--surface-2);
    color: var(--blue-strong);
    border-bottom: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

td,
.table tbody td,
.rh-table td,
.os-table td,
.calendar-table td,
.meeting-room-table td {
    color: var(--text-soft);
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
}

tbody tr:hover td,
.table tbody tr:hover td,
.rh-table tbody tr:hover td,
.os-table tbody tr:hover td,
.calendar-table tbody tr:hover td,
.meeting-room-table tbody tr:hover td {
    background: #f8fbff;
}

.stat-widget {
    min-height: 126px !important;
    align-items: flex-start;
    padding: 1.3rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    box-shadow: var(--shadow-card) !important;
}

.stat-widget::before,
.stat-widget::after {
    content: none !important;
}

.stat-content {
    gap: 0.28rem;
}

.stat-label {
    color: var(--muted) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-value,
.stat-value.text-sm {
    color: var(--blue-strong) !important;
    font-size: clamp(1.7rem, 2vw, 2.2rem) !important;
    font-weight: 800 !important;
}

.stat-helper {
    color: var(--muted) !important;
}

.stat-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    font-size: 1.4rem !important;
    background: #edf5ff !important;
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 1px rgba(31, 122, 224, 0.08);
}

.stat-icon.green {
    background: #edf9f3 !important;
    color: #157347 !important;
}

.stat-icon.orange {
    background: #fff7ed !important;
    color: #b45309 !important;
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: #eef2ff !important;
    color: #4338ca !important;
}

.dashboard-nexus-hero {
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
    padding: 1.6rem;
    border-bottom: 0;
    background:
        radial-gradient(circle at top right, rgba(31, 122, 224, 0.12), transparent 16rem),
        linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

.dashboard-nexus-kicker {
    color: var(--primary) !important;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
}

.dashboard-nexus-copy h2 {
    color: var(--blue-strong) !important;
    font-size: clamp(1.55rem, 2vw, 2.15rem) !important;
}

.dashboard-nexus-status {
    gap: 0.85rem;
}

.dashboard-nexus-status > div {
    min-width: 118px;
    padding: 0.8rem 1rem;
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    background: var(--surface);
}

.dashboard-nexus-status span {
    color: var(--muted);
}

.dashboard-nexus-status strong {
    color: var(--blue-strong);
}

.action-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}

.action-header h3 {
    color: var(--blue-strong) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
}

.quick-actions-panel .shortcut-grid,
.dashboard-campaign-wall,
.dashboard-scheduled-list,
.dashboard-users-presence-list,
.updates-panel .updates-list {
    padding: 1.1rem 1.25rem 1.25rem;
}

.dashboard-campaign-card,
.dashboard-scheduled-item,
.dashboard-users-presence-item,
.infra-metric {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.dashboard-campaign-card,
.dashboard-scheduled-item,
.infra-metric {
    padding: 1rem;
}

.dashboard-campaign-alert.critical {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.dashboard-campaign-alert strong {
    color: #9f1239;
}

.dashboard-infra-panel .infra-metric {
    margin: 0 1.25rem 0.85rem;
    border-bottom: 0;
}

.infra-bar {
    height: 6px;
    border-radius: 999px;
    background: #dbe6f1;
}

.infra-bar.cyan span {
    background: linear-gradient(90deg, #1f7ae0, #3b82f6);
}

.infra-bar.green span {
    background: linear-gradient(90deg, #1f9d6b, #34d399);
}

.infra-bar.amber span {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.infra-pill {
    margin: 0 1.25rem 1.25rem;
    background: #edf9f3;
    border-color: #c7ecd7;
    color: #157347;
}

.modal-overlay,
.popover-backdrop {
    background: rgba(15, 34, 63, 0.44);
    backdrop-filter: blur(8px);
}

.modal {
    width: min(760px, calc(100vw - 2rem));
    max-width: 100%;
    max-height: 92vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem 0.95rem;
    border-bottom: 1px solid var(--line-soft);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer,
.os-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.2rem;
    border-top: 1px solid var(--line-soft);
    background: var(--surface-2);
}

.modal-close {
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
}

.modal-close:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.premium-login-screen {
    background:
        radial-gradient(circle at 8% 20%, rgba(31, 122, 224, 0.14), transparent 22rem),
        radial-gradient(circle at 92% 10%, rgba(15, 47, 87, 0.18), transparent 20rem),
        linear-gradient(135deg, #eef4fb 0%, #f8fbff 48%, #eaf0f7 100%);
    color: var(--text);
}

.login-premium-brand-col {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 18rem),
        linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar) 100%);
    color: #ffffff;
}

.brand-logo {
    filter: none;
}

.brand-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
}

.brand-subheadline,
.brand-bullets li,
.indicator-item strong {
    color: rgba(255, 255, 255, 0.82);
}

.brand-bullets i {
    color: #93c5fd;
    filter: none;
}

.indicator-item i {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
}

.indicator-item span {
    color: rgba(255, 255, 255, 0.52);
}

.ghost-widget {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 47, 87, 0.08);
    box-shadow: 0 30px 70px rgba(15, 47, 87, 0.18);
}

.login-card-header h2 {
    color: var(--blue-strong);
}

.login-card-header p,
.premium-checkbox .label-text,
.microcopy {
    color: var(--muted);
}

.premium-form .input-wrapper {
    background: #ffffff;
    border-color: var(--line);
}

.premium-form .input-wrapper:focus-within {
    background: #ffffff;
    border-color: rgba(31, 122, 224, 0.42);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}

.premium-form .icon-left,
.premium-form .btn-append,
.premium-input::placeholder,
.premium-link {
    color: var(--primary);
}

.premium-input {
    color: var(--text);
}

.premium-checkbox .checkmark {
    border-color: #cbd5e1;
    background: #ffffff;
}

.premium-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.premium-checkbox input:checked ~ .checkmark::after {
    border-color: #ffffff;
}

.login-card-footer {
    border-top-color: var(--line-soft);
}

@media (max-width: 1180px) {
    .topbar .search-container {
        width: 180px;
        min-width: 180px;
    }

    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .sidebar {
        width: 260px !important;
        min-width: 260px !important;
    }

    .topbar {
        padding: 0.9rem 1rem 0;
        background: rgba(244, 246, 249, 0.94);
        border-bottom: 1px solid rgba(15, 47, 87, 0.06);
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .topbar .search-container {
        width: 100% !important;
        min-width: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .dashboard-nexus-hero,
    .section-header,
    .suite-command-header {
        padding: 1.2rem;
    }

    .dashboard-nexus-status {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .content-wrapper {
        padding: 0.85rem;
    }

    .page-title {
        font-size: 15px;
    }

    .btn,
    .btn-primary,
    .btn-outline,
    .btn-action {
        min-height: 44px;
    }

    .dashboard-metrics-grid,
    .bento-grid,
    .data-grid,
    .users-group-grid,
    .calendar-demands-card-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-widget {
        min-height: 112px !important;
        padding: 1rem !important;
    }

    .modal {
        width: calc(100vw - 1rem);
    }
}

/* ==========================================================================
   Dark-only final layer
   ========================================================================== */

body {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.12), transparent 24rem),
        radial-gradient(circle at top right, rgba(15, 47, 87, 0.1), transparent 22rem),
        linear-gradient(180deg, #06111d 0%, var(--bg) 18%, var(--bg) 100%);
}

.topbar {
    background: linear-gradient(180deg, rgba(8, 22, 38, 0.94) 0%, rgba(8, 22, 38, 0.78) 100%);
}

.page-title,
.dashboard-nexus-copy h2,
.action-header h3,
th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th,
.login-card-header h2 {
    color: #f8fafc !important;
}

.btn-icon,
.btn,
.btn-action,
.section-subnav-btn,
.users-view-tab,
.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn,
.modal-close,
.search-container,
.input-wrapper,
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
select,
textarea,
.premium-form .input-wrapper {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

.btn:hover,
.btn-action:hover,
.section-subnav-btn:hover,
.users-view-tab:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-quiet-btn:hover,
.btn-icon:hover,
.modal-close:hover {
    background: var(--surface-hover) !important;
}

.btn-outline,
.btn-secondary {
    background: var(--surface-2) !important;
    color: var(--text-soft) !important;
}

.section-header,
.suite-command-header,
.dashboard-nexus-hero,
.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content,
.notification-center-panel,
.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item,
.update-item,
.dashboard-campaign-card,
.dashboard-scheduled-item,
.dashboard-users-presence-item,
.infra-metric,
.btn-shortcut,
.dashboard-nexus-status > div,
.login-glass-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

.dashboard-nexus-hero {
    background:
        radial-gradient(circle at top right, rgba(31, 122, 224, 0.18), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
        var(--surface) !important;
}

.card-desc,
.card-description,
.card-meta,
.card-date,
.dashboard-campaign-card-desc,
.dashboard-campaign-card-meta,
.dashboard-scheduled-item p,
.dashboard-users-presence-meta,
.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p,
.login-card-header p,
.premium-checkbox .label-text,
.microcopy,
td,
.table tbody td,
.rh-table td,
.os-table td,
.calendar-table td,
.meeting-room-table td {
    color: var(--muted) !important;
}

table,
.table,
.rh-table,
.os-table,
.calendar-table,
.meeting-room-table {
    background: transparent !important;
}

th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: var(--line) !important;
}

tbody tr:hover td,
.table tbody tr:hover td,
.rh-table tbody tr:hover td,
.os-table tbody tr:hover td,
.calendar-table tbody tr:hover td,
.meeting-room-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

.badge-primary,
.status-info {
    background: rgba(31, 122, 224, 0.18) !important;
    border-color: rgba(31, 122, 224, 0.28) !important;
    color: #bfdbfe !important;
}

.badge-success,
.status-success,
.tag-success {
    background: rgba(31, 157, 107, 0.18) !important;
    border-color: rgba(31, 157, 107, 0.28) !important;
    color: #bbf7d0 !important;
}

.badge-warning,
.status-warning,
.tag-warning {
    background: rgba(217, 119, 6, 0.18) !important;
    border-color: rgba(217, 119, 6, 0.28) !important;
    color: #fed7aa !important;
}

.badge-danger,
.status-danger,
.tag-danger {
    background: rgba(220, 38, 38, 0.18) !important;
    border-color: rgba(220, 38, 38, 0.28) !important;
    color: #fecaca !important;
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #cbd5e1 !important;
}

.stat-widget {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.12), transparent 12rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--surface) !important;
}

.stat-value,
.stat-value.text-sm {
    color: #f8fafc !important;
}

.stat-icon {
    background: rgba(31, 122, 224, 0.16) !important;
    color: #93c5fd !important;
}

.stat-icon.green {
    background: rgba(31, 157, 107, 0.16) !important;
    color: #86efac !important;
}

.stat-icon.orange {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #fdba74 !important;
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: rgba(79, 70, 229, 0.16) !important;
    color: #c4b5fd !important;
}

.infra-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

.modal-footer,
.os-modal-footer {
    background: rgba(255, 255, 255, 0.02) !important;
}

.premium-login-screen {
    background:
        radial-gradient(circle at 8% 20%, rgba(31, 122, 224, 0.16), transparent 22rem),
        radial-gradient(circle at 92% 10%, rgba(15, 47, 87, 0.22), transparent 20rem),
        linear-gradient(135deg, #071321 0%, #081626 48%, #0a1b2c 100%) !important;
}

.login-premium-brand-col {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 18rem),
        linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar) 100%) !important;
}

.premium-input {
    color: var(--text) !important;
}



}

</style>
<style type="text/tailwindcss">
@layer base {
    html {
        font-size: 14px;
    }
}
@layer components {
/* --- From styles/base/global.css --- */
/* ==========================================================================
   G2G PREMIUM — Global Base
   ========================================================================== */

/* ── Screen Visibility ──────────────────────────────────────────────────── */
.screen:not(.view-active),
.content-section[hidden],
.content-wrapper > .content-section[hidden],
.content-section:not(.section-active),
.content-wrapper > .content-section:not(.section-active) {
    display: none !important;
    visibility: hidden !important;
}

.screen.view-active {
    display: block;
}

.main-layout.view-active {
    display: flex !important;
}

.content-section.section-active {
    display: block;
    visibility: visible;
    width: 100%;
    min-height: calc(100vh - var(--topbar-height) - 48px);
}

.content-section.section-active > .section-header {
    margin-bottom: 1.5rem;
}

.content-section.section-active > .section-subnav,
.content-section.section-active > .filter-actions {
    margin-bottom: 1.25rem;
}

/* ── Utility Visibility ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.invisible { visibility: hidden !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Focus Outline ──────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ── Selection Color ────────────────────────────────────────────────────── */
::selection {
    background: rgba(30,127,224,0.30);
    color: #fff;
}

/* ── Scrollbar (global) ─────────────────────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.10) transparent;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes g2g-fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes g2g-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Notification Highlight ─────────────────────────────────────────────── */
@keyframes notificationPulse {
    0%   { box-shadow: 0 0 0 0 rgba(30,127,224,0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(30,127,224,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,127,224,0); }
}

.notification-target-highlight {
    animation: notificationPulse 1.4s ease 2;
    border-radius: var(--radius-md);
}

/* ── Dividers ───────────────────────────────────────────────────────────── */
hr, .divider {
    border: 0;
    border-top: 1px solid var(--line-soft);
    margin: 1.25rem 0;
}

/* ── Mobile Overlay (behind sidebar) ───────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: calc(var(--z-sidebar) - 1);
    backdrop-filter: blur(2px);
}

body.mobile-menu-open .mobile-overlay {
    display: block;
}


/* --- From styles/pages/kanban.css --- */
/* ==========================================================================

   Kanban & Demandas Stylesheet

   Visual: Premium Monochromatic

   ========================================================================== */

.content-section.kanban-screen.section-active {
    display: flex;
    flex-direction: column;
}

.btn,
.btn-action,
.section-subnav-btn,
.users-view-tab,
.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1rem;
    border: 1px solid #3a4258;
    border-radius: 14px;
    background: #252b39;
    color: var(--text);
    font-weight: 700;
    line-height: 1;
    transition: var(--transition);
}

.btn:hover,
.btn-action:hover,
.section-subnav-btn:hover,
.users-view-tab:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-quiet-btn:hover {
    background: #303749;
    border-color: #4b5570;
}

.btn-primary,
.btn-action.primary,
.kanban-dark-primary-btn,
.os-add-row-btn,
.section-subnav-btn.active {
    background: #343b50;
    border-color: #414a63;
    color: #ffffff;
}

.btn-primary:hover,
.btn-action.primary:hover,
.kanban-dark-primary-btn:hover,
.os-add-row-btn:hover,
.section-subnav-btn.active:hover {
    background: #414a62;
    border-color: #53607e;
}

.section-header,
.suite-command-header,
.dashboard-nexus-hero,
.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.card,
.data-card,
.data-grid > *,
.table-container,
.table-wrapper,
.filter-actions,
.section-subnav,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.suggestion-record,
.rh-panel,
.rh-card,
.campaign-card,
.calendar-shell,
.meeting-room-card,
.managed-user-card,
.kanban-modern-header,
.kanban-dark-section,
.kanban-dark-sidebar,
.kanban-dark-popover {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    box-shadow: none;
}

.infra-bar,
.kanban-card-progress,
.kanban-progress,
.kanban-dark-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #161b24;
}

.infra-bar span,
.kanban-card-progress-fill,
.kanban-progress-fill,
.kanban-dark-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.ui-empty-state,
.empty-state,
.kanban-dark-empty-state,
.dashboard-campaign-empty {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px dashed #3a4258;
    border-radius: 14px;
    background: #1d222e;
    color: var(--muted);
    text-align: center;
}

.modal,
.modal-content,
.kanban-dark-modal {
    width: min(760px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-float);
}

.modal-header,
.modal-footer,
.kanban-dark-modal-header,
.os-modal-header,
.os-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #1d222e;
    border-color: var(--line);
}

.modal-header,
.kanban-dark-modal-header,
.os-modal-header {
    border-bottom: 1px solid var(--line);
}

#modal-kanban-card {
    padding: 0.65rem;
    background: rgba(7, 10, 18, 0.78);
}

#modal-kanban-card .kanban-dark-modal {
    display: grid;
    width: min(1352px, 96vw);
    height: min(710px, 92vh);
    max-height: 92vh;
    grid-template-rows: 128px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(55, 65, 86, 0.72);
    border-radius: 20px;
    background: #242629;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

#modal-kanban-card .kanban-dark-modal-header {
    align-items: flex-start;
    padding: 1.25rem 1.9rem;
    border: 0;
    background: var(--kanban-cover-color, #1f794f);
}

#modal-kanban-card .kanban-dark-select-wrap {
    position: relative;
    width: fit-content;
}

#modal-kanban-card .kanban-dark-select {
    min-height: 30px;
    max-width: 180px;
    padding: 0 2rem 0 0.6rem;
    border: 0;
    border-radius: 5px;
    background: rgba(62, 66, 74, 0.86);
    color: #d7d9dd;
    font-size: 1rem;
    font-weight: 800;
    outline: none;
    appearance: none;
}

#modal-kanban-card .kanban-dark-select-wrap > i {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    color: #d7d9dd;
    transform: translateY(-50%);
    pointer-events: none;
}

#modal-kanban-card .kanban-dark-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

#modal-kanban-card .kanban-dark-header-btn {
    min-height: 30px;
    padding: 0 0.7rem;
    border-radius: 7px;
}

#modal-kanban-card .kanban-dark-icon-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(235, 255, 246, 0.88);
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-icon-btn i {
    font-size: 1.25rem;
}

#modal-kanban-card .kanban-dark-form {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(500px, 0.6fr) minmax(360px, 0.4fr);
    overflow: hidden;
}

#modal-kanban-card .kanban-dark-main {
    min-height: 0;
    overflow: hidden;
    background: #242629;
}

#modal-kanban-card .kanban-dark-main-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 1.65rem 1.6rem 3rem 2.1rem;
}

#modal-kanban-card .kanban-dark-main-scroll::-webkit-scrollbar {
    width: 12px;
}

#modal-kanban-card .kanban-dark-main-scroll::-webkit-scrollbar-track {
    background: #2d2f33;
}

#modal-kanban-card .kanban-dark-main-scroll::-webkit-scrollbar-thumb {
    border: 3px solid #2d2f33;
    border-radius: 999px;
    background: #8a8b8e;
}

#modal-kanban-card .kanban-dark-title-block,
#modal-kanban-card .kanban-dark-section {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0 0 1.9rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#modal-kanban-card .kanban-dark-section-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.32rem;
    color: #c9cace;
}

#modal-kanban-card .kanban-dark-section-icon i {
    font-size: 1.45rem;
}

#modal-kanban-card .kanban-dark-title-input {
    width: 100%;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: #d8d9dc;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    outline: none;
}

#modal-kanban-card .kanban-dark-title-input::placeholder {
    color: #b9babd;
}

#modal-kanban-card .kanban-dark-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

#modal-kanban-card .kanban-dark-toolbar-btn,
#modal-kanban-card .kanban-dark-property-action,
#modal-kanban-card .kanban-dark-quiet-btn,
#modal-kanban-card .kanban-dark-primary-btn,
#modal-kanban-card .kanban-dark-danger-btn {
    min-height: 40px;
    padding: 0.52rem 0.72rem;
    border: 1px solid #3b3d42;
    border-radius: 7px;
    background: #2a2c30;
    color: #bfc1c6;
    font-weight: 800;
    transition: all 0.2s ease;
}

#modal-kanban-card .kanban-dark-toolbar-btn:hover,
#modal-kanban-card .kanban-dark-property-action:hover,
#modal-kanban-card .kanban-dark-quiet-btn:hover,
#modal-kanban-card .kanban-dark-primary-btn:hover,
#modal-kanban-card .kanban-dark-danger-btn:hover {
    background: #32353a;
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
}

#modal-kanban-card .kanban-dark-property-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#modal-kanban-card .kanban-dark-property-label {
    color: #a7a9ad;
    font-size: 0.82rem;
    font-weight: 900;
}

#modal-kanban-card .kanban-dark-property-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#modal-kanban-card .kanban-dark-section-title {
    color: #d6d7db;
    font-size: 1.05rem;
    font-weight: 900;
}

#modal-kanban-card .kanban-dark-section-head,
#modal-kanban-card .kanban-dark-checklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

#modal-kanban-card .kanban-dark-description-view,
#modal-kanban-card .kanban-dark-rich-editor-content,
#modal-kanban-card .kanban-dark-textarea {
    width: 100%;
    min-height: 78px;
    padding: 0.88rem;
    border: 1px solid #666a72;
    border-radius: 4px;
    background: #27292d;
    color: #d7d9dd;
    font-size: 1rem;
}

#modal-kanban-card .kanban-dark-description-view-content {
    color: #d7d9dd;
    line-height: 1.55;
}

#modal-kanban-card .kanban-dark-description-stack {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.55rem;
}

#modal-kanban-card #kanban-description-editor-panel {
    width: 100%;
    max-width: 100%;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-toolbar {
    display: flex !important;
    min-height: 38px !important;
    align-items: center !important;
    gap: 0.12rem !important;
    overflow-x: auto;
    padding: 0.35rem 0.45rem !important;
    border: 1px solid #579dff !important;
    border-bottom: 0 !important;
    border-radius: 2px 2px 0 0 !important;
    background: #242629 !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-toolbar::-webkit-scrollbar {
    display: none;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-toolbar-icon-btn,
#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-toolbar .kanban-dark-toolbar-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.24rem !important;
    padding: 0 0.34rem !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #aeb4be !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-toolbar .kanban-dark-toolbar-btn:hover {
    background: #34373d !important;
    color: #ffffff !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-toolbar i {
    font-size: 0.95rem;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-toolbar-separator {
    flex: 0 0 1px;
    width: 1px;
    height: 18px;
    margin: 0 0.18rem;
    background: #3b3f46;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-toolbar-spacer {
    flex: 1 1 auto;
    min-width: 1rem;
}

#modal-kanban-card #kanban-card-descricao-editor.kanban-dark-rich-editor-content {
    min-height: 142px;
    padding: 0.72rem 0.8rem;
    border: 1px solid #579dff;
    border-top: 0;
    border-radius: 0 0 2px 2px;
    background: #242629;
    color: #dfe6f3;
    font-size: 0.88rem;
    line-height: 1.45;
    outline: none;
}

#modal-kanban-card #kanban-card-descricao-editor.kanban-dark-rich-editor-content:empty::before {
    content: attr(data-placeholder);
    color: #8f98a7;
    pointer-events: none;
}

#modal-kanban-card #kanban-card-descricao {
    display: none !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin-top: 0.45rem !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer .kanban-dark-inline-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer .kanban-dark-primary-btn,
#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer .kanban-dark-quiet-btn {
    min-height: 24px !important;
    padding: 0.3rem 0.62rem !important;
    border-radius: 4px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer .kanban-dark-primary-btn {
    border-color: #6ea8ff !important;
    background: #6ea8ff !important;
    color: #07111f !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer .kanban-dark-inline-actions .kanban-dark-quiet-btn {
    border-color: transparent !important;
    background: transparent !important;
    color: #aeb4be !important;
}

#modal-kanban-card #kanban-description-editor-panel .kanban-dark-rich-footer > .kanban-dark-quiet-btn {
    border-color: #3b3f46 !important;
    background: #2a2c30 !important;
    color: #b9c0ca !important;
}

#modal-kanban-card .kanban-dark-progress-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.75rem 0 1rem;
}

#modal-kanban-card .kanban-dark-progress {
    flex: 1;
    height: 7px;
    background: #34363a;
}

#modal-kanban-card .kanban-dark-progress-fill {
    background: #1f794f;
}

#modal-kanban-card #kanban-checklist-section-container {
    margin-top: 1.7rem;
}

#modal-kanban-card .kanban-dark-checklist-head {
    margin-bottom: 0.7rem;
}

#modal-kanban-card .kanban-dark-checklist-head .kanban-dark-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

#modal-kanban-card .kanban-dark-checklist-head .kanban-dark-inline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#modal-kanban-card #btn-toggle-completed {
    display: none;
}

#modal-kanban-card .kanban-dark-checklist-head .kanban-dark-quiet-btn {
    min-height: 36px;
    padding: 0.48rem 0.8rem;
    border-color: #3b3d42;
    border-radius: 7px;
    background: transparent;
    color: #bfc1c6;
}

#modal-kanban-card .kanban-dark-progress-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0.4rem 0 0.95rem;
}

#modal-kanban-card .kanban-dark-progress-row .kanban-dark-inline-muted {
    color: #a9abb0;
    font-size: 0.8rem;
}

#modal-kanban-card .kanban-dark-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

#modal-kanban-card .kanban-dark-checklist-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 0.4rem;
}

#modal-kanban-card .kanban-dark-checklist-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 0.45rem;
    accent-color: #579dff;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-checklist-item-panel {
    display: flex;
    min-height: 36px;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    padding: 0.34rem 0.4rem 0.34rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    background: #34363a;
}

#modal-kanban-card .kanban-dark-checklist-item.is-done .kanban-dark-checklist-item-panel {
    opacity: 0.68;
}

#modal-kanban-card .kanban-dark-checklist-item.is-editing .kanban-dark-checklist-item-panel {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    padding: 0.65rem;
}

#modal-kanban-card .kanban-dark-checklist-item-title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: #dfe1e6;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-checklist-item.is-done .kanban-dark-checklist-item-title {
    color: #8da2b5;
    text-decoration: line-through;
}

#modal-kanban-card .kanban-dark-checklist-item-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

#modal-kanban-card .kanban-dark-checklist-action-btn {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(183, 188, 199, 0.34);
    border-radius: 999px;
    background: rgba(36, 38, 41, 0.62);
    color: #bfc1c6;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-checklist-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(64, 67, 72, 0.82);
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-checklist-action-btn i {
    font-size: 1rem;
    line-height: 1;
}

#modal-kanban-card .kanban-dark-checklist-item-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#modal-kanban-card .kanban-dark-checklist-edit-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

#modal-kanban-card .kanban-dark-checklist-new {
    margin-left: 34px;
}

#modal-kanban-card #btn-show-add-item {
    min-height: 36px;
    padding: 0.48rem 0.75rem;
    border-color: #3b3d42;
    border-radius: 7px;
    background: #2a2c30;
    color: #bfc1c6;
}

#modal-kanban-card #kanban-new-item-form {
    display: none;
    gap: 0.8rem;
}

#modal-kanban-card #kanban-new-item-form[style*="block"],
#modal-kanban-card #kanban-new-item-form[style*="flex"] {
    display: flex !important;
    flex-direction: column;
}

#modal-kanban-card #kanban-new-checklist-item {
    min-height: 40px;
    padding: 0.62rem 0.75rem;
    border: 2px solid #6c9ff8;
    border-radius: 4px;
    background: #242629;
    color: #f2f4f8;
    resize: vertical;
    box-shadow: 0 0 0 1px rgba(108, 159, 248, 0.16);
}

#modal-kanban-card .kanban-dark-checklist-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

#modal-kanban-card .kanban-dark-checklist-actions .kanban-dark-primary-btn {
    min-height: 36px;
    padding: 0.48rem 0.82rem;
    border-color: #579dff;
    border-radius: 6px;
    background: #579dff;
    color: #0f1724;
}

#modal-kanban-card .kanban-dark-checklist-actions .kanban-dark-quiet-btn {
    min-height: 36px;
    padding: 0.48rem 0.45rem;
    border-color: transparent;
    background: transparent;
    color: #bfc1c6;
}

#modal-kanban-card .kanban-dark-checklist-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    margin-left: auto;
}

#modal-kanban-card .kanban-dark-checklist-meta button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: #aeb1b7;
    font-weight: 800;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-checklist-meta button:hover {
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 1.65rem 1.25rem;
    border: 0;
    border-left: 1px solid #33363b;
    border-radius: 0;
    background: #181a1c;
    box-shadow: none;
}

#modal-kanban-card .kanban-dark-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

#modal-kanban-card .kanban-dark-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #d9dbdf;
    font-size: 1.02rem;
    font-weight: 900;
}

#modal-kanban-card .kanban-dark-comment-composer {
    order: 3;
    margin-bottom: 0.8rem;
}

#modal-kanban-card .kanban-dark-comment-dropzone {
    min-height: 54px;
    padding: 0.65rem;
    border: 1px dashed #333841;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

#modal-kanban-card .kanban-dark-dropzone-copy strong {
    display: block;
    color: #c7cbd2;
    font-size: 0.82rem;
}

#modal-kanban-card .kanban-dark-dropzone-copy span {
    display: block;
    color: #8f949c;
    font-size: 0.76rem;
}

#modal-kanban-card .kanban-dark-comment-box {
    order: 2;
    min-height: 46px;
    resize: vertical;
    border-color: #303237;
    border-radius: 8px;
    background: #26282c;
}

#modal-kanban-card .kanban-dark-comment-actions-row {
    order: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

#modal-kanban-card .kanban-dark-comment-actions-row .kanban-dark-quiet-btn {
    min-height: 32px;
    padding: 0.42rem 0.62rem;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: transparent;
    color: #b8bdc6;
    font-size: 0.78rem;
}

#modal-kanban-card .kanban-dark-comment-actions-row .kanban-dark-quiet-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

#modal-kanban-card .kanban-save-comment-btn {
    order: 5;
    min-height: 36px;
    width: fit-content;
    padding: 0.48rem 0.72rem;
    border-radius: 8px;
    background: #2f67d8;
    border-color: #3f7df0;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

#modal-kanban-card .kanban-dark-activity-feed {
    order: 6;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

#modal-kanban-card .kanban-dark-activity-item,
#modal-kanban-card .kanban-dark-comment-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.62rem;
    align-items: flex-start;
}

#modal-kanban-card .kanban-dark-activity-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5bd3, #5b4bb8);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24);
}

#modal-kanban-card .kanban-dark-comment-head,
#modal-kanban-card .kanban-dark-activity-body {
    color: #eef0f4;
    line-height: 1.35;
}

#modal-kanban-card .kanban-dark-comment-head {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-height: 22px;
}

#modal-kanban-card .kanban-dark-comment-head strong,
#modal-kanban-card .kanban-dark-activity-body strong {
    color: #f1f4fb;
    font-size: 0.95rem;
    font-weight: 900;
}

#modal-kanban-card .kanban-dark-comment-time,
#modal-kanban-card .kanban-dark-activity-meta {
    color: #579dff;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#modal-kanban-card .kanban-dark-comment-bubble {
    width: fit-content;
    min-width: min(100%, 220px);
    max-width: 100%;
    margin-top: 0.28rem;
    padding: 0.62rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: #24262b;
    color: #f1f3f7;
    font-size: 0.95rem;
    line-height: 1.38;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

#modal-kanban-card .kanban-dark-comment-actions,
#modal-kanban-card .kanban-dark-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin-top: 0.38rem;
    border: 0;
    background: transparent;
    color: #b8bdc6;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-comment-action:hover {
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-comment-actions {
    gap: 0.42rem;
}

#modal-kanban-card .kanban-dark-comment-actions::before {
    content: "\263A";
    color: #aeb4bf;
    font-size: 0.88rem;
    line-height: 1;
}

#modal-kanban-card .kanban-dark-comment-separator {
    color: #aeb4bf;
}

#modal-kanban-card .kanban-dark-comment-edit {
    width: 100%;
    min-height: 76px;
    margin-top: 0.35rem;
    padding: 0.7rem;
    border: 1px solid #3b3f47;
    border-radius: 8px;
    background: #24262b;
    color: #f1f3f7;
}

@media (max-width: 980px) {
    #modal-kanban-card .kanban-dark-modal {
        height: min(820px, 94vh);
        grid-template-rows: 96px minmax(0, 1fr);
    }
    #modal-kanban-card .kanban-dark-form {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    #modal-kanban-card .kanban-dark-main-scroll {
        height: auto;
        overflow: visible;
        padding: 1.25rem;
    }
    #modal-kanban-card .kanban-dark-sidebar {
        min-height: 320px;
        border-left: 0;
        border-top: 1px solid #33363b;
    }
    #modal-kanban-card .kanban-dark-title-input {
        font-size: 1.45rem;
    }
}

#modal-kanban-card .kanban-dark-activity-list,
#modal-kanban-card #kanban-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

#modal-kanban-card .kanban-dark-empty-state {
    min-height: 72px;
    padding: 0.9rem;
    border: 1px dashed #343841;
    border-radius: 8px;
    background: transparent;
    color: #9da2aa;
}

#modal-kanban-card .kanban-dark-popover {
    position: absolute;
    z-index: 80;
    width: min(360px, 92vw);
    padding: 0;
    overflow: hidden;
    border: 1px solid #3b3d42;
    border-radius: 10px;
    background: #242629;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

#modal-kanban-card .kanban-dark-popover-layer {
    position: relative;
}

#modal-kanban-card #kanban-add-popover {
    top: 0.6rem;
    left: 0;
}

#modal-kanban-card .kanban-dark-popover-head {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.72rem;
    border-bottom: 1px solid #363940;
}

#modal-kanban-card .kanban-dark-popover-title {
    color: #f0f2f6;
    font-size: 0.9rem;
    font-weight: 900;
}

#modal-kanban-card .kanban-dark-popover-close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #b8bdc6;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-popover-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

#modal-kanban-card .kanban-dark-popover-body {
    display: grid;
    gap: 0.35rem;
    padding: 0.55rem;
}

#modal-kanban-card .kanban-dark-menu-item {
    display: grid;
    width: 100%;
    min-height: 48px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 0.62rem;
    padding: 0.55rem 0.62rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d8dbe1;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

#modal-kanban-card .kanban-dark-menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

#modal-kanban-card .kanban-dark-menu-item-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #c8cbd1;
}

#modal-kanban-card .kanban-dark-menu-item strong {
    display: block;
    color: #f3f5f9;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
}

#modal-kanban-card .kanban-dark-menu-item span span {
    display: block;
    margin-top: 0.12rem;
    color: #a7abb4;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
}

/* ==========================================================================
   Kanban / Demandas
   ========================================================================== */

#section-demandas,
#section-demandas.kanban-screen {
    height: calc(100vh - 86px - 48px);
    overflow: hidden;
    background: var(--bg);
}

.kanban-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.kanban-title-area h2 {
    font-size: 1.2rem;
}

.kanban-board-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.kanban-main-actions,
.kanban-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.kanban-board-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    background: transparent;
}

.kanban-board {
    display: flex;
    height: 100%;
    gap: 1rem;
    align-items: stretch;
}

.kanban-list {
    display: flex;
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex-direction: column;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.kanban-list-header {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-soft);
}

.kanban-list-header h3 {
    color: var(--text);
    font-size: 1rem;
}

.kanban-list-count,
.kanban-count,
.kanban-list-header h3 .count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #31384b;
    color: var(--text);
    font-size: 0.78rem;
}

.kanban-list-cards {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-top: 0.85rem;
}

.kanban-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
    color: var(--text);
}

.kanban-card:hover {
    border-color: #4b5570;
    background: var(--surface-hover);
}

.kanban-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--blue);
}

.kanban-card-body,
.kanban-card-content {
    padding: 0.9rem 1rem 0.9rem 1.1rem;
}

.kanban-card-title {
    color: var(--text);
    font-weight: 750;
}

.kanban-card-label,
.kanban-card-badge,
.kanban-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #1d222e;
    color: var(--muted);
    font-size: 0.76rem;
}

.kanban-add-card-btn {
    min-height: 46px;
    border: 1px dashed #3a4258;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
}

#section-demandas.kanban-screen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.15rem 0 0;
}

#section-demandas .kanban-modern-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    border-color: rgba(129, 146, 177, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(30, 38, 55, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

#section-demandas .kanban-header-top,
#section-demandas .kanban-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#section-demandas .kanban-title-area {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
}

#section-demandas .kanban-title-area h2 {
    color: #f5f8ff;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

#section-demandas .kanban-board-stats .stat-pill {
    min-height: 22px;
    padding: 0.25rem 0.56rem;
    border-color: rgba(129, 146, 177, 0.24);
    background: rgba(65, 74, 99, 0.68);
    color: #e8eefb;
    font-size: 0.68rem;
    font-weight: 850;
}

#section-demandas .kanban-main-actions .btn,
#section-demandas .kanban-filter-chip {
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(129, 146, 177, 0.26);
    background: rgba(36, 44, 62, 0.9);
    color: #e9eefc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

#section-demandas .kanban-main-actions .btn-primary {
    border-color: rgba(45, 212, 191, 0.34);
    background: linear-gradient(135deg, #2dd4bf, #536cff);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(45, 212, 191, 0.18);
}

#section-demandas .kanban-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.72rem;
    cursor: pointer;
    font-weight: 780;
}

#section-demandas .kanban-filter-chip:hover,
#section-demandas .kanban-main-actions .btn:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 212, 191, 0.34);
    background: rgba(48, 58, 80, 0.96);
}

#section-demandas .kanban-action-bar .input-wrapper {
    width: min(300px, 100%) !important;
}

#section-demandas .kanban-action-bar .form-control {
    height: 40px;
    border-color: rgba(129, 146, 177, 0.24);
    border-radius: 12px;
    background: rgba(23, 31, 47, 0.88);
}

#section-demandas .kanban-board-container {
    padding: 0.15rem 0 0.85rem;
}

#section-demandas .kanban-board-container::-webkit-scrollbar {
    height: 10px;
}

#section-demandas .kanban-board-container::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

#section-demandas .kanban-board-container::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.86), rgba(83, 108, 255, 0.82));
}

#section-demandas .kanban-board {
    gap: 0.85rem;
    padding: 0;
}

#section-demandas .kanban-list {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    padding: 0.82rem;
    border-color: rgba(129, 146, 177, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(27, 35, 51, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

#section-demandas .kanban-list-header {
    border-bottom-color: rgba(129, 146, 177, 0.18);
}

#section-demandas .kanban-list-header h3 {
    color: #f3f7ff;
    font-size: 0.9rem;
    font-weight: 900;
}

#section-demandas .kanban-list-cards {
    gap: 0.68rem;
    padding-right: 0.25rem;
}

#section-demandas .kanban-card {
    width: 100%;
    min-height: 112px;
    max-height: 132px;
    border-color: rgba(129, 146, 177, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 48%),
        rgba(36, 44, 62, 0.96);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

#section-demandas .kanban-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.42);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, 0.08), transparent 46%),
        rgba(39, 48, 68, 0.98);
}

#section-demandas .kanban-card-title {
    color: #edf3ff;
    display: -webkit-box;
    min-height: 2.1rem;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#section-demandas .kanban-card-content {
    display: flex;
    min-height: 109px;
    flex-direction: column;
    padding: 0.72rem 2.25rem 0.52rem 0.72rem;
}

#section-demandas .kanban-card-badge {
    min-height: 18px;
    padding: 0.16rem 0.4rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
}

#section-demandas .kanban-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: 0.18rem;
}

#section-demandas .kanban-card-labels-under-title {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 0.28rem;
}

#section-demandas .kanban-card-members {
    display: flex;
    min-height: 18px;
    margin-top: 0.2rem;
}

#section-demandas .kanban-card-member-avatar {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
}

#section-demandas .kanban-card-meta-footer {
    margin-top: auto;
}

#section-demandas .kanban-card-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#section-demandas .kanban-card-indicators .indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #c9d4e6;
    font-size: 0.62rem;
    line-height: 1;
}

#section-demandas .kanban-card-indicators .indicator i {
    font-size: 0.72rem;
}

#section-demandas .kanban-card-cover {
    min-height: 3px;
}

#section-demandas .kanban-card-menu-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 3;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(129, 146, 177, 0.18);
    border-radius: 10px;
    background: rgba(15, 22, 35, 0.72);
    color: #aebbd0;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
}

#section-demandas .kanban-card:hover .kanban-card-menu-btn,
#section-demandas .kanban-card-menu-btn:focus-visible {
    opacity: 1;
}

#section-demandas .kanban-card-menu-btn:hover {
    background: rgba(45, 212, 191, 0.14);
    color: #ffffff;
}

.kanban-card-dropdown {
    display: none;
    min-width: 220px;
    padding: 0.45rem;
    border: 1px solid rgba(129, 146, 177, 0.24);
    border-radius: 14px;
    background: rgba(20, 27, 41, 0.98);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

.kanban-card-dropdown.active {
    display: grid;
    gap: 0.25rem;
}

.kanban-card-dropdown button {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.48rem 0.58rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #d9e3f7;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
}

.kanban-card-dropdown button:hover {
    background: rgba(45, 212, 191, 0.12);
    color: #ffffff;
}

.kanban-card-dropdown button i {
    color: #45d9ca;
    font-size: 1rem;
}

#section-demandas .kanban-card-member-avatar {
    border: 2px solid rgba(11, 17, 29, 0.96);
    background: linear-gradient(135deg, #2dd4bf, #8b5cf6);
    color: #08121f;
    font-weight: 950;
}

#section-demandas .kanban-add-card-btn {
    margin-top: 0.85rem;
    min-height: 42px;
    border-color: rgba(129, 146, 177, 0.24);
    border-radius: 12px;
    background: rgba(15, 22, 35, 0.32);
    color: #aebbd0;
    font-weight: 800;
}

#section-demandas .kanban-add-card-btn:hover {
    border-color: rgba(45, 212, 191, 0.42);
    background: rgba(45, 212, 191, 0.08);
    color: #e9fffb;
}

#section-demandas .kanban-column-empty-state {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 1rem 0;
    color: #cfd8eb;
}

#section-demandas .kanban-column-empty-state i {
    color: #dbe7ff;
    font-size: 1.15rem;
}

@media (max-width: 980px) {
    #section-demandas .kanban-header-top,
    #section-demandas .kanban-action-bar {
        align-items: stretch;
        flex-direction: column;
    }
    #section-demandas .kanban-main-actions,
    #section-demandas .kanban-quick-filters {
        width: 100%;
    }
    #section-demandas .kanban-main-actions .btn,
    #section-demandas .kanban-filter-chip,
    #section-demandas .kanban-action-bar .input-wrapper {
        flex: 1;
    }
    #section-demandas .kanban-action-bar .input-wrapper {
        width: 100% !important;
    }
}

.kanban-add-card-btn:hover {
    color: var(--text);
    background: #252b39;
}

.content-section.kanban-screen.section-active {
    gap: 0;
}

.empty-state h3,
.ui-empty-state h3,
.kanban-dark-empty-state h3 {
    color: var(--text);
}

.empty-state p,
.ui-empty-state p,
.kanban-dark-empty-state p {
    color: var(--muted);
}

@media (max-width: 640px) {
    .dashboard-nexus-status,
    .suite-command-actions,
    .filter-actions,
    .kanban-main-actions,
    .kanban-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .kanban-list {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
    .modal,
    .modal-content,
    .kanban-dark-modal {
        width: 96vw;
    }
}

/* ==========================================================================
   MELHORIA VISUAL - KANBAN "ADICIONAR AO CARTÃO"
   ========================================================================== */

.kanban-dark-popover {
    background: #2a2d33 !important;
    border: 1px solid #3f4452 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.kanban-dark-popover-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 1.2rem !important;
    background: #252930 !important;
    border-bottom: 1px solid #3f4452 !important;
    gap: 1rem !important;
}

.kanban-dark-popover-title {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: var(--text) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.kanban-dark-popover-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--muted) !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.kanban-dark-popover-close:hover {
    background: rgba(93, 183, 231, 0.15) !important;
    border-color: rgba(93, 183, 231, 0.3) !important;
    color: #bfc1c6 !important;
}

.kanban-dark-member {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.kanban-dark-member:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.kanban-dark-member-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: 1px solid !important;
    transition: all 0.2s ease !important;
}

.kanban-dark-property-chip {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.kanban-dark-property-chip:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
}

.kanban-dark-popover-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    max-height: 500px !important;
    overflow-y: auto !important;
}

.kanban-dark-popover-body::-webkit-scrollbar {
    width: 6px;
}

.kanban-dark-popover-body::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-dark-popover-body::-webkit-scrollbar-thumb {
    background: rgba(93, 183, 231, 0.3);
    border-radius: 3px;
}

.kanban-dark-popover-body::-webkit-scrollbar-thumb:hover {
    background: rgba(93, 183, 231, 0.5);
}

.kanban-dark-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid rgba(93, 183, 231, 0.12) !important;
    border-radius: 11px !important;
    background:
        linear-gradient(135deg, rgba(93, 183, 231, 0.04), transparent 50%),
        rgba(38, 44, 58, 0.6) !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.kanban-dark-menu-item:hover {
    border-color: rgba(93, 183, 231, 0.25) !important;
    background: rgba(38, 44, 58, 0.7) !important;
}

.kanban-dark-menu-item:active {
    transform: scale(0.98) !important;
}

.kanban-dark-menu-item-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 8px !important;
    background: rgba(53, 120, 246, 0.1) !important;
    color: #bfc1c6 !important;
    font-size: 1.35rem !important;
}

.kanban-dark-menu-item:hover .kanban-dark-menu-item-icon {
    background: rgba(53, 120, 246, 0.18) !important;
    color: #ffffff !important;
}

.kanban-dark-menu-item span {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    min-width: 0 !important;
}

.kanban-dark-menu-item strong {
    color: var(--text) !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
}

.kanban-dark-menu-item span span {
    color: var(--muted) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: block !important;
}

#modal-kanban-card .kanban-dark-popover {
    background: #242629 !important;
    border-color: #3b3d42 !important;
}

#modal-kanban-card .kanban-dark-popover-head {
    background: #1d222e !important;
    border-bottom-color: #3b3d42 !important;
}

#modal-kanban-card .kanban-dark-menu-item {
    background: rgba(38, 44, 58, 0.5) !important;
    border-color: rgba(93, 183, 231, 0.1) !important;
}

#modal-kanban-card .kanban-dark-menu-item:hover {
    background: rgba(38, 44, 58, 0.8) !important;
    border-color: rgba(93, 183, 231, 0.3) !important;
}

.kanban-dark-input,
.kanban-dark-input-field {
    width: 100% !important;
    padding: 0.75rem 0.95rem !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid rgba(93, 183, 231, 0.15) !important;
    border-radius: 10px !important;
    background: rgba(32, 37, 48, 0.6) !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.kanban-dark-input::placeholder {
    color: var(--muted) !important;
}

.kanban-dark-input:hover,
.kanban-dark-input-field:hover {
    background: rgba(32, 37, 48, 0.8) !important;
    border-color: rgba(93, 183, 231, 0.25) !important;
}

.kanban-dark-input:focus,
.kanban-dark-input-field:focus {
    outline: none !important;
    background: rgba(32, 37, 48, 0.95) !important;
    border-color: #bfc1c6 !important;
    box-shadow: 0 0 0 2px rgba(93, 183, 231, 0.2) !important;
}

.kanban-dark-popover .kanban-dark-toolbar-btn,
.kanban-dark-popover .kanban-dark-primary-btn {
    padding: 0.7rem 1.1rem !important;
    border: 1px solid #3b3d42 !important;
    border-radius: 10px !important;
    background: #2a2c30 !important;
    color: #bfc1c6 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
}

.kanban-dark-popover .kanban-dark-toolbar-btn:hover,
.kanban-dark-popover .kanban-dark-primary-btn:hover {
    background: #32353a !important;
    border-color: #4b4d53 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.kanban-dark-inline-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.kanban-dark-inline-item,
.kanban-dark-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.7rem 0.85rem !important;
    border: 1px solid rgba(93, 183, 231, 0.1) !important;
    border-radius: 9px !important;
    background: rgba(38, 44, 58, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.kanban-dark-inline-item:hover,
.kanban-dark-list-item:hover {
    background: rgba(38, 44, 58, 0.7) !important;
    border-color: rgba(93, 183, 231, 0.3) !important;
}

.kanban-dark-inline-item.active,
.kanban-dark-list-item.active {
    background: rgba(93, 183, 231, 0.2) !important;
    border-color: #4b4d53 !important;
}

.kanban-cover-color-section-title {
    display: block !important;
    color: var(--text-soft) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0.75rem 0 0.5rem 0 !important;
    padding: 0 0.5rem !important;
}

.kanban-cover-color-divider {
    height: 1px !important;
    background: rgba(93, 183, 231, 0.1) !important;
    margin: 1rem 0 !important;
}

.kanban-dark-swatch-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.6rem !important;
}

.kanban-dark-swatch {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    aspect-ratio: 1 !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.kanban-dark-swatch:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.kanban-dark-swatch.active {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

.kanban-dark-swatch.active::after {
    content: "✓" !important;
    position: absolute !important;
    color: white !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.kanban-cover-color-picker-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
}

.kanban-cover-color-picker-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: rgba(38, 44, 58, 0.4) !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(93, 183, 231, 0.15) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.kanban-cover-color-picker-container:hover {
    background: rgba(38, 44, 58, 0.6) !important;
    border-color: rgba(93, 183, 231, 0.25) !important;
}

.kanban-cover-color-input {
    width: 60px !important;
    height: 48px !important;
    min-width: 60px !important;
    border: 2px solid rgba(93, 183, 231, 0.2) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.kanban-cover-color-input:hover {
    border-color: #4b4d53 !important;
    box-shadow: 0 0 12px rgba(93, 183, 231, 0.2) !important;
}

.kanban-cover-color-input:focus {
    outline: none !important;
    border-color: #bfc1c6 !important;
    box-shadow: 0 0 16px rgba(93, 183, 231, 0.3) !important;
}

.kanban-cover-color-preview {
    flex: 1 !important;
    height: 48px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #3B82F6, #1f794f) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.kanban-cover-color-hex-input {
    width: 100% !important;
    padding: 0.7rem 0.95rem !important;
    border: 1px solid rgba(93, 183, 231, 0.15) !important;
    border-radius: 9px !important;
    background: rgba(32, 37, 48, 0.6) !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-family: 'Courier New', monospace !important;
    transition: all 0.2s ease !important;
}

.kanban-cover-color-hex-input::placeholder {
    color: var(--muted) !important;
}

.kanban-cover-color-hex-input:hover {
    background: rgba(32, 37, 48, 0.8) !important;
    border-color: rgba(93, 183, 231, 0.25) !important;
}

.kanban-cover-color-hex-input:focus {
    outline: none !important;
    background: rgba(32, 37, 48, 0.95) !important;
    border-color: #bfc1c6 !important;
    box-shadow: 0 0 0 2px rgba(93, 183, 231, 0.2) !important;
}

.kanban-dark-popover-compact {
    min-width: 280px !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.55rem !important;
    margin-left: auto !important;
}


#modal-kanban-card .kanban-dark-modal-header .kanban-dark-header-btn,
#modal-kanban-card .kanban-dark-modal-header .kanban-dark-icon-btn {
    display: inline-flex !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
    box-shadow: none !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-header-btn {
    padding: 0 0.85rem !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-icon-btn {
    flex: 0 0 36px !important;
    width: 36px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(32, 37, 48, 0.18) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.34) !important;
    background: rgba(32, 37, 48, 0.32) !important;
    color: #ffffff !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-primary-btn {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-primary-btn:hover {
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-danger-btn {
    border: 1px solid rgba(255, 104, 104, 0.55) !important;
    background: rgba(239, 68, 68, 0.22) !important;
    color: #ffffff !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-danger-btn:hover {
    border-color: rgba(255, 160, 160, 0.72) !important;
    background: rgba(239, 68, 68, 0.32) !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-header-btn i,
#modal-kanban-card .kanban-dark-modal-header .kanban-dark-icon-btn i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

#modal-kanban-card .kanban-dark-modal-header .kanban-dark-header-btn:disabled {
    cursor: progress !important;
    opacity: 0.82 !important;
}

.kanban-save-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(9, 12, 18, 0.46);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.kanban-save-progress-overlay.active {
    display: flex;
}

.kanban-save-progress-card {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.05rem;
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 10px;
    background: #20242f;
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.kanban-save-progress-card i,
#btn-save-kanban-card .ph-spin {
    color: #bfdbfe;
    animation: kanban-save-spin 0.8s linear infinite;
}

@keyframes kanban-save-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ajuste final do popover "Adicionar ao cartão" no modal Kanban */

#modal-kanban-card #kanban-add-popover {
    position: absolute !important;
    top: 0.6rem !important;
    left: 0 !important;
    width: min(360px, 92vw) !important;
    padding: 0 !important;
    border: 1px solid #3b3d42 !important;
    border-radius: 10px !important;
    background: #242629 !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36) !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-popover-head {
    min-height: 42px !important;
    padding: 0.6rem 0.72rem !important;
    background: #202226 !important;
    border-bottom: 1px solid #363940 !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-popover-title {
    color: #f0f2f6 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-popover-close {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-popover-body {
    display: grid !important;
    gap: 0.35rem !important;
    padding: 0.55rem !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item {
    display: grid !important;
    min-height: 48px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0.62rem !important;
    padding: 0.55rem 0.62rem !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #d8dbe1 !important;
    box-shadow: none !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #c8cbd1 !important;
    font-size: 1rem !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item span {
    display: block !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item strong {
    display: block !important;
    color: #f3f5f9 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

#modal-kanban-card #kanban-add-popover .kanban-dark-menu-item span span {
    display: block !important;
    margin-top: 0.12rem !important;
    color: #a7abb4 !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

#section-demandas.demandcore-board {
    display: flex;
    width: 100%;
    height: calc(100vh - 86px);
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
}

.main-content:has(#section-demandas.demandcore-board.section-active),
.content-wrapper:has(> #section-demandas.demandcore-board.section-active) {
    overflow: hidden;
}

.content-wrapper:has(> #section-demandas.demandcore-board.section-active) {
    padding: 0;
}

.main-content:has(#section-demandas.section-active) .topbar .search-container {
    display: none;
}

#section-demandas.demandcore-board .demandcore-toolbar {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.78rem 1rem 0.72rem;
    border: 0;
    border-bottom: 1px solid rgba(142, 154, 179, 0.18);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(19, 23, 32, 0.96);
    box-shadow: none;
}

#section-demandas.demandcore-board .kanban-header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
}

#section-demandas.demandcore-board .kanban-title-area h2 {
    margin: 0;
    color: var(--blue);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1.1;
}

#section-demandas.demandcore-board .kanban-toolbar-search {
    width: 100% !important;
    max-width: 560px;
}

#section-demandas.demandcore-board .kanban-toolbar-search .form-control {
    height: 44px;
    border-color: rgba(142, 154, 179, 0.16);
    border-radius: 8px;
    background: rgba(11, 14, 22, 0.72);
    color: var(--text);
    font-size: 0.92rem;
}

#section-demandas.demandcore-board .kanban-main-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.72rem;
}

#section-demandas.demandcore-board .kanban-main-actions .btn {
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 0.86rem;
    font-weight: 850;
}

#section-demandas.demandcore-board .kanban-main-actions .btn.icon-only {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

#section-demandas.demandcore-board .kanban-main-actions .btn-primary {
    border-color: rgba(53, 120, 246, 0.56);
    background: linear-gradient(135deg, var(--blue), var(--blue-strong));
    color: #06111f;
    box-shadow: 0 12px 28px rgba(53, 120, 246, 0.22);
}

#section-demandas.demandcore-board .kanban-action-bar {
    min-height: 32px;
    margin-top: 0.62rem;
    justify-content: space-between;
    gap: 0.85rem;
}

#section-demandas.demandcore-board .kanban-board-stats,
#section-demandas.demandcore-board .kanban-quick-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

#section-demandas.demandcore-board .kanban-board-stats .stat-pill,
#section-demandas.demandcore-board .kanban-filter-chip {
    min-height: 28px;
    padding: 0 0.7rem;
    border: 1px solid rgba(142, 154, 179, 0.16);
    border-radius: 8px;
    background: rgba(37, 43, 57, 0.62);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
}

#section-demandas.demandcore-board .kanban-filter-chip.active {
    border-color: rgba(93, 183, 231, 0.42);
    background: rgba(93, 183, 231, 0.16);
    color: var(--text);
}

#section-demandas.demandcore-board .kanban-board-container {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding: 1.3rem 0.3rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--bg-deep);
}

#section-demandas.demandcore-board .kanban-board {
    display: flex;
    height: 100%;
    min-height: 100%;
    align-items: flex-start;
    gap: 1.35rem;
    padding: 0 0.8rem;
}

#section-demandas.demandcore-board .kanban-list {
    --list-accent: var(--blue);
    height: 100%;
    width: clamp(330px, 28vw, 405px);
    min-width: clamp(330px, 28vw, 405px);
    max-width: 405px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#section-demandas.demandcore-board .kanban-list-todo { --list-accent: var(--muted); }

#section-demandas.demandcore-board .kanban-list-progress { --list-accent: var(--blue); }

#section-demandas.demandcore-board .kanban-list-review { --list-accent: var(--purple); }

#section-demandas.demandcore-board .kanban-list-done { --list-accent: var(--green); }

#section-demandas.demandcore-board .kanban-list-custom { --list-accent: var(--orange); }

#section-demandas.demandcore-board .kanban-list-header {
    min-height: 42px;
    padding: 0 0.35rem 0.75rem;
    border: 0;
}

#section-demandas.demandcore-board .kanban-list-title-wrap {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.58rem;
}

#section-demandas.demandcore-board .kanban-list-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--list-accent);
    box-shadow: 0 0 14px rgba(93, 183, 231, 0.24);
}

#section-demandas.demandcore-board .kanban-list-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#section-demandas.demandcore-board .kanban-list-count {
    display: inline-flex;
    min-width: 25px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 0.48rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 850;
}

#section-demandas.demandcore-board .kanban-list-menu-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

#section-demandas.demandcore-board .kanban-list-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

#section-demandas.demandcore-board .kanban-list-cards {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    gap: 1.05rem;
    padding: 0 0.2rem 0.3rem;
    overflow-y: auto;
}

#section-demandas.demandcore-board .kanban-card {
    --kanban-card-accent: var(--list-accent, var(--blue));
    min-height: 148px;
    max-height: none;
    border: 1px solid rgba(142, 154, 179, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--surface);
    color: var(--text);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#section-demandas.demandcore-board .kanban-card::before {
    display: none;
}

#section-demandas.demandcore-board .kanban-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 183, 231, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
        var(--surface-2);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

#section-demandas.demandcore-board .kanban-card-cover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    min-height: 4px;
    background: var(--kanban-card-accent);
}

#section-demandas.demandcore-board .kanban-card-content {
    display: flex;
    min-height: 144px;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem 0.75rem;
}

#section-demandas.demandcore-board .kanban-card-headline,
#section-demandas.demandcore-board .kanban-card-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

#section-demandas.demandcore-board .kanban-priority-badge,
#section-demandas.demandcore-board .kanban-card-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0.24rem 0.62rem;
    border: 1px solid rgba(93, 183, 231, 0.24);
    border-radius: 999px;
    background: rgba(93, 183, 231, 0.13);
    color: #bdeaff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

#section-demandas.demandcore-board .kanban-priority-badge.priority-media,
#section-demandas.demandcore-board .kanban-priority-badge.priority-alta {
    border-color: rgba(255, 138, 0, 0.28);
    background: rgba(255, 138, 0, 0.14);
    color: #ffd59f;
}

#section-demandas.demandcore-board .kanban-priority-badge.priority-urgente {
    border-color: rgba(239, 29, 29, 0.35);
    background: rgba(239, 29, 29, 0.16);
    color: #ffb9b9;
}

#section-demandas.demandcore-board .kanban-card-code {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 760;
}

#section-demandas.demandcore-board .kanban-card-title {
    display: -webkit-box;
    min-height: 2.7rem;
    overflow: hidden;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 780;
    line-height: 1.35;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#section-demandas.demandcore-board .kanban-card-title--lg,
#section-demandas.demandcore-board .kanban-card-title--xl,
#section-demandas.demandcore-board .kanban-card-title--xxl {
    font-size: 0.98rem;
}

#section-demandas.demandcore-board .kanban-card-top-row {
    margin-top: -0.1rem;
}

#section-demandas.demandcore-board .kanban-card-labels-under-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

#section-demandas.demandcore-board .kanban-card-progress-row {
    display: grid;
    grid-template-columns: auto minmax(96px, 1fr);
    align-items: center;
    gap: 0.6rem;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 720;
}

#section-demandas.demandcore-board .kanban-card-subtasks {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    white-space: nowrap;
}

#section-demandas.demandcore-board .kanban-card-subtasks i {
    color: var(--muted);
}

#section-demandas.demandcore-board .kanban-card-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

#section-demandas.demandcore-board .kanban-card-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--blue-strong));
}

#section-demandas.demandcore-board .kanban-card-footer-members {
    min-width: 54px;
}

#section-demandas.demandcore-board .kanban-card-footer-members .kanban-card-members {
    display: flex;
    min-height: 26px;
}

#section-demandas.demandcore-board .kanban-card-member-avatar {
    width: 26px;
    height: 26px;
    margin-left: -6px;
    border: 2px solid var(--surface);
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 0.66rem;
    font-weight: 900;
}

#section-demandas.demandcore-board .kanban-card-member-avatar:first-child {
    margin-left: 0;
}

#section-demandas.demandcore-board .kanban-card-indicators {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#section-demandas.demandcore-board .kanban-card-indicators .indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 720;
}

#section-demandas.demandcore-board .kanban-card-indicators .indicator.late {
    color: #ffb9b9;
}

#section-demandas.demandcore-board .kanban-card-indicators .indicator.late i {
    color: var(--red);
}

#section-demandas.demandcore-board .kanban-card-menu-btn {
    top: 0.7rem;
    right: 0.68rem;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--muted);
    opacity: 1;
}

#section-demandas.demandcore-board .kanban-card-menu-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

#section-demandas.demandcore-board .kanban-card-check {
    position: absolute;
    top: 0.78rem;
    left: 0.7rem;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.52);
    opacity: 0;
    transition: opacity 0.16s ease, background 0.16s ease;
}

#section-demandas.demandcore-board .kanban-card:hover .kanban-card-check,
#section-demandas.demandcore-board .kanban-card.done .kanban-card-check {
    opacity: 1;
}

#section-demandas.demandcore-board .kanban-card.done .kanban-card-check {
    border-color: rgba(0, 191, 47, 0.45);
    background: var(--green);
}

#section-demandas.demandcore-board .kanban-add-card-btn {
    margin: 0.9rem 0.2rem 0;
    min-height: 44px;
    border: 1px dashed rgba(142, 154, 179, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-weight: 760;
}

#section-demandas.demandcore-board .kanban-add-list-inline {
    width: 230px;
    min-width: 230px;
    padding: 0.35rem 0;
}

#section-demandas.demandcore-board .kanban-column-empty-state {
    min-height: 202px;
    padding: 1.15rem;
    border: 1px dashed rgba(142, 154, 179, 0.18);
    border-radius: 12px;
    color: var(--muted);
}

/* Compact Kanban cards, matching the requested Trello-like reference. */

#section-demandas .kanban-board,
#section-demandas.demandcore-board .kanban-board {
    align-items: stretch;
    gap: 0.75rem;
}

#section-demandas .kanban-list,
#section-demandas.demandcore-board .kanban-list {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    width: 267px;
    min-width: 267px;
    max-width: 267px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--bg-deep);
    box-shadow: none;
    overflow: hidden;
}

#section-demandas .kanban-list-header,
#section-demandas.demandcore-board .kanban-list-header {
    min-height: 48px;
    padding: 0 8px 0 17px;
    border: 0;
}

#section-demandas .kanban-list-title-wrap,
#section-demandas.demandcore-board .kanban-list-title-wrap {
    gap: 0;
}

#section-demandas .kanban-list-dot,
#section-demandas .kanban-list-count,
#section-demandas.demandcore-board .kanban-list-dot,
#section-demandas.demandcore-board .kanban-list-count {
    display: none;
}

#section-demandas .kanban-list-header h3,
#section-demandas.demandcore-board .kanban-list-header h3 {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

#section-demandas .kanban-list-menu-btn,
#section-demandas.demandcore-board .kanban-list-menu-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--muted);
}

#section-demandas .kanban-list-menu-btn:hover,
#section-demandas.demandcore-board .kanban-list-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

#section-demandas .kanban-list-cards,
#section-demandas.demandcore-board .kanban-list-cards {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    max-height: none;
    padding: 0 5px 8px;
    overflow-x: hidden;
    overflow-y: auto;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar,
#section-demandas.demandcore-board .kanban-list-cards::-webkit-scrollbar {
    width: 8px;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar-track,
#section-demandas.demandcore-board .kanban-list-cards::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

#section-demandas .kanban-list-cards::-webkit-scrollbar-thumb,
#section-demandas.demandcore-board .kanban-list-cards::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(93, 183, 231, 0.65);
}

#section-demandas .kanban-column-empty-state,
#section-demandas.demandcore-board .kanban-column-empty-state {
    flex: 1 1 auto;
    min-height: 198px;
}

#section-demandas .kanban-card,
#section-demandas.demandcore-board .kanban-card {
    flex: 0 0 142px;
    width: 100%;
    height: 142px;
    min-height: 142px;
    max-height: 142px;
    border: 0;
    border-radius: 6px;
    background: var(--surface-2);
    box-shadow: none;
}

#section-demandas .kanban-card:hover,
#section-demandas.demandcore-board .kanban-card:hover {
    transform: none;
    background: var(--surface-hover);
    box-shadow: none;
}

#section-demandas .kanban-card-cover,
#section-demandas.demandcore-board .kanban-card-cover {
    top: 0;
    right: 0;
    left: 0;
    height: 38px;
    min-height: 38px;
    border-radius: 6px 6px 0 0;
    background: var(--kanban-card-accent);
}

#section-demandas .kanban-card-content,
#section-demandas.demandcore-board .kanban-card-content {
    display: flex;
    height: 100%;
    min-height: 142px;
    flex-direction: column;
    gap: 6px;
    padding: 50px 9px 8px 12px;
}

#section-demandas .kanban-card-headline,
#section-demandas.demandcore-board .kanban-card-headline {
    min-height: 18px;
    justify-content: flex-start;
    gap: 6px;
    overflow: hidden;
}

#section-demandas .kanban-priority-badge,
#section-demandas.demandcore-board .kanban-priority-badge {
    width: 40px;
    min-width: 40px;
    height: 8px;
    min-height: 8px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -999px;
}

#section-demandas .kanban-priority-badge.priority-baixa,
#section-demandas.demandcore-board .kanban-priority-badge.priority-baixa {
    background: #22c55e;
}

#section-demandas .kanban-priority-badge.priority-media,
#section-demandas.demandcore-board .kanban-priority-badge.priority-media {
    background: #f5a400;
}

#section-demandas .kanban-priority-badge.priority-alta,
#section-demandas.demandcore-board .kanban-priority-badge.priority-alta {
    background: #ef4444;
}

#section-demandas .kanban-priority-badge.priority-urgente,
#section-demandas.demandcore-board .kanban-priority-badge.priority-urgente {
    background: #b91c1c;
}

#section-demandas .kanban-card-code,
#section-demandas .kanban-card-top-row,
#section-demandas.demandcore-board .kanban-card-code,
#section-demandas.demandcore-board .kanban-card-top-row {
    display: none;
}

#section-demandas .kanban-card-headline .kanban-card-labels-under-title,
#section-demandas.demandcore-board .kanban-card-headline .kanban-card-labels-under-title {
    display: flex;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}

#section-demandas .kanban-card-headline .kanban-card-badge,
#section-demandas.demandcore-board .kanban-card-headline .kanban-card-badge {
    display: inline-flex;
    max-width: 100%;
    height: 18px;
    min-height: 18px;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

#section-demandas .kanban-card-title,
#section-demandas.demandcore-board .kanban-card-title,
#section-demandas.demandcore-board .kanban-card-title--lg,
#section-demandas.demandcore-board .kanban-card-title--xl,
#section-demandas.demandcore-board .kanban-card-title--xxl {
    min-height: 0;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: none;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

#section-demandas .kanban-card-progress-row,
#section-demandas.demandcore-board .kanban-card-progress-row {
    display: none;
}

#section-demandas .kanban-card-meta-footer,
#section-demandas.demandcore-board .kanban-card-meta-footer {
    min-height: 26px;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#section-demandas .kanban-card-indicators,
#section-demandas.demandcore-board .kanban-card-indicators {
    justify-content: flex-start;
    gap: 11px;
}

#section-demandas .kanban-card-indicators .indicator,
#section-demandas.demandcore-board .kanban-card-indicators .indicator {
    gap: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

#section-demandas .kanban-card-indicators .indicator i,
#section-demandas.demandcore-board .kanban-card-indicators .indicator i {
    color: var(--muted);
    font-size: 15px;
}

#section-demandas .kanban-card-footer-members,
#section-demandas.demandcore-board .kanban-card-footer-members {
    display: flex;
    min-width: 26px;
    justify-content: flex-end;
    margin-left: auto;
}

#section-demandas .kanban-card-footer-members .kanban-card-members,
#section-demandas.demandcore-board .kanban-card-footer-members .kanban-card-members {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    justify-content: flex-end;
}

#section-demandas .kanban-card-member-avatar,
#section-demandas.demandcore-board .kanban-card-member-avatar {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    border: 0;
    border-radius: 50%;
    background: #6d5bd4;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

#section-demandas .kanban-card-menu-btn,
#section-demandas.demandcore-board .kanban-card-menu-btn {
    top: 4px;
    right: 5px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
}

#section-demandas .kanban-card:hover .kanban-card-menu-btn,
#section-demandas .kanban-card-menu-btn:focus-visible,
#section-demandas.demandcore-board .kanban-card:hover .kanban-card-menu-btn,
#section-demandas.demandcore-board .kanban-card-menu-btn:focus-visible {
    opacity: 1;
}

#section-demandas .kanban-card-check,
#section-demandas.demandcore-board .kanban-card-check {
    top: 8px;
    left: 8px;
}

#section-demandas .kanban-add-card-btn,
#section-demandas.demandcore-board .kanban-add-card-btn {
    display: flex;
    flex: 0 0 auto;
    width: calc(100% - 10px);
    height: 42px;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 5px 8px;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 500;
}

#section-demandas .kanban-add-card-btn:hover,
#section-demandas.demandcore-board .kanban-add-card-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

#section-demandas .kanban-add-card-label,
#section-demandas.demandcore-board .kanban-add-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 1180px) {
    #section-demandas.demandcore-board .kanban-header-top {
        flex-wrap: wrap;
    }
    #section-demandas.demandcore-board .kanban-main-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    #section-demandas.demandcore-board {
        height: calc(100vh - 106px);
        min-height: 0;
    }
    #section-demandas.demandcore-board .kanban-header-top {
        gap: 0.85rem;
    }
    #section-demandas.demandcore-board .kanban-main-actions,
    #section-demandas.demandcore-board .kanban-action-bar {
        align-items: stretch;
        flex-direction: column;
    }
    #section-demandas.demandcore-board .kanban-main-actions .btn,
    #section-demandas.demandcore-board .kanban-filter-chip {
        width: 100%;
        justify-content: center;
    }
    #section-demandas .kanban-list,
    #section-demandas.demandcore-board .kanban-list {
        width: 86vw;
        min-width: 86vw;
        max-width: 86vw;
    }
}

.kanban-card-archived-style {
    opacity: 0.75;
    background: #1c1e24 !important;
    border: 1px dashed #3a4258 !important;
    filter: grayscale(65%);
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.kanban-card-archived-style:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: #bfc1c6 !important;
    border-style: solid !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

.kanban-card-archived-style .kanban-card-cover {
    opacity: 0.35;
}

.kanban-card-archived-style .archived-list-badge {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #8b95a5 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.68rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}





/* --- From styles/pages/dashboard.css --- */
/* ==========================================================================
   G2G PREMIUM — Dashboard (Visão Global)
   Escopo: #section-dashboard
   ========================================================================== */

/* ── Hero / Welcome Bar ─────────────────────────────────────────────────── */
.dashboard-nexus-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0 0 1.75rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.dashboard-nexus-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.dashboard-nexus-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-light);
}

.dashboard-nexus-copy h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.15;
}

.dashboard-nexus-copy p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.dashboard-nexus-status {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-shrink: 0;
}

.dashboard-nexus-status > div {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 82px;
}

.dashboard-nexus-status span {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
}

.dashboard-nexus-status strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

/* ── KPI Row ────────────────────────────────────────────────────────────── */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) { .dashboard-metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .dashboard-metrics-grid { grid-template-columns: 1fr; } }

/* Override stat-widget within dashboard */
#section-dashboard .stat-widget {
    min-height: 96px;
    padding: 1rem 1.125rem;
    gap: 0.875rem;
}

#section-dashboard .stat-value {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

#section-dashboard .stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

#section-dashboard .stat-helper {
    display: block;
    font-size: 0.68rem;
    color: var(--muted-2);
    margin-top: 3px;
}

/* ── 2-Column Layout ─────────────────────────────────────────────────────── */
.dashboard-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 1024px) {
    .dashboard-layout-grid { grid-template-columns: 1fr; }
}

.dashboard-main-col,
.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Action Panel ───────────────────────────────────────────────────────── */
.action-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.20s ease;
}

.action-panel:hover {
    border-color: var(--line-mid);
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 0;
}

.action-header h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Quick Actions Grid ─────────────────────────────────────────────────── */
.quick-actions-panel .shortcut-grid {
    padding: 1.125rem;
}

.modern-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

/* ── Campaign Wall ───────────────────────────────────────────────────────── */
.dashboard-campaign-wall {
    padding: 0.875rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.dashboard-campaign-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.875rem;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dashboard-campaign-card:hover {
    border-color: var(--line-mid);
    background: var(--surface-hover);
}

.dashboard-campaign-card.is-critical {
    border-color: rgba(220,38,38,0.20);
    background: rgba(220,38,38,0.04);
}

.dashboard-campaign-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-campaign-card-date {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--muted-2);
}

.dashboard-campaign-card-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.dashboard-campaign-card-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-campaign-card-meta {
    display: flex;
    gap: 0.625rem;
    font-size: 0.70rem;
    color: var(--muted-2);
    margin-top: 0.15rem;
}

.dashboard-campaign-card-meta i {
    font-size: 0.82rem;
    vertical-align: -1px;
}

/* ── Critical Alert ──────────────────────────────────────────────────────── */
.dashboard-campaign-alert {
    margin: 0.625rem 1.125rem 0;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.dashboard-campaign-alert.critical {
    background: rgba(220,38,38,0.07);
    border: 1px solid rgba(220,38,38,0.18);
    color: #fca5a5;
}

.dashboard-campaign-alert strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #f87171;
}

.dashboard-campaign-alert i {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.dashboard-campaign-empty,
.ui-empty-state {
    padding: 2rem 1.125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--muted-2);
    font-size: 0.875rem;
}

.dashboard-campaign-empty .empty-icon,
.ui-empty-state .empty-icon {
    font-size: 2rem;
    opacity: 0.30;
    display: block;
}

/* ── Scheduled List ──────────────────────────────────────────────────────── */
.dashboard-scheduled-list {
    padding: 0.625rem 1.125rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-scheduled-item {
    padding: 0.65rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition);
}

.dashboard-scheduled-item:hover {
    border-color: var(--line-mid);
    background: var(--surface-hover);
}

.dashboard-scheduled-item strong {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--text);
}

.dashboard-scheduled-item p {
    font-size: 0.74rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-scheduled-meta {
    display: flex;
    gap: 0.625rem;
    font-size: 0.68rem;
    color: var(--muted-2);
}

.dashboard-scheduled-meta i {
    font-size: 0.82rem;
    vertical-align: -1px;
}

/* ── Infra Panel ─────────────────────────────────────────────────────────── */
.dashboard-infra-panel .infra-metric {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 1.125rem;
    border-bottom: 1px solid var(--line-soft);
}

.dashboard-infra-panel .infra-metric:last-of-type {
    border-bottom: none;
}

.dashboard-infra-panel .infra-metric > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-infra-panel .infra-metric span {
    font-size: 0.76rem;
    color: var(--muted);
}

.dashboard-infra-panel .infra-metric strong {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--text);
}

/* Progress Bars */
.infra-bar {
    height: 3px;
    border-radius: 99px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.infra-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.infra-bar.cyan  span { background: #22d3ee; }
.infra-bar.green span { background: #34d399; }
.infra-bar.amber span { background: #fbbf24; }

/* Latency Pill */
.infra-pill {
    margin: 0.625rem 1.125rem 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.71rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.16);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.75rem;
    width: fit-content;
}

/* ── Users Presence Panel ────────────────────────────────────────────────── */
.dashboard-users-presence-list {
    padding: 0.5rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dashboard-users-presence-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border-radius: 8px;
    gap: 0.625rem;
    transition: background 0.15s ease;
}

.dashboard-users-presence-item:hover {
    background: rgba(255,255,255,0.03);
}

.dashboard-users-presence-main {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
    min-width: 0;
}

.dashboard-users-presence-name {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-users-presence-meta {
    font-size: 0.66rem;
    color: var(--muted-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Updates Panel ───────────────────────────────────────────────────────── */
.updates-panel .updates-list {
    padding: 0.875rem 1.125rem;
}

/* ── Online Status Dot ───────────────────────────────────────────────────── */
.presence-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--muted-2);
    flex-shrink: 0;
}

.presence-dot.online {
    background: var(--green);
    box-shadow: 0 0 0 2px rgba(22,163,74,0.20);
}

.presence-dot.away {
    background: var(--orange);
}


/* --- From styles/pages/login.css --- */
/* ==========================================================================
   Login (Premium Enterprise Design)
   ========================================================================== */

.premium-login-screen {
    background-color: #080c16;
    background-image: radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 40%),
                      radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.06), transparent 40%);
    color: #f8fafc;
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-premium-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
}

@media (max-width: 992px) {
    .login-premium-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* ================= LEFT SIDE: BRANDING ================= */

.login-premium-brand-col {
    position: relative;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 992px) {
    .login-premium-brand-col {
        display: none;
    }
}

.brand-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.ghost-widget {
    position: absolute;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.ghost-widget:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.w-1 { top: 15%; right: 10%; width: 280px; }
.w-2 { bottom: 20%; left: 15%; width: 220px; }
.w-3 { top: 45%; right: 25%; width: 250px; opacity: 0.6; }

.ghost-header { width: 40%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 1.5rem; }
.ghost-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 4px; margin-bottom: 0.8rem; }
.ghost-circle { width: 40px; height: 40px; border-radius: 50%; background: rgba(6, 182, 212, 0.1); margin-bottom: 1rem; }
.ghost-line { width: 100%; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-bottom: 0.5rem; }
.ghost-line.short { width: 60%; }

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.brand-logo {
    width: 140px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.brand-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-subheadline {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.brand-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.brand-bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.brand-bullets i {
    color: #06b6d4;
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

.brand-indicators {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.indicator-item i {
    font-size: 1.5rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.indicator-item span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indicator-item strong {
    display: block;
    font-size: 0.95rem;
    color: #f8fafc;
}

/* ================= RIGHT SIDE: LOGIN ================= */

.login-premium-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.login-glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

/* FORM HEADER */
.login-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-mobile-logo {
    display: none;
    width: 100px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 992px) {
    .login-mobile-logo { display: block; }
}

.login-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.5rem 0;
}

.login-card-header p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* FORM ELEMENTS */
.premium-form .input-block {
    margin-bottom: 1.25rem;
}

.premium-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.premium-form .input-wrapper:focus-within {
    background: rgba(30, 41, 59, 0.8);
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.premium-form .icon-left {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.premium-form .input-wrapper:focus-within .icon-left {
    color: #06b6d4;
}

.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #f8fafc;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.95rem;
    outline: none;
}

.premium-input::placeholder {
    color: #475569;
}

.premium-form .btn-append {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: #64748b;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.premium-form .btn-append:hover {
    color: #e2e8f0;
}

/* CHECKBOX */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.premium-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
}

.premium-checkbox input {
    opacity: 0;
    position: absolute;
}

.premium-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.premium-checkbox input:checked ~ .checkmark {
    background: #06b6d4;
    border-color: #06b6d4;
}

.premium-checkbox input:checked ~ .checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #0f172a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block;
    margin-top: -2px;
}

.premium-checkbox .label-text {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.premium-checkbox:hover .label-text {
    color: #e2e8f0;
}

/* CTA BUTTON */
.btn-premium {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.btn-premium:active {
    transform: translateY(0);
}

/* FOOTER */
.login-card-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-link {
    color: #06b6d4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.premium-link:hover {
    color: #67e8f9;
}

.microcopy {
    font-size: 0.75rem;
    color: #475569;
    margin: 0;
}


/* --- From styles/pages/static-index.css --- */
/* ==========================================================================
   index.html cleanup (inline style replacement)
   ========================================================================== */

.idx-hidden {
    display: none;
}

.idx-infra-fill-428 {
    width: 42.8%;
}

.idx-infra-fill-682 {
    width: 68.2%;
}

.idx-infra-fill-84 {
    width: 84%;
}

.idx-chat-panel {
    max-width: 760px;
    margin: 0 auto;
}

.idx-empty-state-solid {
    border-style: solid;
}

.idx-system-updates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.idx-system-updates-title {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.idx-system-updates-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
}

.idx-system-updates-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.idx-system-updates-head-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.idx-system-updates-warning-icon-wrap {
    display: flex;
    align-items: center;
    margin-top: -0.25rem;
    color: #f59e0b;
    font-size: 2.5rem;
    line-height: 1;
}

.idx-system-updates-warning-icon-main {
    margin-right: -1.2rem;
    color: #f8fafc;
}

.idx-system-updates-warning-icon-badge {
    z-index: 2;
    border-radius: 50%;
    background: var(--bg-color);
}

.idx-system-updates-subtitle {
    margin: 0 0 0.25rem 0;
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
}

.idx-system-updates-subtext {
    max-width: 500px;
    margin: 0;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.4;
}

.idx-system-updates-search-wrap {
    width: 100%;
    max-width: 400px;
}

.idx-system-updates-search-input {
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
}

.idx-system-updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idx-rh-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.idx-rh-period-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.idx-fw-bold {
    font-weight: bold;
}

/* Responsive */

@media (max-width: 1024px) {
    .login-new-container {
        grid-template-columns: 1fr;
    }
    .login-new-promo {
        min-height: 300px;
        padding: 2rem;
        justify-content: flex-start;
    }
    .login-new-card {
        min-height: 0;
        padding: 2rem;
    }
}


/* --- From styles/pages/system-screens.css --- */
/* ==========================================================================
   Calendario, chat, sugestoes, RH e telas especificas
   ========================================================================== */

.calendar-shell,
.meeting-room-card,
.managed-user-card,
.campaign-card,
.suggestion-record,
.rh-card {
    padding: 1rem;
}

.updates-list,
.dashboard-campaign-wall,
.dashboard-scheduled-list,
.dashboard-users-presence-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.65rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.85rem;
    padding: 1rem;
}

/* Padronizacao visual de todos os modulos */

.content-section.section-active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header .btn,
.section-header .btn-action {
    flex-shrink: 0;
}

.grid-2,
.grid-3,
.grid-4,
.os-grid,
.rh-dashboard-grid,
.suggestion-admin-metrics,
.calendar-summary-grid,
.meeting-room-grid,
.templates-grid,
.campaigns-grid {
    display: grid;
    gap: 1rem;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.os-grid,
.rh-dashboard-grid,
.suggestion-admin-metrics,
.calendar-summary-grid,
.meeting-room-grid,
.templates-grid,
.campaigns-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rh-table,
.os-table,
.calendar-table,
.meeting-room-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.rh-table th,
.rh-table td,
.os-table th,
.os-table td,
.calendar-table th,
.calendar-table td,
.meeting-room-table th,
.meeting-room-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--line-soft);
}

.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th {
    background: #252b38;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rh-table tbody tr:hover td,
.os-table tbody tr:hover td,
.calendar-table tbody tr:hover td,
.meeting-room-table tbody tr:hover td {
    background: rgba(93, 183, 231, 0.055);
}

.calendar-day,
.calendar-demand-item,
.calendar-demand-card,
.meeting-room-live-panel,
.meeting-room-call-shell,
.meeting-room-participant-card,
.suggestion-admin-metric-card,
.suggestion-admin-panel,
.suggestion-list-panel,
.suggestion-form-panel,
.suggestion-attachment-card,
.os-form-section,
.os-summary-card,
.os-kpi-card,
.os-ups-card,
.rh-batch-card,
.template-preview-bubble,
.template-preview-panel,
.update-item,
.notification-center-panel,
.notification-item {
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.update-item,
.notification-item {
    padding: 0.9rem !important;
}

.calendar-day:hover,
.calendar-demand-item:hover,
.meeting-room-participant-card:hover,
.suggestion-attachment-card:hover,
.rh-batch-card:hover,
.update-item:hover,
.notification-item:hover {
    border-color: #52617f !important;
    background: var(--surface-hover) !important;
}

.calendar-day.is-today,
.calendar-day.today {
    border-color: rgba(93, 183, 231, 0.55) !important;
    box-shadow: inset 0 0 0 1px rgba(93, 183, 231, 0.18);
}

.calendar-day.is-muted,
.calendar-day.muted {
    opacity: 0.58;
}

.template-preview-bubble {
    padding: 1rem !important;
}

.template-preview-cta,
.template-preview-inline-link {
    border-radius: 12px !important;
}

.suggestion-admin-list,
.suggestion-list,
.meeting-rooms-list,
.calendar-demands-list,
.rh-batches-list,
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dropzone,
.upload-dropzone,
.rh-attachments-dropzone,
.suggestion-attachments-dropzone {
    border: 1px dashed #52617f !important;
    border-radius: 16px !important;
    background: rgba(93, 183, 231, 0.055) !important;
    color: var(--text-soft) !important;
}

.dropzone:hover,
.upload-dropzone:hover,
.rh-attachments-dropzone:hover,
.suggestion-attachments-dropzone:hover,
.is-dragover {
    border-color: var(--blue) !important;
    background: rgba(93, 183, 231, 0.1) !important;
}


/* --- From styles/pages/demandas.css --- */
/* Animação de entrada */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-demand-card-premium {
    animation: slideInUp 0.3s ease-out;
}

.calendar-modern-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(24, 32, 48, 0.92);
    border-radius: 20px;
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.calendar-demands-toolbar-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.calendar-demands-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-nav-month {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    border: 1px solid rgba(93, 183, 231, 0.22);
    background: linear-gradient(180deg, rgba(93, 183, 231, 0.14), rgba(37, 43, 57, 0.95));
    color: #eff8ff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-month i {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.btn-nav-month:hover {
    background: linear-gradient(180deg, rgba(93, 183, 231, 0.34), rgba(53, 120, 246, 0.88));
    border-color: rgba(93, 183, 231, 0.7);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 10px 20px rgba(53, 120, 246, 0.22);
}

.btn-nav-month:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 183, 231, 0.24), 0 10px 20px rgba(53, 120, 246, 0.22);
}

.calendar-demands-month-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 0;
    min-width: 160px;
    text-align: center;
    padding: 0.28rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.calendar-demands-month-title::first-letter {
    text-transform: uppercase;
}

.calendar-demands-legend-premium {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-soft);
}

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

.dot.soon { background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.dot.overdue { background: var(--red); box-shadow: 0 0 10px var(--red); }

.dot.block { background: var(--purple); box-shadow: 0 0 10px var(--purple); }

.dot.holiday { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.calendar-demands-board-premium {
    width: 100%;
}

.calendar-demands-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 1.5rem;
    gap: 8px;
}

.calendar-demands-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem;
}

.calendar-demands-grid-premium {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.calendar-day-premium {
    aspect-ratio: 1.1 / 1;
    min-height: 120px;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.calendar-day-premium:not(.muted) {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-day-premium.month-start,
.calendar-day-premium.month-end {
    border-color: rgba(93, 183, 231, 0.35);
    box-shadow: inset 0 0 0 1px rgba(93, 183, 231, 0.12), 0 0 0 1px rgba(93, 183, 231, 0.08);
}

.calendar-day-premium.month-start {
    background: linear-gradient(180deg, rgba(93, 183, 231, 0.13), rgba(15, 23, 42, 0.6));
}

.calendar-day-premium.month-end {
    background: linear-gradient(180deg, rgba(145, 92, 255, 0.12), rgba(15, 23, 42, 0.6));
}

.calendar-day-premium.month-start::after,
.calendar-day-premium.month-end::after {
    content: attr(data-boundary);
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbeafe;
    background: rgba(8, 15, 28, 0.72);
    border: 1px solid rgba(93, 183, 231, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.calendar-day-premium.month-end::after {
    color: #f3e8ff;
    border-color: rgba(145, 92, 255, 0.24);
}

/* Member Avatar Styles */

/* Property Chip Styles (Labels/Tags) */

/* Barra de rolagem personalizada */

/* Menu item melhorado */

/* Estilos adicionais para o popover em modal */

/* Estilos para inputs dentro do popover */

/* Botões dentro do popover */

/* Lista inline (para membros, labels, etc.) */

/* Checkbox/Item de lista */


/* ==========================================================================
   Demandas - Board visual inspirado na referencia
   ========================================================================== */

/* ==========================================================================
   Estilização específica para Cartões Arquivados
   ========================================================================== */


/* --- From styles/pages/arquivados.css --- */
/* ==========================================================================
   Gestao de Demandas - Arquivados
   ========================================================================== */

#section-arquivados.archived-demandas-screen {
    --archived-bg: #171b24;
    --archived-sidebar: #111827;
    --archived-card: #1b2230;
    --archived-card-hover: #202838;
    --archived-border: #2d3748;
    --archived-primary: #06b6d4;
    --archived-text: #e2e8f0;
    --archived-muted: #94a3b8;
    --archived-success: #10b981;
    --archived-warning: #f59e0b;
    --archived-danger: #ef4444;

    display: flex;
    min-height: calc(100vh - 96px);
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: var(--archived-bg) !important;
    color: var(--archived-text);
}

.archived-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--archived-border);
    border-radius: 18px;
    background: var(--archived-card);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.archived-hero-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.archived-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--archived-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archived-kicker i {
    font-size: 1rem;
}

.archived-hero h2 {
    margin: 0;
    color: var(--archived-text);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1;
}

.archived-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--archived-muted);
    font-size: 0.98rem;
}

.archived-hero-actions {
    display: flex;
    min-width: min(520px, 100%);
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.archived-counter {
    display: inline-flex;
    min-width: 112px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--archived-border);
    border-radius: 14px;
    background: #171b24;
    color: var(--archived-text);
}

.archived-counter > span {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 850;
    line-height: 1;
}

.archived-counter small {
    display: flex;
    flex-direction: column;
    color: var(--archived-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.archived-counter strong {
    color: var(--archived-text);
}

.archived-search {
    display: inline-flex;
    width: min(280px, 100%);
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--archived-border);
    border-radius: 14px;
    background: #171b24;
    color: var(--archived-muted);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.archived-search:focus-within {
    border-color: rgba(6, 182, 212, 0.74);
    background: #171b24;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.archived-search i {
    color: var(--archived-primary);
    font-size: 1.05rem;
}

.archived-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--archived-text);
}

.archived-search input::placeholder {
    color: #64748b;
}

.archived-back-btn {
    min-height: 44px;
    border-color: rgba(6, 182, 212, 0.28) !important;
    border-radius: 14px !important;
    background: #1b2230 !important;
    color: #e0faff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.archived-back-btn:hover {
    border-color: rgba(6, 182, 212, 0.62) !important;
    background: #202838 !important;
    transform: translateY(-1px);
}

.archived-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 2px;
}

.archived-filter-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--archived-border);
    border-radius: 999px;
    background: #1b2230;
    color: var(--archived-muted);
    font-weight: 800;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.archived-filter-chip:hover {
    border-color: rgba(6, 182, 212, 0.36);
    background: #202838;
    color: var(--archived-text);
    transform: translateY(-1px);
}

.archived-filter-chip.active {
    border-color: rgba(6, 182, 212, 0.72);
    background: rgba(6, 182, 212, 0.1);
    color: #ecfeff;
    box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.18);
}

.archived-filter-chip span {
    display: inline-flex;
    min-width: 24px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #171b24;
    color: inherit;
    font-size: 0.72rem;
}

.archived-board {
    min-height: 360px;
    min-width: 0;
}

.kanban-archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
    gap: 16px;
    align-items: start;
    padding-bottom: 22px;
}

.archived-trello-card {
    position: relative;
    display: flex;
    min-height: 245px;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 17px;
    border: 1px solid var(--archived-border);
    border-radius: 16px;
    background: var(--archived-card);
    color: var(--archived-text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.archived-trello-card:hover {
    border-color: var(--archived-border);
    background: var(--archived-card-hover);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
    transform: translateY(-3px);
}

.archived-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--archived-primary);
}

.archived-priority-alta .archived-card-accent,
.archived-priority-urgente .archived-card-accent {
    background: var(--archived-danger);
}

.archived-status-done .archived-card-accent {
    background: var(--archived-success);
}

.archived-status-progress .archived-card-accent {
    background: var(--archived-warning);
}

.archived-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.archived-card-badges {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.archived-card-code,
.archived-status-badge,
.archived-trello-card .kanban-priority-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    line-height: 1;
}

.archived-card-code {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #171b24;
    color: #cbd5e1;
}

.archived-status-badge {
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.1);
    color: #a5f3fc;
}

.archived-status-done .archived-status-badge {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.12);
    color: #bbf7d0;
}

.archived-status-progress .archived-status-badge {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.archived-card-top time {
    flex: 0 0 auto;
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.archived-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.archived-card-body h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.25;
}

.archived-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--archived-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.archived-progress-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px;
    border: 1px solid var(--archived-border);
    border-radius: 12px;
    background: #171b24;
}

.archived-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 800;
}

.archived-progress-label span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.archived-progress-label strong {
    color: var(--archived-primary);
    font-size: 0.72rem;
}

.archived-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #2d3748;
}

.archived-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--archived-primary);
}

.archived-status-done .archived-progress span {
    background: var(--archived-success);
}

.archived-card-footer {
    display: flex;
    min-height: 30px;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--archived-muted);
    font-size: 0.75rem;
    font-weight: 750;
}

.archived-card-footer > span,
.archived-list-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: #171b24;
}

.archived-list-pill {
    max-width: 165px;
    overflow: hidden;
    color: #cbd5e1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archived-card-members {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
}

.archived-member-avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-left: -7px;
    border: 2px solid #1b2230;
    border-radius: 999px;
    background: #06b6d4;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
}

.archived-member-avatar:first-child {
    margin-left: 0;
}

.archived-member-empty {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
}

.archived-restore-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 11px;
    background: #171b24;
    color: #a5f3fc;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.archived-trello-card:hover .archived-restore-btn,
.archived-restore-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.archived-restore-btn:hover {
    background: rgba(6, 182, 212, 0.18);
}

.archived-empty,
.archived-loading-state {
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 34px;
    border: 1px dashed var(--archived-border);
    border-radius: 18px;
    background: #1b2230;
    color: var(--archived-muted);
    text-align: center;
}

.archived-empty i,
.archived-loading-state i {
    color: var(--archived-primary);
    font-size: 2rem;
}

.archived-empty h3 {
    margin: 0;
    color: var(--archived-text);
    font-size: 1.12rem;
}

.archived-empty p {
    max-width: 430px;
    margin: 0;
    color: var(--archived-muted);
}

@media (max-width: 1080px) {
    .archived-hero {
        grid-template-columns: 1fr;
    }

    .archived-hero-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    #section-arquivados.archived-demandas-screen {
        padding: 16px;
    }

    .archived-hero {
        padding: 18px;
        border-radius: 16px;
    }

    .archived-hero-actions,
    .archived-search,
    .archived-back-btn,
    .archived-counter {
        width: 100%;
    }

    .archived-back-btn,
    .archived-counter {
        justify-content: center;
    }

    .kanban-archived-grid {
        grid-template-columns: 1fr;
    }
}


/* --- From styles/pages/painel-sugestoes.css --- */
/* ==========================================================================
   Painel de Sugestoes - central de atendimento
   ========================================================================== */

#section-painel-sugestoes {
    --support-bg: #171b24;
    --support-panel: #1b2230;
    --support-panel-2: #202838;
    --support-border: #2d3748;
    --support-text: #e2e8f0;
    --support-muted: #94a3b8;
    --support-primary: #06b6d4;
    --support-success: #10b981;
    --support-warning: #f59e0b;

    gap: 18px;
    color: var(--support-text);
}

#section-painel-sugestoes .section-header,
#section-painel-sugestoes .suggestion-admin-hero,
#section-painel-sugestoes .suggestion-admin-panel {
    border: 1px solid var(--support-border) !important;
    border-radius: 16px !important;
    background: var(--support-panel) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

#section-painel-sugestoes .section-header {
    padding: 20px 22px;
}

#section-painel-sugestoes .section-title h2 {
    font-size: 1.65rem;
    font-weight: 850;
}

#section-painel-sugestoes .section-title p,
.suggestion-admin-hero-main p,
.suggestion-panel-heading p {
    color: var(--support-muted) !important;
}

.suggestion-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
    align-items: stretch;
    gap: 18px;
    padding: 20px;
}

.suggestion-admin-hero-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.suggestion-panel-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    color: var(--support-primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.suggestion-admin-hero-main h3,
.suggestion-panel-heading h3 {
    margin: 0;
    color: var(--support-text);
    font-weight: 850;
}

.suggestion-admin-hero-main h3 {
    font-size: 1.35rem;
}

.suggestion-admin-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.suggestion-admin-metric-card {
    display: flex;
    min-height: 92px;
    justify-content: space-between;
    flex-direction: column;
    padding: 14px !important;
    border: 1px solid var(--support-border) !important;
    border-radius: 14px !important;
    background: #171b24 !important;
}

.suggestion-admin-metric-card span {
    color: var(--support-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.suggestion-admin-metric-card strong {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.suggestion-admin-panel {
    padding: 18px !important;
}

.suggestion-panel-heading-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--support-border);
}

.suggestion-admin-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.suggestion-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--support-border);
    border-radius: 16px;
    background: #171b24;
}

.suggestion-ticket.is-archived {
    opacity: 0.9;
}

.suggestion-ticket-main,
.suggestion-ticket-side {
    min-width: 0;
}

.suggestion-ticket-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.suggestion-ticket-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--support-border);
    border-radius: 14px;
    background: var(--support-panel);
}

.suggestion-ticket-protocol {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--support-primary);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.suggestion-ticket-header h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.3;
}

.suggestion-ticket-block,
.suggestion-ticket-side-card,
.suggestion-ticket-history {
    border: 1px solid var(--support-border);
    border-radius: 14px;
    background: var(--support-panel);
}

.suggestion-ticket-block {
    padding: 14px;
}

.suggestion-ticket-block-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.suggestion-ticket-block-title i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--support-primary);
    font-size: 1rem;
}

.suggestion-ticket-block-title h5,
.suggestion-ticket-side-card h5,
.suggestion-ticket-actions-card h5 {
    margin: 0;
    color: var(--support-text);
    font-size: 0.92rem;
    font-weight: 850;
}

.suggestion-ticket-block-title span {
    display: block;
    margin-top: 2px;
    color: var(--support-muted);
    font-size: 0.78rem;
}

.suggestion-ticket-summary {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: #171b24;
    color: #dbe3f0;
    line-height: 1.6;
}

.suggestion-ticket-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.suggestion-ticket-content-grid > div {
    padding: 11px;
    border: 1px solid var(--support-border);
    border-radius: 12px;
    background: #171b24;
}

.suggestion-ticket-label,
.suggestion-ticket-meta-list span {
    display: block;
    margin-bottom: 5px;
    color: var(--support-muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.suggestion-ticket-content-grid p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.suggestion-ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.suggestion-ticket-span-2 {
    grid-column: 1 / -1;
}

.suggestion-ticket .form-control {
    border-color: var(--support-border) !important;
    background: #171b24 !important;
}

.suggestion-ticket textarea.form-control {
    min-height: 112px;
    resize: vertical;
}

.suggestion-ticket-note {
    min-height: 82px !important;
}

.suggestion-ticket-side-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.suggestion-ticket-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-ticket-meta-list > div {
    padding: 10px;
    border: 1px solid var(--support-border);
    border-radius: 12px;
    background: #171b24;
}

.suggestion-ticket-meta-list strong {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: var(--support-text);
    font-size: 0.84rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-ticket-meta-list i {
    color: var(--support-primary);
}

.suggestion-ticket-actions-card .btn {
    width: 100%;
    justify-content: center;
}

.suggestion-ticket-actions-card .btn-primary {
    background: #06b6d4 !important;
    border-color: #06b6d4 !important;
    color: #06202a !important;
}

.suggestion-ticket-history {
    overflow: hidden;
}

.suggestion-ticket-history summary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    color: var(--support-text);
    cursor: pointer;
    font-weight: 850;
    list-style: none;
}

.suggestion-ticket-history summary::-webkit-details-marker {
    display: none;
}

.suggestion-ticket-history summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.suggestion-ticket-history summary i {
    color: var(--support-primary);
}

.suggestion-ticket-history[open] summary .ph-caret-down {
    transform: rotate(180deg);
}

.suggestion-ticket-history-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 14px 14px;
}

.suggestion-ticket-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--support-border);
}

.suggestion-ticket-history-row span {
    color: var(--support-muted);
}

.suggestion-ticket-history-row strong {
    color: #cbd5e1;
    font-weight: 750;
}

@media (max-width: 1180px) {
    .suggestion-admin-hero,
    .suggestion-ticket {
        grid-template-columns: 1fr;
    }

    .suggestion-ticket-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .suggestion-ticket-history {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .suggestion-admin-metrics,
    .suggestion-ticket-side,
    .suggestion-ticket-content-grid,
    .suggestion-ticket-form-grid {
        grid-template-columns: 1fr !important;
    }

    .suggestion-panel-heading-inline,
    .suggestion-ticket-header {
        flex-direction: column;
    }
}


/* --- From styles/pages/sugestoes.css --- */
/* ==========================================================================
   Sugestoes - portal de contribuicao interna
   ========================================================================== */

#section-suggestions.suggestions-portal-screen {
    --feedback-bg: #171b24;
    --feedback-card: #1b2230;
    --feedback-card-2: #202838;
    --feedback-border: #2d3748;
    --feedback-primary: #06b6d4;
    --feedback-text: #e2e8f0;
    --feedback-muted: #94a3b8;
    gap: 18px;
}

.suggestion-portal-hero,
.suggestion-compose-card,
.suggestion-history-card {
    border: 1px solid var(--feedback-border) !important;
    border-radius: 18px !important;
    background: var(--feedback-card) !important;
    color: var(--feedback-text);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.suggestion-portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 22px;
    align-items: stretch;
    padding: 24px;
}

.suggestion-portal-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
}

.suggestion-portal-kicker,
.suggestion-panel-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--feedback-primary);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.suggestion-portal-copy h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1;
}

.suggestion-portal-copy p,
.suggestion-panel-heading p,
.suggestion-step-content small,
.suggestion-portal-guide span {
    color: var(--feedback-muted) !important;
}

.suggestion-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.suggestion-context-chips span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--feedback-border);
    border-radius: 999px;
    background: #171b24;
    color: #cbd5e1;
    font-weight: 800;
}

.suggestion-context-chips i {
    color: var(--feedback-primary);
}

.suggestion-portal-guide {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--feedback-border);
    border-radius: 16px;
    background: #171b24;
}

.suggestion-portal-guide strong {
    color: #ffffff;
    font-size: 1rem;
}

.suggestion-portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    align-items: start;
    gap: 18px;
}

.suggestion-compose-card,
.suggestion-history-card {
    padding: 18px !important;
}

.suggestion-panel-heading,
.suggestion-panel-heading-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--feedback-border);
}

.suggestion-panel-heading h3 {
    margin: 0;
    color: var(--feedback-text);
    font-size: 1.15rem;
    font-weight: 850;
}

.suggestion-step-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
}

.suggestion-step-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--feedback-border);
    border-radius: 16px;
    background: #171b24;
}

.suggestion-step-index {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--feedback-primary);
    font-weight: 900;
}

.suggestion-step-content label {
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.suggestion-step-content .form-control {
    border-color: var(--feedback-border) !important;
    border-radius: 14px !important;
    background: var(--feedback-card) !important;
}

.suggestion-step-content textarea.form-control {
    min-height: 170px;
    line-height: 1.65;
    resize: vertical;
}

.suggestion-modern-dropzone {
    position: relative;
    display: flex !important;
    min-height: 154px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px !important;
    border: 1px dashed #3a4658 !important;
    border-radius: 16px !important;
    background: var(--feedback-card) !important;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.suggestion-modern-dropzone:hover,
.suggestion-modern-dropzone.is-dragover {
    border-color: var(--feedback-primary) !important;
    background: var(--feedback-card-2) !important;
    transform: translateY(-1px);
}

.suggestion-modern-dropzone > i {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--feedback-primary);
    font-size: 1.55rem;
}

.suggestion-modern-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.suggestion-attachments-dropzone-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.suggestion-attachments-dropzone-copy strong {
    color: #f8fafc;
    font-size: 0.98rem;
}

.suggestion-attachments-dropzone-copy span {
    color: var(--feedback-muted);
    font-size: 0.86rem;
}

.suggestion-attachments-preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.suggestion-submit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--feedback-border);
    border-radius: 16px;
    background: #171b24;
}

.suggestion-submit-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.suggestion-submit-card strong {
    color: #ffffff;
}

.suggestion-submit-card span {
    color: var(--feedback-muted);
    font-size: 0.86rem;
}

.suggestion-submit-btn {
    min-height: 50px;
    padding-inline: 22px !important;
    border-color: var(--feedback-primary) !important;
    border-radius: 15px !important;
    background: var(--feedback-primary) !important;
    color: #06202a !important;
    font-size: 0.95rem;
    font-weight: 900 !important;
}

.suggestion-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}

.suggestion-history-item {
    position: relative;
    display: grid !important;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 14px !important;
    border: 1px solid var(--feedback-border) !important;
    border-radius: 15px !important;
    background: #171b24 !important;
}

.suggestion-history-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--feedback-primary);
}

.suggestion-record-title {
    color: #f8fafc;
    font-weight: 850;
}

.suggestion-record-preview {
    margin-top: 4px;
    color: var(--feedback-muted) !important;
}

.suggestion-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
}

.suggestion-record-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a8b3c7;
    font-size: 0.76rem;
    font-weight: 750;
}

.suggestion-record-meta i {
    color: var(--feedback-primary);
}

.suggestion-view-btn {
    min-height: 38px;
    border-radius: 12px !important;
}

@media (max-width: 1180px) {
    .suggestion-portal-hero,
    .suggestion-portal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .suggestion-portal-hero,
    .suggestion-compose-card,
    .suggestion-history-card {
        padding: 16px !important;
    }

    .suggestion-step-card,
    .suggestion-history-item {
        grid-template-columns: 1fr !important;
    }

    .suggestion-step-index {
        width: 30px;
        height: 30px;
    }

    .suggestion-submit-card,
    .suggestion-panel-heading,
    .suggestion-panel-heading-inline {
        align-items: stretch;
        flex-direction: column;
    }

    .suggestion-submit-btn {
        width: 100%;
        justify-content: center;
    }
}


/* --- From styles/pages/os-colaborador.css --- */
/* ==========================================================================
   OS Colaborador — Compact + Refined Premium Layout
   Inspirado em Linear, Retool e Notion
   ========================================================================== */

/* ── Section wrapper ───────────────────────────────────────────────────── */
#section-os-colaborador {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── 1. COMPACT HEADER ─────────────────────────────────────────────────── */
#section-os-colaborador .os-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

#section-os-colaborador .os-compact-header .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

#section-os-colaborador .os-compact-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -0.02em;
}

#section-os-colaborador .os-compact-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    padding-left: 0.75rem;
    border-left: 2px solid var(--border-light);
    line-height: 1;
}

#section-os-colaborador .os-compact-header .os-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#section-os-colaborador .os-compact-header .btn-secondary-compact {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

#section-os-colaborador .os-compact-header .btn-secondary-compact:hover {
    color: var(--text-color);
    background: var(--surface-hover);
    border-color: var(--border);
}

/* ── 2. MINI STAT CARDS ────────────────────────────────────────────────── */
#section-os-colaborador .os-metrics-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#section-os-colaborador .os-metric-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: #131b26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    flex: 1 1 0;
    min-width: 160px;
    height: 90px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: default;
}

#section-os-colaborador .os-metric-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

#section-os-colaborador .os-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#section-os-colaborador .os-metric-icon i {
    font-size: 1.15rem;
}

#section-os-colaborador .os-metric-item.blue  .os-metric-icon { background: rgba(59, 130, 246, 0.1);  color: #3B82F6; }
#section-os-colaborador .os-metric-item.green .os-metric-icon { background: rgba(16, 185, 129, 0.1); color: #10B981; }
#section-os-colaborador .os-metric-item.purple .os-metric-icon { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
#section-os-colaborador .os-metric-item.orange .os-metric-icon { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
#section-os-colaborador .os-metric-item.red   .os-metric-icon { background: rgba(239, 68, 68, 0.1);  color: #EF4444; }

#section-os-colaborador .os-metric-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

#section-os-colaborador .os-metric-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    white-space: nowrap;
}

#section-os-colaborador .os-metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Taxa bar dentro de um metric card */
#section-os-colaborador .os-metric-taxa-mini {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

#section-os-colaborador .os-metric-taxa-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

#section-os-colaborador .os-metric-taxa-fill {
    height: 100%;
    background: #1e7fe0;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* ── 3. FILTER TOOLBAR ─────────────────────────────────────────────────── */
#section-os-colaborador .os-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

#section-os-colaborador .os-filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border-light);
    flex-shrink: 0;
}

#section-os-colaborador .os-filter-toolbar .input-block {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    flex: 0 1 auto;
}

#section-os-colaborador .os-filter-toolbar label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

#section-os-colaborador .os-filter-toolbar .form-control {
    padding: 0.3rem 0.6rem;
    font-size: 0.83rem;
    height: 32px;
    min-width: 140px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border-color: var(--border-light);
}

#section-os-colaborador .os-filter-toolbar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

#section-os-colaborador .os-filter-toolbar .btn {
    height: 32px;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* ── 4. OS HYBRID TABLE ────────────────────────────────────────────────── */
.os-hybrid-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.os-hybrid-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.os-hybrid-table thead tr {
    background: var(--surface-hover);
}

.os-hybrid-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.65rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface-hover);
}

.os-hybrid-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.os-hybrid-table tr:last-child td {
    border-bottom: none;
}

.os-hybrid-table tbody tr {
    transition: background-color 0.12s ease;
}

.os-hybrid-table tbody tr:hover {
    background: var(--surface-hover);
}

/* ── 5. TABLE CELL COMPONENTS ──────────────────────────────────────────── */
.os-cell-ref {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.85rem;
    letter-spacing: 0;
}

.os-cell-ref-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.1rem;
}

/* Avatar + name */
.os-cell-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.os-cell-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.os-cell-user-name {
    font-weight: 600;
    font-size: 0.87rem;
    color: var(--text-color);
}

/* Status + Badges */
.os-status-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.os-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    white-space: nowrap;
}

.os-table-badge i {
    font-size: 0.85rem;
}

.os-table-badge.status-open {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.os-table-badge.status-done {
    color: #10B981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.os-table-badge.warning {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Date cell */
.os-cell-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── 6. ACTION GROUP (Toolbar agrupado) ────────────────────────────────── */
.os-action-group {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    width: fit-content;
    margin-left: auto;
}

.os-action-group .os-action-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.os-action-group .os-action-btn:last-child {
    border-right: none;
}

.os-action-group .os-action-btn:hover {
    background: var(--surface-hover);
    color: var(--text-color);
}

/* Action-specific hovers */
.os-action-group .os-action-btn.view:hover  { color: var(--primary); background: rgba(99, 102, 241, 0.07); }
.os-action-group .os-action-btn.pdf:hover   { color: #EF4444; background: rgba(239, 68, 68, 0.07); }
.os-action-group .os-action-btn.finish:hover { color: #10B981; background: rgba(16, 185, 129, 0.07); }
.os-action-group .os-action-btn.edit:hover  { color: var(--primary); background: rgba(99, 102, 241, 0.07); }
.os-action-group .os-action-btn.del:hover   { color: #EF4444; background: rgba(239, 68, 68, 0.07); }

/* ── 7. EMPTY STATE ────────────────────────────────────────────────────── */
.os-table-empty td {
    padding: 3.5rem 1.5rem !important;
    text-align: center;
    color: var(--text-muted);
}

.os-table-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.os-table-empty-inner i {
    font-size: 2.2rem;
    opacity: 0.3;
}

.os-table-empty-inner p {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── 8. PERIOD GROUP STRUCTURE ─────────────────────────────────────────── */
.os-period-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.os-period-group:last-child {
    margin-bottom: 0;
}

.os-period-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.os-period-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    color: #94a3b8;
}

.os-period-date {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.os-period-separator {
    color: #94a3b8;
}

.os-period-count {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: none;
    padding: 0;
}

.os-period-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-left: 0.75rem;
}

.os-period-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── 9. HORIZONTAL COMPACT CARD ────────────────────────────────────────── */
.os-hcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #131b26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 72px;
    padding: 0.75rem 1rem;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.os-hcard:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1c2533;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.os-hcard-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 280px;
    min-width: 0;
}

.os-hcard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e7fe0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(30, 127, 224, 0.2);
}

.os-hcard-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.os-hcard-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.os-hcard-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-hcard-sublabel {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.os-hcard-sublabel i {
    font-size: 0.85rem;
}

.os-hcard-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.os-hcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.os-hcard-badge.open {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.os-hcard-badge.done {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.os-hcard-badge.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.os-hcard-badge.warning-eval {
    color: #d97706;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.15);
    text-transform: none;
    font-size: 12px;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
}

.os-hcard-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.os-hcard-date {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.os-hcard-date i {
    font-size: 0.85rem;
}

.os-hcard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
}

.os-hcard-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.os-hcard-action:hover {
    transform: translateY(-2px);
}

.os-hcard-action.view { color: #60a5fa; }
.os-hcard-action.view:hover { background: rgba(96, 165, 250, 0.1); }

.os-hcard-action.pdf { color: #60a5fa; }
.os-hcard-action.pdf:hover { background: rgba(96, 165, 250, 0.1); }

.os-hcard-action.finish { color: #34d399; }
.os-hcard-action.finish:hover { background: rgba(52, 211, 153, 0.1); }

.os-hcard-action.restore { color: #34d399; }
.os-hcard-action.restore:hover { background: rgba(52, 211, 153, 0.1); }

.os-hcard-action.edit { color: #34d399; }
.os-hcard-action.edit:hover { background: rgba(52, 211, 153, 0.1); }

.os-hcard-action.del { color: #f87171; }
.os-hcard-action.del:hover { background: rgba(248, 113, 113, 0.1); }

/* ── 10. EMPTY STATE ───────────────────────────────────────────────────── */
.os-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    text-align: center;
}

.os-empty-state i {
    font-size: 2.5rem;
    opacity: 0.25;
}

.os-empty-state p {
    font-size: 0.87rem;
    margin: 0;
}

/* ── Container holds period groups ─────────────────────────────────────── */
#os-table-wrapper,
#grid-fichas-os {
    padding: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ==========================================================================
   EXECUTIVE COCKPIT MODAL (Ficha O.S)
   ========================================================================== */

/* ── 11. COCKPIT HEADER ────────────────────────────────────────────────── */
.os-cockpit-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.os-cockpit-identity {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 2rem 1.25rem;
}

.os-cockpit-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

.os-cockpit-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.os-cockpit-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.os-cockpit-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.os-cockpit-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.os-ctag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border-light);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-md);
}

.os-ctag i {
    font-size: 0.85rem;
}

.os-ctag.os-ctag-status {
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.2);
}

.os-cockpit-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-cockpit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 36px;
    padding: 0 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.os-cockpit-btn:hover {
    background: var(--surface-hover);
    color: var(--text-color);
    border-color: var(--border);
}

.os-cockpit-close {
    width: 36px;
    padding: 0;
}

.os-cockpit-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ── 12. KPI STRIP ─────────────────────────────────────────────────────── */
.os-kpi-strip {
    display: flex;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
    overflow-x: auto;
}

.os-kpi-chip {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-right: 1px solid var(--border-light);
    transition: background 0.2s;
}

.os-kpi-chip:last-child {
    border-right: none;
}

.os-kpi-chip:hover {
    background: var(--surface-hover);
}

.os-kpi-chip i {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.os-kpi-chip-body {
    display: flex;
    flex-direction: column;
}

.os-kpi-chip-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.os-kpi-chip-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ── 13. PREMIUM TABS ──────────────────────────────────────────────────── */
.os-cockpit-tabs {
    display: flex;
    padding: 0 2rem;
    gap: 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    overflow-x: auto;
}

.os-ctab {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.os-ctab i {
    font-size: 1rem;
    opacity: 0.7;
}

.os-ctab:hover {
    color: var(--text-color);
}

.os-ctab.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

.os-ctab.active i {
    opacity: 1;
}

/* ── 14. MODAL BODY REFINEMENTS ────────────────────────────────────────── */
.modal-os-wide .os-modal-body {
    padding: 2rem;
    background: var(--bg);
}

.os-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Simplify panels inside modal to look less like nested boxes */
.modal-os-wide .os-panel-base {
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.modal-os-wide .os-section-heading {
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

/* Adjust table shells */
.modal-os-wide .os-table-shell {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-os-wide .table th {
    background: var(--surface-hover);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}

.modal-os-wide .table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.modal-os-wide .table tr:last-child td {
    border-bottom: none;
}

.modal-os-wide .table input.form-control {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.modal-os-wide .table input.form-control:hover {
    background: rgba(0,0,0,0.02);
    border-color: var(--border-light);
}

.modal-os-wide .table input.form-control:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.modal-os-wide .os-inline-summary {
    width: 100%;
    margin-top: 1rem;
    background: var(--surface-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-os-wide .os-inline-summary td {
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-os-wide .os-inline-summary td:last-child {
    text-align: right;
    color: var(--primary);
    font-size: 1.1rem;
}

.modal-os-wide .os-subpanel {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.modal-os-wide .os-subpanel h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-os-wide .os-subpanel h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
}

.modal-os-wide .os-subpanel-success h4::before {
    background: #10B981;
}

.modal-os-wide .os-subpanel-accent h4::before {
    background: #8B5CF6;
}

.modal-os-wide .os-panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}


/* --- From styles/pages/sala-reuniao.css --- */
/* ==========================================================================
   SALA DE REUNIÃO — CSS Exclusivo
   Arquivo isolado para a tela Sala de Reunião.
   Não interferir com outros módulos.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. SECTION HEADER — Toolbar executiva
   ------------------------------------------------------------------ */
#section-sala-reuniao .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

#section-sala-reuniao .section-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

#section-sala-reuniao .section-title p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ------------------------------------------------------------------
   2. ABAS PREMIUM (overrides isolados ao section-sala-reuniao)
   ------------------------------------------------------------------ */
#section-sala-reuniao .os-cockpit-tabs {
    padding: 0 1.5rem;
    gap: 0;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

#section-sala-reuniao .os-ctab {
    padding: 0.9rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    gap: 0.5rem;
}

#section-sala-reuniao .os-ctab i {
    font-size: 0.95rem;
    opacity: 0.7;
}

#section-sala-reuniao .os-ctab.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}

#section-sala-reuniao .os-ctab.active i {
    opacity: 1;
}

/* Tab counter badge */
.mr-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0.1rem 0.35rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    margin-left: 0.3rem;
    transition: all 0.2s;
}

#section-sala-reuniao .os-ctab.active .mr-tab-count {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

/* ------------------------------------------------------------------
   3. SUBVIEWS — painéis das abas
   ------------------------------------------------------------------ */
.section-subview {
    display: none;
}

/* ------------------------------------------------------------------
   4. GRID DE CARDS
   ------------------------------------------------------------------ */
.mr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}

/* ──────────────────────────────────────────────────────────────────
   SALA DE REUNIÃO - HORIZONTAL COMPACT LIST LAYOUT (LIKE O.S.)
   ────────────────────────────────────────────────────────────────── */
.mr-period-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mr-period-group:last-child {
    margin-bottom: 0;
}

.mr-period-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.mr-period-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mr-period-date {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.mr-period-latest .mr-period-date {
    color: var(--text-color);
}

.mr-period-count {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
}

.mr-period-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.mr-period-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.5rem 0;
}


.mr-hcard {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    min-height: 62px;
    padding: 0.5rem 0.8rem;
    gap: 1rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.mr-hcard:hover {
    border-color: var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: var(--surface-hover);
}

.mr-hcard.mr-card-active {
    border-left: 3px solid #1e7fe0;
}

.mr-hcard.mr-card-archived {
    opacity: 0.85;
    background: var(--surface);
    border-left: 3px solid #64748b;
}

.mr-hcard.mr-card-archived:hover {
    opacity: 1;
    border-color: var(--border);
}

/* Left zone */
.mr-hcard-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 260px;
    min-width: 0;
}

.mr-hcard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e7fe0 0%, #3b94f0 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(30, 127, 224, 0.25);
}

.mr-hcard-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mr-hcard-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mr-hcard-sublabel {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mr-hcard-sublabel i {
    font-size: 0.75rem;
}

/* Center zone */
.mr-hcard-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.mr-hcard-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.mr-hcard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.mr-hcard-badge i {
    font-size: 0.75rem;
}

.mr-hcard-badge.open {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.mr-hcard-badge.done {
    color: #10B981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.mr-hcard-badge.warning {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.mr-hcard-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    margin-left: auto;
}

.mr-hcard-date i {
    font-size: 0.8rem;
}

/* Inline Participants override */
.mr-hcard-participants {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.mr-hcard-participants .mr-card-participants {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100%;
}

.mr-hcard-participants .mr-card-avatar-group {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.mr-hcard-participants .mr-card-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.65rem !important;
    box-shadow: none !important;
    border: 2px solid var(--surface) !important;
}

.mr-hcard-participants .mr-card-participants-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 250px;
}

/* Right zone: action toolbar */
.mr-hcard-right {
    flex-shrink: 0;
}

.mr-hcard-actions {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
}

.mr-hcard-action {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.mr-hcard-action-sep {
    width: 1px;
    height: 18px;
    background: var(--border-light);
    flex-shrink: 0;
}

.mr-hcard-action:hover           { background: var(--surface-hover); color: var(--text-color); }
.mr-hcard-action.call:hover      { color: #1e7fe0;  background: rgba(30, 127, 224, 0.08); }
.mr-hcard-action.view:hover      { color: #1e7fe0;  background: rgba(30, 127, 224, 0.08); }
.mr-hcard-action.edit:hover      { color: #1e7fe0;  background: rgba(30, 127, 224, 0.08); }
.mr-hcard-action.finish:hover    { color: #10B981;  background: rgba(16, 185, 129, 0.07); }
.mr-hcard-action.restore:hover   { color: #10B981;  background: rgba(16, 185, 129, 0.07); }
.mr-hcard-action.del:hover       { color: #EF4444;  background: rgba(239, 68, 68, 0.07); }

/* Responsive mobile styles */
@media (max-width: 768px) {
    .mr-hcard {
        flex-wrap: wrap;
        min-height: auto;
        gap: 0.75rem;
        padding: 0.8rem;
    }

    .mr-hcard-left {
        flex: 1 1 100%;
    }

    .mr-hcard-center {
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .mr-hcard-date {
        margin-left: 0;
        width: 100%;
    }

    .mr-hcard-right {
        width: 100%;
    }

    .mr-hcard-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .mr-hcard-action {
        flex: 1;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ------------------------------------------------------------------
   5. MEETING CARD BASE
   ------------------------------------------------------------------ */
.mr-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* ── 5a. Card Ativo ── */
.mr-card-active {
    border-top: 3px solid var(--primary);
}

.mr-card-active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--border);
}

/* ── 5b. Card Arquivado ── */
.mr-card-archived {
    opacity: 0.75;
    background: var(--bg);
}

.mr-card-archived:hover {
    opacity: 1;
    border-color: var(--border);
}

/* ------------------------------------------------------------------
   6. TOPO DO CARD
   ------------------------------------------------------------------ */
.mr-card-top {
    padding: 1.25rem 1.25rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mr-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mr-card-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.mr-card-status-badge.is-scheduled {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mr-card-status-badge.is-finalized {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mr-card-status-badge.is-archived {
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Tipo (Videoconferência / Link Externo / Histórico) */
.mr-card-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.mr-card-type i {
    font-size: 0.85rem;
}

.mr-card-active .mr-card-type {
    color: var(--primary);
}

/* Título */
.mr-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

/* Data */
.mr-card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mr-card-active .mr-card-date {
    font-weight: 600;
    color: var(--text-color);
}

/* ------------------------------------------------------------------
   7. MEIO DO CARD
   ------------------------------------------------------------------ */
.mr-card-middle {
    padding: 0.5rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Descrição */
.mr-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bloco de participantes */
.mr-card-participants {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    min-height: 44px;
}

.mr-card-participants.is-broadcast {
    justify-content: center;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    gap: 0.4rem;
}

/* Grupo de avatares */
.mr-card-avatar-group {
    display: flex;
    align-items: center;
}

.mr-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    margin-left: -7px;
    flex-shrink: 0;
}

.mr-card-avatar:first-child {
    margin-left: 0;
}

.mr-card-avatar-more {
    background: var(--surface-hover);
    color: var(--text-muted);
    font-size: 0.6rem;
    border-color: var(--border-light);
}

.mr-card-participants-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* ------------------------------------------------------------------
   8. RODAPÉ DO CARD
   ------------------------------------------------------------------ */
.mr-card-bottom {
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

.mr-card-archived .mr-card-bottom {
    background: transparent;
}

.mr-card-primary-action {
    width: 100%;
}

.mr-card-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.1rem;
}

/* Botão principal (Entrar / Visualizar) */
.mr-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
}

.mr-card-active .mr-btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 85%, black);
    transform: translateY(-1px);
}

.mr-card-archived .mr-btn-primary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.mr-card-archived .mr-btn-primary:hover {
    background: var(--surface-hover);
    color: var(--text-color);
    border-color: var(--border);
}

/* Botões ícone (Editar, Excluir, Reativar, Ver) */
.mr-btn-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.18s;
}

.mr-btn-icon:hover {
    background: var(--surface-hover);
    color: var(--text-color);
    border-color: var(--border);
}

.mr-btn-icon.mr-btn-success:hover {
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.06);
}

.mr-btn-icon.mr-btn-danger:hover {
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.06);
}

/* ------------------------------------------------------------------
   9. ESTADOS VAZIOS
   ------------------------------------------------------------------ */
.mr-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: 14px;
}

.mr-empty-icon {
    font-size: 2.8rem;
    color: var(--primary);
    opacity: 0.18;
    margin-bottom: 1rem;
}

.mr-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.mr-empty-state p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    max-width: 360px;
}

.mr-empty-archived {
    background: transparent;
    border-color: var(--border-light);
    border-style: dashed;
}

.mr-empty-archived .mr-empty-icon {
    color: var(--text-muted);
}

/* ------------------------------------------------------------------
   10. RESPONSIVO
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .mr-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    #section-sala-reuniao .os-cockpit-tabs {
        padding: 0 1rem;
        gap: 0;
    }

    #section-sala-reuniao .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}


/* --- From styles/pages/rh.css --- */
/* ==========================================================================
   Módulo RH: Gestão de Atestados e Ajuste de Ponto
   Visual Premium e Compacto (Linear / Notion inspired)
   ========================================================================== */

/* Header da Seção (Toolbar compacta) */
#section-rh .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    min-height: auto;
}

#section-rh .section-header::after {
    display: none; /* remove gradient excessivo */
}

#section-rh .section-title h2 {
    font-size: 1.1rem;
    margin: 0;
}

#section-rh .section-title p {
    font-size: 0.82rem;
    margin: 2px 0 0 0;
    max-width: 100%;
}

#section-rh .rh-header-actions {
    gap: 8px;
}

#section-rh .rh-header-actions .btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Métricas Compactas (Mini Stats) */
#section-rh .rh-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

#section-rh .rh-overview-grid .stat-widget {
    min-height: 64px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;
}

#section-rh .rh-overview-grid .stat-widget::before {
    display: none; /* Remove glow do stat-widget */
}

#section-rh .rh-overview-grid .stat-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
}

#section-rh .rh-overview-grid .stat-content {
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0;
}

#section-rh .rh-overview-grid .stat-value {
    font-size: 1.25rem !important;
    font-weight: 700;
}

#section-rh .rh-overview-grid .stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted);
}

/* Abas limpas */
#section-rh .section-subnav {
    padding: 6px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 1rem;
    gap: 6px;
    display: inline-flex;
}

#section-rh .section-subnav-btn {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 6px !important;
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--muted);
}

#section-rh .section-subnav-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

#section-rh .section-subnav-btn.active {
    background: var(--surface-3) !important;
    color: var(--text) !important;
    border: none !important;
}

#section-rh .section-subnav-btn::before {
    display: none;
}

/* Filtros em Toolbar horizontal */
#section-rh .rh-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
}

#section-rh .rh-filter-panel .input-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 1;
    min-width: 140px;
}

#section-rh .rh-filter-panel label {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
    white-space: nowrap;
}

#section-rh .rh-filter-panel .form-control {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.82rem;
    border-radius: 6px;
    background: var(--surface);
    border-color: var(--line);
    width: 100%;
}

#section-rh .rh-filter-panel .rh-filter-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

#section-rh .rh-filter-panel .rh-filter-actions .btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
}

#section-rh .rh-filter-panel .rh-filter-actions .btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Tabelas Profissionais Premium */
#section-rh .rh-table-shell {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}

#section-rh .rh-table {
    width: 100%;
    border-collapse: collapse;
}

#section-rh .rh-table th {
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: transparent;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

#section-rh .rh-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

#section-rh .rh-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

#section-rh .rh-table tbody tr:last-child td {
    border-bottom: none;
}

/* Observação Truncada */
#section-rh .rh-obs-truncate {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
}

/* Grupo de Ações Compactas */
#section-rh .rh-action-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

#section-rh .rh-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--muted);
    transition: all 0.1s ease;
    cursor: pointer;
}

#section-rh .rh-action-btn:hover {
    color: var(--text);
    background: var(--surface-3);
}

#section-rh .rh-action-btn.delete:hover {
    color: var(--red);
    background: rgba(239, 29, 29, 0.1);
}

#section-rh .rh-action-btn.edit:hover {
    color: var(--blue);
    background: rgba(93, 183, 231, 0.1);
}

/* Badges de Status Menores */
#section-rh .rh-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#section-rh .rh-status-badge.aberto {
    background: rgba(255, 138, 0, 0.1);
    color: var(--orange);
}

#section-rh .rh-status-badge.encaminhado {
    background: rgba(0, 191, 47, 0.1);
    color: var(--green);
}

/* Painel Lateral de Lotes */
#section-rh .rh-sent-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
}

#section-rh .rh-batches-panel {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    height: fit-content;
}

#section-rh .rh-batches-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    align-items: flex-start;
}

#section-rh .rh-batches-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

#section-rh .rh-batches-header p {
    font-size: 0.75rem;
    margin: 2px 0 0 0;
    color: var(--muted);
}

#section-rh .rh-batches-header .badge {
    padding: 2px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
}

#section-rh .rh-batch-card {
    border-radius: 8px !important;
    padding: 10px !important;
    background: var(--surface-2) !important;
    border: 1px solid var(--line) !important;
    margin-bottom: 8px;
}

#section-rh .rh-batches-list {
    padding: 10px 14px;
}

/* Evitar linhas altas no Ajuste de Ponto */
#section-rh .rh-time-cell {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-soft);
    background: rgba(255,255,255,0.03);
    padding: 2px 6px;
    border-radius: 4px;
}


/* --- From styles/pages/gerenciar-usuarios.css --- */
/* styles/pages/gerenciar-usuarios.css */
/* GESTÃO DE USUÁRIOS PREMIUM COMPACT MODULE */

/* Users Group Layout */
.users-managed-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Redução dos Cabeçalhos de Grupo */
.users-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.users-group-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.users-group-header p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
}

/* Transformar o Grid em Lista Fluida */
.users-group-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Gap super compacto */
}

/* Novo Horizontal Card (Lista Premium) */
.data-card.managed-user-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    min-height: 64px; /* Altura controlada */
}

.data-card.managed-user-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Coluna 1: Avatar e Nome */
.managed-user-card .user-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.managed-user-card .user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(93, 183, 231, 0.2), rgba(53, 120, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(93, 183, 231, 0.3);
}

.managed-user-card .user-avatar-circle i {
    font-size: 1.1rem;
    color: #5db7e7;
}

.managed-user-card .user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.15rem;
}

.managed-user-card .user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Coluna 2: Metadados (Cargo / Dept) */
.managed-user-card .user-meta {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
}

.managed-user-card .user-meta-role {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.managed-user-card .user-meta-dept {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Coluna 3: Status e Condição */
.managed-user-card .user-status-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    min-width: 150px;
}

/* Badges minimalistas */
.managed-user-card .badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.managed-user-card .presence-indicator {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.presence-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.presence-dot.online { background-color: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, 0.6); }
.presence-dot.background { background-color: #6366f1; }
.presence-dot.closed { background-color: #f59e0b; }
.presence-dot.offline { background-color: #64748b; }

/* Coluna 4: Ações */
.managed-user-card .user-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 1rem;
}

.managed-user-card .btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.managed-user-card .btn-action-icon:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.managed-user-card .btn-action-icon.perms:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

/* ========================================================= */
/* MODAL GESTÃO DE ACESSO (4 Blocos) */
/* ========================================================= */
.modal-gerenciar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.modal-grid-2 .input-block, .modal-grid-3 .input-block {
    margin-bottom: 0;
}

/* Novo Grid de Permissões Compacto */
.permissions-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
}

.permission-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0;
}

.permission-toggle-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.permission-toggle-item input[type="checkbox"] {
    accent-color: #6366f1;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.permission-toggle-item .perm-label-wrap {
    display: flex;
    flex-direction: column;
}

.permission-toggle-item .perm-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.permission-toggle-item .perm-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}


/* --- From styles/pages/updates.css --- */
/* styles/pages/updates.css */
/* PREMIUM UPDATES MODULE */

/* Surfaces and Depth */
:root {
    --upd-surface-0: var(--bg);
    --upd-surface-1: rgba(15, 23, 42, 0.4);
    --upd-surface-2: rgba(30, 41, 59, 0.6);
    --upd-surface-3: rgba(51, 65, 85, 0.8);
    --upd-border: rgba(255, 255, 255, 0.08);
    --upd-border-light: rgba(255, 255, 255, 0.04);
    
    /* Semantic Badge Colors (Subtle) */
    --upd-aviso-bg: rgba(56, 189, 248, 0.15);
    --upd-aviso-color: #38bdf8;
    --upd-sistema-bg: rgba(167, 139, 250, 0.15);
    --upd-sistema-color: #a78bfa;
    --upd-info-bg: rgba(45, 212, 191, 0.15);
    --upd-info-color: #2dd4bf;
    --upd-urgent-bg: rgba(248, 113, 113, 0.15);
    --upd-urgent-color: #f87171;
    --upd-archived-bg: rgba(148, 163, 184, 0.15);
    --upd-archived-color: #94a3b8;
}

/* Header Premium */
.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--upd-surface-1);
    border: 1px solid var(--upd-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.updates-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.updates-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #f8fafc);
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.updates-header-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    max-width: 600px;
}

.updates-header-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.upd-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--upd-surface-2);
    border: 1px solid var(--upd-border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary, #cbd5e1);
}

.upd-stat-chip strong {
    color: var(--text-color, #f8fafc);
    font-size: 0.9rem;
}

.updates-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

/* Tab Navigation Premium */
.upd-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--upd-surface-1);
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid var(--upd-border);
}

.upd-tab-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upd-tab-btn:hover {
    color: var(--text-secondary, #cbd5e1);
}

.upd-tab-btn.active {
    background: var(--upd-surface-3);
    color: var(--text-color, #f8fafc);
    border-color: var(--upd-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Cards de Atualizações Premium */
.upd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.upd-card {
    background: var(--upd-surface-2);
    border: 1px solid var(--upd-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.upd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Editorial Structure */
.upd-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upd-card-badges {
    display: flex;
    gap: 0.5rem;
}

.upd-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upd-badge-aviso { background: var(--upd-aviso-bg); color: var(--upd-aviso-color); }
.upd-badge-sistema { background: var(--upd-sistema-bg); color: var(--upd-sistema-color); }
.upd-badge-info { background: var(--upd-info-bg); color: var(--upd-info-color); }
.upd-badge-urgente { background: var(--upd-urgent-bg); color: var(--upd-urgent-color); border-left: 2px solid var(--upd-urgent-color); }
.upd-badge-arquivado { background: var(--upd-archived-bg); color: var(--upd-archived-color); }

.upd-card-date {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.upd-card-body {
    padding: 0 1.25rem 1.25rem;
    flex: 1;
}

.upd-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color, #f8fafc);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.upd-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.upd-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--upd-surface-1);
}

.upd-card-footer {
    padding: 1rem 1.25rem;
    background: var(--upd-surface-1);
    border-top: 1px solid var(--upd-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upd-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #cbd5e1);
}

.upd-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--upd-surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

/* Action Bar */
.upd-action-bar {
    display: flex;
    gap: 0.4rem;
}

.upd-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upd-action-btn:hover {
    background: var(--upd-surface-3);
    color: var(--text-color, #f8fafc);
    border-color: var(--upd-border);
}

.upd-action-btn.danger:hover {
    background: var(--upd-urgent-bg);
    color: var(--upd-urgent-color);
    border-color: rgba(248, 113, 113, 0.3);
}

/* Empty State Premium */
.upd-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--upd-surface-1);
    border: 1px dashed var(--upd-border);
    border-radius: 12px;
    text-align: center;
    grid-column: 1 / -1;
}

.upd-empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.upd-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #f8fafc);
    margin: 0 0 0.5rem 0;
}

.upd-empty-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
    margin: 0 0 2rem 0;
    max-width: 400px;
}


/* --- From styles/pages/campaigns.css --- */
/* ==========================================================================
   CAMPANHAS - PREMIUM REDESIGN
   ========================================================================== */

/* Header da Página */
.camp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.camp-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.camp-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.camp-header-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Control Bar (Toolbar) */
.camp-control-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.camp-filters-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.camp-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    width: fit-content;
}

.camp-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camp-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.camp-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.camp-tab-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Grid de Campanhas */
.camp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .camp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .camp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .camp-grid { grid-template-columns: 1fr; }
}

/* Card Institucional */
.camp-card {
    background: var(--surface-1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.camp-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.camp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.camp-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Badges Discretas */
.camp-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.camp-badge-tipo {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Semântica de Cores */
.camp-badge-ativa {
    background: rgba(16, 185, 129, 0.1); /* green */
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.camp-badge-arquivada {
    background: rgba(156, 163, 175, 0.1); /* gray */
    color: #9ca3af;
    border-color: rgba(156, 163, 175, 0.2);
}

.camp-badge-agendada {
    background: rgba(245, 158, 11, 0.1); /* amber */
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.camp-badge-erro {
    background: rgba(239, 68, 68, 0.1); /* red */
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.camp-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.camp-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.camp-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.camp-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.camp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.camp-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.camp-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Ações */
.camp-action-bar {
    display: flex;
    gap: 0.4rem;
}

.camp-btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.camp-btn-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.camp-btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.camp-btn-action.success:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.camp-btn-action.primary:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

/* Empty State */
.camp-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    text-align: center;
}

.camp-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.camp-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.camp-empty-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    max-width: 400px;
}

/* Tiras e Agrupamento por Data (Registro de Campanhas) */
.camp-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.camp-date-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.camp-date-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.camp-date-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--blue-light);
    background: var(--blue-subtle);
    border: 1px solid var(--blue-glow);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.camp-date-line {
    flex: 1;
    height: 1px;
    background: var(--line);
    border: none;
    margin: 0;
}

.camp-strip {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    min-height: 62px;
    padding: 0.5rem 0.8rem;
    gap: 1rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.camp-strip:hover {
    border-color: var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: var(--surface-hover);
}

.camp-strip.camp-strip-active {
    border-left: 3px solid #1e7fe0;
}

.camp-strip.camp-strip-archived {
    opacity: 0.85;
    background: var(--surface);
    border-left: 3px solid #64748b;
}

.camp-strip.camp-strip-archived:hover {
    opacity: 1;
    border-color: var(--border);
}

.camp-strip-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 320px;
    min-width: 0;
}

.camp-strip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e7fe0 0%, #3b94f0 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(30, 127, 224, 0.25);
}

.camp-strip-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.camp-strip-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.camp-strip-sublabel {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.camp-strip-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.camp-strip-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.camp-strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.camp-strip-badge.tipo {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.camp-strip-badge.ativa {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.camp-strip-badge.arquivada {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.08);
    border-color: rgba(156, 163, 175, 0.2);
}

.camp-strip-badge.agendada {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.camp-strip-badge.erro {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.camp-strip-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 320px;
}

.camp-strip-right {
    flex-shrink: 0;
}

.camp-strip-actions {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
}

.camp-strip-action {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.camp-strip-action-sep {
    width: 1px;
    height: 18px;
    background: var(--border-light);
    flex-shrink: 0;
}

.camp-strip-action:hover           { background: var(--surface-hover); color: var(--text-color); }
.camp-strip-action.view:hover      { color: #1e7fe0;  background: rgba(30, 127, 224, 0.08); }
.camp-strip-action.edit:hover      { color: #1e7fe0;  background: rgba(30, 127, 224, 0.08); }
.camp-strip-action.finish:hover    { color: #10B981;  background: rgba(16, 185, 129, 0.07); }
.camp-strip-action.restore:hover   { color: #10B981;  background: rgba(16, 185, 129, 0.07); }
.camp-strip-action.del:hover       { color: #EF4444;  background: rgba(239, 68, 68, 0.07); }

@media (max-width: 768px) {
    .camp-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.8rem;
        min-height: auto;
    }
    
    .camp-strip-left {
        width: 100%;
        flex: none;
    }
    
    .camp-strip-center {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border-top: 1px solid var(--line-soft);
        padding-top: 0.5rem;
    }
    
    .camp-strip-desc {
        max-width: 100%;
    }
    
    .camp-strip-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        border-top: 1px solid var(--line-soft);
        padding-top: 0.5rem;
    }
}


/* --- From styles/pages/templates.css --- */
/* ==========================================================================
   MODELOS & MENSAGENS — Enterprise Redesign
   Escopo: #section-templates only
   ========================================================================== */

/* ── Page Header ──────────────────────────────────────────────── */
.tpl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tpl-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.tpl-header-title i {
    font-size: 1.5rem;
    color: var(--blue, #3578f6);
}

.tpl-header-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
}

/* ── KPIs ─────────────────────────────────────────────────────── */
.tpl-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .tpl-kpis { grid-template-columns: 1fr; }
}

.tpl-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-1, rgba(30, 41, 59, 0.6));
    border: 1px solid var(--border-light, rgba(255,255,255,0.07));
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease;
}

.tpl-kpi-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

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

.tpl-kpi-icon--blue {
    background: rgba(53, 120, 246, 0.12);
    color: #3578f6;
    border: 1px solid rgba(53, 120, 246, 0.2);
}
.tpl-kpi-icon--green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.tpl-kpi-icon--orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tpl-kpi-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tpl-kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    line-height: 1;
}

.tpl-kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Control Bar ─────────────────────────────────────────────── */
.tpl-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* Segmented Tabs */
.tpl-tabs {
    display: flex !important;
    gap: 0.6rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 0.35rem !important;
}

.tpl-tab {
    padding: 0.45rem 1.2rem !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-secondary, #94a3b8) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
}

.tpl-tab:hover {
    color: var(--text-primary, #f1f5f9) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.tpl-tab.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary, #f1f5f9) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Search */
.tpl-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light, rgba(255,255,255,0.07));
    border-radius: 8px;
    padding: 0 0.75rem;
    transition: border-color 0.18s ease;
    min-width: 260px;
}

.tpl-search-wrapper:focus-within {
    border-color: rgba(53, 120, 246, 0.4);
}

.tpl-search-wrapper i {
    color: var(--text-secondary, #94a3b8);
    font-size: 1rem;
    flex-shrink: 0;
}

.tpl-search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary, #f1f5f9);
}

.tpl-search-input::placeholder {
    color: var(--text-secondary, #94a3b8);
    opacity: 0.7;
}

/* Section Label */
.tpl-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.07));
}

/* ── Card Grid ───────────────────────────────────────────────── */
/* tpl-grid styles are defined at the end of the file under Grids dos Grupos */

/* ── Template Card ───────────────────────────────────────────── */
.tpl-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-1, rgba(20, 30, 48, 0.7));
    border: 1px solid var(--border-light, rgba(255,255,255,0.07));
    border-radius: 14px;
    padding: 1.25rem;
    gap: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tpl-card:hover {
    border-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

/* Card Header */
.tpl-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Category Badges */
.tpl-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.tpl-badge--reminder {
    background: rgba(53, 120, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(53, 120, 246, 0.2);
}

.tpl-badge--campaign {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.tpl-badge--neutral {
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.15);
}

/* Card Body */
.tpl-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tpl-card-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.35;
}

.tpl-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Indicator */
.tpl-card-btn-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    width: fit-content;
}

.tpl-card-btn-indicator i {
    font-size: 0.85rem;
}

/* Card Footer */
.tpl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, rgba(255,255,255,0.06));
    margin-top: auto;
}

/* Action Buttons */
.tpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.18s ease;
    white-space: nowrap;
    background: transparent;
}

.tpl-btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1rem;
}

.tpl-btn-sm {
    padding: 0.4rem 0.75rem;
    height: 30px;
}

/* Ghost — default */
.tpl-btn-ghost {
    color: var(--text-secondary, #94a3b8);
    border-color: rgba(255,255,255,0.07);
}
.tpl-btn-ghost:hover {
    color: var(--text-primary, #f1f5f9);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.12);
}

/* Primary */
.tpl-btn-primary {
    color: #60a5fa;
    border-color: rgba(53, 120, 246, 0.2);
    background: rgba(53, 120, 246, 0.08);
}
.tpl-btn-primary:hover {
    background: rgba(53, 120, 246, 0.15);
    border-color: rgba(53, 120, 246, 0.35);
    color: #93c5fd;
}

/* Success */
.tpl-btn-success {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.08);
}
.tpl-btn-success:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Danger */
.tpl-btn-danger {
    color: var(--text-secondary, #94a3b8);
    border-color: transparent;
}
.tpl-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* Action group on right side of card footer */
.tpl-card-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

/* Empty State */
.tpl-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    gap: 0.75rem;
}

.tpl-empty-icon {
    font-size: 2.75rem;
    color: var(--text-secondary, #94a3b8);
    opacity: 0.4;
}

.tpl-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
}

.tpl-empty-desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    max-width: 360px;
}




/* --- From styles/layout/layout.css --- */
/* ==========================================================================
   G2G PREMIUM — Layout Principal
   ========================================================================== */

/* ── App Shell ──────────────────────────────────────────────────────────── */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    background: var(--bg);
    color: var(--text);
}

/* ── Main Content ───────────────────────────────────────────────────────── */
.main-content {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    flex-direction: column;
    background: var(--bg);
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ── Content Wrapper ────────────────────────────────────────────────────── */
.content-wrapper {
    flex: 1;
    min-width: 0;
    padding: 24px 28px 36px;
    background: var(--bg);
}

/* ── Content Section ────────────────────────────────────────────────────── */
.content-section {
    animation: g2g-fadeSlideUp 0.22s ease-out both;
}

@keyframes g2g-fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Section Header ─────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.section-title h2,
.section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0;
}

.section-title p,
.section-header p {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }
    .suite-command-header,
    .dashboard-nexus-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .main-layout {
        display: block;
    }
    .main-content,
    .sidebar.collapsed + .main-content {
        margin-left: 0;
    }
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-sidebar);
    }
    body.mobile-menu-open .sidebar,
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-float);
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
    .topbar {
        padding: 0 16px;
    }
    .topbar-search-wrap {
        display: none;
    }
    .content-wrapper {
        padding: 16px 16px 28px;
    }
    .login-container {
        grid-template-columns: 1fr;
    }
    .login-promo {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 13px;
    }
    .dashboard-metrics-grid,
    .data-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .stat-widget {
        min-height: 96px;
        padding: 1rem;
        gap: 0.875rem;
    }
    .stat-icon {
        width: 48px;
        min-width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
    .content-wrapper {
        padding: 12px 12px 24px;
    }
}


/* --- From styles/layout/header.css --- */
/* ==========================================================================
   G2G PREMIUM — Topbar / Header
   ========================================================================== */

/* ── Topbar Shell ───────────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-topbar);
    display: flex;
    height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 24px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}

/* ── Left / Right Clusters ──────────────────────────────────────────────── */
.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.topbar-right {
    justify-content: flex-end;
}

/* ── Page Title ─────────────────────────────────────────────────────────── */
.page-title {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-title::after {
    content: none;
}

/* ── Breadcrumb divider ─────────────────────────────────────────────────── */
.topbar-divider {
    width: 1px;
    height: 20px;
    background: var(--line-mid);
    flex-shrink: 0;
}

/* ── Search Bar (center) ────────────────────────────────────────────────── */
.topbar-search-wrap {
    flex: 1;
    max-width: 380px;
    display: flex;
    justify-content: center;
}

.search-container,
.topbar .search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    padding: 0;
    transition: var(--transition);
}

.search-container:focus-within,
.topbar .search-container:focus-within {
    background: rgba(30, 127, 224, 0.06);
    border-color: rgba(30, 127, 224, 0.35);
    box-shadow: 0 0 0 3px rgba(30, 127, 224, 0.10);
}

.topbar .search-container input,
.topbar .search-container .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-size: 0.875rem;
    min-height: 36px;
    outline: none;
    padding: 0 1rem 0 2.5rem;
    width: 100%;
}

.topbar .search-container input::placeholder {
    color: var(--muted-2);
    font-size: 0.875rem;
}

.topbar .search-container .icon-left {
    position: absolute;
    left: 12px;
    color: var(--muted-2);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.topbar .search-container:focus-within .icon-left {
    color: var(--blue);
}

/* ── Topbar Icon Buttons ────────────────────────────────────────────────── */
.btn-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
}

/* ── Mobile Toggle ──────────────────────────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
}

/* ── Notification Bell ──────────────────────────────────────────────────── */
.notification-btn {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 2px var(--topbar-bg);
    transition: transform 0.2s ease;
}

.notification-btn:has(.notification-dot:not(.hidden)):hover .notification-dot {
    transform: scale(1.3);
}

/* ── User Avatar Chip (topbar right) ────────────────────────────────────── */
.topbar-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 5px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.topbar-user-chip .avatar-initial {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 11px;
    border-radius: 8px;
}

.topbar-user-chip .topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sync Indicator ─────────────────────────────────────────────────────── */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted-2);
    transition: var(--transition);
}

.sync-indicator.syncing .sync-dot {
    background: var(--blue);
    animation: syncPulse 1s ease infinite;
}

.sync-indicator.pending .sync-dot {
    background: var(--orange);
}

.sync-indicator.online .sync-dot {
    background: var(--green);
}

.sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-2);
    transition: background 0.3s ease;
}

@keyframes syncPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}


/* --- From styles/layout/sidebar.css --- */
/* ==========================================================================
   G2G PREMIUM — Sidebar Redesign
   Inspiração: SaaS premium — Linear, Vercel, Notion
   ========================================================================== */

/* ── Sidebar Shell ──────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-sidebar);
    display: flex;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: var(--sidebar);
    border-right: 1px solid var(--sidebar-border);
    color: var(--muted);
    transition:
        width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
}

/* ── Sidebar Header / Logo ──────────────────────────────────────────────── */
.sidebar-header {
    display: flex;
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 14px 0 18px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-logo-only,
.sidebar-showcase-brand {
    display: flex;
    min-width: 0;
    align-items: center;
}

.sidebar-header .logo {
    display: block;
    max-width: 128px;
    max-height: 34px;
    object-fit: contain;
}

/* Toggle Button */
.btn-toggle-sidebar {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-2);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.07) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Section Labels */
.nav-section-title {
    display: block;
    margin: 24px 12px 8px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* List */
.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li,
.sidebar-nav .nav-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
}

/* ── Nav Items ──────────────────────────────────────────────────────────── */
.sidebar-nav a,
.nav-item,
.nav-sub-item {
    display: inline-flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 11.5px 12px !important;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border-left: 4px solid transparent;
}

.sidebar-nav a i,
.nav-item i,
.nav-sub-item i {
    margin: 0;
    width: 20px;
    min-width: 20px;
    color: #cbd5e1;
    font-size: 18px;
    text-align: center;
    transition: color 0.18s ease;
    flex-shrink: 0;
}

.sidebar-nav a span:not(.nav-group-caret) {
    display: inline;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Hover State ─────────────────────────────────────────────────────────── */
.sidebar-nav a:hover,
.nav-item:hover,
.nav-sub-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav a:hover i,
.nav-item:hover i {
    color: #ffffff;
}

/* ── Active State ───────────────────────────────────────────────────────── */
.sidebar-nav a.active,
.nav-item.active,
.nav-sub-item.active {
    color: #ffffff !important;
    background: rgba(30, 127, 224, 0.08) !important;
    font-weight: 700 !important;
    border-left: 4px solid #1e7fe0 !important;
    border-radius: 0 8px 8px 0;
}

.sidebar-nav a.active i,
.nav-item.active i,
.nav-sub-item.active i {
    color: #1e7fe0 !important;
}

/* Left accent bar on active (remover pseudo-elemento, usando border-left nativo acima) */
.sidebar-nav a.active::before,
.nav-item.active::before {
    display: none;
}

.sidebar-nav li,
.sidebar-nav .nav-group {
    position: relative;
}

/* ── Submenus ───────────────────────────────────────────────────────────── */
.nav-group-caret {
    display: inline-flex;
    margin-left: auto;
    color: inherit;
    transition: transform 0.25s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-group.nav-group-open > a .nav-group-caret {
    transform: rotate(180deg);
}

.nav-submenu {
    position: relative;
    overflow: hidden;
    max-height: 0;
    margin: 0 0 0 20px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: max-height 0.30s ease, margin 0.2s ease, opacity 0.22s ease;
    opacity: 0;
}

.nav-group.nav-group-open .nav-submenu {
    max-height: 600px;
    margin: 3px 0 6px 20px;
    opacity: 1;
}

.nav-sub-item {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 7px;
}

/* ── Collapsed State ────────────────────────────────────────────────────── */
.sidebar.collapsed .sidebar-showcase-brand,
.sidebar.collapsed .sidebar-logo-only,
.sidebar.collapsed .sidebar-header .logo,
.sidebar.collapsed .sidebar-brand-copy,
.sidebar.collapsed .sidebar-brand-mark,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .sidebar-nav span:not(.nav-group-caret),
.sidebar.collapsed .nav-submenu,
.sidebar.collapsed .nav-group-caret,
.sidebar.collapsed .user-info,
.sidebar.collapsed .btn-logout {
    display: none !important;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 6px;
}

.sidebar.collapsed .sidebar-nav {
    padding: 10px 6px;
}

.sidebar.collapsed .sidebar-nav ul {
    align-items: center;
    gap: 4px;
}

.sidebar.collapsed .sidebar-nav li,
.sidebar.collapsed .sidebar-nav .nav-group {
    align-items: center;
    width: auto;
}

.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-sub-item {
    width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 10px;
}

.sidebar.collapsed .sidebar-nav a.active,
.sidebar.collapsed .nav-item.active {
    background: rgba(30, 127, 224, 0.15);
    border-color: rgba(30, 127, 224, 0.22);
}

.sidebar.collapsed .sidebar-nav a.active::before,
.sidebar.collapsed .nav-item.active::before {
    display: none;
}

.sidebar.collapsed .sidebar-nav a i,
.sidebar.collapsed .nav-item i {
    width: auto;
    min-width: 0;
    font-size: 20px;
}

/* ── Sidebar Footer / User ──────────────────────────────────────────────── */
.sidebar-footer {
    display: flex;
    min-height: 68px;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.user-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}

.user-info strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info span {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-2);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #fc8181;
    border-color: rgba(220, 38, 38, 0.22);
}

.sidebar.collapsed .sidebar-footer {
    padding: 12px 6px;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
}

/* ── Avatar ─────────────────────────────────────────────────────────────── */
.avatar-initial {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue-strong) 0%, var(--blue) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* ── Sidebar Search Box ─────────────────────────────────────────────────── */
.sidebar-search {
    position: relative;
    margin: 12px 10px 6px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0 10px;
    transition: var(--transition);
}

.sidebar-search:focus-within {
    background: rgba(30, 127, 224, 0.05);
    border-color: rgba(30, 127, 224, 0.30);
}

.sidebar-search i {
    color: var(--muted-2);
    font-size: 15px;
    min-width: 18px;
}

.sidebar-search input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 8px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--muted-2);
}




/* --- From styles/components/modals.css --- */
/* ==========================================================================
   G2G PREMIUM — Modais e Popovers
   ========================================================================== */

/* ── Overlays ───────────────────────────────────────────────────────────── */
.modal-overlay,
.popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal-overlay.active,
.popover-backdrop.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

/* ── Modal Shell ────────────────────────────────────────────────────────── */
.modal-content,
.modal-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: var(--surface);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    animation: g2g-scaleIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-content.large,
.modal-card.large {
    max-width: 860px;
}

.modal-content.fullscreen,
.modal-card.fullscreen {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.015);
}

.modal-title,
.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-2);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.modal-footer,
.os-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.015);
}

/* ── Popovers (Dropdowns contextuais) ───────────────────────────────────── */
.popover,
.dropdown-menu {
    position: absolute;
    z-index: var(--z-dropdown);
    min-width: 220px;
    background: var(--surface-2);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    transform-origin: top right;
    animation: g2g-scaleIn 0.15s ease-out forwards;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.dropdown-item.danger:hover {
    background: var(--danger-bg);
    color: var(--red);
}

.dropdown-divider {
    height: 1px;
    background: var(--line-soft);
    margin: 0.35rem 0;
}

/* ── Create User Modal Premium ──────────────────────────────────────────── */
#modal-create-user .modal-card,
#modal-create-user .modal-content,
#modal-create-user .modal {
    max-width: 1040px;
    width: 95%;
}
.create-user-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media(max-width: 860px) {
    .create-user-layout { grid-template-columns: 1fr; }
}

.cu-left-col, .cu-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Blocks */
.cu-block {
    background: var(--surface-2);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cu-block-header {
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
}
.cu-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cu-block-title i { color: var(--blue-light); }

/* Permissions Search */
.cu-permissions-search {
    margin-bottom: 0;
}

/* Permission Cards */
.perm-category {
    background: var(--surface-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.perm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
}
.perm-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.perm-category-title i.cat-icon { color: var(--blue-light); font-size: 1.1rem; }
.perm-category-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.perm-select-all {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
}
.perm-select-all input { margin: 0; cursor: pointer; accent-color: var(--blue); }

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

/* Mini Card Permission */
.perm-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.perm-card:hover {
    background: rgba(30,127,224,0.05);
    border-color: rgba(30,127,224,0.25);
}
.perm-card.selected {
    background: rgba(30,127,224,0.12);
    border-color: rgba(30,127,224,0.40);
    box-shadow: 0 2px 8px rgba(30,127,224,0.15);
}
.perm-card input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}
.perm-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}
.perm-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.perm-card-desc {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.3;
}
.tooltip-icon {
    color: var(--muted-2);
    font-size: 0.85rem;
}


/* --- From styles/components/cards.css --- */
/* ==========================================================================
   G2G PREMIUM — Cards & Surfaces
   ========================================================================== */

/* ── Section Header ─────────────────────────────────────────────────────── */
.section-header,
.panel,
.action-panel {
    padding: 1.25rem;
}

.section-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.3rem;
}

.section-title h2,
.section-header h2,
.panel h2,
.panel h3,
.action-header h3,
.modal-header h2,
.modal-title,
.table-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.section-title p,
.section-header p,
.panel p,
.table-subtitle {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ── Grids ──────────────────────────────────────────────────────────────── */
.data-grid,
.dashboard-metrics-grid,
.bento-grid {
    display: grid;
    gap: 16px;
}

.bento-grid,
.content-section > .bento-grid,
.content-section > .metrics-grid,
.content-section > .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
}

.data-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-items: stretch;
}

.users-group-grid,
.calendar-demands-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.dashboard-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 1.5rem;
}

.rh-overview-grid,
.calendar-overview-grid,
.stats-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.dashboard-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 16px;
}

.dashboard-main-col,
.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Stat Widget (KPI Card) ─────────────────────────────────────────────── */
.stat-widget {
    position: relative;
    display: flex;
    min-height: 110px;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: default;
}

/* Subtle gradient shimmer top */
.stat-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Accent bar bottom glow */
.stat-widget::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30,127,224,0.3), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.stat-widget:hover {
    transform: translateY(-2px);
    border-color: var(--line-mid);
    box-shadow: var(--shadow-md);
}

.stat-widget:hover::after {
    opacity: 1;
}

/* ── Stat Icon ──────────────────────────────────────────────────────────── */
.stat-icon {
    display: inline-flex;
    width: 52px;
    min-width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(30,127,224,0.12);   color: var(--blue-light); }
.stat-icon.green  { background: rgba(22,163,74,0.12);    color: #4ade80; }
.stat-icon.orange { background: rgba(217,119,6,0.12);    color: #fbbf24; }
.stat-icon.purple { background: rgba(124,58,237,0.12);   color: #a78bfa; }
.stat-icon.cyan   { background: rgba(8,145,178,0.12);    color: #22d3ee; }
.stat-icon.pink   { background: rgba(219,39,119,0.12);   color: #f472b6; }
.stat-icon.red    { background: rgba(220,38,38,0.12);    color: #f87171; }

/* ── Stat Content ───────────────────────────────────────────────────────── */
.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-value.text-sm {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

.stat-helper {
    font-size: 0.72rem;
    color: var(--muted-2);
    margin-top: 2px;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
}

.stat-trend.up   { color: #4ade80; }
.stat-trend.down { color: #f87171; }

/* ── Panel (Generic Surface) ─────────────────────────────────────────────── */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: border-color 0.20s ease;
}

.panel:hover {
    border-color: var(--line-mid);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}

.panel-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.panel-body {
    padding: 1.25rem;
}

/* Panel no-padding variant */
.panel.panel-flush {
    padding: 0;
}

/* ── Data Cards (records rendered by JS) ────────────────────────────────── */
.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.calendar-demand-card-premium,
.template-card,
.update-card,
.users-group {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.1rem 1.25rem;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    cursor: pointer;
}

/* Accent left bar */
.data-card::before,
.managed-user-card::before,
.campaign-card::before,
.meeting-room-card::before,
.rh-card::before,
.suggestion-record::before,
.calendar-demand-card::before,
.calendar-demand-card-premium::before,
.template-card::before,
.update-card::before {
    content: '';
    position: absolute;
    inset: 14px auto 14px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--blue-light), var(--blue));
    opacity: 0.7;
    transition: opacity 0.2s ease, inset 0.2s ease;
}

.data-card:hover,
.managed-user-card:hover,
.campaign-card:hover,
.meeting-room-card:hover,
.rh-card:hover,
.suggestion-record:hover,
.calendar-demand-card:hover,
.calendar-demand-card-premium:hover,
.template-card:hover,
.update-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-mid);
    background: var(--surface-hover);
    box-shadow: var(--shadow-sm);
}

.data-card:hover::before,
.managed-user-card:hover::before,
.campaign-card:hover::before,
.meeting-room-card:hover::before,
.rh-card:hover::before,
.suggestion-record:hover::before,
.calendar-demand-card:hover::before,
.calendar-demand-card-premium:hover::before,
.template-card:hover::before,
.update-card:hover::before {
    opacity: 1;
    inset: 8px auto 8px 0;
}

/* ── Card Anatomy ───────────────────────────────────────────────────────── */
.card-top,
.card-header,
.card-footer,
.card-meta,
.users-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-top,
.card-header {
    min-height: 24px;
}

.card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line-soft);
    align-items: center;
    flex-wrap: wrap;
}

.card-actions,
.card-actions-right,
.card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.card-title i {
    color: var(--blue-light);
    font-size: 1rem;
}

.card-desc,
.card-description {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    color: var(--blue-light);
    font-size: 0.78rem;
    font-weight: 600;
}

.card-meta {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge,
.status-badge,
.tag,
.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: var(--transition);
}

.badge-primary {
    color: #bfdbfe;
    background: rgba(30,127,224,0.15);
    border-color: rgba(30,127,224,0.30);
}

.badge-success {
    color: #bbf7d0;
    background: rgba(22,163,74,0.13);
    border-color: rgba(22,163,74,0.28);
}

.badge-warning {
    color: #fde68a;
    background: rgba(217,119,6,0.13);
    border-color: rgba(217,119,6,0.28);
}

.badge-danger {
    color: #fecaca;
    background: rgba(220,38,38,0.13);
    border-color: rgba(220,38,38,0.28);
}

.badge-neutral {
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border-color: var(--line);
}

/* ── Users Group Card ───────────────────────────────────────────────────── */
.users-managed-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.users-group {
    padding: 1.1rem 1.25rem;
    background: var(--surface);
}

.users-group::before {
    content: none;
}

.users-group-header {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
}

.users-group-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
}

.users-group-header h3 i { color: var(--blue-light); }

.users-group-header p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ── Card Actions Buttons ────────────────────────────────────────────────── */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 0.775rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-action.primary {
    background: rgba(30,127,224,0.10);
    border-color: rgba(30,127,224,0.25);
    color: var(--blue-light);
}

.btn-action.primary:hover {
    background: rgba(30,127,224,0.20);
    border-color: rgba(30,127,224,0.45);
    box-shadow: 0 4px 12px rgba(30,127,224,0.18);
    transform: translateY(-1px);
}

.btn-action.success {
    background: rgba(22,163,74,0.10);
    border-color: rgba(22,163,74,0.25);
    color: #4ade80;
}

.btn-action.success:hover {
    background: rgba(22,163,74,0.20);
    border-color: rgba(22,163,74,0.45);
    transform: translateY(-1px);
}

.btn-action.danger {
    background: rgba(220,38,38,0.10);
    border-color: rgba(220,38,38,0.25);
    color: #f87171;
}

.btn-action.danger:hover {
    background: rgba(220,38,38,0.20);
    border-color: rgba(220,38,38,0.45);
    transform: translateY(-1px);
}

.btn-action.icon-only {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

/* ── Calendar Demand Card Specifics ─────────────────────────────────────── */
.calendar-demand-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.65rem;
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.calendar-demand-card-meta-grid span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-demand-card-meta-grid i {
    color: var(--blue-light);
    min-width: 14px;
}

.calendar-demand-card-footer,
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.calendar-demand-card-primary-actions,
.card-actions,
.card-actions-right,
.card-actions-right-premium {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ── Responsive Card Grids ──────────────────────────────────────────────── */
.calendar-demands-card-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .dashboard-layout-grid { grid-template-columns: 1fr; }
    .dashboard-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .calendar-demands-card-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .calendar-demands-card-grid-premium {
        grid-template-columns: 1fr;
    }
    .card-title {
        font-size: 0.9rem;
    }
    .calendar-demand-card-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-metrics-grid { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: 1fr; }
}


/* --- From styles/components/color-picker.css --- */
/* ==========================================================================
   Color Picker para Capa do Card
   ========================================================================== */

/* Grid de cores */

/* Color Picker Container */

/* Input Color Picker */

/* Preview de cor */

/* Input Hex */

/* Estilo do popover de cores */

#pdf-os-template {
    display: none;
}

#pdf-os-template.os-pdf-rendering {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: -10000px !important;
    width: 760px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: var(--font-sans) !important;
    pointer-events: none !important;
}

#pdf-os-template.os-pdf-rendering,
#pdf-os-template.os-pdf-rendering * {
    color: #000000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

#pdf-os-template.os-pdf-rendering > div {
    position: relative;
    width: 700px;
    height: 1020px;
    min-height: 1020px;
    margin: 0 auto;
    padding: 15px;
    overflow: hidden;
    box-sizing: border-box;
    break-after: page;
    page-break-after: always;
    background: #ffffff !important;
    font-family: var(--font-sans);
}

#pdf-os-template.os-pdf-rendering #pdf-page-3 {
    font-family: "Times New Roman", serif;
}

#pdf-os-template.os-pdf-rendering h2 {
    display: block;
    width: 100%;
    margin: 0 auto 20px;
    color: #000000 !important;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

#pdf-os-template.os-pdf-rendering table {
    width: 100%;
    margin: 0 0 8px;
    border-collapse: collapse;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11px;
}

#pdf-os-template.os-pdf-rendering td,
#pdf-os-template.os-pdf-rendering th {
    border: 1px solid #000000;
    padding: 4px 6px;
    background: #ffffff !important;
    color: #000000 !important;
    vertical-align: middle;
}

#pdf-os-template.os-pdf-rendering thead td,
#pdf-os-template.os-pdf-rendering thead th,
#pdf-os-template.os-pdf-rendering tfoot td,
#pdf-os-template.os-pdf-rendering tfoot th,
#pdf-os-template.os-pdf-rendering > div > table:first-of-type td:nth-child(odd),
#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(-n + 4) td:nth-child(odd),
#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(n + 7) td:first-child {
    font-weight: 700;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(-n + 4) {
    margin-bottom: 8px;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(4) {
    margin-bottom: 12px;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(5) {
    width: 50%;
    margin-bottom: 12px;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(5) td:first-child {
    width: 30%;
    font-weight: 700;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(5) td:last-child {
    width: 70%;
    font-weight: 700;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(6),
#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(7) {
    margin-bottom: 12px;
    text-align: center;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(n + 8) td:first-child {
    width: 30%;
}

#pdf-os-template.os-pdf-rendering > div:first-of-type > table:nth-of-type(n + 8) td:last-child {
    width: 70%;
    min-height: 35px;
    white-space: pre-wrap;
}

#pdf-os-template.os-pdf-rendering #pdf-feedback-container {
    margin-top: 15px;
}

#pdf-os-template.os-pdf-rendering #pdf-feedback-container tr:first-child td {
    background: #f3f4f6 !important;
    text-align: center;
}

#pdf-os-template.os-pdf-rendering #pdf-page-2 table,
#pdf-os-template.os-pdf-rendering #pdf-page-3 table {
    margin-bottom: 20px;
    font-size: 10px;
    text-align: center;
}

#pdf-os-template.os-pdf-rendering #pdf-page-4 table {
    margin-bottom: 16px;
    font-size: 10px;
    text-align: center;
}

#pdf-os-template.os-pdf-rendering #pdf-page-2 table:first-of-type,
#pdf-os-template.os-pdf-rendering #pdf-page-3 table:first-of-type,
#pdf-os-template.os-pdf-rendering #pdf-page-4 table:first-of-type {
    font-size: 11px;
}

#pdf-os-template.os-pdf-rendering #pdf-page-4 table:last-of-type {
    width: 55%;
}

#pdf-os-template.os-pdf-rendering > div > div:last-child {
    position: absolute;
    right: 15px;
    bottom: 40px;
    left: 15px;
    padding: 10px;
    border: 1px solid #000000;
    color: #000000 !important;
    background: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.calendar-day-premium:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--blue);
    transform: translateY(-8px) scale(1.03);
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(93, 183, 231, 0.3);
}

.calendar-day-premium.muted {
    opacity: 0.3;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 10px
    );
    filter: grayscale(1);
}

.calendar-day-premium.today {
    background: linear-gradient(135deg, rgba(93, 183, 231, 0.24), rgba(93, 183, 231, 0.06)) !important;
    border: 2px solid rgba(93, 183, 231, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(93, 183, 231, 0.18), 0 0 30px rgba(93, 183, 231, 0.24) !important;
    transform: translateY(-4px);
}

.calendar-day-premium.today::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--blue);
    box-shadow: 0 0 15px var(--blue);
}

.day-number {
    font-weight: 900;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
}

.calendar-day-premium.today .day-number {
    color: #ffffff;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(93, 183, 231, 0.95), rgba(53, 120, 246, 0.92));
    box-shadow: 0 8px 18px rgba(53, 120, 246, 0.28);
    text-shadow: none;
}

.calendar-day-premium.today .day-event-count {
    background: var(--blue);
    color: white;
}

.day-indicator-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.day-badge-today {
    color: #dbeafe;
    background: rgba(93, 183, 231, 0.14);
    border-color: rgba(93, 183, 231, 0.26);
}

.day-badge-start {
    color: #dbeafe;
    background: rgba(93, 183, 231, 0.12);
    border-color: rgba(93, 183, 231, 0.24);
}

.day-badge-end {
    color: #f3e8ff;
    background: rgba(145, 92, 255, 0.12);
    border-color: rgba(145, 92, 255, 0.24);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-event-count {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 100%;
}

.day-events::-webkit-scrollbar { width: 4px; }

.day-events::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.event-pill {
    font-size: 0.68rem;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.event-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.02);
    color: white !important;
}

.event-pill-holiday {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
    color: #FCA5A5 !important;
}

.event-pill-overdue {
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #FECACA !important;
}

.event-pill-soon {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #FDE68A !important;
}

.event-pill-invoice {
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    color: #DDD6FE !important;
}

.event-pill-block {
    background: rgba(100, 116, 139, 0.2) !important;
    border: 1px solid rgba(100, 116, 139, 0.4) !important;
    color: #E2E8F0 !important;
}

.event-pill-start {
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #D1FAE5 !important;
}

.event-pill-title {
    font-weight: 700;
    display: block;
}




/* ==========================================================================
   G2G PREMIUM — Forms & Inputs
   ========================================================================== */

/* ── Form Layout ────────────────────────────────────────────────────────── */
.form-group,
.input-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Labels ─────────────────────────────────────────────────────────────── */
.input-block label,
.form-label,
label {
    color: var(--text-soft);
    font-size: 0.8375rem;
    font-weight: 600;
    letter-spacing: 0.005em;
}

/* ── Inputs Base ─────────────────────────────────────────────────────────── */
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
    padding: 0.65rem 0.9rem;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

select {
    appearance: none;
    cursor: pointer;
}

/* ── Placeholder ────────────────────────────────────────────────────────── */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
    opacity: 1;
}

/* ── Focus ──────────────────────────────────────────────────────────────── */
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(30,127,224,0.45);
    background: rgba(30,127,224,0.04);
    box-shadow: 0 0 0 3px rgba(30,127,224,0.12);
}

/* ── Input Wrapper (icon prefix) ─────────────────────────────────────────── */
.input-wrapper,
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    padding: 0;
    transition: var(--transition);
}

.input-wrapper:focus-within,
.search-container:focus-within {
    border-color: rgba(30,127,224,0.40);
    background: rgba(30,127,224,0.04);
    box-shadow: 0 0 0 3px rgba(30,127,224,0.10);
}

.input-wrapper .form-control,
.search-container .form-control,
.input-wrapper input,
.search-container input {
    min-height: 38px;
    border: 0;
    background: transparent;
    box-shadow: none;
    flex: 1;
}

.icon-left {
    position: absolute;
    left: 0.875rem;
    z-index: 1;
    color: var(--muted-2);
    pointer-events: none;
    font-size: 16px;
    transition: color 0.18s ease;
}

.input-wrapper:focus-within .icon-left,
.search-container:focus-within .icon-left {
    color: var(--blue);
}

.has-icon-left {
    padding-left: 2.5rem !important;
}

.btn-append {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-append:hover {
    color: var(--text-soft);
    background: rgba(255,255,255,0.06);
}

/* ── Topbar Search Specific ──────────────────────────────────────────────── */
.topbar .search-container {
    width: 180px;
    height: 34px;
    min-height: 34px;
    border-radius: var(--radius-pill);
}

.topbar .search-container input,
.topbar .search-container .form-control {
    font-size: 0.875rem;
}

/* ── Small Helper Text ──────────────────────────────────────────────────── */
.form-control + small,
.input-block small {
    font-size: 0.775rem;
    color: var(--muted-2);
    line-height: 1.4;
}

/* ── Error state ────────────────────────────────────────────────────────── */
.form-control.is-error,
input.is-error,
select.is-error,
textarea.is-error {
    border-color: rgba(220,38,38,0.45);
    background: rgba(220,38,38,0.04);
}

.form-control.is-error:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.form-error-msg {
    font-size: 0.78rem;
    color: #f87171;
    font-weight: 500;
}

}
@layer utilities {
/* --- From styles/utils/helpers.css --- */
/* ==========================================================================
   Utilitarios e ajustes reutilizaveis
   ========================================================================== */

/* ==========================================================================
   Utilitarios
   ========================================================================== */

.hidden {
    display: none !important;
}

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

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

.text-center {
    text-align: center !important;
}

.font-semibold {
    font-weight: 650 !important;
}

.font-bold {
    font-weight: 780 !important;
}

.mt-2 {
    margin-top: 0.75rem !important;
}

.flex-col-gap-md {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-2,
.truncate-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.truncate-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.truncate-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* Acabamento global para telas que ainda vinham com estilos antigos */

.section-subview {
    min-width: 0;
}

.section-subview:not([style*="display: none"]) {
    animation: fadeIn 0.16s ease-out;
}

.section-subview > .data-grid,
.section-subview > .panel,
.section-subview > .action-panel {
    margin-top: 0.25rem;
}

.system-updates-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1rem 0 !important;
}

.system-updates-container > h2 {
    margin-bottom: 1rem !important;
    color: var(--text) !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.system-updates-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.2rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

.system-updates-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid var(--line-soft) !important;
}

.system-updates-header h3 {
    color: var(--text) !important;
    font-weight: 800 !important;
}

.system-updates-header p {
    color: var(--muted) !important;
}

#system-updates-search {
    border-radius: 14px !important;
    background: transparent !important;
    border-color: transparent !important;
}

#system-updates-list > div {
    border-color: var(--line-soft) !important;
}

.info-row,
.info-card,
.preview-card,
.attachment-card,
.notification-item,
.toast-card,
.suggestion-admin-metric-card {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

.toast-card {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

.info-value,
.toast-card-content,
.notification-item strong {
    color: var(--text) !important;
}

.toast-card p,
.notification-item p,
.info-row span,
.info-card p,
.preview-card p {
    color: var(--muted) !important;
}

#modal-custom-alert,
#modal-custom-confirm,
#modal-custom-input {
    background: rgba(13, 16, 23, 0.72) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#modal-custom-alert > div,
#modal-custom-confirm > div,
#modal-custom-input > div {
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-float) !important;
}

#modal-custom-alert h3,
#modal-custom-confirm h3,
#modal-custom-input h3 {
    color: var(--text) !important;
}

#modal-custom-alert p,
#modal-custom-confirm p,
#modal-custom-input p {
    color: var(--muted) !important;
}

#modal-alert-ok,
#modal-confirm-ok,
#modal-input-ok {
    border-radius: 12px !important;
    background: #343b50 !important;
    box-shadow: none !important;
}

#modal-confirm-cancel,
#modal-input-cancel {
    border-radius: 12px !important;
    background: #252b39 !important;
    color: var(--text-soft) !important;
}

.stat-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-label {
    color: var(--text-soft);
    font-size: 0.93rem;
    font-weight: 760;
    line-height: 1.25;
}

.stat-value {
    color: var(--text);
    font-size: 1.85rem;
    font-weight: 820;
    line-height: 1;
}

.stat-helper {
    color: var(--muted);
    font-size: 0.82rem;
}

.stat-icon {
    display: inline-flex;
    width: 64px;
    min-width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(0, 157, 229, 0.12);
    color: #009de5;
    font-size: 27px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.stat-icon.blue {
    background: rgba(0, 157, 229, 0.12);
    color: #009de5;
}

.stat-icon.orange {
    background: rgba(255, 138, 0, 0.13);
    color: var(--orange);
}

.stat-icon.green {
    background: rgba(0, 191, 47, 0.12);
    color: var(--green);
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: rgba(145, 92, 255, 0.14);
    color: var(--purple);
}

.stat-icon-red-soft {
    background: rgba(239, 29, 29, 0.14);
    color: var(--red);
}

.stat-icon.red {
    background: rgba(239, 29, 29, 0.14);
    color: var(--red);
}

#section-rh .section-subnav {
    border-radius: 18px;
}

#section-rh .rh-overview-grid .stat-widget {
    min-height: 112px;
}

#section-rh .rh-overview-grid + .section-subnav {
    margin-top: 0.25rem;
}

.rh-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.rh-filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.rh-filter-actions {
    display: flex;
    align-items: end;
}

.rh-table-shell,
.rh-batches-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.rh-sent-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
}

.rh-batches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.rh-batches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}


/* ==========================================================================
   Camada final de polimento visual - aplicada em todas as telas
   ========================================================================== */

body {
    background:
        radial-gradient(circle at 18% -8%, rgba(93, 183, 231, 0.08), transparent 34rem),
        radial-gradient(circle at 96% 8%, rgba(145, 92, 255, 0.08), transparent 30rem),
        var(--bg);
}

.content-wrapper {
    padding-top: 24px;
}

.content-section.section-active {
    gap: 1.15rem;
}

.section-header,
.suite-command-header {
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.35rem;
    border-color: #3d4860;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(93, 183, 231, 0.08), rgba(145, 92, 255, 0.055) 42%, rgba(255, 255, 255, 0.018)),
        var(--surface);
}

.section-header::after,
.suite-command-header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 26%);
    opacity: 0.5;
}

.section-header > *,
.suite-command-header > *,
.dashboard-nexus-hero > * {
    position: relative;
    z-index: 1;
}

.section-title h2,
.section-header h2,
.suite-command-copy h2,
.dashboard-nexus-copy h2 {
    font-size: clamp(1.15rem, 1.2vw, 1.45rem);
    font-weight: 850;
}

.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p {
    max-width: 72ch;
    color: #aeb8ce;
    font-size: 0.96rem;
}

.bento-grid,
.dashboard-metrics-grid,
.rh-overview-grid,
.calendar-overview-grid,
.calendar-demands-overview,
#os-dashboard,
.stats-grid,
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.bento-grid .stat-widget,
.dashboard-metrics-grid .stat-widget,
.rh-overview-grid .stat-widget,
.calendar-overview-grid .stat-widget,
.calendar-demands-overview .stat-widget,
#os-dashboard .stat-widget,
.stats-grid .stat-widget,
.metrics-grid .stat-widget {
    min-height: 116px !important;
    padding: 1.1rem !important;
    border-radius: 20px !important;
}

/* Barra de progresso da taxa de finalização (O.S.) */

.os-taxa-bar-track {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.os-taxa-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-widget {
    isolation: isolate;
}

.stat-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 20%, rgba(93, 183, 231, 0.13), transparent 11rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 52%);
    opacity: 0.9;
}

.stat-content {
    justify-content: center;
}

.stat-value.text-sm,
.stat-value {
    font-size: clamp(1.65rem, 2vw, 2.15rem) !important;
}

.stat-label {
    color: #c7d0e5;
    font-size: 0.88rem;
}

.stat-icon {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    font-size: 25px !important;
}

.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content {
    border-color: #3a445c;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0)),
        var(--surface);
}

.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item {
    border-radius: 18px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 50%),
        var(--surface-2) !important;
}

.filter-actions,
.section-subnav {
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pill,
.section-subnav-btn,
.users-view-tab {
    min-height: 44px;
    border-radius: 14px !important;
}

.pill.active,
.section-subnav-btn.active,
.users-view-tab.active {
    background:
        linear-gradient(135deg, rgba(93, 183, 231, 0.18), rgba(145, 92, 255, 0.16)),
        #343b50 !important;
    border-color: #5a6686 !important;
}

.local.search-container,
.filter-actions .search-container {
    min-width: min(380px, 100%);
}

#active-tab-title {
    display: flex !important;
    width: fit-content;
    margin: 0.25rem 0 0.6rem !important;
    padding: 0.55rem 0.8rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft) !important;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

@media (min-width: 1280px) {
    .content-section > .bento-grid .stat-widget,
    .content-section > .metrics-grid .stat-widget,
    .content-section > .stats-grid .stat-widget {
        max-width: none;
    }
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
}

.sync-status.online {
    color: var(--green);
}

.sync-status.syncing {
    color: var(--blue);
}

.sync-status.offline {
    color: var(--red);
}

/* ==========================================================================
   Tema unico do sistema
   ========================================================================== */


/* --- From styles/utils/mobile.css --- */
/* ==========================================================================
   G2G Sistemas — Mobile Responsive Layer
   Estratégia: Mobile-last (preserva 100% do desktop, sobrepõe para mobile)
   Breakpoints:
     ≤ 860px  → Tablet / mobile grande
     ≤ 640px  → Mobile médio
     ≤ 480px  → Mobile pequeno / telas estreitas
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   1. SIDEBAR & LAYOUT PRINCIPAL
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {

    /* Sidebar: desliza para fora por padrão */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.28s ease;
        box-shadow: none;
        width: 292px !important;
        min-width: 292px !important;
    }

    /* Sidebar aberta (via JS: sidebar.classList.add('open')) */
    .sidebar.open,
    body.mobile-menu-open .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.55);
    }

    /* Overlay escuro atrás da sidebar */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 199;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    body.mobile-menu-open .sidebar-backdrop {
        display: block;
    }

    /* Conteúdo principal ocupa a tela toda */
    .main-content,
    .sidebar.collapsed + .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Botão hambúrguer fica visível */
    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(93, 183, 231, 0.08);
        border: 1px solid rgba(93, 183, 231, 0.18);
        color: var(--blue);
        font-size: 1.25rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-menu-toggle:hover {
        background: rgba(93, 183, 231, 0.15);
    }

    /* Ocultar botão de colapso no mobile (não faz sentido) */
    .btn-toggle-sidebar {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. TOPBAR
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .topbar {
        min-height: 0;
        padding: 12px 16px 10px;
        gap: 0.5rem;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .topbar-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    /* Search bar ocupa toda a largura */
    .topbar .search-container {
        width: 100% !important;
        max-width: none;
        min-width: 0;
    }

    .page-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 10px 12px 8px;
    }

    .topbar-right {
        gap: 0.35rem;
    }

    /* Esconder botões menos essenciais no mobile pequeno */
    .topbar-right .btn-icon:not(.notification-btn):not(.mobile-menu-toggle) {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. CONTEÚDO GERAL & PADDING
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .content-wrapper {
        padding: 14px 16px 24px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px 12px 20px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   4. GRIDS DE CARDS / BENTO / MÉTRICAS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-layout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-grid,
    .data-grid,
    .rh-overview-grid,
    .calendar-overview-grid,
    .stats-grid,
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .users-group-grid,
    .calendar-demands-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 14px;
    }

    .calendar-demands-card-grid-premium {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }

    .suite-command-header,
    .dashboard-nexus-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0 1.25rem;
    }

    .dashboard-nexus-status {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-nexus-status > div {
        flex-shrink: 0;
        min-width: 80px;
    }
}

@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-widget {
        min-height: 100px;
        padding: 0.95rem;
        gap: 0.85rem;
    }

    .stat-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bento-grid,
    .data-grid {
        grid-template-columns: 1fr;
    }

    .calendar-demands-card-grid,
    .users-group-grid {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   5. CARDS — touch targets, font-size, overflow
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .data-card,
    .managed-user-card,
    .campaign-card,
    .meeting-room-card,
    .rh-card,
    .suggestion-record,
    .calendar-demand-card,
    .template-card,
    .update-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-desc,
    .card-description {
        font-size: 0.85rem;
    }

    .calendar-demand-card-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Aumentar área clicável dos botões de ação */
    .btn-action,
    .os-action-btn,
    .os-hcard-action {
        min-width: 44px;
        min-height: 44px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-actions,
    .card-actions-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   6. TABELAS — scroll horizontal, sem overflow quebrado
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .table-container,
    .table-wrapper,
    .os-hybrid-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    .os-hybrid-table {
        min-width: 700px;
    }
}

@media (max-width: 640px) {
    /* Linhas de tabela: font menor para caber mais */
    td,
    .table tbody td,
    .os-hybrid-table td {
        font-size: 0.82rem;
        padding: 0.7rem 0.85rem;
    }

    th,
    .table thead th,
    .os-hybrid-table th {
        font-size: 0.72rem;
        padding: 0.55rem 0.85rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   7. FORMULÁRIOS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .form-group,
    .input-block {
        gap: 0.5rem;
    }

    .form-control,
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    select,
    textarea,
    .input-wrapper,
    .search-container {
        min-height: 46px; /* touch-friendly */
        border-radius: 12px;
        font-size: 1rem; /* evita zoom automático no iOS */
    }

    textarea {
        min-height: 90px;
    }

    /* Botões de submit/action no form */
    .btn,
    button[type="submit"],
    .btn-primary,
    .btn-outline {
        min-height: 46px;
        font-size: 0.95rem;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
    }

    /* Exceção: botões menores que não precisam ser full-width */
    .btn.btn-sm,
    .btn-icon,
    .btn-action,
    .os-action-btn {
        width: auto;
        min-height: 38px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   8. MODAIS
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .modal-overlay,
    .popover-backdrop {
        padding: 0;
        align-items: flex-end; /* sheet bottom-up */
    }

    .modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0;
        max-height: 90dvh;
        margin: 0;
    }

    .modal-header {
        padding: 1rem 1.25rem 0.75rem;
    }

    .modal-body {
        max-height: calc(90dvh - 140px);
        padding: 1rem 1.25rem;
    }

    .modal-footer,
    .os-modal-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn,
    .os-modal-footer .btn {
        width: 100%;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   9. O.S COLABORADOR — hcards e filtros
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    #section-os-colaborador {
        padding: 1rem;
        gap: 1rem;
    }

    #section-os-colaborador .os-compact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    #section-os-colaborador .os-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    #section-os-colaborador .os-metrics-toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    #section-os-colaborador .os-metric-item {
        min-width: 0;
        flex: none;
    }

    #section-os-colaborador .os-filter-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    #section-os-colaborador .os-filter-toolbar .os-filter-divider {
        display: none;
    }

    #section-os-colaborador .os-filter-toolbar .input-block {
        flex: 1 1 120px;
    }

    #section-os-colaborador .os-filter-toolbar .form-control {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    #section-os-colaborador .os-metrics-toolbar {
        grid-template-columns: repeat(2, 1fr);
    }

    /* hcard em coluna no mobile */
    .os-hcard {
        flex-wrap: wrap;
        min-height: auto;
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .os-hcard-left {
        flex: 1 1 100%;
    }

    .os-hcard-center {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .os-hcard-date {
        margin-left: 0;
        width: 100%;
    }

    .os-hcard-right {
        width: 100%;
    }

    .os-hcard-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .os-hcard-action {
        flex: 1;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #section-os-colaborador .os-metrics-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    #section-os-colaborador .os-metric-value {
        font-size: 1.2rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   10. COCKPIT MODAL (Ficha O.S)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .os-cockpit-identity {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .os-cockpit-title {
        font-size: 1.05rem;
    }

    .os-cockpit-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        gap: 0.25rem;
    }

    .os-cockpit-tabs button,
    .os-cockpit-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 42px;
    }

    .os-cockpit-body {
        padding: 1rem;
    }

    .os-cockpit-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   11. DASHBOARD — Seção específica
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .dashboard-nexus-copy h2 {
        font-size: 1.35rem;
    }

    .dashboard-nexus-copy p {
        font-size: 0.85rem;
    }

    .dashboard-main-col,
    .dashboard-side-col {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .dashboard-nexus-copy h2 {
        font-size: 1.2rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   12. LOGIN PREMIUM (mobile)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .login-premium-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100dvh;
    }

    .login-premium-brand-col {
        display: none; /* Oculta coluna de branding no mobile */
    }

    .login-premium-form-col {
        padding: 2rem 1.25rem;
        min-height: 100dvh;
        justify-content: center;
    }

    .login-glass-card {
        max-width: 100%;
        border-radius: 20px;
        padding: 2rem 1.5rem;
    }

    .login-mobile-logo {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .login-glass-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   13. SEÇÕES DIVERSAS (Campanhas, Templates, Kanban, etc.)
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    /* Action-headers (Toolbar + filtro) */
    .action-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .action-header > * {
        min-width: 0;
    }

    /* Toolbar de filtros genérica */
    .filter-toolbar,
    .toolbar-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Tabs horizontais: scroll se necessário */
    .tab-bar,
    .nav-tabs,
    .page-tabs {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 0.15rem;
    }

    .tab-bar button,
    .nav-tabs button,
    .page-tabs button,
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 40px;
    }

    /* Kanban: scroll horizontal por colunas */
    .kanban-board {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .kanban-column {
        min-width: 280px;
        flex-shrink: 0;
    }

    /* Seção de Sala de Reunião */
    .sala-reuniao-grid {
        grid-template-columns: 1fr !important;
    }

    /* RH grid */
    .rh-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 640px) {
    /* Botões na toolbar que têm texto + ícone: comprimir para só ícone */
    .btn-compact-mobile span {
        display: none;
    }

    .btn-compact-mobile {
        padding: 0 0.75rem;
    }

    /* Seção de painel de sugestões */
    .sugestoes-grid,
    .painel-sugestoes-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sala de reunião cards */
    .meeting-room-card {
        padding: 0.9rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   14. UTILITÁRIOS MOBILE
   ────────────────────────────────────────────────────────────────────────── */

/* Visibilidade seletiva */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: initial;
}

@media (max-width: 860px) {
    .mobile-only {
        display: flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Evitar overflow horizontal global */
    body {
        overflow-x: hidden;
    }

    /* Melhorar scrolling em listas longas */
    .sidebar-nav {
        -webkit-overflow-scrolling: touch;
    }

    /* Aumentar área clicável de links de navegação */
    .sidebar-nav a,
    .nav-item,
    .nav-sub-item {
        min-height: 46px;
    }
}

@media (max-width: 480px) {
    /* Body font levemente menor */
    body {
        font-size: 13.5px;
    }

    /* Títulos de seção comprimidos */
    .section-title h2,
    .section-header h2 {
        font-size: 0.95rem;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   15. SCROLL E INPUTS iOS — Anti-patterns
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    /* Prevenir zoom no foco de inputs no iOS (Safari) */
    input,
    select,
    textarea {
        font-size: max(16px, 1em);
    }

    /* Remover destaque de tap azul no iOS */
    * {
        -webkit-tap-highlight-color: rgba(93, 183, 231, 0.12);
    }

    /* Suavizar scroll em containers com overflow */
    .modal-body,
    .sidebar-nav,
    .table-container,
    .table-wrapper,
    .kanban-board {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}


/* --- From styles/utils/corporate-overrides.css --- */
body {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.08), transparent 24rem),
        radial-gradient(circle at top right, rgba(15, 47, 87, 0.05), transparent 22rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 18%, var(--bg) 100%);
    color: var(--text);
}

a,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

.main-layout,
.main-content,
.content-wrapper {
    background: transparent;
}

.content-wrapper {
    padding: 1.5rem 1.75rem 2rem;
}

.content-section.section-active {
    gap: 1.25rem;
    min-height: calc(100vh - 144px);
}

.sidebar {
    --sidebar-opa-bg: #1e293b;
    --sidebar-opa-surface: rgba(255, 255, 255, 0.05);
    --sidebar-opa-surface-strong: rgba(255, 255, 255, 0.1);
    --sidebar-opa-stroke: rgba(148, 163, 184, 0.26);
    --sidebar-opa-stroke-soft: rgba(148, 163, 184, 0.14);
    --sidebar-opa-text: #f8fafc;
    --sidebar-opa-text-muted: #cbd5e1;
    --sidebar-opa-text-soft: #94a3b8;
    --sidebar-opa-hover: rgba(59, 130, 246, 0.14);
    --sidebar-opa-hover-border: rgba(59, 130, 246, 0.24);
    --sidebar-opa-active: rgba(59, 130, 246, 0.18);
    --sidebar-opa-active-border: rgba(59, 130, 246, 0.32);
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-opa-bg);
    border-right: 1px solid var(--sidebar-opa-stroke-soft);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
    color: var(--sidebar-opa-text);
}

.sidebar::before {
    display: none;
}

.sidebar-header {
    min-height: 72px;
    padding: 0 0.85rem 0 1rem;
    border-bottom: 1px solid var(--sidebar-opa-stroke-soft);
    background: rgba(15, 23, 42, 0.18);
    justify-content: center;
}

.sidebar-header .logo {
    max-width: 128px;
    max-height: 34px;
}

.sidebar-header .logo-text {
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.btn-toggle-sidebar {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--sidebar-opa-surface);
    border: 1px solid var(--sidebar-opa-stroke-soft);
    color: var(--sidebar-opa-text-muted);
}

.sidebar-search {
    margin: 0.75rem 0.75rem 0.6rem;
    padding: 0 0.75rem;
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid var(--sidebar-opa-stroke-soft);
    border-radius: 10px;
}

.sidebar-search:focus-within {
    background: rgba(15, 23, 42, 0.46);
    border-color: var(--sidebar-opa-active-border);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.sidebar-nav a,
.nav-item,
.nav-sub-item {
    color: var(--sidebar-opa-text-muted);
}

.sidebar-search i,
.sidebar-search input {
    color: var(--sidebar-opa-text-muted);
}

.sidebar-search input::placeholder {
    color: var(--sidebar-opa-text-soft);
}

.nav-section-title {
    margin: 1rem 0.45rem 0.35rem;
    color: rgba(148, 163, 184, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.sidebar-nav {
    padding: 0.15rem 0.6rem 1rem;
}

.sidebar-nav ul {
    gap: 0.15rem;
}

.sidebar-nav a,
.nav-item,
.nav-sub-item {
    min-height: 41px;
    padding: 0 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    border-left-width: 1px;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
}

.sidebar-nav a i,
.nav-item i,
.nav-sub-item i {
    color: var(--sidebar-opa-text-soft);
    font-size: 1rem;
}

.sidebar-nav a:hover,
.nav-item:hover,
.nav-sub-item:hover {
    background: var(--sidebar-opa-hover);
    border-color: var(--sidebar-opa-hover-border);
    color: var(--sidebar-opa-text);
    transform: none;
    box-shadow: none;
}

.sidebar-nav a:hover i,
.nav-item:hover i,
.nav-sub-item:hover i,
.nav-group.nav-group-open > a i,
.nav-group.nav-group-open > a .nav-group-caret {
    color: var(--sidebar-opa-text);
}

.sidebar-nav a.active,
.nav-item.active,
.nav-sub-item.active {
    background: var(--sidebar-opa-active);
    border: 1px solid var(--sidebar-opa-active-border);
    border-left-width: 1px;
    border-radius: 10px;
    box-shadow: none;
    color: var(--sidebar-opa-text);
}

.sidebar-nav a.active i,
.nav-item.active i,
.nav-sub-item.active i {
    color: var(--sidebar-opa-text);
    filter: none;
}

.nav-submenu {
    margin: 0.1rem 0 0.35rem 1rem;
    padding-left: 0.7rem;
    border-left: 1px solid var(--sidebar-opa-stroke-soft);
}

.nav-group.nav-group-open .nav-submenu {
    margin: 0.25rem 0 0.5rem 1rem;
}

.nav-sub-item {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sidebar-opa-text-soft);
}

.sidebar-footer {
    min-height: 78px;
    padding: 0.85rem 0.75rem;
    border-top: 1px solid var(--sidebar-opa-stroke-soft);
    background: rgba(255, 255, 255, 0.03);
}

.user-profile {
    gap: 0.75rem;
}

.user-info strong {
    color: var(--sidebar-opa-text);
    font-size: 0.82rem;
    font-weight: 700;
}

.user-info span {
    color: var(--sidebar-opa-text-soft);
    font-size: 0.72rem;
}

.avatar-initial {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid var(--sidebar-opa-stroke-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sidebar-opa-text);
    box-shadow: none;
}

.btn-toggle-sidebar,
.btn-logout {
    background: var(--sidebar-opa-surface);
    border: 1px solid var(--sidebar-opa-stroke-soft);
    color: var(--sidebar-opa-text-muted);
}

.btn-toggle-sidebar:hover,
.btn-logout:hover {
    background: var(--sidebar-opa-surface-strong);
    border-color: var(--sidebar-opa-stroke);
    color: var(--sidebar-opa-text);
}

.sidebar.collapsed .sidebar-nav {
    padding: 8px 6px 12px;
}

.sidebar.collapsed .sidebar-nav ul {
    gap: 6px;
}

.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-sub-item {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border: 1px solid transparent;
    border-left-width: 1px;
    border-radius: 10px;
    background: transparent;
}

.sidebar.collapsed .sidebar-nav a:hover,
.sidebar.collapsed .nav-item:hover {
    background: var(--sidebar-opa-hover);
    border-color: var(--sidebar-opa-hover-border);
}

.sidebar.collapsed .sidebar-nav a.active,
.sidebar.collapsed .nav-item.active {
    background: var(--sidebar-opa-active);
    border: 1px solid var(--sidebar-opa-active-border);
    border-left-width: 1px;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-nav a i,
.sidebar.collapsed .nav-item i {
    color: var(--sidebar-opa-text-soft);
    font-size: 18px;
}

.sidebar.collapsed .sidebar-nav a:hover i,
.sidebar.collapsed .nav-item:hover i,
.sidebar.collapsed .sidebar-nav a.active i,
.sidebar.collapsed .nav-item.active i {
    color: var(--sidebar-opa-text);
}

.sidebar.collapsed .sidebar-footer {
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.02);
}

.main-content {
    margin-left: 260px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 92px;
    align-items: center;
    padding: 1.05rem 1.75rem 0;
    background: linear-gradient(180deg, rgba(244, 246, 249, 0.92) 0%, rgba(244, 246, 249, 0.72) 100%);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-right {
    gap: 0.85rem;
}

.page-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--blue-strong);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    background: var(--surface);
    border-color: rgba(31, 122, 224, 0.24);
    color: var(--primary);
}

.notification-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px #ffffff;
}

.search-container,
.input-wrapper,
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
select,
textarea {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.input-block label,
.form-label,
label {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.form-control,
input,
select,
textarea {
    min-height: 46px;
    padding: 0.82rem 0.95rem;
    border-radius: 14px;
    font-size: 0.94rem;
}

textarea {
    min-height: 116px;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #9aa4b2;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus,
.input-wrapper:focus-within,
.search-container:focus-within {
    border-color: rgba(31, 122, 224, 0.42);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}

.icon-left {
    color: #94a3b8;
}

.topbar .search-container {
    width: 180px;
    min-width: 180px;
    height: 34px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.topbar .search-container .icon-left {
    color: var(--primary);
}

.btn,
.btn-action,
.section-subnav-btn,
.users-view-tab,
.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn:hover,
.btn-action:hover,
.section-subnav-btn:hover,
.users-view-tab:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-quiet-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 122, 224, 0.14);
    background: var(--surface);
    color: var(--primary);
}

.btn-primary,
.btn-action.primary,
.section-subnav-btn.active,
.users-view-tab.active,
.kanban-dark-primary-btn,
.os-add-row-btn,
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1562ba 100%);
    color: #ffffff;
    border-color: rgba(15, 47, 87, 0.28);
    box-shadow: 0 16px 30px rgba(31, 122, 224, 0.18);
}

.btn-primary:hover,
.btn-action.primary:hover,
.section-subnav-btn.active:hover,
.users-view-tab.active:hover,
.kanban-dark-primary-btn:hover,
.os-add-row-btn:hover,
.btn-premium:hover {
    background: linear-gradient(135deg, #1562ba 0%, var(--blue-strong) 100%);
    color: #ffffff;
}

.btn-outline,
.btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text-soft);
}

.btn-danger,
.btn-action.danger {
    background: #fff5f5;
    color: #b91c1c;
    border-color: #fecaca;
    box-shadow: none;
}

.btn-danger:hover,
.btn-action.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.btn-sm {
    min-height: 36px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 12px;
}

.btn-shortcut {
    min-height: 118px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-sm);
}

.btn-shortcut:hover,
.btn-shortcut.primary-action {
    border-color: rgba(31, 122, 224, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
}

.section-header,
.suite-command-header,
.dashboard-nexus-hero,
.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content,
.notification-center-panel {
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text) !important;
}

.section-header,
.suite-command-header {
    padding: 1.3rem 1.45rem;
}

.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p {
    color: var(--muted) !important;
}

.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item,
.update-item {
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text) !important;
    cursor: default;
}

.data-card:hover,
.managed-user-card:hover,
.campaign-card:hover,
.meeting-room-card:hover,
.rh-card:hover,
.suggestion-record:hover,
.calendar-demand-card:hover,
.template-card:hover,
.update-card:hover,
.update-item:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 122, 224, 0.22) !important;
    background: var(--surface) !important;
    box-shadow: 0 22px 40px rgba(15, 47, 87, 0.12) !important;
}

.data-card::before,
.managed-user-card::before,
.campaign-card::before,
.meeting-room-card::before,
.rh-card::before,
.suggestion-record::before,
.calendar-demand-card::before,
.template-card::before,
.update-card::before {
    background: linear-gradient(180deg, var(--primary) 0%, var(--blue-strong) 100%) !important;
}

.card-title,
.dashboard-campaign-card-title,
.dashboard-users-presence-name {
    color: var(--text) !important;
}

.card-desc,
.card-description,
.card-meta,
.card-date,
.dashboard-campaign-card-desc,
.dashboard-campaign-card-meta,
.dashboard-scheduled-item p,
.dashboard-users-presence-meta {
    color: var(--muted) !important;
}

.badge,
.status-badge,
.tag,
.pill,
.stat-pill,
.nav-badge,
.suggestion-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--surface-3);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: none;
}

.badge-primary,
.status-info {
    background: #edf5ff;
    border-color: #cfe0ff;
    color: #1554a4;
}

.badge-success,
.status-success,
.tag-success {
    background: #edf9f3;
    border-color: #c7ecd7;
    color: #157347;
}

.badge-warning,
.status-warning,
.tag-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.badge-danger,
.status-danger,
.tag-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.badge-neutral {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

table,
.table,
.rh-table,
.os-table,
.calendar-table,
.meeting-room-table {
    background: var(--surface);
}

th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th {
    background: var(--surface-2);
    color: var(--blue-strong);
    border-bottom: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

td,
.table tbody td,
.rh-table td,
.os-table td,
.calendar-table td,
.meeting-room-table td {
    color: var(--text-soft);
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
}

tbody tr:hover td,
.table tbody tr:hover td,
.rh-table tbody tr:hover td,
.os-table tbody tr:hover td,
.calendar-table tbody tr:hover td,
.meeting-room-table tbody tr:hover td {
    background: #f8fbff;
}

.stat-widget {
    min-height: 126px !important;
    align-items: flex-start;
    padding: 1.3rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
    box-shadow: var(--shadow-card) !important;
}

.stat-widget::before,
.stat-widget::after {
    content: none !important;
}

.stat-content {
    gap: 0.28rem;
}

.stat-label {
    color: var(--muted) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-value,
.stat-value.text-sm {
    color: var(--blue-strong) !important;
    font-size: clamp(1.7rem, 2vw, 2.2rem) !important;
    font-weight: 800 !important;
}

.stat-helper {
    color: var(--muted) !important;
}

.stat-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 18px !important;
    font-size: 1.4rem !important;
    background: #edf5ff !important;
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 1px rgba(31, 122, 224, 0.08);
}

.stat-icon.green {
    background: #edf9f3 !important;
    color: #157347 !important;
}

.stat-icon.orange {
    background: #fff7ed !important;
    color: #b45309 !important;
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: #eef2ff !important;
    color: #4338ca !important;
}

.dashboard-nexus-hero {
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
    padding: 1.6rem;
    border-bottom: 0;
    background:
        radial-gradient(circle at top right, rgba(31, 122, 224, 0.12), transparent 16rem),
        linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

.dashboard-nexus-kicker {
    color: var(--primary) !important;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
}

.dashboard-nexus-copy h2 {
    color: var(--blue-strong) !important;
    font-size: clamp(1.55rem, 2vw, 2.15rem) !important;
}

.dashboard-nexus-status {
    gap: 0.85rem;
}

.dashboard-nexus-status > div {
    min-width: 118px;
    padding: 0.8rem 1rem;
    border: 1px solid #dbe7f3;
    border-radius: 16px;
    background: var(--surface);
}

.dashboard-nexus-status span {
    color: var(--muted);
}

.dashboard-nexus-status strong {
    color: var(--blue-strong);
}

.action-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}

.action-header h3 {
    color: var(--blue-strong) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
}

.quick-actions-panel .shortcut-grid,
.dashboard-campaign-wall,
.dashboard-scheduled-list,
.dashboard-users-presence-list,
.updates-panel .updates-list {
    padding: 1.1rem 1.25rem 1.25rem;
}

.dashboard-campaign-card,
.dashboard-scheduled-item,
.dashboard-users-presence-item,
.infra-metric {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.dashboard-campaign-card,
.dashboard-scheduled-item,
.infra-metric {
    padding: 1rem;
}

.dashboard-campaign-alert.critical {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.dashboard-campaign-alert strong {
    color: #9f1239;
}

.dashboard-infra-panel .infra-metric {
    margin: 0 1.25rem 0.85rem;
    border-bottom: 0;
}

.infra-bar {
    height: 6px;
    border-radius: 999px;
    background: #dbe6f1;
}

.infra-bar.cyan span {
    background: linear-gradient(90deg, #1f7ae0, #3b82f6);
}

.infra-bar.green span {
    background: linear-gradient(90deg, #1f9d6b, #34d399);
}

.infra-bar.amber span {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.infra-pill {
    margin: 0 1.25rem 1.25rem;
    background: #edf9f3;
    border-color: #c7ecd7;
    color: #157347;
}

.modal-overlay,
.popover-backdrop {
    background: rgba(15, 34, 63, 0.44);
    backdrop-filter: blur(8px);
}

.modal {
    width: min(760px, calc(100vw - 2rem));
    max-width: 100%;
    max-height: 92vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem 0.95rem;
    border-bottom: 1px solid var(--line-soft);
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer,
.os-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.2rem;
    border-top: 1px solid var(--line-soft);
    background: var(--surface-2);
}

.modal-close {
    border-color: var(--line);
    background: var(--surface);
    color: var(--muted);
}

.modal-close:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.premium-login-screen {
    background:
        radial-gradient(circle at 8% 20%, rgba(31, 122, 224, 0.14), transparent 22rem),
        radial-gradient(circle at 92% 10%, rgba(15, 47, 87, 0.18), transparent 20rem),
        linear-gradient(135deg, #eef4fb 0%, #f8fbff 48%, #eaf0f7 100%);
    color: var(--text);
}

.login-premium-brand-col {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 18rem),
        linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar) 100%);
    color: #ffffff;
}

.brand-logo {
    filter: none;
}

.brand-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
}

.brand-subheadline,
.brand-bullets li,
.indicator-item strong {
    color: rgba(255, 255, 255, 0.82);
}

.brand-bullets i {
    color: #93c5fd;
    filter: none;
}

.indicator-item i {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
}

.indicator-item span {
    color: rgba(255, 255, 255, 0.52);
}

.ghost-widget {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.login-glass-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 47, 87, 0.08);
    box-shadow: 0 30px 70px rgba(15, 47, 87, 0.18);
}

.login-card-header h2 {
    color: var(--blue-strong);
}

.login-card-header p,
.premium-checkbox .label-text,
.microcopy {
    color: var(--muted);
}

.premium-form .input-wrapper {
    background: #ffffff;
    border-color: var(--line);
}

.premium-form .input-wrapper:focus-within {
    background: #ffffff;
    border-color: rgba(31, 122, 224, 0.42);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}

.premium-form .icon-left,
.premium-form .btn-append,
.premium-input::placeholder,
.premium-link {
    color: var(--primary);
}

.premium-input {
    color: var(--text);
}

.premium-checkbox .checkmark {
    border-color: #cbd5e1;
    background: #ffffff;
}

.premium-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.premium-checkbox input:checked ~ .checkmark::after {
    border-color: #ffffff;
}

.login-card-footer {
    border-top-color: var(--line-soft);
}

@media (max-width: 1180px) {
    .topbar .search-container {
        width: 180px;
        min-width: 180px;
    }

    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .sidebar {
        width: 260px !important;
        min-width: 260px !important;
    }

    .topbar {
        padding: 0.9rem 1rem 0;
        background: rgba(244, 246, 249, 0.94);
        border-bottom: 1px solid rgba(15, 47, 87, 0.06);
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .topbar .search-container {
        width: 100% !important;
        min-width: 0;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .dashboard-nexus-hero,
    .section-header,
    .suite-command-header {
        padding: 1.2rem;
    }

    .dashboard-nexus-status {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .content-wrapper {
        padding: 0.85rem;
    }

    .page-title {
        font-size: 15px;
    }

    .btn,
    .btn-primary,
    .btn-outline,
    .btn-action {
        min-height: 44px;
    }

    .dashboard-metrics-grid,
    .bento-grid,
    .data-grid,
    .users-group-grid,
    .calendar-demands-card-grid {
        grid-template-columns: 1fr !important;
    }

    .stat-widget {
        min-height: 112px !important;
        padding: 1rem !important;
    }

    .modal {
        width: calc(100vw - 1rem);
    }
}

/* ==========================================================================
   Dark-only final layer
   ========================================================================== */

body {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.12), transparent 24rem),
        radial-gradient(circle at top right, rgba(15, 47, 87, 0.1), transparent 22rem),
        linear-gradient(180deg, #06111d 0%, var(--bg) 18%, var(--bg) 100%);
}

.topbar {
    background: linear-gradient(180deg, rgba(8, 22, 38, 0.94) 0%, rgba(8, 22, 38, 0.78) 100%);
}

.page-title,
.dashboard-nexus-copy h2,
.action-header h3,
th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th,
.login-card-header h2 {
    color: #f8fafc !important;
}

.btn-icon,
.btn,
.btn-action,
.section-subnav-btn,
.users-view-tab,
.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn,
.modal-close,
.search-container,
.input-wrapper,
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="time"],
select,
textarea,
.premium-form .input-wrapper {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

.btn:hover,
.btn-action:hover,
.section-subnav-btn:hover,
.users-view-tab:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-quiet-btn:hover,
.btn-icon:hover,
.modal-close:hover {
    background: var(--surface-hover) !important;
}

.btn-outline,
.btn-secondary {
    background: var(--surface-2) !important;
    color: var(--text-soft) !important;
}

.section-header,
.suite-command-header,
.dashboard-nexus-hero,
.panel,
.action-panel,
.updates-panel,
.users-presence-panel,
.filter-actions,
.section-subnav,
.table-container,
.table-wrapper,
.calendar-shell,
.suggestion-form-panel,
.suggestion-list-panel,
.suggestion-admin-panel,
.rh-table-shell,
.rh-batches-panel,
.modal,
.modal-content,
.notification-center-panel,
.data-card,
.managed-user-card,
.campaign-card,
.meeting-room-card,
.rh-card,
.suggestion-record,
.calendar-demand-card,
.template-card,
.update-card,
.users-group,
.calendar-day,
.calendar-demand-item,
.meeting-room-participant-card,
.suggestion-attachment-card,
.rh-batch-card,
.notification-item,
.update-item,
.dashboard-campaign-card,
.dashboard-scheduled-item,
.dashboard-users-presence-item,
.infra-metric,
.btn-shortcut,
.dashboard-nexus-status > div,
.login-glass-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

.dashboard-nexus-hero {
    background:
        radial-gradient(circle at top right, rgba(31, 122, 224, 0.18), transparent 16rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
        var(--surface) !important;
}

.card-desc,
.card-description,
.card-meta,
.card-date,
.dashboard-campaign-card-desc,
.dashboard-campaign-card-meta,
.dashboard-scheduled-item p,
.dashboard-users-presence-meta,
.section-title p,
.section-header p,
.suite-command-copy p,
.dashboard-nexus-copy p,
.login-card-header p,
.premium-checkbox .label-text,
.microcopy,
td,
.table tbody td,
.rh-table td,
.os-table td,
.calendar-table td,
.meeting-room-table td {
    color: var(--muted) !important;
}

table,
.table,
.rh-table,
.os-table,
.calendar-table,
.meeting-room-table {
    background: transparent !important;
}

th,
.table thead th,
.rh-table th,
.os-table th,
.calendar-table th,
.meeting-room-table th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom-color: var(--line) !important;
}

tbody tr:hover td,
.table tbody tr:hover td,
.rh-table tbody tr:hover td,
.os-table tbody tr:hover td,
.calendar-table tbody tr:hover td,
.meeting-room-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

.badge-primary,
.status-info {
    background: rgba(31, 122, 224, 0.18) !important;
    border-color: rgba(31, 122, 224, 0.28) !important;
    color: #bfdbfe !important;
}

.badge-success,
.status-success,
.tag-success {
    background: rgba(31, 157, 107, 0.18) !important;
    border-color: rgba(31, 157, 107, 0.28) !important;
    color: #bbf7d0 !important;
}

.badge-warning,
.status-warning,
.tag-warning {
    background: rgba(217, 119, 6, 0.18) !important;
    border-color: rgba(217, 119, 6, 0.28) !important;
    color: #fed7aa !important;
}

.badge-danger,
.status-danger,
.tag-danger {
    background: rgba(220, 38, 38, 0.18) !important;
    border-color: rgba(220, 38, 38, 0.28) !important;
    color: #fecaca !important;
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #cbd5e1 !important;
}

.stat-widget {
    background:
        radial-gradient(circle at top left, rgba(31, 122, 224, 0.12), transparent 12rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--surface) !important;
}

.stat-value,
.stat-value.text-sm {
    color: #f8fafc !important;
}

.stat-icon {
    background: rgba(31, 122, 224, 0.16) !important;
    color: #93c5fd !important;
}

.stat-icon.green {
    background: rgba(31, 157, 107, 0.16) !important;
    color: #86efac !important;
}

.stat-icon.orange {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #fdba74 !important;
}

.stat-icon.purple,
.stat-icon-purple-soft {
    background: rgba(79, 70, 229, 0.16) !important;
    color: #c4b5fd !important;
}

.infra-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

.modal-footer,
.os-modal-footer {
    background: rgba(255, 255, 255, 0.02) !important;
}

.premium-login-screen {
    background:
        radial-gradient(circle at 8% 20%, rgba(31, 122, 224, 0.16), transparent 22rem),
        radial-gradient(circle at 92% 10%, rgba(15, 47, 87, 0.22), transparent 20rem),
        linear-gradient(135deg, #071321 0%, #081626 48%, #0a1b2c 100%) !important;
}

.login-premium-brand-col {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 18rem),
        linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar) 100%) !important;
}

.premium-input {
    color: var(--text) !important;
}

}

/* ==========================================
   Desktop Enterprise Premium Layout Overrides
   ========================================== */

/* Enforce desktop widescreen layout only */
body, #app-wrapper, .app-wrapper, html {
    min-width: 1200px !important;
    width: 100% !important;
    overflow-x: auto !important;
}

/* Hide mobile toggles, overlays, backdrop, hamburger, mobile menus */
.sidebar-backdrop, 
.btn-sidebar-toggle, 
.mobile-header, 
.mobile-toggle, 
#btn-sidebar-toggle-mobile, 
.hamburger-menu, 
.mobile-only,
[class*="mobile-header"],
[class*="mobile-toggle"] {
    display: none !important;
}

/* Hide all presence indicators, status dots, and presence widgets visually */
.presence-dot, 
.presence-indicator, 
#dashboard-users-presence-panel, 
#stat-users-presence, 
.users-presence-panel, 
.user-presence-dot, 
.online-dot, 
.status-dot, 
.status-indicator, 
.status-online, 
.user-status-text, 
.user-status, 
.presence-status {
    display: none !important;
}

/* Style sidebar with premium glassmorphism and borders */
.sidebar {
    background: rgba(8, 17, 32, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Glowing border accent on active menu item */
.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
    border-left: 3px solid #3B82F6 !important;
    color: #F8FAFC !important;
}

/* REMOVE ESPAÇO SUPERIOR */
main,
.content,
.dashboard-container,
.main-content,
.content-wrapper {
    padding-top: 0px !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   IXC PROVEDOR COMPACT OVERRIDES (HIGH DENSITY REDESIGN)
   ========================================================================== */

/* 1. Global root font size reduction */
html {
    font-size: 12.5px !important;
}

/* 2. Layout padding & wrapper density */
.content-wrapper {
    padding: 0.75rem 1rem 1rem !important;
}
.content-section.section-active {
    gap: 0.75rem !important;
    min-height: calc(100vh - 100px) !important;
}

/* 3. Sidebar Width & Alignment Adjustments */
.sidebar:not(.collapsed) {
    width: 250px !important;
    min-width: 250px !important;
}
.sidebar.collapsed {
    width: 66px !important;
    min-width: 66px !important;
}
.main-content {
    margin-left: 250px !important;
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed + .main-content {
    margin-left: 66px !important;
}

/* Profile Box */
.sidebar-profile-box {
    padding-top: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}
.sidebar-profile-box .btn-sidebar-back {
    top: 0.5rem !important;
    right: 0.5rem !important;
}
.sidebar-profile-box .flex.items-center {
    margin-top: 0.25rem !important;
    gap: 0.5rem !important;
}
.sidebar-profile-box img {
    width: 2rem !important;
    height: 2rem !important;
}
.sidebar-profile-box .user-info h3 {
    font-size: 0.75rem !important;
}
.sidebar-profile-box .user-info span {
    font-size: 0.65rem !important;
    margin-top: 0.1rem !important;
}
.sidebar-profile-box .sidebar-divider {
    margin-top: 0.5rem !important;
}

/* Search Box */
.sidebar-search {
    margin: 0.5rem 0.5rem 0.35rem !important;
    padding: 0 0.5rem !important;
    border-radius: 6px !important;
}
.sidebar-search input {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    font-size: 0.75rem !important;
}

/* Navigation Links */
.sidebar-nav {
    padding: 0.1rem 0.4rem 0.5rem !important;
}
.sidebar-nav ul {
    gap: 1px !important;
}
.sidebar-nav a,
.nav-item {
    min-height: 28px !important;
    padding: 0 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}
.sidebar-nav a i,
.nav-item i {
    font-size: 0.95rem !important;
    margin-right: 0.45rem !important;
}
.nav-section-title {
    margin: 0.65rem 0.5rem 0.2rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.08em !important;
}

/* Sidebar Submenu */
.nav-submenu {
    margin: 0px 0 0.1rem 0.5rem !important;
    padding-left: 0.5rem !important;
}
.nav-sub-item {
    min-height: 24px !important;
    padding: 0 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
}
.nav-group.nav-group-open .nav-submenu {
    margin: 0.1rem 0 0.2rem 0.5rem !important;
}

/* Footer Support/Logout */
.sidebar-footer {
    padding: 0.5rem 0.75rem !important;
    gap: 2px !important;
}
.sidebar-footer button {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
}
.sidebar-footer button i {
    font-size: 0.85rem !important;
}

/* 4. Topbar Compactness overrides */
.topbar {
    min-height: 44px !important;
    padding: 0.25rem 1rem 0 !important;
    background: var(--bg) !important;
    border-bottom: 1px solid var(--line) !important;
}
.topbar .page-title {
    font-size: 13px !important;
}
.topbar .btn-icon,
.topbar button {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
}
.topbar .search-container {
    width: 140px !important;
    min-width: 140px !important;
    height: 28px !important;
    border-radius: 6px !important;
}
.topbar .search-container input {
    font-size: 0.75rem !important;
    padding-left: 1.75rem !important;
}
.topbar .search-container i {
    font-size: 0.85rem !important;
    left: 0.5rem !important;
}

/* 5. Compact Cards/Widgets on Dashboard */
.dashboard-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
@media (max-width: 1024px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}
.stat-widget {
    min-height: 72px !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 8px !important;
}
.stat-widget .stat-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}
.stat-widget .stat-label {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word !important;
    letter-spacing: 0.01em !important;
}
.stat-widget .stat-value {
    font-size: 1.35rem !important;
}
.stat-widget .text-xs {
    font-size: 9px !important;
}
.stat-widget > div.flex {
    gap: 0.35rem !important;
}

/* 6. Dashboard Panels and Containers */
.dashboard-nexus-hero {
    padding: 1rem !important;
    border-radius: 12px !important;
}
.panel,
.section-header,
.action-panel,
.table-container {
    border-radius: 12px !important;
}
.panel-body,
.section-header,
.action-panel {
    padding: 0.75rem !important;
}
.panel-header {
    padding: 0.5rem 0.75rem !important;
}
.panel-title {
    font-size: 11px !important;
    font-weight: 700 !important;
}
.chart-container {
    height: 200px !important;
}
.dashboard-charts-grid {
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}
.dashboard-charts-grid .action-panel {
    height: 220px !important;
    padding: 0.5rem 0.65rem !important;
}
.dashboard-charts-grid .action-panel > div.flex {
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}
.dashboard-charts-grid .action-panel h3 {
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
}
.dashboard-charts-grid .action-panel h3 i {
    font-size: 14px !important;
}

/* 7. Form controls and tables density */
.form-control,
input,
select,
textarea {
    min-height: 30px !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
}
.form-label,
label {
    font-size: 0.75rem !important;
    margin-bottom: 0.2rem !important;
}
.btn,
.btn-action {
    min-height: 30px !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
}
.btn-sm {
    min-height: 24px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
}

/* Table elements */
.table thead th,
.rh-table th,
.os-table th,
.os-hybrid-table th {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.72rem !important;
}
.table tbody td,
.rh-table td,
.os-table td,
.os-hybrid-table td {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
}

/* ==========================================================================
   G2G PREMIUM — Redesenho de Modelos e Mensagens (Templates)
   ========================================================================== */

/* Seções de Grupo */
.tpl-group-section {
    margin-bottom: 2rem;
}

.tpl-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tpl-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
}

.tpl-group-line {
    flex: 1;
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0;
}

/* Grids dos Grupos */
.tpl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .tpl-grid { grid-template-columns: 1fr; } }

/* Cartão Individual */
.tpl-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface, #0d192d);
    border: 1px solid var(--border-line-mid, #1e293b);
    border-radius: var(--radius-lg, 12px);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    min-height: 160px;
    box-sizing: border-box;
}

/* Etiquetas de Categorias (Adesivinhos) */
.tpl-category-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    width: fit-content;
    border: 1px solid transparent;
}
.tpl-cat-cobranca {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}
.tpl-cat-lembrete {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.tpl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(30, 127, 224, 0.3);
}

/* Cabeçalho do Cartão */
.tpl-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tpl-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin: 0;
    line-height: 1.3;
}

/* Badges de Status */
.tpl-card-status-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.tpl-card-status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.tpl-card-status-badge.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.2);
}

.tpl-card-status-badge.review {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Corpo do Cartão */
.tpl-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tpl-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.4;
    margin: 0;
}

/* Etiquetas Funcionais */
.tpl-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto;
}

.tpl-card-tag {
    font-size: 9px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Rodapé do Cartão */
.tpl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}

/* Ações Individuais do Cartão */
.tpl-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.tpl-card-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #f8fafc);
    border-color: rgba(255, 255, 255, 0.15);
}

.tpl-card-action.view:hover {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.tpl-card-action.edit:hover {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.tpl-card-action.duplicate:hover {
    color: #1e7fe0;
    border-color: rgba(30, 127, 224, 0.3);
    background: rgba(30, 127, 224, 0.05);
}

.tpl-card-action.delete:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

/* ==========================================================================
   27. DASHBOARD REVAMP (ENTERPRISE HIGH-END SYSTEM)
   ========================================================================== */
.glass-panel {
    background: rgba(19, 27, 38, 0.45) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-3px) scale(1.008) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Specific glows for KPI widgets */
.glow-blue:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

.glow-red:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.glow-green:hover {
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
}

.glow-cyan:hover {
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
}

.glow-orange:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.glow-purple:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Header UI Elements */
.dashboard-header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dashboard-header-search {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: var(--text);
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    font-size: 0.8rem;
    width: 170px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-header-search:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.period-tabs-wrapper {
    display: flex !important;
    background: #0f172a !important;
    padding: 4px !important;
    border-radius: 30px !important;
    width: 220px !important;
    gap: 4px !important;
}

.period-tab {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 10px 0 !important;
    border-radius: 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.period-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.period-tab.active {
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
}

/* Team Performance List */
.team-performance-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.team-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(255, 255, 255, 0.04);
}

.mr-cal-day.has-meeting {
    border-bottom: 2px solid #10b981 !important;
}

/* MODAL TELA CHEIA - SALA DE REUNIÃO */
#modal-meeting-room .meeting-room-premium-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
}

#modal-meeting-room .meeting-room-participants-list {
    max-height: calc(92vh - 350px) !important;
}

#modal-meeting-room .meeting-room-selected-list {
    max-height: calc(92vh - 350px) !important;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.62rem;
    top: 0.3rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #0b0f19;
}

.timeline-item.warning::before {
    background: #ef4444;
}

.timeline-item.success::before {
    background: #22c55e;
}

.timeline-item.orange::before {
    background: #f59e0b;
}

.timeline-item.purple::before {
    background: #8b5cf6;
}

/* Weekly Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 0.5rem;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    cursor: pointer;
    transition: background 0.15s ease;
}

.heatmap-cell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.heatmap-cell.level-1 { background: rgba(59, 130, 246, 0.15) !important; }
.heatmap-cell.level-2 { background: rgba(59, 130, 246, 0.35) !important; }
.heatmap-cell.level-3 { background: rgba(59, 130, 246, 0.6) !important; }
.heatmap-cell.level-4 { background: #3b82f6 !important; }

/* Circular Progress Meta */
.circle-progress-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-progress-value {
    position: absolute;
    font-size: 0.78rem;
    font-weight: 800;
    color: #f8fafc;
}

.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke: #3b82f6;
    transition: stroke-dasharray 0.3s ease;
}

/* Rotate icon animation */
.rotate-spin {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skeleton Loading CSS */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.4s infinite ease-in-out;
}

@keyframes loading-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}



/* Garantir que as mini sparklines ocupem o espaço e não herdem backgrounds indesejados */
.stat-widget canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

/* Modal premium de agendamento interno */
#modal-meeting-room.meeting-room-premium-overlay {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(12, 22, 48, 0.84), rgba(20, 14, 42, 0.9));
    backdrop-filter: blur(18px) saturate(130%);
}

.meeting-room-premium-modal {
    position: relative;
    width: min(1120px, calc(100vw - 24px));
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 31, 0.98) 54%, rgba(24, 18, 48, 0.95));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 46px rgba(37, 99, 235, 0.2);
    color: #f8fafc;
}

.meeting-room-premium-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), transparent 36%, rgba(124, 58, 237, 0.1) 72%, transparent), linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%);
}

.meeting-room-modal-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.meeting-room-premium-modal .meeting-room-modal-header {
    position: relative;
    z-index: 1;
    padding: 24px 26px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.42);
}

.meeting-room-modal-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.meeting-room-modal-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.38);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.26), rgba(124, 58, 237, 0.18));
    color: #93c5fd;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
}

.meeting-room-modal-icon i {
    font-size: 1.45rem;
}

.meeting-room-modal-kicker,
.meeting-room-section-kicker {
    display: inline-flex;
    margin-bottom: 5px;
    color: #60a5fa;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meeting-room-modal-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 850;
    line-height: 1.05;
}

.meeting-room-modal-heading p,
.meeting-room-section-description {
    color: #94a3b8;
    line-height: 1.45;
}

.meeting-room-modal-heading p {
    margin: 7px 0 0;
    font-size: 0.93rem;
}

.meeting-room-premium-modal .meeting-room-modal-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.meeting-room-premium-modal .meeting-room-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.86);
    color: #bfdbfe;
}

.meeting-room-premium-modal .meeting-room-modal-body {
    position: relative;
    z-index: 1;
    padding: 22px;
    overflow: auto;
}

.meeting-room-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
}

.meeting-room-premium-modal .meeting-room-panel {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.meeting-room-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.meeting-room-panel-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 780;
}

.meeting-room-section-description {
    margin: 7px 0 0;
    font-size: 0.82rem;
}

.meeting-room-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.meeting-room-field-span-2 {
    grid-column: 1 / -1;
}

.meeting-room-premium-modal .input-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.meeting-room-premium-modal .input-block label {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 760;
}

.meeting-room-field-control,
.meeting-room-search {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.17);
    background: rgba(2, 6, 23, 0.42);
    color: #93c5fd;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meeting-room-field-control {
    min-height: 48px;
}

.meeting-room-field-control:hover,
.meeting-room-field-control:focus-within,
.meeting-room-search:focus-within {
    border-color: rgba(96, 165, 250, 0.54);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 0 24px rgba(37, 99, 235, 0.12);
}

.meeting-room-field-control > i:first-child,
.meeting-room-search i {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    pointer-events: none;
}

.meeting-room-field-control input,
.meeting-room-field-control select,
.meeting-room-notes-block textarea,
.meeting-room-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 0.93rem;
}

.meeting-room-field-control input,
.meeting-room-field-control select {
    height: 48px;
    padding: 0 44px 0 42px;
}

.meeting-room-field-control select {
    appearance: none;
    cursor: pointer;
}

.meeting-room-field-control input::placeholder,
.meeting-room-notes-block textarea::placeholder,
.meeting-room-search input::placeholder {
    color: #64748b;
}

.meeting-room-select-caret {
    position: absolute;
    right: 14px;
    color: #64748b;
    pointer-events: none;
}

.meeting-room-participants-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}

.meeting-room-participants-main,
.meeting-room-selected-sidebar {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
}

.meeting-room-participants-main,
.meeting-room-selected-sidebar {
    padding: 14px;
}

.meeting-room-participants-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.meeting-room-search {
    min-height: 44px;
    background: rgba(15, 23, 42, 0.55);
    color: #60a5fa;
}

.meeting-room-search input {
    height: 44px;
    padding: 0 14px 0 42px;
}

.meeting-room-toggle-all,
.meeting-room-selected-count {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 760;
}

.meeting-room-toggle-all {
    padding: 0 15px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(37, 99, 235, 0.08);
    color: #bfdbfe;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.meeting-room-toggle-all:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(37, 99, 235, 0.16);
}

.meeting-room-toggle-all:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.meeting-room-selected-count {
    padding: 0 13px;
    border: 1px solid rgba(124, 58, 237, 0.24);
    background: rgba(124, 58, 237, 0.1);
    color: #ddd6fe;
}

.meeting-room-participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    max-height: 354px;
    overflow: auto;
    padding-right: 4px;
}

.meeting-room-user-option {
    position: relative;
    min-height: 82px;
    display: grid;
    grid-template-columns: 24px 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(15, 23, 42, 0.54);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meeting-room-user-option:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 41, 59, 0.62);
}

.meeting-room-user-option.is-selected {
    border-color: rgba(59, 130, 246, 0.7);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.19), rgba(30, 41, 59, 0.66));
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 0 30px rgba(37, 99, 235, 0.16);
}

.meeting-room-user-check {
    position: relative;
    width: 22px;
    height: 22px;
}

.meeting-room-user-check input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.meeting-room-user-checkmark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.58);
    color: transparent;
    transition: all 0.18s ease;
}

.meeting-room-user-option.is-selected .meeting-room-user-checkmark {
    border-color: rgba(96, 165, 250, 0.9);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.28);
}

.mr-participant-avatar,
.meeting-room-selected-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.88));
    color: #ffffff;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.mr-participant-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
}

.meeting-room-user-copy,
.meeting-room-selected-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meeting-room-user-copy strong,
.meeting-room-user-copy span,
.meeting-room-selected-copy strong,
.meeting-room-selected-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-room-user-copy strong {
    color: #f8fafc;
    font-size: 0.88rem;
    line-height: 1.2;
}

.meeting-room-user-copy span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.72rem;
}

.meeting-room-user-empty,
.meeting-room-selected-empty {
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.42);
    font-size: 0.85rem;
}

.meeting-room-user-empty {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-room-selected-sidebar {
    position: sticky;
    top: 0;
}

.meeting-room-selected-sidebar-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.meeting-room-selected-sidebar-header strong {
    display: block;
    color: #f8fafc;
    font-size: 0.95rem;
}

.meeting-room-selected-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 344px;
    overflow: auto;
}

.meeting-room-selected-empty {
    padding: 18px 12px;
    text-align: center;
    font-size: 0.82rem;
}

.meeting-room-selected-chip {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.62);
}

.meeting-room-selected-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.68rem;
}

.meeting-room-selected-copy strong {
    color: #f8fafc;
    font-size: 0.78rem;
}

.meeting-room-selected-copy small {
    color: #94a3b8;
    font-size: 0.68rem;
}

.meeting-room-selected-remove {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.58);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.meeting-room-selected-remove:hover {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
}

.meeting-room-notes-block {
    position: relative;
}

.meeting-room-notes-block textarea {
    min-height: 126px;
    resize: vertical;
    padding: 14px 15px 34px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.4);
    line-height: 1.5;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.meeting-room-notes-block textarea:focus {
    border-color: rgba(96, 165, 250, 0.54);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.meeting-room-character-count {
    position: absolute;
    right: 14px;
    bottom: 10px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.meeting-room-premium-modal .meeting-room-footer {
    position: relative;
    z-index: 1;
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.56);
}

.meeting-room-btn-ghost,
.meeting-room-btn-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.meeting-room-btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.54);
    color: #cbd5e1;
}

.meeting-room-btn-ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(30, 41, 59, 0.72);
}

.meeting-room-btn-primary {
    border: 1px solid rgba(147, 197, 253, 0.34);
    background: linear-gradient(135deg, #2563eb, #1d4ed8 46%, #7c3aed);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28), 0 0 28px rgba(59, 130, 246, 0.18);
}

.meeting-room-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.34), 0 0 34px rgba(59, 130, 246, 0.24);
}

.meeting-room-btn-primary:disabled,
.meeting-room-btn-ghost:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 920px) {
    .meeting-room-participants-shell {
        grid-template-columns: 1fr;
    }

    .meeting-room-selected-sidebar {
        position: static;
    }

    .meeting-room-participants-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .meeting-room-premium-modal {
        width: calc(100vw - 12px);
        max-height: 96vh;
        border-radius: 18px;
    }

    .meeting-room-premium-modal .meeting-room-modal-header {
        padding: 18px;
        align-items: flex-start;
    }

    .meeting-room-modal-heading {
        align-items: flex-start;
    }

    .meeting-room-modal-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .meeting-room-premium-modal .meeting-room-modal-body {
        padding: 14px;
    }

    .meeting-room-premium-modal .meeting-room-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .meeting-room-field-grid {
        grid-template-columns: 1fr;
    }

    .meeting-room-field-span-2 {
        grid-column: auto;
    }

    .meeting-room-participants-list {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

    .meeting-room-premium-modal .meeting-room-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .meeting-room-btn-ghost,
    .meeting-room-btn-primary {
        width: 100%;
    }
}
/* Correção Overlay Menu e Notificações (Adicionado dinamicamente) */
.nav-group { position: relative; display: block; }
.nav-submenu { display: none; position: relative; width: 100%; margin-top: 0.25rem; padding-left: 1rem; overflow: hidden; }
.nav-group.active .nav-submenu, .nav-submenu.open, .nav-group.nav-group-open .nav-submenu { display: block !important; max-height: none !important; opacity: 1 !important; visibility: visible !important; }
.nav-group-caret { margin-left: auto; display: flex; align-items: center; }
#kanban-save-progress-overlay, .modal-overlay[id^='modal-'] { z-index: var(--z-modal, 200); }
.modal-overlay:not(.active), .hidden { pointer-events: none !important; display: none !important; }

/* MINI CALENDÁRIO - SALA DE REUNIÃO */
.mr-mini-calendar {
    background: #0b0f19 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    border: 1px solid #161f30 !important;
}
.mr-cal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
}
.mr-cal-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px 0 !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    width: 100% !important;
}
.mr-cal-day-label {
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 4px 0 !important;
    width: 14.28% !important;
    flex: 0 0 14.28% !important;
    box-sizing: border-box !important;
}
.mr-cal-day {
    color: #94a3b8 !important;
    padding: 6px 0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 14.28% !important;
    flex: 0 0 14.28% !important;
    box-sizing: border-box !important;
}
.mr-cal-day:hover {
    background: rgba(255,255,255,0.03) !important;
    color: #f1f5f9 !important;
}
.mr-cal-day.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
.mr-cal-day.has-meeting {
    border-bottom: 2px solid #10b981 !important;
}

/* MODAL TELA CHEIA - SALA DE REUNIÃO */
#modal-meeting-room .meeting-room-premium-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    height: 92vh !important;
    max-height: 92vh !important;
}

#modal-meeting-room .meeting-room-participants-list {
    max-height: calc(92vh - 350px) !important;
}

#modal-meeting-room .meeting-room-selected-list {
    max-height: calc(92vh - 350px) !important;
}
