/* Estilos customizados para o formulario de solicitacoes */

/* ============ CSS CUSTOM PROPERTIES (dark mode ready) ============ */
:root {
    --color-bg: #f3f4f6;
    --color-surface: #ffffff;
    --color-surface-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;
    --color-text-faint: #9ca3af;
    --color-accent: #2563eb;
    --color-accent-light: #eff6ff;
    --color-accent-border: #bfdbfe;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --color-success: #059669;
    --color-shadow: rgba(0, 0, 0, 0.06);
    --color-overlay: rgba(0, 0, 0, 0.4);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
    --color-info: #0284c7;
    --color-purple: #7c3aed;
    --color-purple-light: #ede9fe;
    --radius-pill: 9999px;
    --font-size-display: 2rem;
    --font-size-headline: 1.125rem;
    --font-size-subhead: 0.875rem;
    --font-size-body: 0.8125rem;
    --font-size-caption: 0.75rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* ============ FOCUS-VISIBLE & ACCESSIBILITY ============ */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-accent-light), 0 0 0 3px var(--color-accent);
}

/* ============ REAL-TIME VALIDATION STATES ============ */
.field-valid {
    border-color: var(--color-success) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.field-invalid {
    border-color: var(--color-danger) !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 1px var(--color-danger);
}

/* Inline error message below fields */
.field-error {
    color: var(--color-danger);
    font-size: var(--font-size-caption);
    margin-top: 0.25rem;
    animation: hintFadeIn 0.2s ease;
}

/* Validation errors summary container */
#validation-errors {
    animation: hintFadeIn 0.25s ease;
}

.field-error-hint {
    animation: hintFadeIn 0.2s ease;
}

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

/* ============ AUTO-SAVE INDICATOR ============ */
#autosave-indicator {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#draft-banner {
    animation: bannerSlideIn 0.3s ease;
}

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

/* ============ PROGRESS INDICATOR ============ */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    position: relative;
}

.progress-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .progress-dot {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.progress-step.completed .progress-dot {
    background: var(--color-success);
    color: white;
}

.progress-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.progress-step.active .progress-label {
    color: var(--color-accent);
    font-weight: 600;
}

.progress-step.completed .progress-label {
    color: var(--color-success);
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
    min-width: 2rem;
    max-width: 5rem;
}

.progress-step.completed + .progress-connector,
.progress-connector:has(+ .progress-step.active) {
    background: var(--color-accent);
}

@media (max-width: 480px) {
    .progress-label { font-size: 0.625rem; }
    .progress-dot { width: 1.5rem; height: 1.5rem; font-size: 0.625rem; }
    .progress-connector { min-width: 1rem; }
}

/* ============ SKELETON LOADER ============ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 65%; }
.skeleton-text.long { width: 90%; }

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

/* Login Screen */
/* ============ TIPO DE SOLICITACAO - CARD SELECTOR ============ */
.tipo-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.tipo-card:hover { border-color: #93c5fd; background: #f0f7ff; }
.tipo-card:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb, 0 2px 8px rgba(37,99,235,0.15);
}
.tipo-card-green { border-color: #86efac; background: #f0fdf4; }
.tipo-card-green:hover { border-color: #4ade80; background: #dcfce7; }
.tipo-card-green:has(input:checked) { border-color: #16a34a; background: #dcfce7; box-shadow: 0 0 0 1px #16a34a, 0 2px 8px rgba(22,163,74,0.15); }
.tipo-card-red { border-color: #fca5a5; background: #fef2f2; }
.tipo-card-red:hover { border-color: #f87171; background: #fee2e2; }
.tipo-card-red:has(input:checked) { border-color: #dc2626; background: #fee2e2; box-shadow: 0 0 0 1px #dc2626, 0 2px 8px rgba(220,38,38,0.15); }
.tipo-card-icon {
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tipo-icon-red { background: #fee2e2; color: #dc2626; }
.tipo-icon-blue { background: #dbeafe; color: #2563eb; }
.tipo-icon-purple { background: #ede9fe; color: #7c3aed; }
.tipo-icon-amber { background: #fef3c7; color: #d97706; }
.tipo-icon-green { background: #dcfce7; color: #16a34a; }
.tipo-icon-gray { background: #f3f4f6; color: #6b7280; }
.tipo-icon-red-solid { background: #dc2626; color: white; }
.tipo-card-text { display: flex; flex-direction: column; min-width: 0; }
.tipo-card-title { font-weight: 600; font-size: 0.875rem; color: #1f2937; }
.tipo-card-desc { font-size: 0.75rem; color: #6b7280; line-height: 1.3; }

/* ============ AGENDA SEARCHABLE DROPDOWN ============ */
.agenda-group-label {
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
}
.agenda-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.1s;
}
.agenda-option:hover { background: #eff6ff; }
.agenda-option.selected { background: #dbeafe; font-weight: 600; }
.agenda-option.hidden { display: none; }

.login-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 380px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
    animation: loginCardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border-radius: 0.875rem;
    animation: loginIconPulse 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

@keyframes loginIconPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25); }
}

.login-body input:focus {
    outline: none;
}

.login-body button:active {
    transform: scale(0.98);
}

.login-body button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* Repeater Items */
.repeater-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.repeater-item:hover {
    border-color: #d1d5db;
}

/* Botao de remover item */
.btn-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background-color: #fecaca;
}

/* Badges de horas */
.hours-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.hours-badge.ok {
    background-color: #d1fae5;
    color: #065f46;
}

.hours-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.hours-badge.error {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Flag de urgencia */
.flag-urgencia {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-urgencia.emergencial {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.flag-urgencia.urgente {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Animacoes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Feedback messages */
.feedback-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.feedback-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Input com erro */
input.error,
select.error,
textarea.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

/* Checkbox dia inteiro - desabilita campos de horario */
.horarios-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsividade mobile */
@media (max-width: 640px) {
    .repeater-item {
        padding: 0.75rem;
    }

    .repeater-item .grid {
        gap: 0.5rem;
    }

    .btn-remove {
        top: 0.25rem;
        right: 0.25rem;
    }
}

/* Radio buttons estilizados */
input[type="radio"]:checked + div {
    color: #1d4ed8;
}

label:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Tooltip helper */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Vigencia badges */
.vigencia-select option[value="sem_fim"] {
    background-color: #dbeafe;
}

.vigencia-select option[value="com_fim"] {
    background-color: #fef3c7;
}

/* Dia da semana display */
.dia-semana-display {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ============ TAB NAVIGATION ============ */
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-smooth);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--color-text-secondary);
    background-color: var(--color-surface-alt);
}

.tab-btn:hover::before {
    opacity: 0.5;
}

.tab-btn-active {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

.tab-btn-active::before {
    opacity: 1;
}

/* ============ TAB CONTENT TRANSITIONS ============ */
#tab-form,
#tab-list {
    animation: tabFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============ LIST VIEW TABLE ============ */
.list-th {
    padding: 0.625rem 0.75rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: all var(--transition-smooth);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.list-th:hover {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--color-accent);
}

.list-th:active {
    transform: scale(0.98);
}

.sort-indicator {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.list-row {
    border-bottom: 1px solid var(--color-border-light);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    opacity: 0;
    animation: rowSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rowSlideIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-row:hover {
    background-color: var(--color-accent-light);
    border-left-color: var(--color-accent);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.06);
    transform: scale(1.002);
}

.list-row:active {
    transform: scale(0.999);
    background-color: #dbeafe;
}

/* Row left border colors based on type badge inside the row */
.list-row:has(.bg-red-100) { border-left-color: #ef4444; }
.list-row:has(.bg-blue-100) { border-left-color: #3b82f6; }
.list-row:has(.bg-purple-100) { border-left-color: #8b5cf6; }
.list-row:has(.bg-amber-100) { border-left-color: #f59e0b; }
.list-row:has(.bg-green-100) { border-left-color: #22c55e; }
.list-row:has(.bg-orange-100) { border-left-color: #f97316; }
.list-row:has(.bg-gray-100) { border-left-color: #9ca3af; }

/* ============ TYPE BADGES ============ */
.type-badge {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    cursor: default;
}

.type-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* More vibrant badge colors via border tinting */
.type-badge.bg-red-100 { border-color: #fecaca; }
.type-badge.bg-blue-100 { border-color: #bfdbfe; }
.type-badge.bg-purple-100 { border-color: #ddd6fe; }
.type-badge.bg-amber-100 { border-color: #fde68a; }
.type-badge.bg-green-100 { border-color: #bbf7d0; }
.type-badge.bg-orange-100 { border-color: #fed7aa; }
.type-badge.bg-gray-100 { border-color: #d1d5db; }

/* ============ URGENCY DOT ============ */
.urgency-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

/* Pulsing glow for EMERGENCIAL dots (red background = #dc2626) */
.urgency-dot[style*="#dc2626"] {
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
    }
}

/* ============ STAT CARDS ============ */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: var(--radius-lg);
    min-width: 4.5rem;
    transition: all var(--transition-smooth);
}

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

/* ============ DETAIL PANEL ============ */
.detail-section {
    margin-bottom: 1.125rem;
    padding: 1rem 1.125rem;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    opacity: 0;
    animation: detailSectionIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: box-shadow var(--transition-smooth);
}

.detail-section:nth-child(1) { animation-delay: 0.05s; }
.detail-section:nth-child(2) { animation-delay: 0.1s; }
.detail-section:nth-child(3) { animation-delay: 0.15s; }
.detail-section:nth-child(4) { animation-delay: 0.2s; }
.detail-section:nth-child(5) { animation-delay: 0.25s; }
.detail-section:nth-child(6) { animation-delay: 0.3s; }

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

.detail-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.detail-section-title::before {
    content: '';
    width: 3px;
    height: 0.75rem;
    background: var(--color-accent);
    border-radius: 2px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.5rem;
    transition: background-color var(--transition-fast);
    border-radius: var(--radius-sm);
    gap: 0.125rem;
}

.detail-field:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.detail-label {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    word-break: break-word;
    line-height: 1.5;
    white-space: pre-line;
}

/* Detail panel close button - larger touch target on mobile */
#detail-panel .sticky button[onclick="closeDetail()"] {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

#detail-panel .sticky button[onclick="closeDetail()"]:hover {
    background-color: var(--color-surface-alt);
    transform: rotate(90deg);
}

/* Detail panel overlay transition */
#detail-overlay {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#detail-overlay:not(.hidden) {
    background-color: var(--color-overlay);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ============ LOADING SPINNER (blue variant for list) ============ */
.spinner-blue {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #dbeafe;
    border-radius: 50%;
    border-top-color: #2563eb;
    border-right-color: #818cf8;
    animation: spinnerRotate 0.7s linear infinite, spinnerFadeIn 0.3s ease;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

@keyframes spinnerFadeIn {
    from { opacity: 0; transform: scale(0.5) rotate(0deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ============ MINI DASHBOARD ============ */
.dash-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-grid-row {
    opacity: 0;
    animation: dashRowIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.dash-grid-row:nth-child(1) { animation-delay: 0s; }
.dash-grid-row:nth-child(2) { animation-delay: 0.1s; }
.dash-grid-row:nth-child(3) { animation-delay: 0.15s; }
.dash-grid-row:nth-child(4) { animation-delay: 0.2s; }
.dash-grid-row:nth-child(5) { animation-delay: 0.25s; }

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

/* --- CALENDAR HEADER --- */
.dash-calendar-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #3b82f6 100%);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.dash-cal-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-cal-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-cal-icon svg {
    color: white;
}

.dash-cal-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-cal-day {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.dash-cal-full {
    font-size: 0.8125rem;
    opacity: 0.75;
    font-weight: 500;
}

.dash-cal-count {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    min-width: 3.5rem;
}

.dash-cal-count-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.dash-cal-count-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    font-weight: 600;
}

.dash-cal-professionals {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-cal-prof-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    font-weight: 600;
    white-space: nowrap;
}

.dash-cal-prof-empty {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.5;
}

.dash-cal-prof-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-cal-prof-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* --- KPI CARDS (icon + content layout) --- */
.dash-kpi-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.dash-kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.dash-kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.dash-kpi-card:hover::before {
    opacity: 1;
}

/* Color variants */
.dash-kpi-blue::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.dash-kpi-red::before { background: linear-gradient(90deg, #dc2626, #ef4444); opacity: 1; }
.dash-kpi-violet::before { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.dash-kpi-emerald::before { background: linear-gradient(90deg, #059669, #10b981); }
.dash-kpi-orange::before { background: linear-gradient(90deg, #ea580c, #f97316); opacity: 1; }

.dash-kpi-red {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.dash-kpi-orange {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

/* Icon */
.dash-kpi-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

.dash-kpi-card:hover .dash-kpi-icon {
    transform: scale(1.08) rotate(-3deg);
}

.dash-kpi-icon-blue { background: #eff6ff; color: #2563eb; }
.dash-kpi-icon-red { background: #fef2f2; color: #dc2626; }
.dash-kpi-icon-violet { background: #f5f3ff; color: #7c3aed; }
.dash-kpi-icon-emerald { background: #ecfdf5; color: #059669; }
.dash-kpi-icon-orange { background: #fff7ed; color: #ea580c; }

/* Content */
.dash-kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: transform var(--transition-fast);
}

.dash-kpi-card:hover .dash-kpi-value {
    transform: scale(1.03);
}

.dash-kpi-red .dash-kpi-value { color: #dc2626; }

.dash-kpi-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.dash-kpi-sub {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
    margin-top: 0.125rem;
}

/* Animated KPI counter */
.dash-kpi-value[data-animate] {
    animation: kpiCountPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kpiCountPop {
    0% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- PANEL (shared for charts/timeline) --- */
.dash-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.dash-panel:hover {
    box-shadow: var(--shadow-md);
}

.dash-panel-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.dash-panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- HORIZONTAL BAR CHART (type breakdown) --- */
.dash-hbar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-hbar-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    opacity: 0;
    animation: hbarRowIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dash-hbar-row:nth-child(1) { animation-delay: 0.05s; }
.dash-hbar-row:nth-child(2) { animation-delay: 0.1s; }
.dash-hbar-row:nth-child(3) { animation-delay: 0.15s; }
.dash-hbar-row:nth-child(4) { animation-delay: 0.2s; }
.dash-hbar-row:nth-child(5) { animation-delay: 0.25s; }
.dash-hbar-row:nth-child(6) { animation-delay: 0.3s; }
.dash-hbar-row:nth-child(7) { animation-delay: 0.35s; }

@keyframes hbarRowIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.dash-hbar-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    width: 5.5rem;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.dash-hbar-track {
    flex: 1;
    height: 1.375rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
}

.dash-hbar-fill {
    height: 100%;
    border-radius: 0.375rem;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 100%);
    background-blend-mode: overlay;
}

.dash-hbar-fill-text {
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dash-hbar-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    width: 2.5rem;
    flex-shrink: 0;
    text-align: right;
}

/* --- URGENCY METRIC CARDS --- */
.dash-urgency-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dash-urg-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
    transition: all var(--transition-smooth);
    opacity: 0;
    animation: urgCardIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dash-urg-card:nth-child(1) { animation-delay: 0.05s; }
.dash-urg-card:nth-child(2) { animation-delay: 0.15s; }
.dash-urg-card:nth-child(3) { animation-delay: 0.25s; }

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

.dash-urg-card:hover {
    transform: translateX(3px);
}

.dash-urg-card-red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fecaca;
}

.dash-urg-card-amber {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}

.dash-urg-card-green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #a7f3d0;
}

.dash-urg-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-urg-dot-red { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.dash-urg-dot-amber { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
.dash-urg-dot-green { background: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }

.dash-urg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-urg-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.dash-urg-pct {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
}

.dash-urg-count {
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.dash-urg-count-red { color: #dc2626; }
.dash-urg-count-amber { color: #d97706; }
.dash-urg-count-green { color: #059669; }

/* ============ WORD CLOUD ============ */
.dash-wordcloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding: 1.25rem 1rem;
    min-height: 5rem;
}

.wc-word {
    display: inline-flex;
    align-items: baseline;
    gap: 0.125rem;
    cursor: pointer;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: wcWordIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    line-height: 1.3;
    white-space: nowrap;
}

.wc-word:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.wc-word:active {
    transform: scale(1.05);
}

@keyframes wcWordIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

.wc-word-count {
    font-size: 0.5625rem;
    font-weight: 700;
    opacity: 0.5;
    margin-left: 0.125rem;
}

.wc-empty {
    font-size: 0.8125rem;
    color: var(--color-text-faint);
    font-style: italic;
    padding: 1rem 0;
}

.dash-panel-hint {
    font-size: 0.6875rem;
    color: var(--color-text-faint);
    margin-left: auto;
    font-weight: 400;
    font-style: italic;
}

/* ============ WORD CLOUD MODAL ============ */
.wc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: wcModalOverlayIn 0.25s ease-out;
}

.wc-modal-overlay.hidden {
    display: none;
}

@keyframes wcModalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wc-modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: wcModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wcModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.wc-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wc-modal-word {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-md);
}

.wc-modal-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-faint);
}

.wc-modal-close {
    font-size: 1.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--color-text-faint);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.wc-modal-close:hover {
    background: var(--color-surface-alt);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.wc-modal-body {
    padding: 1rem 1.5rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.wc-modal-item {
    padding: 1rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    opacity: 0;
    animation: wcModalItemIn 0.3s ease-out forwards;
}

.wc-modal-item:hover {
    border-color: var(--color-accent-border);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

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

.wc-modal-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.wc-modal-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.wc-modal-item-date {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-left: auto;
    white-space: nowrap;
    background: var(--color-surface);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.wc-modal-item-desc {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

.wc-modal-item-deadline {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #fef3c7;
}

@media (max-width: 640px) {
    .dash-kpi-value {
        font-size: 1.25rem;
    }
    .wc-modal {
        max-height: 90vh;
        margin: 0.5rem;
    }
    .wc-modal-body {
        padding: 0.75rem;
    }
}

/* ============ DETAIL CELL (structured per-type details) ============ */
.detail-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 260px;
    padding: 0.125rem 0;
}

.detail-dates {
    font-size: 0.8125rem;
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.list-row:hover .detail-dates {
    color: var(--color-accent);
}

.detail-metric {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-info {
    font-size: 0.6875rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-rep {
    font-size: 0.6875rem;
    color: #059669;
    font-weight: 500;
    padding: 0.0625rem 0.375rem;
    background: rgba(5, 150, 105, 0.06);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============ VENCIMENTO BADGES ============ */
.venc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.venc-badge:hover {
    transform: scale(1.08);
}

.venc-vencido {
    background-color: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
    animation: vencidoPulse 1.5s ease-in-out infinite;
}

@keyframes vencidoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

.venc-hoje {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
    border-color: #fecaca;
    font-weight: 700;
    animation: vencidoPulse 1.5s ease-in-out infinite;
}

.venc-critico {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border-color: #fed7aa;
}

.venc-alerta {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border-color: #fde68a;
}

.venc-ok {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border-color: #a7f3d0;
}

.venc-folgado {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ============ ZEBRA STRIPING ============ */
.list-row:nth-child(even) {
    background-color: var(--color-surface-alt);
}

.list-row:nth-child(even):hover {
    background-color: var(--color-accent-light);
}

/* ============ STICKY TABLE HEADER ============ */
.overflow-x-auto thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.overflow-x-auto thead tr {
    background-color: var(--color-surface-alt);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ============ HORIZONTAL SCROLL SHADOW ============ */
.table-scroll-wrapper {
    position: relative;
}

.table-scroll-wrapper .overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.table-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255,255,255,0.9) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.table-scroll-wrapper.has-scroll::after {
    opacity: 1;
}

/* ============ DETAIL NAV ARROWS ============ */
.detail-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 1rem;
}

.detail-nav-btn:hover:not(:disabled) {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent-border);
    transform: scale(1.1);
}

.detail-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.detail-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ============ COPY ID BUTTON ============ */
.copy-id-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.copy-id-btn:hover {
    background-color: #eff6ff;
    border-color: var(--color-accent-border);
}

.copy-id-btn:active {
    transform: scale(0.97);
}

.copy-id-btn .copy-icon {
    opacity: 0;
    transition: all var(--transition-smooth);
    width: 0.75rem;
    height: 0.75rem;
    color: var(--color-accent);
}

.copy-id-btn:hover .copy-icon {
    opacity: 1;
    transform: translateX(2px);
}

.copy-feedback {
    font-size: 0.625rem;
    color: #059669;
    font-weight: 600;
    animation: copyPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes copyPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ============ REFRESH BUTTON ============ */
.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.btn-refresh:hover {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent-border);
}

.btn-refresh:hover svg {
    animation: refreshSpin 0.6s ease-in-out;
}

@keyframes refreshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-refresh svg {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition-smooth);
}

/* ============ RELATIVE TIME ============ */
.relative-time {
    font-size: 0.625rem;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
    padding: 0.0625rem 0.25rem;
    background: rgba(156, 163, 175, 0.08);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ============ MOBILE RESPONSIVENESS ============ */
@media (max-width: 640px) {
    /* Detail panel full-screen on mobile */
    #detail-panel {
        max-width: 100% !important;
    }

    #detail-panel .sticky {
        padding: 0.75rem 1rem;
    }

    #detail-panel .sticky button[onclick="closeDetail()"] {
        min-width: 2.75rem;
        min-height: 2.75rem;
        font-size: 1.75rem;
    }

    #detail-content {
        padding: 1rem !important;
    }

    /* Filter bar: tighter spacing */
    .filter-bar-grid {
        gap: 0.5rem;
    }

    /* Table: force minimum column widths */
    .list-th,
    .list-row td {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    /* Container width: wider on mobile */
    #main-content {
        max-width: 100% !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Even tighter mobile layout */
    #detail-panel .sticky h3 {
        font-size: 0.875rem;
    }

    .detail-section {
        padding: 0.625rem;
    }
}

/* ============ FILTER BAR ANIMATION ============ */
@keyframes filterSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-bar-animate {
    animation: filterSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filter inputs focus animation */
.filter-bar-animate input:focus,
.filter-bar-animate select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    border-color: var(--color-accent) !important;
    transition: all var(--transition-smooth);
}

/* ============ TABLE TRANSITION (smooth filter/sort updates) ============ */
#list-table-body {
    transition: opacity 0.15s ease;
}

#list-table-body.updating {
    opacity: 0.4;
}

/* ============ LOADING ANIMATION ENHANCEMENT ============ */
#list-loading p {
    animation: loadingDots 1.5s ease-in-out infinite;
}

@keyframes loadingDots {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============ EMPTY STATE ANIMATION ============ */
#list-empty svg {
    animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============ SMOOTH SCROLLBAR ============ */
#detail-panel {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

#detail-panel::-webkit-scrollbar {
    width: 6px;
}

#detail-panel::-webkit-scrollbar-track {
    background: transparent;
}

#detail-panel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#detail-panel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============ URGENCY DOT ENHANCEMENT ============ */
.urgency-dot {
    transition: transform var(--transition-fast);
}

.list-row:hover .urgency-dot {
    transform: scale(1.3);
}

/* ============ HEADER CARD IMPROVEMENTS ============ */
header.bg-white {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md) !important;
}

/* ============ TABLE CONTAINER IMPROVEMENTS ============ */
.bg-white.rounded-lg.shadow-md.overflow-hidden {
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* ============ FOOTER BAR ============ */
#list-footer {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid var(--color-border);
}

#list-footer button {
    transition: all var(--transition-smooth);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
}

#list-footer button:hover {
    background-color: #d1fae5;
    transform: translateY(-1px);
}

/* ============ MOBILE TOUCH TARGETS ============ */
@media (max-width: 640px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="password"], input[type="date"], input[type="time"],
    input[type="number"], select, textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .tipo-card {
        padding: 0.875rem;
    }

    .tipo-card-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* ============ MESSAGE LOG SYSTEM ============ */
.msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.msg-badge-empty { background: #f3f4f6; color: #9ca3af; }
.msg-badge-active { background: #dbeafe; color: #2563eb; }
.msg-badge-active:hover { background: #bfdbfe; transform: scale(1.1); }

.msg-tooltip {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.75rem;
    width: 280px;
    max-height: 200px;
    overflow-y: auto;
}
.msg-tooltip-item { margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f3f4f6; }
.msg-tooltip-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.msg-tooltip-meta { font-size: 0.6875rem; font-weight: 600; color: #6b7280; }
.msg-tooltip-text { font-size: 0.75rem; color: #374151; font-style: italic; margin-top: 0.125rem; }
.msg-tooltip-more { font-size: 0.6875rem; color: #2563eb; text-align: center; padding-top: 0.25rem; }

.msg-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); }
.msg-modal-panel {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    width: 400px; max-width: 90vw;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1;
}
.msg-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; }
.msg-modal-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.msg-modal-form { padding: 1rem 1.25rem; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 0.5rem; }
.msg-input { padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 0.8125rem; }
.msg-textarea { padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 0.8125rem; resize: none; }
.msg-send-btn { background: #2563eb; color: white; padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border: none; }
.msg-send-btn:hover { background: #1d4ed8; }
.msg-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.msg-item { padding: 0.75rem; border-radius: 0.375rem; background: #f9fafb; margin-bottom: 0.5rem; }
.msg-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.msg-item-author { font-size: 0.75rem; font-weight: 600; color: #374151; }
.msg-item-date { font-size: 0.6875rem; color: #9ca3af; }
.msg-item-text { font-size: 0.8125rem; color: #4b5563; line-height: 1.4; }
.msg-audit { background: #f0f9ff; border-left: 3px solid #93c5fd; }
.msg-audit .msg-item-author { color: #6b7280; font-weight: 500; font-style: italic; }
.msg-audit .msg-item-text { font-size: 0.75rem; color: #6b7280; font-family: monospace; }

/* ============ STATUS BADGES ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-blue {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

.status-yellow {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-green {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* ============ INLINE STATUS SELECT (table column) ============ */
.inline-status-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.2rem 1.2rem 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.3rem center;
    background-size: 0.75rem;
    transition: all 0.15s ease;
}
.inline-status-select:hover { opacity: 0.85; }
.inline-status-select:focus { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); }
.status-select-blue { background-color: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.status-select-yellow { background-color: #fef3c7; color: #92400e; border-color: #fde68a; }
.status-select-green { background-color: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.status-select-red-cancel { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ============ STATUS ACTION BUTTONS ============ */
.status-action-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.status-inactive:hover {
    background: #e5e7eb;
}

.status-active-blue {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.status-active-yellow {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

.status-active-green {
    background: #059669;
    color: white;
    border-color: #059669;
}

.status-active-red {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.status-red-cancel {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ============ COMPACT TABLE ============ */
.list-td {
    padding: 4px 6px;
    font-size: 0.7rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Resizable columns */
.list-th {
    position: relative;
    overflow: hidden;
    min-width: 50px;
    user-select: none;
}

.col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 2;
}

.col-resize-handle:hover,
.col-resize-handle.resizing {
    background: #818cf8;
}

body.col-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

body.col-resizing * {
    cursor: col-resize !important;
}

/* Time tracking badges */
.time-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}
.time-badge-fast { background: #d1fae5; color: #065f46; }
.time-badge-normal { background: #fef3c7; color: #92400e; }
.time-badge-slow { background: #fee2e2; color: #991b1b; }

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ============ SALDO BADGES ============ */
.saldo-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.saldo-pos {
    background: #d1fae5;
    color: #065f46;
}

.saldo-neg {
    background: #fee2e2;
    color: #dc2626;
}

/* ============ VENCIMENTO TIMER ============ */
.timer-vencido {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    font-family: monospace;
    background: #fee2e2;
    color: #dc2626;
    animation: pulse-red 1.5s ease-in-out infinite;
}

.timer-emergencial {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: monospace;
    color: #dc2626;
    background: #fff5f5;
}

.timer-alerta {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: monospace;
    color: #92400e;
    background: #fffbeb;
}

.timer-folgado {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    color: #065f46;
    background: #ecfdf5;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

/* ============ ALERT SYSTEM ============ */
.msg-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 9px;
    font-weight: 700;
    animation: pulse-red 1.5s ease-in-out infinite;
    margin-right: 2px;
    flex-shrink: 0;
}

.msg-alert-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 8px;
    font-weight: 700;
    margin-left: 4px;
    flex-shrink: 0;
}

.msg-badge-alert {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    animation: pulse-red 1.5s ease-in-out infinite;
}

.msg-badge-alert:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.msg-alert-active {
    border-left: 3px solid #dc2626;
    background: #fef2f2 !important;
}

.msg-alert-read-btn {
    font-size: 0.625rem;
    padding: 0.0625rem 0.375rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: 4px;
}

.msg-alert-read-btn:hover {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Alert toggle in chat form */
.msg-input-row {
    display: flex;
    gap: 0.375rem;
    align-items: flex-start;
}

.msg-input-row .msg-textarea {
    flex: 1;
}

.msg-alert-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #d1d5db;
    background: white;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.msg-alert-toggle-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.msg-alert-toggle-active {
    background: #dc2626 !important;
    color: white !important;
    border-color: #dc2626 !important;
    animation: pulse-red 1.5s ease-in-out infinite;
}

/* ============ DRAG COLUMNS ============ */
.list-th[draggable] {
    cursor: grab;
}

.list-th[draggable]:active {
    cursor: grabbing;
}

.list-th.dragging {
    opacity: 0.5;
}

.list-th.drag-over {
    border-left: 2px solid #2563eb;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
}

/* ============ COLABORADORES ============ */
.colab-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.colab-card:hover {
    border-color: var(--color-accent-border);
    box-shadow: var(--shadow-sm);
}

.colab-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border);
}

.colab-foto-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.colab-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.colab-nome {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.colab-cpf {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.colab-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.colab-edit-btn, .colab-delete-btn {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.colab-edit-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.colab-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Chat photo */
.chat-foto {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============ MY CARD RECADOS ============ */
.mycard-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #dbeafe;
    color: #2563eb;
}

.mycard-msg-badge-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #dc2626;
    color: white;
    animation: pulse-alert 1.5s ease-in-out infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.mycard-recados {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.mycard-recados-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.mycard-recado {
    padding: 0.25rem 0;
    font-size: 0.7rem;
    color: #334155;
    border-bottom: 1px dashed #f1f5f9;
}

.mycard-recado:last-child {
    border-bottom: none;
}

.mycard-recado-highlight {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    padding-left: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0 4px 4px 0;
}

.mycard-recado-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    margin-right: 4px;
    flex-shrink: 0;
}

.mycard-recado-text {
    display: block;
    line-height: 1.3;
}

.mycard-recado-meta {
    display: block;
    font-size: 0.6rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* ============ CONSULTA STATUS RECADOS ============ */
.status-recados {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
}

.status-recados-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.status-recado-item {
    padding: 0.375rem 0;
    font-size: 0.75rem;
    color: #44403c;
    border-bottom: 1px dashed #fde68a;
}

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

.status-recado-item.alert-recado {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    padding: 0.375rem 0.5rem;
    margin: 0.25rem 0;
    border-radius: 0 4px 4px 0;
}

.status-recado-author {
    font-weight: 600;
    color: #78716c;
}

.status-recado-time {
    font-size: 0.65rem;
    color: #a8a29e;
}

/* Print styles */
@media print {
    .btn-remove,
    button[type="submit"],
    .tooltip::after,
    #mini-dashboard,
    .btn-refresh {
        display: none;
    }
}
