﻿/* =========================================================================
   SISTEMA DE ESTILOS - TEMA SAAS PREMIUM CORPORATIVO
   Conceito: Soft Dark (Slate/Blue/Violet) com design system consistente.
   ========================================================================= */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* --- PALETA CORES (Slate/Inter) --- */
    --primary: #3B82F6;
    /* Blue 500 */
    --primary-hover: #2563EB;
    /* Blue 600 */
    --accent: #8B5CF6;
    /* Violet 500 */
    --accent-hover: #7C3AED;

    --bg-main: #0F172A;
    /* Slate 900 */
    --bg-surface: #1E293B;
    /* Slate 800 */
    --bg-surface-hover: #334155;
    /* Slate 700 */

    --text-primary: #F8FAFC;
    /* Slate 50 */
    --text-secondary: #94A3B8;
    /* Slate 400 */
    --text-muted: #64748B;
    /* Slate 500 */

    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(59, 130, 246, 0.4);

    /* Semantic Colors */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info: #0EA5E9;
    --info-bg: rgba(14, 165, 233, 0.15);

    /* --- ESPAÃ‡AMENTOS E ESTRUTURA --- */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* --- MICRO-INTERAÃ‡Ã•ES --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================= */
[data-theme="light"] {
    --bg-main: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #E2E8F0;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --border-light: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(59, 130, 246, 0.4);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .login-container {
    background: radial-gradient(circle at 15% 50%, #e2e8f0, #f1f5f9 60%);
}

[data-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .login-header .logo {
    filter: none;
}

[data-theme="light"] .sidebar-header .logo {
    filter: none;
}

[data-theme="light"] .topbar {
    background-color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .stat-icon {
    color: white !important;
}

[data-theme="light"] .btn-shortcut {
    background-color: #FFFFFF;
}

[data-theme="light"] .btn-shortcut:hover {
    background-color: #F8FAFC;
}

[data-theme="light"] .modal-overlay {
    background-color: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .form-control:focus {
    background-color: #FFFFFF;
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
    background-color: rgba(0, 0, 0, 0.02);
}

/* =========================================================================
   1. RESETS & BASE 
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overscroll-behavior-y: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* UtilitÃ¡rios Typography */
.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Truncamento e Quebra de Linha de Texto */
.truncate-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.view-active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.content-section:not(.section-active) {
    display: none !important;
}

.content-section.section-active {
    display: block;
}

.kanban-screen.section-active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px - 2*var(--space-lg));
    overflow: hidden;
    padding: 0;
}

@media (prefers-reduced-motion: reduce) {

    .screen.view-active,
    .content-section {
        animation: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ph-spin {
    animation: spin 1s linear infinite;
}

/* =========================================================================
   2. UI COMPONENTS: BUTTONS, BADGES, INPUTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    outline: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.25rem;
}

.btn-icon:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.btn-action {
    /* BotÃ£o pequeno para aÃ§Ãµes em cards/tabelas */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-secondary);
}

.btn-action.success {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.btn-action.success:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-action.primary {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.2);
}

.btn-action.primary:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-action.danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-action.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-action.icon-only {
    width: 32px;
    height: 32px;
    padding: 0;
}

/* Filter Pills */
.pill {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.pill:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.pill.active {
    background: var(--info-bg);
    color: var(--info);
    border-color: rgba(14, 165, 233, 0.3);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success {
    background-color: var(--success-bg);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background-color: var(--warning-bg);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background-color: var(--danger-bg);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-neutral {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-block label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background-color: rgba(30, 41, 59, 0.6);
}

select.form-control {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1.2rem;
    background-position: right 0.8rem center;
    background-repeat: no-repeat;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Input wrapper for icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i.icon-left {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper .form-control.has-icon-left {
    padding-left: 2.6rem;
}

.input-wrapper .btn-append {
    position: absolute;
    right: 0.5rem;
}

/* ExtensÃµes Grid Helper */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.access-permission-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.access-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.access-permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.84rem;
    cursor: pointer;
}

.access-permission-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* =========================================================================
   3. LOGIN SCREEN
   ========================================================================= */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-md);
    position: relative;
    background: radial-gradient(circle at 15% 50%, #1e293b, #0f172a 60%);
}

.login-card {
    background: rgba(30, 41, 59, 0.7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    width: 100%;
    max-width: 400px;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.login-header {
    text-align: center;
}

.login-header .logo {
    max-height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-footer {
    margin-top: var(--space-sm);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-footer a {
    font-weight: 500;
    margin-left: 0.2rem;
}

/* Decoradores de Fundo Absolutos */
.bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.decor-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    top: -50px;
    left: -50px;
}

.decor-2 {
    width: 350px;
    height: 350px;
    background-color: var(--accent);
    bottom: -100px;
    right: -50px;
}


/* =========================================================================
   4. LAYOUT PRINCIPAL (APP WRAPPER)
   ========================================================================= */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow-x: hidden;
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo {
    display: none;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar.collapsed .sidebar-nav ul li a span {
    display: none;
}

.sidebar.collapsed .sidebar-nav ul li a .nav-badge {
    display: none;
}

.sidebar.collapsed .sidebar-nav ul li a {
    padding: 0.6rem;
    justify-content: center;
    margin: 0 var(--space-xs);
    border-radius: var(--radius-sm);
    border-left: none;
}

.sidebar.collapsed .sidebar-nav ul li a i {
    font-size: 1.5rem;
    margin: 0;
}

.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .btn-toggle-sidebar i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-footer {
    padding: var(--space-md) var(--space-xs);
    justify-content: center;
    overflow: hidden;
}

.sidebar.collapsed .user-profile {
    gap: 0;
    justify-content: center;
}

.sidebar.collapsed .btn-logout {
    display: none;
}

/* Pode ser escondido ou substituÃ­do por Ã­cone, mas no colapso jÃ¡ fica a inicial */

.sidebar-header {
    height: 70px;
    padding: 0 var(--space-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    white-space: nowrap;
}

.sidebar-header .logo {
    max-height: 32px;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.btn-toggle-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-md) 0;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 var(--space-lg);
    margin: var(--space-sm) 0 var(--space-xs);
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav ul li a i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.sidebar-nav ul li a .nav-badge {
    margin-left: auto;
}

.sidebar-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar-nav ul li a:hover i {
    color: var(--text-secondary);
}

.sidebar-nav ul li a.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary);
}

.sidebar-nav ul li a.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-profile .btn-logout {
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile .btn-logout:hover {
    color: var(--danger);
    background-color: var(--danger-bg);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-nav,
.main-content,
.modal-body,
.kanban-board-container,
.kanban-list-cards,
.kanban-dark-main-scroll,
.kanban-dark-sidebar,
.kanban-dark-inline-list {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Topbar */
.topbar {
    height: 70px;
    min-height: 70px;
    padding: 0 var(--space-lg);
    background-color: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
}

.mobile-menu-toggle {
    display: none;
}

.page-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.sync-status.online {
    background-color: var(--success-bg);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.sync-status.syncing {
    background-color: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.sync-status.offline {
    background-color: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.search-container {
    max-width: 300px;
    width: 100%;
    transition: var(--transition);
}

.notification-btn {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    box-sizing: content-box;
}

.notification-btn-ring {
    animation: notification-ring 1.2s ease-in-out 1;
}

@keyframes notification-ring {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
    }

    20% {
        transform: translateY(-1px) scale(1.06);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.0);
    }

    40% {
        transform: translateY(0) scale(1);
    }

    60% {
        transform: translateY(-1px) scale(1.04);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
    }
}

.content-wrapper {
    padding: var(--space-lg);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* =========================================================================
   5. BENTO GRID & WIDGETS
   ========================================================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-bento-wide {
    grid-column: span 2;
}

/* Stat Widgets */
.stat-widget {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.stat-icon.green {
    background: linear-gradient(135deg, #34D399, #10B981);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-value.text-sm {
    font-size: 1rem;
    margin-top: 0.2rem;
}

.stat-helper {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 0.35rem;
}

/* Action Panel (Shortcuts) */
.action-panel {
    padding: var(--space-md);
}

.action-header {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.dashboard-campaign-alert {
    margin-bottom: var(--space-md);
}

.dashboard-users-presence-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-users-presence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.35);
}

.dashboard-users-presence-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-users-presence-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-users-presence-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.dashboard-campaign-alert.critical {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.35));
    color: #fecaca;
}

.dashboard-campaign-alert.critical i {
    font-size: 1.3rem;
    color: #f87171;
    margin-top: 0.05rem;
}

.dashboard-campaign-alert.critical strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.dashboard-campaign-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
}

.dashboard-campaign-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 180px;
}

.dashboard-campaign-card.is-critical {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.18);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(255, 255, 255, 0.02));
}

.dashboard-campaign-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.dashboard-campaign-card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.dashboard-campaign-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.dashboard-campaign-card-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dashboard-campaign-card-meta {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-scheduled-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-scheduled-item {
    padding: 0.9rem 0.95rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dashboard-scheduled-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-scheduled-item strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dashboard-scheduled-item p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dashboard-scheduled-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.dashboard-campaign-empty {
    width: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.dashboard-campaign-empty i {
    font-size: 1.2rem;
}

.suggestions-layout {
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.suggestion-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(59, 130, 246, 0.12));
    color: #99f6e4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.suggestion-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: var(--space-lg);
    padding: clamp(1.25rem, 2vw, 2rem);
    margin-bottom: var(--space-lg);
    border-radius: calc(var(--radius-xl) + 4px);
    border: 1px solid rgba(45, 212, 191, 0.16);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.32);
    overflow: hidden;
}

.suggestion-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.12);
    filter: blur(14px);
    pointer-events: none;
}

.suggestion-hero-content,
.suggestion-hero-side {
    position: relative;
    z-index: 1;
}

.suggestion-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    color: #67e8f9;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.suggestion-hero h3 {
    max-width: 15ch;
    margin-bottom: 0.85rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.08;
}

.suggestion-hero p {
    max-width: 62ch;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.7;
}

.suggestion-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.suggestion-hero-point {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
}

.suggestion-hero-point i {
    color: #5eead4;
    font-size: 1rem;
}

.suggestion-hero-side {
    display: grid;
    gap: 0.85rem;
    align-content: center;
}

.suggestion-hero-metric {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.38);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.suggestion-hero-metric strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.suggestion-hero-metric span {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.suggestion-form-panel,
.suggestion-list-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.suggestion-form-panel {
    position: sticky;
    top: calc(70px + var(--space-lg));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
    border-color: rgba(45, 212, 191, 0.12);
}

.suggestion-list-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.88));
}

.suggestion-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.suggestion-panel-heading-inline {
    padding-bottom: 0.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.suggestion-panel-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: #5eead4;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.suggestion-panel-heading h3 {
    font-size: 1.18rem;
    margin-bottom: 0.35rem;
}

.suggestion-panel-heading p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.suggestion-form-grid {
    gap: 0.95rem;
}

.suggestion-input-block {
    gap: 0.5rem;
}

.suggestion-input-block label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-input-block .form-control {
    min-height: 52px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.suggestion-input-block textarea.form-control {
    min-height: 104px;
}

.suggestion-input-block-emphasis .form-control {
    border-color: rgba(45, 212, 191, 0.18);
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.1), rgba(255, 255, 255, 0.02));
}

.suggestion-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.suggestion-record-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.suggestion-record {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(15, 23, 42, 0.08));
    transition: var(--transition);
}

.suggestion-record:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.26);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.suggestion-record.is-pending {
    border-style: dashed;
}

.suggestion-record-main {
    min-width: 0;
    flex: 1;
}

.suggestion-record-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
}

.suggestion-record-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.suggestion-record-title {
    font-size: 1rem;
    line-height: 1.3;
}

.suggestion-record-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 72ch;
}

.suggestion-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.77rem;
}

.suggestion-record-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.suggestion-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.suggestion-view-btn {
    min-width: 118px;
    min-height: 42px;
    border-radius: 12px;
}

.suggestion-sync-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 700;
}

.suggestion-view-modal {
    max-width: 840px;
}

.suggestion-view-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-view-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(45, 212, 191, 0.18);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(59, 130, 246, 0.12));
}

.suggestion-view-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.suggestion-view-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.suggestion-view-hero h3 {
    margin-bottom: 0.45rem;
    font-size: 1.3rem;
}

.suggestion-view-hero p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.suggestion-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.suggestion-view-block {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.suggestion-view-block-full {
    grid-column: 1 / -1;
}

.suggestion-view-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.suggestion-view-text {
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
}

.suggestion-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-radius: 26px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 35%), radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.18), transparent 40%), linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
}

.suggestion-admin-hero-main h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.55rem;
    line-height: 1.15;
}

.suggestion-admin-hero-main p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 760px;
}

.suggestion-admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-self: stretch;
}

.suggestion-admin-metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 110px;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.suggestion-admin-metric-card span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.suggestion-admin-metric-card strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--text-primary);
}

.suggestion-admin-panel {
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), rgba(15, 23, 42, 0.44);
}

.suggestion-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-admin-card {
    position: relative;
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)), rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.suggestion-admin-card::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #2dd4bf);
    opacity: 0.85;
}

.suggestion-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.suggestion-admin-card.is-open {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.suggestion-admin-card-archived {
    opacity: 0.92;
}

.suggestion-admin-card-archived::after {
    background: linear-gradient(180deg, #22c55e, #14b8a6);
}

.suggestion-admin-archive-panel {
    margin-top: 1rem;
}

.suggestion-admin-list-archived .suggestion-admin-kicker {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.16);
}

.suggestion-admin-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.suggestion-admin-id,
.suggestion-admin-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.suggestion-admin-id {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.16);
}

.suggestion-admin-kicker {
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.16);
}

.suggestion-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.suggestion-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.suggestion-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.09);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.suggestion-admin-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.suggestion-admin-highlight>div {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.18);
}

.suggestion-admin-summary {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.suggestion-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.14);
}

.suggestion-admin-grid textarea {
    min-height: 140px;
    resize: vertical;
}

.suggestion-admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.suggestion-admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-response-block {
    border-color: rgba(45, 212, 191, 0.24);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(59, 130, 246, 0.08));
}

.suggestion-attachments-dropzone {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(96, 165, 250, 0.36);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(45, 212, 191, 0.06));
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.suggestion-attachments-dropzone:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.suggestion-attachments-dropzone.is-dragover {
    border-color: rgba(45, 212, 191, 0.65);
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.14), rgba(59, 130, 246, 0.12));
    transform: translateY(-1px);
}

.suggestion-attachments-dropzone-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.suggestion-attachments-dropzone-copy strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.suggestion-attachments-dropzone-copy span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.suggestion-attachment-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-attachment-card+.suggestion-attachment-card {
    margin-top: 0.9rem;
}

.suggestion-attachment-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.suggestion-attachment-actions .badge {
    text-decoration: none;
}

.suggestion-attachment-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.suggestion-attachment-remove:hover {
    background: rgba(239, 68, 68, 0.14);
}

.suggestion-attachment-preview {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.5);
}

.suggestion-attachment-preview iframe,
.suggestion-attachment-preview img {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    background: #fff;
}

.suggestion-attachment-preview-image iframe,
.suggestion-attachment-preview-image img {
    min-height: 360px;
}

.suggestion-attachment-preview-pdf iframe {
    min-height: 540px;
}

.suggestion-attachment-preview img {
    min-height: 0;
    max-height: 480px;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.72);
}

.suggestion-attachment-pdf-fallback {
    min-height: 180px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-align: center;
    color: var(--text-secondary);
}

.suggestion-attachment-pdf-fallback i {
    font-size: 2rem;
    color: #EF4444;
}

.suggestion-attachment-pdf-fallback strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.suggestion-attachment-pdf-fallback span {
    max-width: 420px;
    font-size: 0.85rem;
    line-height: 1.5;
}

[data-theme="light"] .suggestion-header-chip {
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.18);
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.9), rgba(219, 234, 254, 0.9));
}

[data-theme="light"] .suggestion-hero {
    border-color: rgba(13, 148, 136, 0.12);
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.2), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

[data-theme="light"] .suggestion-hero-point,
[data-theme="light"] .suggestion-form-panel,
[data-theme="light"] .suggestion-list-panel,
[data-theme="light"] .suggestion-admin-hero,
[data-theme="light"] .suggestion-admin-panel,
[data-theme="light"] .suggestion-admin-card,
[data-theme="light"] .suggestion-record,
[data-theme="light"] .suggestion-view-block,
[data-theme="light"] .suggestion-view-hero,
[data-theme="light"] .suggestion-hero-metric {
    background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .suggestion-admin-hero {
    border-color: rgba(59, 130, 246, 0.14);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 35%), radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.14), transparent 40%), linear-gradient(135deg, #ffffff, #f8fafc);
}

[data-theme="light"] .suggestion-admin-metric-card,
[data-theme="light"] .suggestion-admin-highlight>div,
[data-theme="light"] .suggestion-admin-grid {
    background: rgba(255, 255, 255, 0.82);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-sm);
}

.btn-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: var(--space-md);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.btn-shortcut i {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-shortcut span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.btn-shortcut:hover {
    background-color: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-shortcut:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* =========================================================================
   6. LIBRARY & CARDS DE DADOS (Templates & Campanhas)
   ========================================================================= */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-subnav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.section-subnav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.section-subnav-btn:hover {
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.section-subnav-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.14));
    border-color: rgba(96, 165, 250, 0.45);
    color: var(--text-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.section-subview {
    width: 100%;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hidden {
    display: none !important;
}

.flex-row {
    display: flex;
}

.flex-row-center {
    display: flex;
    align-items: center;
}

.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-row-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-col-gap-sm {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.flex-col-gap-md {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flex-col-gap-lg {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-gap-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-span-2 {
    grid-column: span 2;
}

.grid-span-2-hidden {
    grid-column: span 2;
    display: none;
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.text-center-padding {
    text-align: center;
    padding: 2rem;
}

.scroll-y-auto-400 {
    max-height: 400px;
    overflow-y: auto;
}

.btn-full-width {
    width: 100%;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mt-085 {
    margin-top: 0.85rem;
}

.section-divider-title {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    display: inline-block;
}

.panel-mb-lg {
    margin-bottom: var(--space-lg);
}

.flex-col-center-gap-lg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}

.stat-icon-60 {
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.text-sm-mt-05 {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.heading-lg-tight {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.text-secondary-sm {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.spinner-inline {
    margin-right: 0.5rem;
}

.heading-lg-tight {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.text-secondary-sm {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.spinner-inline {
    margin-right: 0.5rem;
}

.icon-success {
    font-size: 1.1rem;
    color: #10B981;
}

.icon-primary {
    font-size: 1.1rem;
    color: #3B82F6;
}

.flex-wrap-gap-md-full {
    gap: var(--space-md);
    width: 100%;
}

.flex-wrap-gap-sm-center {
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.input-block-responsive {
    min-width: 220px;
    flex: 1 1 220px;
}

.input-wrapper-max-220 {
    max-width: 220px;
}

.kanban-fullscreen-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px - 2*var(--space-lg));
    overflow: hidden;
    padding: 0;
}

.kanban-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.kanban-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 2rem;
    color: var(--text-muted);
}

.modal-overlay-z-1000 {
    z-index: 1000;
}

.modal-overlay-z-10001 {
    z-index: 10001;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-os-wide {
    width: min(96vw, 1400px);
    max-width: 1400px;
    height: 92vh;
    display: flex;
    flex-direction: column;
}

.os-modal-header-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.os-tabs-row {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    white-space: nowrap;
}

.os-tab-active {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 2px solid var(--primary);
}

.os-tab-inactive {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.os-modal-body-scroll {
    flex: 1;
    overflow-y: auto;
}

.os-form-gap {
    gap: 1.5rem;
}

.os-tab-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.os-panel-base {
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
}

.os-panel-primary {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.os-panel-hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.os-panel-accent {
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.os-panel-warning {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.os-section-heading {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-section-heading-accent {
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-section-heading-warning {
    margin-bottom: 0.5rem;
    color: #F59E0B;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.os-section-muted-note {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.os-subpanel-base {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.os-subpanel-accent {
    border-left: 2px solid var(--accent);
}

.os-subpanel-success {
    border-left: 2px solid #10B981;
}

.os-table-shell-scroll {
    overflow-x: auto;
}

.os-table-nowrap {
    width: 100%;
    white-space: nowrap;
    font-size: 0.85rem;
}

.os-add-row-btn {
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-color: rgba(255,255,255,0.1);
}

.os-tour-shell {
    max-width: 650px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

.os-tour-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.os-tour-avatar-area {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.os-tour-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.os-tour-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 250px;
}

.os-tour-step-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-tour-step-actions {
    display: flex;
    justify-content: space-between;
}

.kanban-label-btn {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.65;
}

.kanban-swatch-color-1 { background: #3B82F6; }
.kanban-swatch-color-2 { background: #10B981; }
.kanban-swatch-color-3 { background: #F59E0B; }
.kanban-swatch-color-4 { background: #EF4444; }
.kanban-swatch-color-5 { background: #8B5CF6; }
.kanban-swatch-color-6 { background: #EC4899; }
.kanban-swatch-color-7 { background: #0EA5E9; }
.kanban-swatch-color-8 { background: #94A3B8; }

.stat-icon-info {
    background: var(--info-bg);
    color: var(--info);
    box-shadow: none;
}

.stat-icon-success {
    background: var(--success-bg);
    color: var(--success);
    box-shadow: none;
}

.stat-icon-warning {
    background: var(--warning-bg);
    color: var(--warning);
    box-shadow: none;
}

.stat-icon-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    box-shadow: none;
}

.stat-icon-purple-soft {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    box-shadow: none;
}

#app-wrapper {
    display: flex;
}

#bell-dot,
#stat-users-presence,
#grid-campaigns-library,
#campaigns-view-finalizadas,
#calendar-demands-view-list,
#calendar-demands-scope-finished,
#section-gerenciar-usuarios,
#rh-view-sent,
#section-home-operador,
#meeting-rooms-view-archived {
    display: none;
}

.users-managed-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.users-group {
    display: block;
}

.users-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.95));
    box-shadow: var(--shadow-sm);
}

.users-group-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.users-group-header p {
    color: var(--text-secondary);
    max-width: 56ch;
}

.users-group-grid {
    margin-bottom: 0;
}

.users-group-admins .users-group-grid,
.users-group-operators .users-group-grid {
    margin-bottom: 0;
}

.managed-user-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.data-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: auto;
    word-break: break-word;
}

.card-meta {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-footer {
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions-right {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.01);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.rh-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.rh-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.rh-filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.rh-filter-panel .input-block {
    margin-bottom: 0;
}

.rh-filter-actions {
    display: flex;
    align-items: flex-end;
}

.rh-sent-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: var(--space-md);
    align-items: start;
}

.rh-table-shell {
    overflow: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.rh-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.rh-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.95rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid var(--border-light);
}

.rh-table tbody td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text-primary);
    font-size: 0.92rem;
}

.rh-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.rh-table tbody tr:last-child td {
    border-bottom: none;
}

.rh-table-primary {
    font-weight: 700;
    color: var(--text-primary);
}

.rh-table-secondary {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rh-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rh-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rh-empty-row {
    padding: 2rem 1rem !important;
    text-align: center;
    color: var(--text-secondary) !important;
}

.rh-batches-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.rh-batches-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
}

.rh-batches-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.rh-batches-header p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.rh-batches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rh-batch-card {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rh-batch-card.is-active {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.rh-batch-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rh-batch-card-date,
.rh-batch-card-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.rh-batch-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.rh-batch-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.rh-inline-warning {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    background: rgba(245, 158, 11, 0.12);
    color: #FCD34D;
    font-size: 0.9rem;
    line-height: 1.55;
}

.rh-inline-warning-neutral {
    border-color: rgba(59, 130, 246, 0.24);
    background: rgba(59, 130, 246, 0.09);
    color: #BFDBFE;
}

/* =========================================================================
   7. MODALS
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    display: flex;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-light);
    background-color: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
}

/* =========================================================================
   O.S COLABORADOR MODAL
   ========================================================================= */
#modal-os-colaborador .os-modal {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 40px 120px rgba(2, 6, 23, 0.72);
}

#modal-os-colaborador .os-modal-header {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7));
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

#modal-os-colaborador .os-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

#modal-os-colaborador .os-modal-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

#modal-os-colaborador .os-modal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.12);
    color: #93C5FD;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#modal-os-colaborador .os-modal-subtitle {
    margin: 0;
    max-width: 820px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

#modal-os-colaborador .os-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

#modal-os-colaborador .os-modal-close:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
}

#modal-os-colaborador .os-tabs {
    gap: 0.65rem !important;
    padding: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-bottom: none !important;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.48);
}

#modal-os-colaborador .os-tab-btn {
    padding: 0.8rem 1rem !important;
    border: 1px solid transparent !important;
    border-bottom-color: transparent !important;
    border-radius: 14px;
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

#modal-os-colaborador .os-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-primary) !important;
}

#modal-os-colaborador .os-tab-btn.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(124, 58, 237, 0.92)) !important;
    border-color: rgba(191, 219, 254, 0.18) !important;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.26);
}

#modal-os-colaborador .os-modal-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(15, 23, 42, 0.04));
}

#modal-os-colaborador .os-form,
#modal-os-colaborador .os-tab-panel {
    gap: 1.25rem !important;
}

#modal-os-colaborador .os-panel {
    position: relative;
    padding: 1.4rem !important;
    border-radius: 22px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.96)) !important;
    box-shadow: 0 24px 40px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

#modal-os-colaborador .os-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

#modal-os-colaborador .os-panel-primary {
    border-color: rgba(59, 130, 246, 0.22) !important;
}

#modal-os-colaborador .os-panel-accent {
    border-color: rgba(139, 92, 246, 0.24) !important;
}

#modal-os-colaborador .os-panel-warning {
    border-color: rgba(245, 158, 11, 0.24) !important;
}

#modal-os-colaborador .os-panel-hero {
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98)) !important;
}

#modal-os-colaborador .os-subpanel {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    background: rgba(2, 6, 23, 0.28) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#modal-os-colaborador .os-subpanel-accent {
    border-color: rgba(139, 92, 246, 0.22) !important;
    box-shadow: inset 4px 0 0 rgba(139, 92, 246, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#modal-os-colaborador .os-subpanel-success {
    border-color: rgba(16, 185, 129, 0.2) !important;
    box-shadow: inset 4px 0 0 rgba(16, 185, 129, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#modal-os-colaborador .os-table-shell {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#modal-os-colaborador .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#modal-os-colaborador .table thead th {
    padding: 0.85rem 0.85rem;
    background: rgba(15, 23, 42, 0.92);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

#modal-os-colaborador .table thead th:first-child {
    border-top-left-radius: 14px;
}

#modal-os-colaborador .table thead th:last-child {
    border-top-right-radius: 14px;
}

#modal-os-colaborador .table tbody td {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
    vertical-align: middle;
}

#modal-os-colaborador .table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

#modal-os-colaborador .table tbody tr:last-child td {
    border-bottom: none;
}

#modal-os-colaborador .os-total-row td {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.26), rgba(59, 130, 246, 0.1));
    font-weight: 700;
}

#modal-os-colaborador .os-inline-summary {
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 16px;
}

#modal-os-colaborador .os-inline-summary td {
    border-color: rgba(148, 163, 184, 0.12) !important;
}

#modal-os-colaborador .input-block label {
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#modal-os-colaborador .input-wrapper i.icon-left {
    color: #93C5FD;
}

#modal-os-colaborador .form-control {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
}

#modal-os-colaborador textarea.form-control {
    min-height: 108px;
}

#modal-os-colaborador .table .form-control {
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.86rem;
}

#modal-os-colaborador .os-add-row-btn {
    margin-top: 1rem;
    border-color: rgba(148, 163, 184, 0.18) !important;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

#modal-os-colaborador .os-add-row-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25) !important;
}

#modal-os-colaborador .os-footer-note {
    border-radius: 16px !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    background: rgba(2, 6, 23, 0.32) !important;
}

#modal-os-colaborador .os-modal-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.9));
    border-top-color: rgba(148, 163, 184, 0.12);
}

[data-theme="light"] #modal-os-colaborador .os-modal {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

[data-theme="light"] #modal-os-colaborador .os-modal-header,
[data-theme="light"] #modal-os-colaborador .os-modal-footer {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
}

[data-theme="light"] #modal-os-colaborador .os-tabs {
    background: rgba(241, 245, 249, 0.96);
    border-color: rgba(148, 163, 184, 0.2) !important;
}

[data-theme="light"] #modal-os-colaborador .os-tab-btn {
    color: #475569 !important;
}

[data-theme="light"] #modal-os-colaborador .os-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] #modal-os-colaborador .os-subpanel,
[data-theme="light"] #modal-os-colaborador .os-table-shell,
[data-theme="light"] #modal-os-colaborador .os-footer-note {
    background: rgba(248, 250, 252, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

[data-theme="light"] #modal-os-colaborador .table thead th {
    background: rgba(241, 245, 249, 0.95);
    color: #475569;
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] #modal-os-colaborador .table tbody td {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.14);
}

[data-theme="light"] #modal-os-colaborador .form-control {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="light"] #modal-os-colaborador .os-total-row td {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.95));
}

@media (max-width: 960px) {
    #modal-os-colaborador .os-modal-head {
        flex-direction: column;
        align-items: stretch;
    }

    #modal-os-colaborador .os-modal-close {
        align-self: flex-end;
    }

    #modal-os-colaborador .os-tabs {
        border-radius: 16px;
    }

    #modal-os-colaborador .os-inline-summary {
        min-width: 100% !important;
    }
}

@media (max-width: 768px) {
    #modal-os-colaborador .os-modal {
        width: 100vw !important;
        height: 96vh !important;
        max-width: 100% !important;
    }

    #modal-os-colaborador .os-modal-header,
    #modal-os-colaborador .os-modal-body,
    #modal-os-colaborador .os-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #modal-os-colaborador .os-panel,
    #modal-os-colaborador .os-subpanel {
        padding: 1rem !important;
    }

    #modal-os-colaborador .os-tab-btn {
        flex: 0 0 auto;
    }
}

/* Modal Info View */
.info-row {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.info-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    word-break: break-word;
}

/* Simulador Mobile */
.phone-mockup {
    width: 320px;
    height: 550px;
    background-color: #0F172A;
    border: 12px solid #334155;
    border-radius: 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    background-color: #334155;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.phone-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.phone-message {
    background-color: #1E293B;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 1rem;
    margin: auto 1rem;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    line-height: 1.5;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--bg-surface-hover);
    border-radius: 10px;
}


/* =========================================================================
   8. RESPONSIVIDADE E BREAKPOINTS
   ========================================================================= */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-bento-wide {
        grid-column: span 2;
    }

    .suggestion-hero {
        grid-template-columns: 1fr;
    }

    .suggestions-layout {
        grid-template-columns: 1fr;
    }

    .suggestion-form-panel {
        position: static;
    }

    .suggestion-admin-hero {
        grid-template-columns: 1fr;
    }

    .suggestion-admin-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    /* ConfiguraÃ§Ã£o Sidebar Drawer */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        z-index: 50;
        width: 280px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
        transform: none;
    }

    .sidebar.collapsed {
        width: 280px;
    }

    /* Desativa collapse em mobile */
    .btn-toggle-sidebar {
        display: none;
    }

    /* BotÃ£o toggle some no mobile, usamos apenas o toggle topbar */

    .mobile-menu-toggle {
        display: flex;
        color: var(--text-primary);
    }

    .topbar {
        padding: 0 var(--space-md);
    }

    .page-title {
        font-size: 1rem;
        max-width: 130px;
    }

    .search-container {
        max-width: 180px;
    }

    .content-wrapper {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .panel-bento-wide {
        grid-column: span 1;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-pills {
        justify-content: center;
    }

    .search-container.local {
        max-width: 100%;
    }

    .section-subnav {
        width: 100%;
    }

    .section-subnav-btn {
        width: 100%;
    }

    .suggestion-header-chip {
        width: 100%;
        justify-content: center;
    }

    .suggestion-panel-heading,
    .suggestion-record,
    .suggestion-record-top,
    .suggestion-view-hero {
        flex-direction: column;
    }

    .suggestion-record-actions,
    .suggestion-view-btn {
        width: 100%;
    }

    .suggestion-view-grid {
        grid-template-columns: 1fr;
    }

    .suggestion-admin-metrics {
        grid-template-columns: 1fr;
    }

    .suggestion-admin-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header button {
        width: 100%;
    }

    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 95vh;
        align-self: flex-end;
        margin: 0;
        max-width: 100%;
    }

    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-container {
        display: none;
    }

    /* Ocultar busca na topbar para mobile pequeno, se necessÃ¡rio. Na UI ele pede a Lupa */
    .mobile-search-btn {
        display: flex;
    }

    /* Botao auxilard para abrir input, (para ser injetado) */

    .data-grid {
        grid-template-columns: 1fr;
    }

    .rh-overview-grid,
    .rh-sent-layout {
        grid-template-columns: 1fr;
    }

    .rh-filter-panel {
        grid-template-columns: 1fr;
    }

    .rh-filter-actions {
        align-items: stretch;
    }

    .rh-filter-actions .btn,
    .rh-header-actions .btn {
        width: 100%;
    }

    .suggestion-hero,
    .suggestion-form-panel,
    .suggestion-list-panel,
    .suggestion-record,
    .suggestion-view-hero,
    .suggestion-view-block {
        padding: var(--space-md);
    }

    .stat-widget {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   KANBAN (GESTÃƒO DE DEMANDAS)
   ========================================================================= */

.kanban-board-container {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
}

.kanban-board-container::-webkit-scrollbar {
    height: 6px;
}

.kanban-board-container::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.kanban-board {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    padding-bottom: 1rem;
    height: 100%;
    min-height: 0;
}

.kanban-list {
    min-width: 320px;
    width: 320px;
    height: 100%;
    min-height: 0;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.kanban-list-header {
    padding: 1rem 1rem 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.kanban-list-header h3 {
    margin: 0;
    font-size: 1rem;
}

.kanban-list-cards {
    padding: 0.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 50px;
}

.kanban-list-cards::-webkit-scrollbar {
    width: 6px;
}

.kanban-list-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.kanban-card {
    background: #23262d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0;
    cursor: grab;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.kanban-card:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    z-index: 20;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card-cover {
    height: 38px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    flex: 0 0 auto;
}

.kanban-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.85rem 0.9rem 2.55rem;
    min-height: 62px;
}

.kanban-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: flex-start;
}

.kanban-card-label {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0.1rem 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    border: 2px dashed var(--primary);
}

.kanban-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    color: #dfe1e6;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kanban-card-meta-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-width: 0;
    color: #8da2b5;
}

.kanban-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    line-height: 1;
}

.kanban-card-meta-item .ph {
    font-size: 0.92rem;
}

.kanban-card-meta-item.late {
    color: var(--danger);
}

.kanban-card-members {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 0.25rem;
}

.kanban-card-member-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    border: 2px solid #23262d;
    border-radius: 999px;
    background: #5e4db2;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.kanban-card-member-avatar:first-child {
    margin-left: 0;
}

.kanban-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.kanban-card-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.kanban-add-card-btn {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.85rem 0.15rem 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    background: transparent;
    border: none;
    text-align: left;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.0), rgba(15, 23, 42, 0.95));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.kanban-add-card-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

/* KANBAN MODAL GRID */
.kanban-card-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: start;
}

.kanban-dark-modal {
    max-width: 1040px;
    height: 92vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #28292d;
    color: #b6c2cf;
    border: 1px solid #3c454c;
    border-radius: 14px;
    overflow: hidden;
}

.kanban-dark-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #3c454c;
    background: #24262a;
}

.kanban-dark-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.kanban-dark-select-wrap i {
    position: absolute;
    right: 10px;
    color: #b6c2cf;
    pointer-events: none;
    font-size: 0.8rem;
}

.kanban-dark-select {
    appearance: none;
    min-width: 138px;
    padding: 7px 32px 7px 12px;
    border: 1px solid #4b5258;
    border-radius: 6px;
    background: #3a3d42;
    color: #f4f5f7;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.kanban-dark-select:focus {
    border-color: #579dff;
    box-shadow: 0 0 0 2px rgba(87, 157, 255, 0.25);
}

.kanban-dark-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.kanban-dark-header-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.kanban-dark-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #9fadbc;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kanban-dark-icon-btn:hover,
.kanban-dark-toolbar-btn:hover,
.kanban-dark-property-action:hover,
.kanban-dark-popover-close:hover {
    background: #384148;
    color: #f4f5f7;
}

.kanban-dark-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
}

.kanban-dark-main {
    min-width: 0;
    min-height: 0;
}

.kanban-dark-main-scroll {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
}

.kanban-dark-sidebar {
    background: #1f2124;
    border-left: 1px solid #3c454c;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
}

.kanban-dark-title-block,
.kanban-dark-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.kanban-dark-section-icon {
    width: 18px;
    color: #9fadbc;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.kanban-dark-title-content,
.kanban-dark-section-body {
    flex: 1;
    min-width: 0;
}

.kanban-dark-title-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #f4f5f7;
    font-size: 2rem;
    font-weight: 700;
    outline: none;
}

.kanban-dark-title-input:focus,
.kanban-dark-input:focus,
.kanban-dark-textarea:focus {
    border-color: #579dff;
    box-shadow: 0 0 0 2px rgba(87, 157, 255, 0.2);
}

.kanban-dark-toolbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.kanban-dark-toolbar-btn,
.kanban-dark-property-action,
.kanban-dark-quiet-btn,
.kanban-dark-primary-btn,
.kanban-dark-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #454b52;
    border-radius: 8px;
    background: #2d3035;
    color: #d0d4db;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kanban-dark-toolbar-btn:focus-visible,
.kanban-dark-property-action:focus-visible,
.kanban-dark-quiet-btn:focus-visible,
.kanban-dark-primary-btn:focus-visible,
.kanban-dark-danger-btn:focus-visible,
.kanban-dark-icon-btn:focus-visible {
    outline: 2px solid rgba(87, 157, 255, 0.85);
    outline-offset: 2px;
}

.kanban-dark-property-action {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.kanban-dark-primary-btn {
    background: #579dff;
    border-color: #579dff;
    color: #091e42;
}

.kanban-dark-primary-btn:hover {
    background: #85b8ff;
    border-color: #85b8ff;
    color: #091e42;
}

.kanban-dark-quiet-btn {
    background: transparent;
    border-color: transparent;
}

.kanban-dark-danger-btn {
    background: #55373a;
    border-color: #714248;
    color: #ffb3c1;
}

.kanban-dark-danger-btn:hover {
    background: #6d3d44;
    border-color: #8a5058;
}

.kanban-dark-popover-layer {
    position: relative;
}

.kanban-dark-popover {
    position: absolute;
    top: 14px;
    left: 0;
    z-index: 30;
    width: 304px;
    display: none;
    background: #2b2d31;
    border: 1px solid #3c454c;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.kanban-dark-popover-compact {
    width: 220px;
}

.kanban-dark-popover-right {
    left: auto;
    right: 20px;
}

.kanban-dark-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #3c454c;
}

.kanban-dark-popover-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dfe1e6;
}

.kanban-dark-popover-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9fadbc;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.kanban-dark-popover-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9fadbc;
    cursor: pointer;
}

.kanban-dark-popover-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-dark-menu-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #dfe1e6;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.kanban-dark-menu-item:hover {
    background: #36393f;
    border-color: #47515a;
}

.kanban-dark-menu-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4b5258;
    border-radius: 8px;
    color: #d0d4db;
}

.kanban-dark-menu-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #f4f5f7;
}

.kanban-dark-menu-item span {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: #9fadbc;
    line-height: 1.35;
}

.kanban-dark-input,
.kanban-dark-textarea,
.kanban-dark-popover select {
    width: 100%;
    border: 1px solid #4b5258;
    border-radius: 8px;
    background: #222428;
    color: #f4f5f7;
    font: inherit;
    outline: none;
}

.kanban-dark-input,
.kanban-dark-popover select {
    min-height: 42px;
    padding: 0 12px;
}

.kanban-dark-textarea {
    min-height: 76px;
    padding: 12px;
    resize: vertical;
}

.kanban-dark-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 18px;
}

.kanban-dark-property-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-dark-property-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9fadbc;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kanban-dark-property-values {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kanban-dark-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: #2f3338;
    border: 1px solid #444b53;
    color: #f4f5f7;
    font-size: 0.85rem;
    font-weight: 600;
}

.kanban-dark-member-avatar {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #5e4db2;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.kanban-dark-property-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.kanban-dark-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #444b53;
    border-radius: 8px;
    background: #2f3338;
    color: #dfe1e6;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.kanban-dark-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kanban-dark-date-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f8c35d;
}

.kanban-dark-date-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ff8f8f;
}

.kanban-dark-date-badge.success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.kanban-dark-section-head,
.kanban-dark-sidebar-head,
.kanban-dark-checklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kanban-dark-section-title,
.kanban-dark-sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #dfe1e6;
    font-size: 1rem;
    font-weight: 700;
}

.kanban-dark-description {
    min-height: 86px;
}

.kanban-dark-description-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-dark-description-view {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #3c454c;
    border-radius: 12px;
    background: #222428;
}

.kanban-dark-description-view-content {
    min-width: 0;
    flex: 1;
    color: #f4f5f7;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.kanban-dark-description-view-content h1,
.kanban-dark-description-view-content h2,
.kanban-dark-description-view-content h3,
.kanban-dark-description-view-content h4,
.kanban-dark-description-view-content h5,
.kanban-dark-description-view-content h6 {
    margin: 0 0 0.35rem;
}

.kanban-dark-description-view-content p {
    margin: 0;
}

.kanban-dark-description-view-content blockquote {
    margin: 0;
    padding-left: 12px;
    border-left: 3px solid #579dff;
    color: #cfd7e3;
}

.kanban-dark-description-view-content ul,
.kanban-dark-description-view-content ol {
    margin: 0.35rem 0 0;
    padding-left: 20px;
}

.kanban-dark-description-view-content img {
    max-width: 100%;
    border-radius: 10px;
}

.kanban-dark-description-edit-btn,
.kanban-dark-description-add-btn {
    align-self: flex-start;
}

.kanban-dark-rich-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-dark-rich-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #3c454c;
    border-radius: 12px;
    background: #222428;
    flex-wrap: wrap;
}

.kanban-dark-toolbar-icon-btn {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    line-height: 1;
}

.kanban-dark-toolbar-separator {
    width: 1px;
    height: 24px;
    background: #3c454c;
    margin: 0 2px;
}

.kanban-dark-toolbar-spacer {
    flex: 1;
    min-width: 8px;
}

.kanban-dark-rich-editor-content {
    min-height: 180px;
    padding: 14px 16px;
    border: 1px solid #3c454c;
    border-radius: 12px;
    background: #222428;
    color: #f4f5f7;
    outline: none;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-y: auto;
}

.kanban-dark-rich-editor-content:focus {
    border-color: #579dff;
    box-shadow: 0 0 0 2px rgba(87, 157, 255, 0.2);
}

.kanban-dark-rich-editor-content:empty::before {
    content: attr(data-placeholder);
    color: #9fadbc;
    pointer-events: none;
}

.kanban-dark-rich-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.kanban-dark-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.kanban-dark-progress {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #3c454c;
    overflow: hidden;
}

.kanban-dark-progress-fill {
    height: 100%;
    width: 0;
    background: #579dff;
    transition: width 0.25s ease;
}

.kanban-dark-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kanban-dark-checklist-new {
    margin-top: 10px;
}

.kanban-dark-checklist-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.kanban-dark-checklist-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #9fadbc;
    font-size: 0.88rem;
}

.kanban-dark-checklist-meta button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

#kanban-new-checklist-item {
    min-height: 44px;
    height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
}

.kanban-dark-details {
    display: none;
    padding: 12px 14px;
    border: 1px solid #394048;
    border-radius: 10px;
    background: #24272b;
}

.kanban-dark-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.kanban-dark-details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
}

.kanban-dark-details-row span:first-child {
    color: #9fadbc;
}

.kanban-dark-comment-box {
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.kanban-dark-comment-box.is-expanded {
    max-height: 180px;
    overflow: auto;
}

.kanban-dark-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.kanban-dark-comment-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.kanban-dark-comment-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-dark-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kanban-dark-comment-time {
    color: #579dff;
    font-size: 0.8rem;
    text-decoration: none;
}

.kanban-dark-comment-bubble {
    display: inline-flex;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: #2a2d31;
    border: 1px solid #394048;
    color: #dfe1e6;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.kanban-dark-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9fadbc;
    font-size: 0.85rem;
}

.kanban-dark-comment-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #9fadbc;
    cursor: pointer;
    padding: 0;
}

.kanban-dark-comment-action:hover {
    color: #f4f5f7;
}

.kanban-dark-comment-action.danger:hover {
    color: #ffb3c1;
}

.kanban-dark-comment-separator {
    color: #5f6b76;
}

.kanban-dark-comment-edit {
    min-height: 88px;
    resize: vertical;
}

.kanban-dark-comment-edit-actions {
    margin-top: 0;
}

.kanban-dark-activity-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.kanban-dark-activity-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.kanban-dark-activity-avatar.comment {
    background: #5e4db2;
}

.kanban-dark-activity-avatar.activity {
    background: #0f766e;
}

.kanban-dark-activity-body {
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.35;
    color: #dfe1e6;
}

.kanban-dark-activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.76rem;
    color: #8da2b5;
}

.kanban-dark-activity-remove {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #9fadbc;
    cursor: pointer;
}

.kanban-dark-empty-state {
    padding: 20px 12px;
    text-align: center;
    color: #8da2b5;
    font-size: 0.88rem;
}

.kanban-dark-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.kanban-dark-swatch {
    height: 34px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.kanban-dark-swatch.active {
    border-color: #fff;
}

.kanban-dark-hidden-submit {
    display: none;
}

.kanban-dark-popover-note {
    font-size: 0.8rem;
    color: #9fadbc;
    line-height: 1.4;
}

.kanban-dark-inline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.kanban-dark-checklist-item-title {
    cursor: pointer;
}

.kanban-dark-checklist-item-title:hover {
    text-decoration: underline;
}

.kanban-dark-inline-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #24272b;
    border: 1px solid #394048;
    color: #dfe1e6;
    cursor: pointer;
}

.kanban-dark-inline-option .ph-pencil-simple {
    margin-left: auto;
    color: #9fadbc;
}

.kanban-dark-inline-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
}

.kanban-dark-inline-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #579dff;
}

.kanban-dark-inline-muted {
    font-size: 0.82rem;
    color: #9fadbc;
}

.kanban-dark-inline-split {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
}

.kanban-dark-inline-actions {
    display: flex;
    gap: 10px;
}

.kanban-dark-dropzone {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(133, 184, 255, 0.36);
    background: rgba(133, 184, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.kanban-dark-dropzone:focus {
    outline: none;
    border-color: rgba(133, 184, 255, 0.62);
    box-shadow: 0 0 0 3px rgba(133, 184, 255, 0.12);
}

.kanban-dark-dropzone.is-dragover {
    border-color: rgba(110, 231, 183, 0.72);
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.kanban-dark-dropzone-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kanban-dark-dropzone-copy strong {
    color: #f4f5f7;
    font-size: 0.9rem;
}

.kanban-dark-dropzone-copy span {
    color: #9fadbc;
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .kanban-dark-modal {
        height: 95vh;
        max-height: 95vh;
    }

    .kanban-dark-form {
        grid-template-columns: 1fr;
    }

    .kanban-dark-sidebar {
        border-left: none;
        border-top: 1px solid #3c454c;
    }

    .kanban-dark-main-scroll,
    .kanban-dark-sidebar {
        height: auto;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {

    .kanban-dark-modal-header,
    .kanban-dark-main-scroll,
    .kanban-dark-sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .kanban-dark-main-scroll {
        gap: 22px;
    }

    .kanban-dark-title-input {
        font-size: 1.5rem;
    }

    .kanban-dark-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .kanban-dark-toolbar-btn,
    .kanban-dark-property-action,
    .kanban-dark-primary-btn,
    .kanban-dark-quiet-btn,
    .kanban-dark-danger-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .kanban-dark-header-actions {
        width: 100%;
    }

    .kanban-dark-header-btn {
        width: auto;
        justify-content: center;
    }

    .kanban-dark-popover {
        width: min(100%, 320px);
    }

    .kanban-dark-properties {
        flex-direction: column;
        gap: 16px;
    }

    .kanban-dark-checklist-meta {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .kanban-dark-inline-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kanban-card-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
}

.sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 6px;
}

.checklist-item.done span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Estilos Adicionais para Melhorias no Kanban */
.kanban-card {
    position: relative;
    overflow: visible;
    z-index: 0;
}

.kanban-card:hover,
.kanban-card:focus-within {
    z-index: 20;
}

.kanban-card-check {
    position: absolute;
    left: 0.9rem;
    top: 1rem;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 10;
}

.kanban-card-check:hover {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.kanban-card.done .kanban-card-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.kanban-card.done .kanban-card-check::after {
    content: '\2713';
    font-size: 10px;
}

.kanban-card.done .kanban-card-title {
    text-decoration: line-through;
    opacity: 0.6;
}

.kanban-card.done {
    opacity: 0.9;
}

.kanban-card.done .kanban-card-cover {
    filter: saturate(0.75);
    opacity: 0.9;
}

.kanban-card.done .kanban-card-body {
    opacity: 0.9;
}

.kanban-card-menu-btn {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #dfe1e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 10;
}

.kanban-card-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.kanban-card-cover {
    height: 38px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.kanban-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 0.85rem 0.9rem 2.55rem;
    min-height: 62px;
}

.kanban-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    color: #dfe1e6;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.kanban-card-meta-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-width: 0;
    color: #8da2b5;
}

.kanban-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    line-height: 1;
}

.kanban-card-meta-item .ph {
    font-size: 0.92rem;
}

.kanban-card-meta-item.late {
    color: var(--danger);
}

.kanban-card-members {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 0.25rem;
}

.kanban-card-member-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    border: 2px solid #23262d;
    border-radius: 999px;
    background: #5e4db2;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.kanban-card-member-avatar:first-child {
    margin-left: 0;
}

.kanban-card-dropdown {
    position: absolute;
    right: 0.5rem;
    top: 2.5rem;
    background: #2b2d31;
    border: 1px solid #3c454c;
    border-radius: 14px;
    box-shadow: var(--shadow-float);
    z-index: 100;
    min-width: 230px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 0.35rem;
    gap: 0.15rem;
}

.kanban-card-dropdown.active {
    display: flex;
}

.kanban-card-dropdown button {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
}

.kanban-card-dropdown button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.kanban-card-dropdown button.danger {
    color: var(--danger);
}

.kanban-card-dropdown button.danger:hover {
    background: var(--danger-bg);
}

.kanban-card-dropdown button.action-accent {
    color: var(--primary);
}

.kanban-card-dropdown button.action-accent:hover {
    background: rgba(59, 130, 246, 0.08);
}

.archived-board {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    align-content: flex-start;
}

.archived-card {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-surface);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.archived-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.archived-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.archived-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.archived-card-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
    min-height: 40px;
}

.archived-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archived-card-actions .btn {
    flex: 1;
    min-width: 110px;
}

.archived-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed var(--border-light);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.kanban-inline-add-container {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kanban-inline-add-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.kanban-inline-add-actions {
    display: flex;
    gap: 0.5rem;
}

/* Estilos para Listas no Kanban */
.kanban-list.dragging-list {
    opacity: 0.4;
    border: 2px dashed var(--primary) !important;
    background: rgba(59, 130, 246, 0.05) !important;
}

.kanban-list-header h3 {
    cursor: text;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex: 1;
    margin-right: 0.5rem;
}

.kanban-list-header h3:hover {
    background: rgba(255, 255, 255, 0.05);
}

.kanban-list-rename-input {
    background: var(--bg-surface-hover);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}

.kanban-add-list-inline {
    min-width: 320px;
    width: 320px;
    background: rgba(15, 23, 42, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: fit-content;
}

.kanban-add-list-inline input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

/* =========================================================================
   AJUSTES RESPONSIVOS POR TIPO DE TELA
   Celular: ate 480px | Tablet: ate 768px | Notebook: ate 1024px
   Desktop: 1440px+ | TV: 1920px+
   ========================================================================= */

@media (max-width: 1024px) {
    .topbar {
        gap: 0.75rem;
    }

    .topbar-right {
        gap: 0.5rem;
    }

    .search-container {
        max-width: 220px;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .shortcut-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: 300px;
        width: 300px;
    }

    .kanban-dark-modal {
        width: min(100vw - 32px, 1120px);
    }

    .kanban-dark-modal-header,
    .kanban-dark-header-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .topbar {
        height: auto;
        min-height: 70px;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .topbar-right {
        justify-content: space-between;
    }

    .page-title {
        max-width: calc(100vw - 190px);
    }

    .content-wrapper {
        padding: 1rem;
        gap: 1rem;
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kanban-board {
        gap: 1rem;
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: min(82vw, 320px);
        width: min(82vw, 320px);
    }

    .kanban-dark-header-actions {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0.75rem;
    }

    .topbar-left {
        gap: 0.75rem;
    }

    .topbar-right {
        gap: 0.35rem;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
    }

    .page-title {
        max-width: 160px;
        font-size: 1rem;
    }

    .sync-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.45rem;
    }

    .content-wrapper {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .section-title h2 {
        font-size: 1.35rem;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: calc(100vw - 2rem);
        width: calc(100vw - 2rem);
    }

    .kanban-dark-header-actions,
    .kanban-dark-inline-actions {
        flex-direction: column;
    }

    .kanban-dark-header-btn {
        width: 100%;
    }
}

@media (min-width: 1441px) and (max-width: 1919px) {
    .content-wrapper {
        max-width: 1440px;
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: 340px;
        width: 340px;
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 16px;
    }

    .sidebar {
        width: 300px;
    }

    .content-wrapper {
        max-width: 1760px;
        padding: 2.5rem;
        gap: 2.5rem;
    }

    .search-container {
        max-width: 420px;
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 1.5rem;
    }

    .shortcut-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: 360px;
        width: 360px;
    }

    .kanban-dark-modal {
        width: min(1600px, 92vw);
    }
}

/* =========================================================================
   CALENDARIO DE DEMANDAS
   ========================================================================= */

.stat-icon.red {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.calendar-demands-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.calendar-demands-filter-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.calendar-demands-filter-panel .input-block {
    margin-bottom: 0;
}

.calendar-demands-filter-actions {
    display: flex;
    align-items: flex-end;
}

.calendar-demands-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.calendar-demands-month-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.calendar-demands-month-title {
    min-width: 210px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}

.calendar-demands-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.calendar-demands-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.calendar-dot {
    font-size: 0.72rem;
}

.calendar-dot-soon {
    color: #f59e0b;
}

.calendar-dot-overdue {
    color: #ef4444;
}

.calendar-dot-block {
    color: #8b5cf6;
}

.calendar-dot-holiday {
    color: #f43f5e;
}

.calendar-demands-board {
    padding: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.calendar-demands-weekdays,
.calendar-demands-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-demands-weekdays {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-demands-weekdays span {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.calendar-demands-grid {
    gap: 0.5rem;
}

.calendar-demand-day {
    min-height: 158px;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.calendar-demand-day.is-outside {
    opacity: 0.5;
    background: rgba(15, 23, 42, 0.16);
    border-color: rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .calendar-demand-day {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .calendar-demand-day.is-outside {
    background: rgba(226, 232, 240, 0.65);
    border-color: rgba(148, 163, 184, 0.14);
}

.calendar-demand-day.is-today {
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.calendar-demand-day.has-overdue {
    border-color: rgba(255, 255, 255, 0.35);
}

.calendar-demand-day.has-block {
    box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.9);
}

.calendar-demand-day.has-holiday {
    border-color: rgba(244, 63, 94, 0.36);
}

.calendar-demand-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.calendar-demand-day-number {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-demand-day-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
}

.calendar-demand-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
}

.calendar-demand-day-empty {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.calendar-demand-event {
    width: 100%;
    padding: 0.38rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-demand-event:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
}

.calendar-demand-event-title {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-demand-event-start {
    background: rgba(8, 145, 178, 0.34);
    color: #e0f2fe;
}

.calendar-demand-event-delivery,
.calendar-demand-event-invoice {
    background: rgba(37, 99, 235, 0.34);
    color: #dbeafe;
}

.calendar-demand-event-soon {
    background: rgba(180, 83, 9, 0.36);
    color: #fef3c7;
}

.calendar-demand-event-overdue {
    background: rgba(185, 28, 28, 0.38);
    color: #fee2e2;
}

.calendar-demand-event-block {
    background: rgba(109, 40, 217, 0.36);
    color: #ede9fe;
}

.calendar-demand-event-holiday {
    background: rgba(159, 18, 57, 0.42);
    color: #ffe4e6;
}

.calendar-demands-list-shell {
    overflow: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.calendar-demands-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}

.calendar-demands-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid var(--border-light);
}

.calendar-demands-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.calendar-demands-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.calendar-demands-table tbody tr:last-child td {
    border-bottom: none;
}

.calendar-demand-modal {
    max-width: 720px;
}

.calendar-demand-billing-box {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), rgba(15, 23, 42, 0.04));
}

.calendar-demand-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.calendar-demand-billing-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

@media (max-width: 1024px) {

    .calendar-demands-overview,
    .calendar-demands-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-demands-filter-actions {
        grid-column: 1 / -1;
    }

    .calendar-demand-day {
        min-height: 138px;
    }
}

@media (max-width: 768px) {

    .calendar-demands-overview,
    .calendar-demands-filter-panel {
        grid-template-columns: 1fr;
    }

    .calendar-demands-toolbar {
        align-items: flex-start;
    }

    .calendar-demands-month-title {
        min-width: 0;
    }

    .calendar-demands-weekdays span {
        padding: 0.42rem 0.25rem;
        font-size: 0.66rem;
    }

    .calendar-demand-day {
        min-height: 122px;
        padding: 0.5rem;
    }

    .calendar-demand-event-title {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {

    .calendar-demands-weekdays,
    .calendar-demands-grid {
        gap: 0.35rem;
    }

    .calendar-demand-day {
        min-height: 108px;
    }

    .calendar-demand-day-number {
        font-size: 0.82rem;
    }

    .calendar-demand-billing-box {
        padding: 0.85rem;
    }
}

/* =========================================================================
   MODO COMPACTO GLOBAL
   Objetivo: reduzir rolagem vertical e aumentar densidade de informaÃ§Ã£o.
   ========================================================================= */

:root {
    --space-xs: clamp(0.32rem, 0.18vw + 0.24rem, 0.42rem);
    --space-sm: clamp(0.5rem, 0.25vw + 0.42rem, 0.65rem);
    --space-md: clamp(0.8rem, 0.4vw + 0.68rem, 1rem);
    --space-lg: clamp(1.05rem, 0.6vw + 0.82rem, 1.35rem);
    --space-xl: clamp(1.55rem, 1vw + 1.18rem, 2.05rem);
    --radius-sm: 6px;
    --radius-md: 9px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --control-height: 2.35rem;
    --compact-content-width: 1520px;
}

html {
    font-size: clamp(13px, 0.16vw + 12.3px, 15px);
}

body {
    font-size: 0.875rem;
    line-height: 1.42;
}

h1 {
    font-size: clamp(1.45rem, 0.9vw + 1rem, 1.85rem);
}

h2 {
    font-size: clamp(1.15rem, 0.55vw + 0.92rem, 1.45rem);
}

h3 {
    font-size: clamp(1rem, 0.35vw + 0.84rem, 1.18rem);
}

h4,
h5,
h6 {
    font-size: clamp(0.92rem, 0.22vw + 0.82rem, 1.02rem);
}

.screen,
.main-layout {
    min-height: 100dvh;
}

.sidebar {
    width: 240px;
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar-header,
.topbar {
    height: 62px;
    min-height: 62px;
}

.sidebar-header {
    padding: 0 var(--space-md);
}

.sidebar-header .logo {
    max-height: 28px;
}

.sidebar-nav {
    padding: var(--space-sm) 0;
}

.nav-section-title {
    padding: 0 var(--space-md);
    margin: 0.45rem 0 0.2rem;
    font-size: 0.64rem;
}

.sidebar-nav ul li a {
    gap: 0.6rem;
    padding: 0.5rem var(--space-md);
    font-size: 0.84rem;
}

.sidebar-nav ul li a i {
    font-size: 1.08rem;
}

.sidebar-footer {
    padding: var(--space-sm) var(--space-md);
}

.avatar-initial {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
}

.user-info strong {
    font-size: 0.8rem;
}

.user-info span {
    font-size: 0.7rem;
}

.topbar {
    padding: 0 var(--space-md);
    gap: var(--space-sm);
}

.topbar-left {
    gap: var(--space-sm);
}

.topbar-right {
    gap: 0.45rem;
}

.page-title {
    font-size: clamp(1rem, 0.35vw + 0.9rem, 1.18rem);
}

.search-container {
    max-width: 260px;
}

.content-wrapper {
    max-width: var(--compact-content-width);
    padding: var(--space-lg);
    gap: var(--space-md);
}

.content-section {
    animation-duration: 0.22s;
}

.section-header {
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.section-title h2 {
    font-size: clamp(1.1rem, 0.48vw + 0.92rem, 1.36rem);
}

.section-title p {
    font-size: 0.82rem;
    line-height: 1.42;
}

.section-subnav {
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.section-subnav-btn {
    padding: 0.62rem 0.82rem;
    font-size: 0.82rem;
}

.filter-actions,
.form-group,
.suggestion-form-grid,
.rh-filter-panel {
    gap: var(--space-sm);
}

.input-block {
    gap: 0.28rem;
}

.input-block label,
.access-permission-hint,
.text-muted,
small.text-muted {
    font-size: 0.76rem;
}

.form-control,
.input-select,
input[type="date"],
input[type="month"],
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    min-height: var(--control-height);
    padding: 0.5rem 0.8rem;
    font-size: 0.84rem;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

select.form-control {
    padding-right: 2rem;
    background-size: 1rem;
    background-position: right 0.6rem center;
}

textarea.form-control {
    min-height: 68px;
}

.input-wrapper i.icon-left {
    left: 0.8rem;
    font-size: 1rem;
}

.input-wrapper .form-control.has-icon-left {
    padding-left: 2.2rem;
}

.btn {
    min-height: var(--control-height);
    padding: 0.46rem 0.9rem;
    font-size: 0.84rem;
    gap: 0.4rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
}

.btn-action {
    min-height: 1.95rem;
    padding: 0.28rem 0.58rem;
    font-size: 0.75rem;
    gap: 0.3rem;
}

.btn-action.icon-only {
    width: 30px;
    height: 30px;
}

.pill {
    padding: 0.32rem 0.82rem;
    font-size: 0.78rem;
}

.badge {
    padding: 0.18rem 0.48rem;
    font-size: 0.64rem;
}

.panel,
.data-card,
.stat-widget,
.suggestion-hero-metric,
.suggestion-record,
.suggestion-admin-card,
.suggestion-view-block,
.archived-card,
.rh-batch-card,
.rh-batches-panel,
.rh-table-shell,
.rh-filter-panel,
.modal,
.empty-state {
    border-radius: var(--radius-lg);
}

.bento-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-sm);
}

.data-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.action-panel,
.suggestion-form-panel,
.suggestion-list-panel,
.rh-batches-panel {
    padding: var(--space-md);
}

.data-card {
    min-height: 168px;
    padding: var(--space-sm);
}

.card-top {
    margin-bottom: 0.55rem;
}

.card-title,
.rh-table-primary,
.archived-card-title {
    font-size: 0.94rem;
}

.card-desc,
.archived-card-body {
    font-size: 0.8rem;
    line-height: 1.42;
}

.card-meta,
.card-date,
.rh-table-secondary,
.stat-helper,
.rh-batch-card-date,
.rh-batch-card-meta {
    font-size: 0.73rem;
}

.card-footer {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.shortcut-grid {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 0.55rem;
}

.btn-shortcut {
    padding: 0.75rem 0.65rem;
    gap: 0.45rem;
}

.btn-shortcut i {
    font-size: 1.35rem;
}

.btn-shortcut span {
    font-size: 0.74rem;
}

.stat-widget {
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.7rem;
}

.stat-value {
    font-size: 1.4rem;
}

.stat-value.text-sm {
    font-size: 0.9rem;
}

.dashboard-users-presence-list {
    gap: 0.5rem;
}

.dashboard-users-presence-item {
    padding: 0.72rem 0.82rem;
    gap: 0.7rem;
}

.dashboard-users-presence-name {
    font-size: 0.86rem;
}

.suggestion-form-panel,
.suggestion-list-panel {
    gap: var(--space-sm);
    padding: var(--space-md);
}

.suggestion-form-panel {
    top: calc(62px + var(--space-md));
}

.suggestion-panel-heading {
    gap: 0.75rem;
}

.suggestion-panel-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
}

.suggestion-panel-heading h3 {
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
}

.suggestion-panel-heading p,
.suggestion-view-hero p {
    font-size: 0.82rem;
    line-height: 1.48;
}

.suggestion-hero-metric {
    padding: 0.8rem 0.9rem;
}

.suggestion-hero-metric strong {
    font-size: 0.88rem;
}

.suggestion-hero-metric span {
    font-size: 0.78rem;
    line-height: 1.45;
}

.suggestion-input-block .form-control {
    min-height: 44px;
    padding: 0.7rem 0.85rem;
}

.suggestion-input-block textarea.form-control {
    min-height: 86px;
}

.suggestion-form-footer {
    padding-top: 0.75rem;
}

.suggestion-record-list {
    gap: 0.7rem;
}

.suggestion-record {
    gap: 0.8rem;
    padding: 0.85rem 0.92rem;
}

.suggestion-record-title {
    font-size: 0.92rem;
}

.suggestion-record-preview {
    font-size: 0.81rem;
    line-height: 1.46;
}

.suggestion-record-meta {
    gap: 0.65rem;
    margin-top: 0.65rem;
    font-size: 0.72rem;
}

.suggestion-view-body,
.suggestion-view-grid {
    gap: 0.8rem;
}

.suggestion-view-hero {
    padding: 1rem;
    border-radius: 18px;
}

.suggestion-view-hero h3 {
    font-size: 1.12rem;
    margin-bottom: 0.35rem;
}

.suggestion-view-block {
    padding: 0.85rem 0.95rem;
}

.rh-overview-grid {
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.rh-filter-panel {
    padding: var(--space-sm);
    gap: 0.65rem;
    margin-bottom: var(--space-sm);
}

.rh-table {
    min-width: 860px;
}

.rh-table thead th,
.rh-table tbody td,
.table thead th,
.table tbody td,
#modal-os-colaborador .table thead th,
#modal-os-colaborador .table tbody td {
    padding: 0.7rem 0.8rem;
}

.rh-table thead th,
.table thead th,
#modal-os-colaborador .table thead th {
    font-size: 0.7rem;
}

.rh-table tbody td,
.table tbody td,
#modal-os-colaborador .table tbody td {
    font-size: 0.82rem;
}

.rh-batches-panel,
.rh-batch-card {
    padding: 0.9rem;
}

.rh-batch-card-title {
    font-size: 0.88rem;
}

.rh-inline-warning {
    padding: 0.78rem 0.88rem;
    font-size: 0.82rem;
}

.modal {
    max-width: 560px;
    max-height: 92vh;
}

.modal-header,
.modal-footer {
    padding: 0.85rem 1rem;
}

.modal-header h2 {
    font-size: 1.05rem;
}

.modal-body {
    padding: 1rem;
}

.empty-state {
    padding: var(--space-lg) var(--space-md);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-sm);
    font-size: 2rem;
}

.empty-state h3 {
    font-size: 1.05rem;
}

.empty-state p {
    font-size: 0.82rem;
    margin-bottom: var(--space-sm);
}

.kanban-board {
    gap: 0.75rem;
}

.kanban-list,
.kanban-add-list-inline {
    min-width: 288px;
    width: 288px;
    border-radius: 12px;
}

.kanban-add-list-inline {
    padding: 0.8rem;
    gap: 0.6rem;
}

.kanban-list-cards {
    gap: 0.55rem;
}

.kanban-card-cover {
    height: 30px;
}

.kanban-card-body {
    gap: 0.58rem;
    padding: 0.72rem 0.72rem 0.8rem 2.35rem;
    min-height: 54px;
}

.kanban-card-title {
    font-size: 0.84rem;
    line-height: 1.2;
}

.kanban-card-meta-item {
    font-size: 0.72rem;
}

.kanban-card-meta-item .ph {
    font-size: 0.84rem;
}

.kanban-card-member-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
}

.kanban-card-check {
    left: 0.75rem;
    top: 0.82rem;
}

.archived-card {
    padding: 0.9rem;
    gap: 0.75rem;
}

@media (max-height: 820px) {

    .sidebar-header,
    .topbar {
        height: 56px;
        min-height: 56px;
    }

    .content-wrapper {
        padding: 0.9rem;
        gap: 0.8rem;
    }

    .section-header {
        margin-bottom: 0.8rem;
    }

    .stat-widget,
    .data-card,
    .suggestion-record,
    .rh-batch-card {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .modal {
        max-height: 94vh;
    }
}

@media (max-width: 1200px) {
    :root {
        --compact-content-width: 100%;
    }

    .sidebar {
        width: 228px;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --control-height: 2.7rem;
    }

    html {
        font-size: 13px;
    }

    .topbar,
    .sidebar-header {
        height: auto;
        min-height: 56px;
    }

    .content-wrapper {
        padding: 0.85rem;
        gap: 0.8rem;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-title h2 {
        font-size: 1.12rem;
    }

    .section-title p {
        font-size: 0.78rem;
    }

    .btn,
    .form-control,
    select.form-control,
    .suggestion-input-block .form-control {
        min-height: var(--control-height);
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .data-grid,
    .bento-grid,
    .rh-overview-grid,
    .suggestion-view-grid {
        gap: 0.65rem;
    }

    .stat-value {
        font-size: 1.22rem;
    }

    .suggestion-record,
    .suggestion-view-hero,
    .dashboard-users-presence-item {
        padding: 0.78rem 0.82rem;
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: min(78vw, 300px);
        width: min(78vw, 300px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12.5px;
    }

    .content-wrapper {
        padding: 0.7rem;
        gap: 0.7rem;
    }

    .page-title {
        max-width: 150px;
        font-size: 0.96rem;
    }

    .section-subnav {
        gap: 0.4rem;
    }

    .section-subnav-btn,
    .btn {
        font-size: 0.8rem;
    }

    .stat-widget,
    .data-card,
    .panel,
    .suggestion-form-panel,
    .suggestion-list-panel,
    .rh-batches-panel {
        padding: 0.78rem;
    }

    .shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rh-table {
        min-width: 720px;
    }

    .kanban-list,
    .kanban-add-list-inline {
        min-width: calc(100vw - 1.4rem);
        width: calc(100vw - 1.4rem);
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 14px;
    }

    .content-wrapper {
        max-width: 1640px;
        padding: 1.3rem;
        gap: 1rem;
    }

    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .data-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* =========================================================================
   REFINOS FINAIS DA INTERFACE
   ========================================================================= */

.data-card,
.panel,
.stat-widget,
.modal {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(2, 6, 23, 0.08)),
        var(--bg-surface);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.data-card {
    min-height: 186px;
    padding: 1rem;
}

.data-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 22px 46px rgba(2, 6, 23, 0.24);
}

.card-title {
    font-size: 1rem;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.84rem;
    line-height: 1.55;
}

.card-footer {
    gap: 0.85rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.card-actions-right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.section-subnav-btn {
    min-height: 42px;
    border-radius: 12px;
}

.notification-dot {
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    border: 2px solid var(--bg-main);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.notification-modal {
    max-width: min(760px, 92vw);
}

.notification-modal-intro {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.notification-modal-footer {
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: min(60vh, 640px);
    overflow-y: auto;
}

.notification-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.46);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(96, 165, 250, 0.75);
}

.notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(15, 23, 42, 0.6);
}

.notification-item.is-unread {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.notification-item.is-unread strong::after {
    content: 'Nova';
    margin-left: 0.55rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notification-item-top,
.notification-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.notification-item-top strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.notification-item-top span,
.notification-item-footer span {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.notification-item-body {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}

.notification-item.accent-blue::before {
    background: #60a5fa;
}

.notification-item.accent-teal::before {
    background: #2dd4bf;
}

.notification-item.accent-purple::before {
    background: #a78bfa;
}

.notification-item.accent-red::before {
    background: #f87171;
}

.notification-item.accent-green::before {
    background: #34d399;
}

.notification-item.accent-amber::before {
    background: #fbbf24;
}

.notification-item.accent-violet::before {
    background: #818cf8;
}

.notification-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px dashed var(--border-light);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.34);
    color: var(--text-secondary);
    text-align: center;
}

.notification-empty-state i {
    font-size: 2rem;
    color: #34d399;
}

.notification-target-highlight {
    animation: notification-target-highlight 2.2s ease;
}

@keyframes notification-target-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.36);
        border-color: rgba(96, 165, 250, 0.65);
    }

    100% {
        box-shadow: 0 0 0 18px rgba(59, 130, 246, 0);
        border-color: rgba(148, 163, 184, 0.14);
    }
}

.kanban-save-progress-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1450;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.kanban-save-progress-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kanban-save-progress-card {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-primary);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
    font-weight: 600;
}

.kanban-save-progress-card i {
    color: var(--primary);
    font-size: 1.1rem;
}

.toast-stack {
    position: fixed;
    top: 86px;
    right: 20px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.toast-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.toast-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-card.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.toast-card-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.15rem;
}

.toast-success .toast-card-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.toast-error .toast-card-icon,
.toast-warning .toast-card-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.toast-info .toast-card-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

.toast-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toast-card-content strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.toast-card-content span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.toast-card-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.template-preview-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.template-preview-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.template-preview-phone {
    width: min(380px, calc(100vw - 2rem));
    min-height: 720px;
    border-radius: 38px;
    padding: 0.8rem;
    background: linear-gradient(180deg, #0b141a, #111b21);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.5);
}

.template-preview-statusbar,
.template-preview-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-preview-statusbar {
    padding: 0.2rem 0.35rem 0.7rem;
    color: #d5dbe1;
    font-size: 0.78rem;
}

.template-preview-chat-header {
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 26px 26px 18px 18px;
    background: #202c33;
    color: #fff;
}

.template-preview-chat-header strong {
    display: block;
    font-size: 0.94rem;
    margin-bottom: 0.1rem;
}

.template-preview-chat-header span {
    color: #9fb6c7;
    font-size: 0.74rem;
}

.template-preview-contact-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.template-preview-chat-body {
    margin-top: 0.8rem;
    min-height: 570px;
    padding: 1rem;
    border-radius: 18px 18px 30px 30px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 30%),
        linear-gradient(180deg, #0b141a, #111b21);
    display: flex;
    align-items: flex-start;
}

.template-preview-bubble {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1rem 0.9rem;
    border-radius: 20px 20px 20px 8px;
    background: #202c33;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e9edef;
    box-shadow: 0 20px 40px rgba(11, 20, 26, 0.24);
}

.template-preview-bubble-kicker {
    color: #8ac1f5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.template-preview-message-text {
    font-size: 0.95rem;
    line-height: 1.68;
    white-space: normal;
    word-break: break-word;
}

.template-preview-cta,
.template-preview-inline-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.template-preview-cta {
    width: 100%;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.14));
    color: #bfdbfe;
}

.template-preview-inline-link {
    width: fit-content;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    color: #8cd4ff;
}

.template-preview-bubble-time {
    align-self: flex-end;
    color: #8fa5b4;
    font-size: 0.72rem;
}

.template-preview-caption {
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.55;
}

.template-preview-close {
    min-width: 240px;
    border-radius: 999px;
}

.meeting-room-card-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.meeting-room-card-participants {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0 0.1rem;
}

.meeting-room-card-participants.is-broadcast {
    min-height: unset;
}

.meeting-room-card-avatar-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.meeting-room-card-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid var(--bg-main);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.meeting-room-card-avatar:first-child {
    margin-left: 0;
}

.meeting-room-card-avatar-more {
    background: rgba(30, 41, 59, 0.96);
    color: var(--text-secondary);
}

.meeting-room-card-participants-label {
    min-width: 0;
    color: var(--text-secondary);
    font-size: 0.77rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-room-card {
    min-height: 220px;
}

.meeting-room-card-meta-grid,
.calendar-demand-card-meta-grid {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.meeting-room-card-meta-grid span,
.calendar-demand-card-meta-grid span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meeting-room-card-footer,
.calendar-demand-card-footer {
    justify-content: space-between;
}

.meeting-room-card-primary-actions,
.calendar-demand-card-primary-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.meeting-room-participants-picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.46);
}

.meeting-room-participants-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.meeting-room-participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.meeting-room-user-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.meeting-room-user-option input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    accent-color: var(--primary);
}

.meeting-room-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meeting-room-user-copy strong {
    color: var(--text-primary);
    font-size: 0.86rem;
}

.meeting-room-user-copy span,
.meeting-room-user-empty {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.meeting-room-view-modal {
    max-width: min(1080px, 94vw);
}

.meeting-room-view-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meeting-room-view-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.16), rgba(30, 41, 59, 0.88));
}

.meeting-room-view-hero h3 {
    margin: 0.45rem 0;
    font-size: 1.3rem;
}

.meeting-room-view-hero p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.meeting-room-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.meeting-room-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.meeting-room-view-block {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.meeting-room-view-block-full {
    grid-column: 1 / -1;
}

.meeting-room-view-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.meeting-room-view-participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
    font-size: 0.78rem;
}

.meeting-room-view-link.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.meeting-room-call-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.meeting-room-call-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.meeting-room-call-placeholder,
.meeting-room-call-frame {
    width: 100%;
    min-height: 420px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
}

.meeting-room-call-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.meeting-room-call-placeholder i {
    color: #93c5fd;
    font-size: 2rem;
}

.meeting-room-call-frame {
    display: none;
    height: min(62vh, 620px);
}

.meeting-room-call-frame.is-active {
    display: block;
}

.meeting-room-call-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.meeting-room-live-notes-tools {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.meeting-room-live-notes-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.meeting-room-transcription-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.48);
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.meeting-room-transcription-status.is-on {
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.meeting-room-call-control {
    width: 42px;
    height: 38px;
    padding: 0;
}

.meeting-room-call-control.is-off {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.08);
}

.meeting-room-call-control.is-active {
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.09);
}

.g2g-meet-stage {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    background: #070b14;
}

.g2g-meet-video-grid {
    min-width: 0;
    padding: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: minmax(190px, 1fr);
    gap: 0.75rem;
    align-content: stretch;
}

.g2g-meet-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.92) 58%);
}

.g2g-meet-tile.is-local {
    border-color: rgba(96, 165, 250, 0.34);
}

.g2g-meet-tile.is-connected {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
}

.g2g-meet-tile.is-offline {
    opacity: 0.72;
}

.g2g-meet-tile video {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    object-fit: cover;
    background: #020617;
}

.g2g-meet-tile-empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(191, 219, 254, 0.86);
    font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.96));
}

.g2g-meet-tile-bar {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
    color: #F8FAFC;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.g2g-meet-tile-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
}

.g2g-meet-tile-state {
    flex: 0 0 auto;
    color: #BFDBFE;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.g2g-meet-sidebar {
    min-width: 0;
    padding: 0.9rem;
    border-left: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.g2g-meet-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.g2g-meet-sidebar-head strong {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.g2g-meet-status {
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.14);
    color: #BFDBFE;
    font-size: 0.78rem;
    line-height: 1.45;
}

.g2g-meet-participants {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow-y: auto;
}

.g2g-meet-participant {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.g2g-meet-participant>span {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
}

.g2g-meet-participant div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.g2g-meet-participant strong {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
}

.g2g-meet-participant small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

#section-painel-sugestoes {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

#section-painel-sugestoes .suggestion-admin-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 380px);
    padding: 1.1rem 1.15rem;
    gap: 0.9rem;
    border-radius: 22px;
}

#section-painel-sugestoes .suggestion-admin-panel {
    padding: 1.05rem 1.1rem;
}

#section-painel-sugestoes .suggestion-admin-metrics {
    gap: 0.7rem;
}

#section-painel-sugestoes .suggestion-admin-metric-card {
    min-height: 96px;
    padding: 0.9rem;
}

#section-painel-sugestoes .suggestion-admin-card {
    padding: 1rem;
    border-radius: 18px;
}

.calendar-demands-archived-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.4);
}

.calendar-demands-archived-header h3 {
    margin-bottom: 0.3rem;
}

.calendar-demands-archived-header p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.55;
}

.calendar-demands-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.calendar-demand-card {
    min-height: 250px;
}

.calendar-demand-card.is-archived {
    border-color: rgba(16, 185, 129, 0.18);
}

.kanban-dark-modal {
    width: min(82vw, 1480px);
    max-width: 84vw;
    height: min(90vh, 1040px);
    max-height: 90vh;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #14181d, #111318 65%);
    box-shadow: 0 42px 120px rgba(2, 6, 23, 0.72);
}

.kanban-dark-modal-header {
    padding: 1.1rem 1.4rem;
    background: linear-gradient(180deg, rgba(20, 24, 29, 0.98), rgba(20, 24, 29, 0.88));
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.kanban-dark-form {
    grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.78fr);
}

.kanban-dark-main-scroll {
    padding: 1.4rem;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(15, 23, 42, 0.08));
}

.kanban-dark-sidebar {
    padding: 1.35rem;
    border-left-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(17, 19, 24, 0.96), rgba(11, 14, 19, 0.96));
}

.kanban-dark-title-block,
.kanban-dark-section {
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.kanban-dark-title-input {
    font-size: clamp(1.55rem, 1.45vw, 2.2rem);
    line-height: 1.16;
}

.kanban-dark-section-title,
.kanban-dark-sidebar-title {
    font-size: 1.02rem;
}

.kanban-dark-rich-editor-content {
    min-height: 220px;
}

.kanban-dark-comment-box {
    min-height: 112px;
}

.kanban-dark-comment-composer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.kanban-dark-comment-dropzone {
    cursor: pointer;
}

.kanban-dark-comment-dropzone input[type="file"] {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.kanban-dark-comment-dropzone input[type="file"]::file-selector-button {
    margin-right: 0.8rem;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(133, 184, 255, 0.28);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.16);
    color: #dbeafe;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.kanban-dark-comment-dropzone input[type="file"]::file-selector-button:hover {
    background: rgba(59, 130, 246, 0.24);
}

.kanban-dark-comment-attachments-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.kanban-dark-comment-attachment-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.36);
}

.kanban-dark-comment-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.48);
}

.kanban-dark-comment-attachment-preview img,
.kanban-dark-comment-attachment-preview object,
.kanban-dark-comment-attachment-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    border: 0;
    object-fit: cover;
    background: #fff;
}

.kanban-dark-comment-attachment-preview img {
    object-fit: cover;
    background: rgba(2, 6, 23, 0.72);
}

.kanban-dark-comment-attachment-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 120px;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
}

.kanban-dark-comment-attachment-fallback i {
    font-size: 1.6rem;
    color: var(--primary);
}

.kanban-dark-comment-attachment-fallback strong {
    color: var(--text-primary);
    font-size: 0.88rem;
}

.kanban-dark-comment-attachment-fallback span {
    font-size: 0.78rem;
    line-height: 1.45;
}

.kanban-dark-comment-attachment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.kanban-dark-comment-attachment-name {
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.kanban-dark-comment-attachment-info {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
}

.kanban-dark-comment-attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kanban-dark-comment-attachment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.kanban-dark-comment-attachment-action:hover {
    background: rgba(59, 130, 246, 0.16);
    color: #ffffff;
}

.kanban-dark-comment-attachment-action.danger {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}

.kanban-dark-comment-attachment-action.danger:hover {
    background: rgba(239, 68, 68, 0.16);
}

.kanban-dark-comment-attachments {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kanban-dark-comment-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kanban-dark-comment-attachment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.26);
}

.kanban-dark-comment-attachment-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.42);
}

.kanban-dark-comment-attachment-thumb img,
.kanban-dark-comment-attachment-thumb object,
.kanban-dark-comment-attachment-thumb iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #fff;
}

.kanban-dark-comment-attachment-thumb img {
    background: rgba(2, 6, 23, 0.72);
}

.kanban-dark-comment-attachment-thumb .kanban-dark-comment-attachment-fallback {
    min-height: 72px;
}

.kanban-dark-comment-attachment-item .kanban-dark-comment-attachment-meta {
    flex: 1;
}

.kanban-dark-comment-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kanban-dark-comment-actions-row .kanban-dark-quiet-btn {
    min-height: 36px;
}

.kanban-save-comment-btn {
    align-self: flex-start;
    margin-top: 0.4rem;
    margin-bottom: 0.35rem;
}


.kanban-dark-comment-bubble {
    width: 100%;
    border-radius: 16px;
    background: rgba(42, 45, 49, 0.92);
}

.kanban-dark-activity-feed {
    gap: 1rem;
    min-height: 220px;
}

.kanban-dark-details {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(36, 39, 43, 0.92);
}

.kanban-dark-properties {
    gap: 1rem 1.3rem;
}

.kanban-dark-property-chip,
.kanban-dark-date-btn,
.kanban-dark-member {
    min-height: 36px;
    border-radius: 10px;
}

@media (max-width: 1200px) {
    #section-painel-sugestoes {
        max-width: 100%;
    }

    .kanban-dark-modal {
        width: min(100vw - 24px, 1320px);
        max-width: calc(100vw - 24px);
    }

    .kanban-dark-form {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    }
}

@media (max-width: 960px) {

    .meeting-room-view-grid,
    #section-painel-sugestoes .suggestion-admin-hero {
        grid-template-columns: 1fr;
    }

    .kanban-dark-form {
        grid-template-columns: 1fr;
    }

    .kanban-dark-sidebar {
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
    }
}

@media (max-width: 768px) {
    .toast-stack {
        top: auto;
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }

    .notification-modal-footer,
    .meeting-room-card-participants,
    .meeting-room-participants-picker-head,
    .calendar-demands-archived-header,
    .template-preview-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .meeting-room-participants-list,
    .calendar-demands-card-grid {
        grid-template-columns: 1fr;
    }

    .meeting-room-card-participants-label {
        white-space: normal;
    }

    .meeting-room-call-toolbar {
        align-items: stretch;
    }

    .meeting-room-call-toolbar .btn,
    .meeting-room-call-toolbar .meeting-room-view-link {
        width: 100%;
    }

    .meeting-room-call-placeholder,
    .meeting-room-call-frame {
        height: min(58vh, 460px);
        min-height: 320px;
    }

    .g2g-meet-stage {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .g2g-meet-video-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(210px, auto);
    }

    .g2g-meet-sidebar {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .template-preview-phone {
        min-height: 640px;
    }

    .kanban-dark-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .kanban-dark-modal-header,
    .kanban-dark-main-scroll,
    .kanban-dark-sidebar {
        padding: 1rem;
    }

    .kanban-dark-title-block,
    .kanban-dark-section {
        padding: 0.9rem 0.95rem;
    }
}

@media (max-width: 540px) {

    .notification-item-top,
    .notification-item-footer,
    .meeting-room-view-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-preview-phone {
        width: calc(100vw - 1.5rem);
        min-height: 600px;
    }
}


/* Calendar demand cards: keep many events scrollable inside each day. */
.calendar-demand-day {
    height: 158px;
    overflow: hidden;
}

.calendar-demand-day-events {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.calendar-demand-day-events::-webkit-scrollbar {
    width: 6px;
}

.calendar-demand-day-events::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.calendar-demand-day-events::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 1024px) {
    .calendar-demand-day {
        height: 138px;
    }
}

@media (max-width: 768px) {
    .calendar-demand-day {
        height: 122px;
    }
}

@media (max-width: 480px) {
    .calendar-demand-day {
        height: 108px;
    }
}

/* ========================================================================= */
/* --- KANBAN TRELLO-LIKE OVERRIDES (Ã‰PICO 3) --- */
/* ========================================================================= */

.kanban-board-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding: 0.5rem 1rem;
    align-items: flex-start;
    gap: 1rem;
}

/* List Structure */
.kanban-list {
    background: #1E293B;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-width: 290px;
    max-width: 290px;
    max-height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-list-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.kanban-list-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
}

.kanban-list-cards {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Card Styling - Trello Inspired */
.kanban-card {
    background: #2A3B52 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.kanban-card:active {
    cursor: grabbing;
}

/* Card Cover */
.kanban-card-cover {
    height: 38px;
    width: 100%;
}

/* Content wrapper */
.kanban-card-content {
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Title */
.kanban-card-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #F8FAFC !important;
    line-height: 1.4 !important;
    word-break: break-word;
}

/* Metadatas */
.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 5px;
}

.kanban-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.kanban-card-meta-item.late {
    color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Avatars */
.kanban-card-members {
    display: flex;
    align-items: center;
    margin-top: 5px;
    justify-content: flex-end;
}

.kanban-card-member-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    margin-left: -5px;
    border: 2px solid #2A3B52 !important;
    background: #3B82F6 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
}

/* Drawer UI Modal */
.modal-overlay.drawer {
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding: 0 !important;
}

.modal-overlay.drawer .modal {
    width: 100% !important;
    max-width: 600px !important;
    height: 100% !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes drawerSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ========================================================================= */
/* --- KANBAN COMPACT BOARD FIX --- */
/* ========================================================================= */

#section-demandas .kanban-board-container {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
}

#section-demandas>div:first-child {
    padding: 0.65rem 1rem !important;
    gap: 0.7rem !important;
}

#section-demandas>div:first-child h2 {
    font-size: 1.22rem !important;
    margin-bottom: 0.08rem !important;
}

#section-demandas>div:first-child p {
    font-size: 0.8rem !important;
}

#section-demandas>div:first-child>div:last-child {
    gap: 0.45rem !important;
}

#section-demandas #kanban-search {
    min-height: 2.12rem;
}

#section-demandas .kanban-board {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 0;
}

#section-demandas .kanban-list,
#section-demandas .kanban-add-list-inline {
    flex: 0 0 272px;
    min-width: 272px;
    width: 272px;
    max-width: 272px;
    border-radius: 10px;
}

#section-demandas .kanban-list {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

#section-demandas .kanban-list-header {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.65rem 0.75rem 0.45rem;
}

#section-demandas .kanban-list-header h3 {
    font-size: 0.88rem;
    line-height: 1.15;
}

#section-demandas .kanban-list-cards {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    padding: 0.35rem 0.55rem 0.55rem;
    gap: 0.5rem;
    overflow-y: scroll !important;
    overflow-x: hidden;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar {
    width: 8px;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.28);
    border-radius: 999px;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.55);
    border-radius: 999px;
}

#section-demandas .kanban-list-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(191, 219, 254, 0.7);
}

#section-demandas .kanban-card {
    border-radius: 7px;
}

#section-demandas .kanban-card-content {
    padding: 0.85rem !important;
    gap: 0.6rem;
}

#section-demandas .kanban-card-title {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: 0.82rem !important;
    line-height: 1.28 !important;
}

#section-demandas .kanban-card-meta {
    gap: 0.42rem;
    margin-top: 0.12rem;
    font-size: 0.68rem;
}

#section-demandas .kanban-card-meta-item .ph {
    font-size: 0.82rem;
}

#section-demandas .kanban-card-badges {
    gap: 0.32rem;
    margin-bottom: 0.2rem;
}

#section-demandas .kanban-card-badge {
    padding: 0.12rem 0.38rem;
    font-size: 0.62rem;
}

#section-demandas .kanban-card-check {
    left: 0.6rem;
    top: 0.58rem;
    width: 14px;
    height: 14px;
}

#section-demandas .kanban-card-menu-btn {
    right: 0.48rem;
    top: 0.42rem;
    width: 25px;
    height: 25px;
    border-radius: 7px;
}

#section-demandas .kanban-add-card-btn {
    min-height: 32px;
    padding: 0.45rem 0.15rem;
    font-size: 0.82rem;
}

@media (max-width: 768px) {

    #section-demandas .kanban-list,
    #section-demandas .kanban-add-list-inline {
        flex-basis: min(78vw, 292px);
        min-width: min(78vw, 292px);
        width: min(78vw, 292px);
        max-width: min(78vw, 292px);
    }
}

@media (min-width: 1120px) {

    #section-demandas>div:first-child,
    #section-demandas>div:first-child>div:last-child {
        flex-wrap: nowrap !important;
    }

    #section-demandas>div:first-child .input-wrapper {
        max-width: 190px !important;
    }
}

@media (max-width: 480px) {

    #section-demandas .kanban-list,
    #section-demandas .kanban-add-list-inline {
        flex-basis: calc(100vw - 1.4rem);
        min-width: calc(100vw - 1.4rem);
        width: calc(100vw - 1.4rem);
        max-width: calc(100vw - 1.4rem);
    }
}

/* =========================================================================
   DASHBOARD VISÃƒO GLOBAL REDESIGN
   ========================================================================= */

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-layout-grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-main-col,
.dashboard-side-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ui-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
}

.ui-empty-state .empty-icon {
    font-size: 2.5rem;
    color: rgba(148, 163, 184, 0.5);
    margin-bottom: 1rem;
}

.ui-empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modern-shortcuts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-shortcuts .btn-shortcut {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: var(--surface-hover);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.modern-shortcuts .btn-shortcut i {
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.modern-shortcuts .btn-shortcut span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modern-shortcuts .btn-shortcut:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-shortcuts .btn-shortcut.primary-action {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.modern-shortcuts .btn-shortcut.primary-action i,
.modern-shortcuts .btn-shortcut.primary-action span {
    color: #60A5FA;
}

.modern-shortcuts .btn-shortcut.primary-action:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
}

@media (max-width: 1024px) {
    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   KANBAN GESTÃƒO DE DEMANDAS REDESIGN (DARK SAAS)
   ========================================================================= */

/* Header & Stats */
.kanban-modern-header {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: #0B1120;
    flex-shrink: 0;
}

.kanban-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.kanban-title-area h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #F8FAFC;
    letter-spacing: -0.02em;
}

.kanban-board-stats {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.kanban-board-stats .stat-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.6);
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.kanban-board-stats .stat-pill.active-stat {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.kanban-board-stats .stat-pill.late-stat {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.kanban-board-stats .stat-pill.done-stat {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Action Bar & Filters */
.kanban-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.kanban-quick-filters {
    display: flex;
    gap: 0.5rem;
}

.kanban-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    color: #94A3B8;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kanban-filter-chip i {
    font-size: 1rem;
}

.kanban-filter-chip:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #E2E8F0;
    border-style: solid;
}

.kanban-filter-chip.active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    border-style: solid;
}

/* Board Area */
#section-demandas {
    background: #0F172A;
}

.kanban-board {
    padding: 0.5rem 1rem;
    align-items: flex-start;
    gap: 1rem;
}

.kanban-list {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px !important;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
}

.kanban-list-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    background: inherit;
    padding: 0.8rem;
    border-radius: 10px 10px 0 0;
}


.kanban-list-header h3 {
    color: #E2E8F0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Modern Cards */
.kanban-card {
    background: #1E293B !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 10px !important;
    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 ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0;
    overflow: hidden;
    height: auto !important;
    min-height: 0;
}

.kanban-card .kanban-card-cover {
    height: 12px !important;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.kanban-card.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    z-index: 1000;
}

/* Prioridade (Bordas SemÃ¢nticas Esquerda) */
.kanban-card.prio-baixa {
    border-left: 3px solid #10B981 !important;
}

.kanban-card.prio-media {
    border-left: 3px solid #3B82F6 !important;
}

.kanban-card.prio-alta {
    border-left: 3px solid #F59E0B !important;
}

.kanban-card.prio-urgente {
    border-left: 3px solid #EF4444 !important;
}

/* Internal Layout of Card */
.kanban-card-content {
    padding: 0.85rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.kanban-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.2rem;
}

.kanban-card-id {
    font-size: 0.65rem;
    color: #94A3B8;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.kanban-card-title {
    font-size: 0.95rem !important;
    color: #F8FAFC !important;
    font-weight: 500;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Metadata Footer in Card */
.kanban-card-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.1);
}

.kanban-card-indicators {
    display: flex;
    gap: 0.8rem;
    color: #94A3B8;
    font-size: 0.8rem;
}

.kanban-card-indicators .indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.kanban-card-indicators .indicator.late {
    color: #EF4444;
}

/* Empty Column State */
.kanban-column-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.kanban-column-empty-state i {
    font-size: 1.5rem;
    color: rgba(148, 163, 184, 0.3);
    margin-bottom: 0.5rem;
}

.kanban-column-empty-state p {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
}

.kanban-add-card-btn {
    background: transparent;
    border: none;
    color: #38BDF8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.kanban-add-card-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

.kanban-list-cards {
    flex: 1;
    overflow-y: auto !important;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.kanban-list-cards::-webkit-scrollbar {
    width: 8px;
}

.kanban-list-cards::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.kanban-list-cards::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 10px;
}

.kanban-list-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.9);
}

#section-demandas .kanban-list-cards {
    overflow-y: auto !important;
}

#section-demandas .kanban-list-cards.has-many-cards {
    overflow-y: auto !important;
}

/* =========================================================================
   KANBAN CARD ORDER + TRELLO-LIKE RESPONSIVE BOARD
   ========================================================================= */

#section-demandas .kanban-board-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

#section-demandas .kanban-board {
    display: flex;
    align-items: flex-start;
    width: max-content;
    min-width: max-content;
    height: 100%;
    gap: 0.75rem;
    padding: 0 !important;
}

#section-demandas .kanban-list,
#section-demandas .kanban-add-list-inline {
    flex: 0 0 272px !important;
    width: 272px !important;
    min-width: 272px !important;
    max-width: 272px !important;
    scroll-snap-align: start;
}

#section-demandas .kanban-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    border-radius: 8px !important;
}

#section-demandas .kanban-card-cover {
    height: 24px;
}

#section-demandas .kanban-card-content {
    min-width: 0;
    gap: 0.34rem;
    padding: 0.58rem 0.68rem 0.66rem !important;
}

#section-demandas .kanban-card-top-row {
    order: 3;
    min-height: 20px;
    margin: 0.04rem 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.32rem;
}

#section-demandas .kanban-card-title {
    order: 2;
    padding-right: 1.55rem;
    margin: 0;
    font-size: 0.78rem !important;
    line-height: 1.24 !important;
    font-weight: 600 !important;
}

#section-demandas .kanban-card-title.kanban-card-title--lg {
    font-size: 0.74rem !important;
    line-height: 1.22 !important;
}

#section-demandas .kanban-card-title.kanban-card-title--xl {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}

#section-demandas .kanban-card-title.kanban-card-title--xxl {
    font-size: 0.66rem !important;
    line-height: 1.18 !important;
}

#section-demandas .kanban-card-labels-under-title {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    margin: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

#section-demandas .kanban-card-top-row .kanban-card-members {
    flex: 0 0 auto;
    align-self: center;
    margin-top: 0;
    padding-left: 0;
}

#section-demandas .kanban-card-meta-footer {
    order: 4;
    display: block;
    min-width: 0;
    margin-top: 0.24rem;
    padding-top: 0.42rem;
}

#section-demandas .kanban-card-indicators {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.26rem 0.34rem;
    font-size: 0.66rem;
    line-height: 1;
}

#section-demandas .kanban-card-indicators .indicator {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.12rem 0.3rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

#section-demandas .kanban-card-indicators .indicator .ph {
    font-size: 0.78rem;
    line-height: 1;
}

#section-demandas .kanban-card-indicators .indicator span {
    white-space: nowrap;
}

#section-demandas .kanban-card-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 18px;
    padding: 0.1rem 0.28rem;
    font-size: 0.56rem;
    line-height: 1.12;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    border-style: solid;
}

#section-demandas .kanban-card-member-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.58rem !important;
}

#section-demandas .kanban-card-check {
    top: 0.42rem;
}

#section-demandas .kanban-card-menu-btn {
    top: 0.34rem;
}

@media (max-width: 768px) {

    #section-demandas .kanban-list,
    #section-demandas .kanban-add-list-inline {
        flex-basis: min(82vw, 272px) !important;
        width: min(82vw, 272px) !important;
        min-width: min(82vw, 272px) !important;
        max-width: min(82vw, 272px) !important;
    }
}

@media (max-width: 480px) {

    #section-demandas .kanban-board-container {
        padding-inline: 0.7rem;
    }

    #section-demandas .kanban-list,
    #section-demandas .kanban-add-list-inline {
        flex-basis: min(86vw, 272px) !important;
        width: min(86vw, 272px) !important;
        min-width: min(86vw, 272px) !important;
        max-width: min(86vw, 272px) !important;
    }

    #section-demandas .kanban-card-content {
        padding: 0.68rem 0.7rem 0.72rem !important;
    }
}

/* AUTO-GENERATED INLINE STYLE MIGRATION START */

/* AUTO-GENERATED INLINE STYLE MIGRATION END */


