/* ============================================
   GESTÃO STAFF - Estilos base compartilhados
   Visual: Guia da Staff Design System
   ============================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: #171717;
    --bg-tertiary: #1f1f1f;
    --bg-card: #1e1e1e;
    --bg-list: #161616;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #3B82F6;
    --accent-hover: #60A5FA;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-pink: #ec4899;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --overlay-02: rgba(255, 255, 255, 0.02);
    --overlay-03: rgba(255, 255, 255, 0.03);
    --overlay-04: rgba(255, 255, 255, 0.04);
    --overlay-06: rgba(255, 255, 255, 0.06);
    --overlay-08: rgba(255, 255, 255, 0.08);
    --overlay-10: rgba(255, 255, 255, 0.10);
    --overlay-12: rgba(255, 255, 255, 0.12);
    --overlay-15: rgba(255, 255, 255, 0.15);
    --overlay-18: rgba(255, 255, 255, 0.18);
    --overlay-20: rgba(255, 255, 255, 0.20);
    --scrollbar-color: rgba(255, 255, 255, 0.08);
    --scrollbar-hover: rgba(255, 255, 255, 0.12);
    --shadow-card: none;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light mode override */
body.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e5e5e5;
    --bg-card: #ffffff;
    --bg-list: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --overlay-02: rgba(0, 0, 0, 0.02);
    --overlay-03: rgba(0, 0, 0, 0.03);
    --overlay-04: rgba(0, 0, 0, 0.04);
    --overlay-06: rgba(0, 0, 0, 0.06);
    --overlay-08: rgba(0, 0, 0, 0.08);
    --overlay-10: rgba(0, 0, 0, 0.10);
    --overlay-12: rgba(0, 0, 0, 0.12);
    --overlay-15: rgba(0, 0, 0, 0.15);
    --overlay-18: rgba(0, 0, 0, 0.18);
    --overlay-20: rgba(0, 0, 0, 0.20);
    --scrollbar-color: rgba(0, 0, 0, 0.12);
    --scrollbar-hover: rgba(0, 0, 0, 0.2);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: env(safe-area-inset-top);
}

/* ============================================
   ANIMATIONS (from Guia da Staff)
   ============================================ */

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes cardPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   TOP BAR
   ============================================ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    background: #010406;
    border-bottom: 1px solid;
    flex-shrink: 0;
    z-index: 10;
    gap: 16px;
    border-color: #303031;
    position: relative;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.topbar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.topbar-dot {
    color: var(--text-muted);
    margin: 0 2px;
}

.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
}

.topbar-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ============================================
   SEARCH BOX (from Guia da Staff)
   ============================================ */

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.813rem;
    outline: none;
    transition: all 0.15s ease;
}

.search-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.688rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ============================================
   BOARD (horizontal scroll)
   ============================================ */

.board {
    display: flex;
    gap: 12px;
    padding: 16px 16px 60px 16px;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.board::-webkit-scrollbar {
    height: 8px;
}

.board::-webkit-scrollbar-track {
    background: transparent;
}

.board::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.board::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ============================================
   LIST (column)
   ============================================ */

.list {
    min-width: 259.4px;
    max-width: 259.4px;
    background: var(--bg-list);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 140px);
    flex-shrink: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px 12px;
    min-height: 48px;
    flex-shrink: 0;
}

.list-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.list-icon {
    font-size: 14px;
}

.list-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.list-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.list-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.list-count {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

.list-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s ease;
}

.list-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* ============================================
   LIST CARDS (scrollable area)
   ============================================ */

.list-cards {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none;
}

.list-cards:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.list-cards::-webkit-scrollbar {
    width: 0;
}

.list-cards:hover::-webkit-scrollbar {
    width: 4px;
}

.list-cards::-webkit-scrollbar-track {
    background: transparent;
}

.list-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.list-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   CARD
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 8px 10px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.card:hover {
    border-color: var(--border-hover);
}

.card:hover .card-edit-btn {
    opacity: 1;
}

.card.card-highlight {
    animation: cardPop 0.3s ease;
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.card.search-match {
    border-color: var(--accent-warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.card.search-hidden {
    display: none;
}

/* Card Labels */
.card-labels {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.card-label {
    height: 8px;
    width: 48px;
    border-radius: 4px;
    display: inline-block;
    transition: height 0.15s ease;
    cursor: pointer;
}

.card-label:hover {
    height: 14px;
}

/* Card Member Row (avatar + name) */
.card-member-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    margin-bottom: 9px
}

/* Card Member Row para listas sem checklist (desligados/gerente) */
.card-member-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0px 0;
}

.card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
}

body.hide-avatars .card-avatar {
    display: none;
}

/* Compact mode */
body.compact-mode .card {
    padding: 6px 8px;
}

body.compact-mode .card-labels {
    margin-bottom: 4px;
}

body.compact-mode .card-label {
    height: 6px;
}

body.compact-mode .card-badges {
    margin-top: 4px;
}

body.compact-mode .card-avatar {
    width: 22px;
    height: 22px;
}

body.compact-mode .card-text {
    font-size: 0.813rem;
}

/* Card Text */
.card-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.card-checkbox {
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.card-checkbox:hover {
    color: var(--accent-primary);
}

/* Card Description */
.card-description {
    font-size: 0.813rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 4px 0;
}

/* Card Badges */
.card-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    line-height: 1;
}

.card-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1;
}

.card-badge i {
    font-size: 12px;
}

.card-badge.badge-complete {
    color: var(--accent-success);
}

.card-badge-complete {
    color: #10b981 !important;
}

.card-badge-complete i {
    color: #10b981 !important;
}



/* Card Edit Button */
.card-edit-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: all 0.15s ease;
}

.card-edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Card Banner */
.card-banner {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.card-banner-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.card-banner-text {
    display: block;
    padding: 10px 12px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Card Cover */
.card-with-cover {
    padding: 0;
    overflow: hidden;
}

.card-cover-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.card-with-cover .card-description,
.card-with-cover .card-badges {
    padding-left: 10px;
    padding-right: 10px;
}

.card-with-cover .card-badges {
    padding-bottom: 10px;
}

.card-with-cover .card-description {
    padding-top: 10px;
}

/* ============================================
   ADD CARD BUTTON & FORM
   ============================================ */

.add-card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.add-card-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.add-card-btn i {
    font-size: 12px;
}

.add-card-form {
    padding: 0 8px 8px 8px;
    animation: fadeIn 0.15s ease;
}

.add-card-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    resize: none;
    outline: none;
    transition: border-color 0.15s ease;
}

.add-card-form textarea:focus {
    border-color: var(--accent-primary);
}

.add-card-form textarea::placeholder {
    color: var(--text-muted);
}

.add-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.add-card-submit {
    padding: 6px 14px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.add-card-submit:hover {
    filter: brightness(1.1);
}

.add-card-cancel {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.add-card-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* ============================================
   ADD LIST
   ============================================ */

.add-list {
    min-width: 272px;
    flex-shrink: 0;
}

.add-list-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.add-list-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.add-list-btn i {
    font-size: 13px;
}

.add-list-form {
    min-width: 272px;
    background: var(--bg-list);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px;
    flex-shrink: 0;
    animation: fadeIn 0.15s ease;
}

.add-list-form input {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s ease;
}

.add-list-form input:focus {
    border-color: var(--accent-primary);
}

.add-list-form input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.add-list-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* ============================================
   MODAL OVERLAY (shared)
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px 0;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   CUSTOM SELECT DROPDOWN
   ============================================ */

select.cs-hidden {
    display: none !important;
}

.cs-wrapper {
    position: relative;
}

.cs-btn {
    width: 100%;
    padding: 9px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.15s ease;
    text-align: left;
}

.cs-btn:hover {
    border-color: var(--border-hover);
}

.cs-btn.open {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.cs-btn i {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cs-btn.open i {
    transform: rotate(180deg);
}

.cs-placeholder {
    color: var(--text-muted);
}

.cs-dropdown {
    display: none;
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 4px;
    z-index: 99999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    animation: csFadeIn 0.12s ease;
}

.cs-dropdown.open {
    display: block;
}

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

.cs-dropdown::-webkit-scrollbar {
    width: 5px;
}

.cs-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.cs-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.cs-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cs-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.12s ease;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cs-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.cs-option.selected {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Inline variant (inside ac-field) */
.ac-field .cs-wrapper {
    flex: 1;
}

.ac-field .cs-btn {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    box-shadow: none;
}

.ac-field .cs-btn:hover {
    border-color: transparent;
}

.ac-field .cs-btn.open {
    border-color: transparent;
    box-shadow: none;
}

/* ============================================
   SETTINGS MODAL (from Guia da Staff)
   ============================================ */

.settings-modal {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 101;
}

.modal-overlay.active .settings-modal,
.modal-overlay.active .filter-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.settings-modal-header h3 {
    font-size: 0.938rem;
    font-weight: 700;
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}

.settings-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.settings-modal-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.settings-option:hover {
    background: rgba(255, 255, 255, 0.03);
}

.settings-option-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 15px;
    flex-shrink: 0;
}

.settings-option-text {
    flex: 1;
}

.settings-option-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.settings-option-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Switch (from Guia da Staff) */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ============================================
   FILTER MODAL
   ============================================ */

.filter-modal {
    position: fixed;
    top: 60px;
    right: 70px;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 101;
}

.filter-section {
    padding: 4px 0;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.filter-labels-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-status-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-status-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================
   CARD DETAIL MODAL
   ============================================ */

.card-modal {
    position: relative;
    width: 960px;
    max-width: 95vw;
    max-height: 85vh;
    max-height: 85dvh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 60px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.modal-overlay.active .card-modal {
    transform: translateY(0);
    opacity: 1;
}

.card-modal::-webkit-scrollbar {
    width: 5px;
}

.card-modal::-webkit-scrollbar-track {
    background: transparent;
    margin: 16px 0;
}

.card-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-modal-top-actions {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.card-modal-delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}

.card-modal-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.card-modal-delete-btn.confirm {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    background: var(--accent-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.card-modal-delete-btn.confirm:hover {
    background: #dc2626;
    color: #fff;
}

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

.card-modal-close {
    position: relative;
    top: auto;
    right: auto;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.15s ease;
    z-index: 102;
}

.card-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.card-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border);
}

.card-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.card-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-modal-info {
    flex: 1;
    max-width: calc(100% - 135px);
}

.card-modal-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.card-modal-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.card-modal-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid currentColor;
}

.badge-cargo-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.card-modal-absence-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.688rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.card-modal-warn-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.688rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.warn-badge-critical {
    background: rgba(239, 68, 68, 0.25) !important;
    animation: warnPulse 1.5s ease-in-out infinite;
    position: relative;
}

.warn-badge-critical:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

.warn-badge-critical::after {
    content: 'Clique para remover';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.warn-badge-critical:hover::after {
    opacity: 1;
}

@keyframes warnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Modal de remoção por 3 advertências */
.adv-remove-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
}

.adv-remove-overlay.active {
    opacity: 1;
}

.adv-remove-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.adv-remove-overlay.active .adv-remove-modal {
    transform: scale(1);
}

.adv-remove-icon {
    font-size: 2.2rem;
    color: #ef4444;
    margin-bottom: 12px;
}

.adv-remove-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.adv-remove-text {
    font-size: 0.813rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}

.adv-remove-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.adv-remove-cancel {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.813rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.adv-remove-cancel:hover {
    background: var(--bg-primary);
}

.adv-remove-confirm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.813rem;
    font-weight: 600;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.adv-remove-confirm:hover {
    background: #dc2626;
}

/* Actions Button & Dropdown */
.card-modal-actions-wrapper {
    position: relative;
    flex-shrink: 0;
}

.card-modal-actions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-modal-actions-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.card-modal-actions-btn i {
    font-size: 0.7rem;
}

.card-modal-readmit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: #10b981;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.card-modal-readmit-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.card-modal-readmit-btn i {
    font-size: 0.7rem;
}

.card-modal-actions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 20;
    padding: 6px;
    overflow: visible;
    animation: dropdownFadeIn 0.15s ease;
}

.card-modal-actions-dropdown.open {
    display: block;
}

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

.actions-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.12s ease;
}

.actions-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.actions-dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.8rem;
}

.actions-promote i { color: #10b981; }
.actions-demote i { color: #f59e0b; }
.actions-absence-parent > i.fa-moon { color: #8b5cf6; }
.actions-warn i { color: #ef4444; }
.actions-remove i { color: #ef4444; }

.actions-dropdown-item.actions-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.actions-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
}

/* Submenu flyout */
.actions-absence-parent {
    position: relative;
    cursor: pointer;
}

.actions-submenu-arrow {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.actions-submenu-float {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 180px;
    padding: 4px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    pointer-events: none;
    transition: opacity 0.15s;
}

.actions-submenu-float.visible {
    opacity: 1;
    font-family: var(--font-primary);
    pointer-events: auto;
}

.actions-submenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.actions-submenu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.actions-submenu-item i {
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
}

.actions-submenu-item .fa-moon { color: #8b5cf6; }
.actions-submenu-item .fa-calendar-plus { color: #3B82F6; }
.actions-submenu-item .fa-sun { color: #f59e0b; }

/* Actions confirm panel */
.actions-confirm-panel {
    padding: 9px;
    min-width: 280px;
}

.actions-confirm-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px 0;
}

.actions-confirm-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: -8px 0 12px 0;
}

.actions-confirm-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 10px;
}

.actions-confirm-select:focus {
    border-color: var(--accent-primary);
}

.actions-confirm-motivo {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 12px;
    resize: vertical;
    min-height: 52px;
}

.actions-confirm-motivo:focus {
    border-color: var(--accent-primary);
}

.actions-confirm-date-row {
    margin-bottom: 12px;
}

.actions-confirm-date-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.actions-confirm-date {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
}

.actions-confirm-date:focus {
    border-color: var(--accent-primary);
}

.actions-date-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.actions-date-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.actions-date-label i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.actions-date-label strong {
    color: var(--text-primary);
    font-weight: 600;
}

.actions-date-edit-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.15s ease;
}

.actions-date-edit-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.actions-confirm-date-row .actions-confirm-date {
    margin-top: 8px;
}

.actions-confirm-buttons {
    display: flex;
    gap: 8px;
}

.actions-confirm-cancel,
.actions-confirm-ok {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
}

.actions-confirm-cancel {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.actions-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.actions-confirm-ok {
    background: var(--accent-primary);
    color: #fff;
}

.actions-confirm-ok:hover {
    background: #2563eb;
}

/* Card indicators (absence, warnings) */
.card-indicator-row {
    display: flex;
    gap: 4px;
    margin-left: auto;
    align-items: center;
}

.card-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}

.card-indicator i {
    font-size: 0.55rem;
    line-height: 1;
}

.card-indicator-absence {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.card-indicator-overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: overdueFlash 1.5s ease-in-out infinite;
}

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

.card-indicator-warn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.card-modal-body {
    padding: 20px 24px 24px 24px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.card-modal-body-split {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.card-modal-col-left {
    flex: 1;
    padding: 20px 24px 24px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.card-modal-col-right {
    flex: 1;
    border-left: 1px solid var(--border);
    padding: 20px 24px 24px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.card-modal-col-right .card-modal-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-modal-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.card-modal-section:last-child,
.card-modal-section.last-visible-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-modal-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.card-modal-section-title i {
    font-size: 15px;
    color: #3B82F6;
}

/* Modal Labels */
.card-modal-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.modal-label-pill {
    height: 28px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Modal Description */
.card-modal-desc textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease;
}

.card-modal-desc textarea:focus {
    border-color: var(--accent-primary);
}

.card-modal-desc textarea::placeholder {
    color: var(--text-muted);
}

/* Checklist */
.checklist-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.checklist-progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: var(--accent-success);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.checklist-progress-fill.complete {
    animation: progressGlow 2s ease-in-out infinite;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
    cursor: pointer;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checklist-item-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-hover);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
    color: transparent;
    font-size: 10px;
}

.checklist-item.checked .checklist-item-check {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.checklist-item-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.checklist-item.checked .checklist-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Promote Action */
.checklist-promote-action {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.checklist-promote-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checklist-promote-row select {
    flex: 1;
}

.checklist-promote-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.checklist-promote-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Registros (Logs) */

.registro-add-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.registro-add-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-primary);
}

.registro-add-toggle.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-danger);
}

.registro-form {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.registro-form-row {
    display: flex;
    gap: 8px;
}

.registro-form-select,
.registro-form-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
    width: 100%;
}

.registro-form-select:focus,
.registro-form-input:focus {
    border-color: var(--accent-primary);
}

.registro-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.registro-form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.registro-form-input::placeholder {
    color: var(--text-muted);
}

.registro-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

.registro-form-cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.registro-form-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.registro-form-submit {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.registro-form-submit:hover {
    background: var(--accent-hover);
}

.registro-filter-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 3px;
    border: 1px solid var(--border);
}

.registro-filter-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.registro-filter-btn i {
    font-size: 0.65rem;
}

.registro-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.registro-filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.registro-sub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.registro-sub-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.registro-sub-btn i {
    font-size: 0.55rem;
}

.registro-sub-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.registro-sub-btn.active {
    background: color-mix(in srgb, var(--sub-color) 15%, transparent);
    color: var(--sub-color);
    border-color: color-mix(in srgb, var(--sub-color) 30%, transparent);
}

.card-modal-registros {
    display: flex;
    flex-direction: column;
}

.registro-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.registro-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.registro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.registro-dot-icon {
    flex-shrink: 0;
    width: 16px;
    color: #f59e0b;
    cursor: default;
    position: relative;
    font-size: 0.835rem;
    line-height: 1.8;
    text-align: center;
}

.registro-dot-icon i {
    font-size: 0.75rem;
}


.registro-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.registro-date {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.registro-text {
    font-size: 0.835rem;
    color: var(--text-primary);
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.registro-meta {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.registro-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.registro-motivo-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: #f59e0b;
    font-size: 0.75rem;
    cursor: default;
    position: relative;
}


.registro-cargo-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.registro-cargo-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

/* Global tooltip (fixed position, never clipped) */
.global-tooltip {
    position: fixed;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    white-space: normal;
    width: max-content;
    max-width: 320px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.global-tooltip.visible {
    opacity: 1;
}

.registro-separator {
    color: var(--text-muted);
    margin: 0 4px;
    font-size: 0.8rem;
}

.registro-ausente-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 0.73rem;
    font-weight: 600;
}

.registro-ausencia-group {
    border-left: 2px solid rgba(138, 92, 246, 0.903);
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.registro-ausencia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.registro-ausencia-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.registro-ausencia-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.registro-ausencia-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: default;
}

.registro-ausencia-info i {
    font-size: 0.55rem;
}

.registro-ausencia-motivo {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

/* Advertências agrupadas por cargo — mesmo visual das ausências */
.registro-adv-group {
    border-left: 2px solid #ef4444;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.registro-adv-num {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.registro-adv-num .registro-cargo-icon-sm {
    width: 14px;
    height: 14px;
}

.registro-adv-vez {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
    opacity: 0.7;
}

.registro-adv-count-pill {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.registro-adv-motivo-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    margin-left: auto;
}

.registro-adv-motivo-pill i {
    font-size: 0.55rem;
}

.registro-item-nested {
    padding-left: 12px;
    opacity: 0.85;
}

.registro-item-nested .registro-dot-icon {
    width: 14px;
}

.registro-item-nested .registro-dot-icon i {
    font-size: 0.7rem;
}

.registros-empty {
    font-size: 0.813rem;
    color: var(--text-muted);
    padding: 12px 0;
    text-align: center;
}

/* ============================================
   TOAST NOTIFICATIONS (from Guia da Staff)
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.813rem;
    font-weight: 600;
    color: white;
    pointer-events: auto;
    animation: toastIn 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-info { background: var(--accent-primary); }
.toast-success { background: var(--accent-success); }
.toast-warning { background: var(--accent-warning); color: #1a1a1a; }
.toast-error { background: var(--accent-danger); }

.toast i {
    font-size: 14px;
}

/* ============================================
   BOTTOM BAR
   ============================================ */

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    background: transparent;
    border: none;
    z-index: 50;
}

.bottombar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px
}

.bottombar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.bottombar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.bottombar-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

.bottombar-item i {
    font-size: 14px;
}

/* Wrapper for hover popup */
.bottombar-item-wrapper {
    position: relative;
}

.board-hover-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 50;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    width: max-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bottombar-item-wrapper:hover .board-hover-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.board-hover-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.12s ease;
}

.board-hover-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.board-hover-option i {
    font-size: 14px;
}

/* ============================================
   RESPONSÁVEIS MODAL
   ============================================ */

.responsaveis-modal {
    width: 420px;
    max-width: 95vw;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow-y: auto;
    margin-top: 80px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .responsaveis-modal {
    transform: translateY(0);
    opacity: 1;
}

.responsaveis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.responsaveis-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.responsaveis-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 16px;
    flex-shrink: 0;
}

.responsaveis-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.responsaveis-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    font-weight: 500;
}

.responsaveis-body {
    padding: 16px 24px 20px;
}

.responsaveis-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.responsaveis-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}

.responsaveis-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.responsaveis-item img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.responsaveis-item-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.responsaveis-item-remove {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.responsaveis-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.responsaveis-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.responsaveis-add-row {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.responsaveis-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.responsaveis-input:focus {
    border-color: var(--accent-primary);
}

.responsaveis-input::placeholder {
    color: var(--text-muted);
}

.responsaveis-add-btn {
    background: #8b5cf6;
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.responsaveis-add-btn:hover {
    background: #a78bfa;
}

/* ============================================
   PROMOÇÕES (Guia de Evolução de Cargos)
   ============================================ */

.promocoes-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.promocoes-modal-overlay.active {
    display: flex;
}

.promocoes-modal {
    width: 750px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 80px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.2s ease;
    overflow: hidden;
}

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

/* Header */
.promocoes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

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

.promocoes-title i {
    color: #f59e0b;
}

.promocoes-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.promocoes-edit-btn,
.promocoes-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}

.promocoes-edit-btn:hover,
.promocoes-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Layout horizontal */
.promocoes-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.promocoes-sidebar {
    width: 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
}

.promocoes-sidebar::-webkit-scrollbar {
    width: 0;
}

.promocoes-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-muted);
    text-align: left;
    position: relative;
}

.promocoes-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 18px;
    background: #f59e0b;
    border-radius: 0 3px 3px 0;
    transition: transform 0.2s ease;
}

.promocoes-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.promocoes-tab.active {
    background: rgba(245, 158, 11, 0.08);
    color: var(--text-primary);
}

.promocoes-tab.active::before {
    transform: translateY(-50%) scaleY(1);
}

.promocoes-tab-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.promocoes-tab-nome {
    flex: 1;
}

/* Content area */
.promocoes-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

/* Body */
.promocoes-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.promocoes-body::-webkit-scrollbar {
    width: 4px;
}

.promocoes-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

.promocoes-rendered {
    padding: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.promocoes-rendered h1,
.promocoes-rendered h2,
.promocoes-rendered h3 {
    color: var(--text-primary);
    margin: 16px 0 8px 0;
}

.promocoes-rendered h1 { font-size: 1.2rem; }
.promocoes-rendered h2 { font-size: 1rem; }
.promocoes-rendered h3 { font-size: 0.9rem; }

.promocoes-rendered h1:first-child,
.promocoes-rendered h2:first-child,
.promocoes-rendered h3:first-child {
    margin-top: 0;
}

.promocoes-rendered p {
    margin: 6px 0;
}

.promocoes-rendered ul,
.promocoes-rendered ol {
    margin: 8px 0;
    padding-left: 20px;
}

.promocoes-rendered li {
    margin: 4px 0;
}

.promocoes-rendered strong {
    color: var(--text-primary);
}

.promocoes-rendered code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.promocoes-rendered blockquote {
    border-left: 3px solid #f59e0b;
    padding: 4px 12px;
    margin: 8px 0;
    color: var(--text-muted);
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0 6px 6px 0;
}

.promocoes-rendered hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

.promocoes-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 0.85rem;
    line-height: 1.8;
}

.promocoes-textarea {
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.promocoes-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Footer */
.promocoes-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.promocoes-cancel-btn {
    padding: 7px 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.promocoes-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.promocoes-save-btn {
    padding: 7px 16px;
    border: none;
    background: #f59e0b;
    color: #000;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.promocoes-save-btn:hover {
    background: #d97706;
}

/* Light mode */
body.light-mode .promocoes-modal {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

body.light-mode .promocoes-edit-btn:hover,
body.light-mode .promocoes-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .promocoes-tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light-mode .promocoes-tab.active {
    background: rgba(245, 158, 11, 0.08);
}

body.light-mode .promocoes-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .promocoes-modal {
        width: auto;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 32px);
    }

    .promocoes-layout {
        flex-direction: column;
    }

    .promocoes-sidebar {
        width: auto;
        min-width: auto;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px;
        overflow-x: auto;
    }
}

/* ============================================
   PLANEJADOR (Calendar)
   ============================================ */

.planejador-overlay {
    position: fixed;
    bottom: 70px;
    right: 16px;
    z-index: 200;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.planejador-overlay.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.planejador-container {
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Header */
.planejador-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    flex-shrink: 0;
}

.planejador-header-left {
    display: flex;
    align-items: center;
}

.planejador-month-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

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

/* Tabs SPA */
.planejador-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 3px;
    border-radius: 10px;
}

.planejador-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.planejador-tab:hover {
    color: var(--text-secondary);
}

.planejador-tab.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.planejador-tab i {
    font-size: 0.75rem;
}

.planejador-tab-badge {
    background: #f59e0b;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Pages */
.planejador-page {
    display: none;
    animation: planPageIn 0.25s ease;
}

.planejador-page.active {
    display: block;
}

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

.planejador-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.planejador-cal-nav .planejador-month-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
}

.planejador-nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s ease;
}

.planejador-nav-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.planejador-today-btn {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.planejador-today-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.planejador-close-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 8px;
    transition: all 0.15s ease;
}

.planejador-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Body layout */
.planejador-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.planejador-calendar {
    padding: 12px 16px 8px;
}

/* Weekday headers */
.planejador-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.planejador-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Days grid */
.planejador-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.planejador-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.12s ease;
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.planejador-day:hover {
    background: rgba(255, 255, 255, 0.04);
}

.planejador-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.planejador-day.today .planejador-day-number {
    background: var(--accent-primary);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.planejador-day.selected {
    background: rgba(59, 130, 246, 0.08);
}

.planejador-day.selected:not(.today) .planejador-day-number {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Note dots */
.planejador-day-dots {
    display: flex;
    gap: 3px;
    height: 6px;
}

.planejador-day-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.planejador-day-dot.c-blue { background: var(--accent-primary); }
.planejador-day-dot.c-green { background: var(--accent-success); }
.planejador-day-dot.c-yellow { background: var(--accent-warning); }
.planejador-day-dot.c-red { background: var(--accent-danger); }
.planejador-day-dot.c-purple { background: #a855f7; }

/* Sidebar (day detail) */
.planejador-sidebar {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.3s ease, border-color 0.2s ease;
}

.planejador-sidebar.active {
    max-height: 400px;
    border-top-color: var(--border);
}

.planejador-sidebar-inner {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.planejador-sidebar-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.planejador-sidebar-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.planejador-sidebar-weekday {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Notes list */
.planejador-notes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    max-height: 150px;
}

.planejador-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.12s ease;
}

.planejador-note:hover {
    border-color: var(--border-hover);
}

.planejador-note-color {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.planejador-note-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.planejador-note-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.12s ease;
}

.planejador-note:hover .planejador-note-delete {
    opacity: 1;
}

.planejador-note-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.planejador-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    padding: 24px 0;
}

.planejador-empty i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* Add note form */
.planejador-add-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.planejador-add-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.planejador-add-input:focus {
    border-color: var(--accent-primary);
}

.planejador-add-input::placeholder {
    color: var(--text-muted);
}

.planejador-add-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.planejador-colors {
    display: flex;
    gap: 6px;
}

.planejador-color-dot {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.12s ease;
    opacity: 0.6;
}

.planejador-color-dot:hover {
    opacity: 1;
}

.planejador-color-dot.active {
    opacity: 1;
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.planejador-color-dot.c-blue { background: var(--accent-primary); }
.planejador-color-dot.c-green { background: var(--accent-success); }
.planejador-color-dot.c-yellow { background: var(--accent-warning); }
.planejador-color-dot.c-red { background: var(--accent-danger); }
.planejador-color-dot.c-purple { background: #a855f7; }

.planejador-add-btn {
    padding: 8px 16px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.planejador-add-btn:hover {
    background: #2563eb;
}

/* Lembretes full page */
.planejador-lembretes-page {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.planejador-lembretes-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.planejador-lembretes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.planejador-lembretes-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.planejador-lembretes-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
    color: #f59e0b;
}

.planejador-lembretes-empty p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-secondary);
}

.planejador-lembretes-empty span {
    font-size: 0.78rem;
    opacity: 0.6;
}

/* Done header button */
.pl-done-header-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pl-done-header-btn i {
    font-size: 0.65rem;
    color: #10b981;
}

.pl-done-header-btn span {
    min-width: 12px;
    text-align: center;
}

.pl-done-header-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-secondary);
}

.pl-done-header-btn.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

/* Check animation */
.planejador-lembrete-check.anim-pop {
    animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Item checking out */
.planejador-lembrete-item.checking-out {
    transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
    opacity: 0;
    transform: scale(0.95);
}

/* Item delete */
.planejador-lembrete-item.deleting {
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: scale(0.95);
}

body.light-mode .pl-done-header-btn:hover {
    background: rgba(16, 185, 129, 0.06);
}

.planejador-lembretes-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.planejador-lembrete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.planejador-lembrete-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.planejador-lembrete-item.done {
    opacity: 0.6;
}

.planejador-lembrete-check {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.planejador-lembrete-check:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    transform: scale(1.1);
}

.planejador-lembrete-check.checked {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #000;
}

.planejador-lembrete-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.planejador-lembrete-text.checked {
    text-decoration: line-through;
    color: var(--text-muted);
}

.planejador-lembrete-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    opacity: 0;
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.planejador-lembrete-item:hover .planejador-lembrete-delete {
    opacity: 1;
}

.planejador-lembrete-delete:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.12);
}

.planejador-lembretes-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.planejador-lembretes-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.planejador-lembretes-input::placeholder {
    color: var(--text-muted);
}

.planejador-lembretes-add-btn {
    width: 36px;
    height: 36px;
    background: #f59e0b;
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.planejador-lembretes-add-btn:hover {
    background: #fbbf24;
    transform: scale(1.05);
}

/* Light mode lembretes */
body.light-mode .planejador-lembrete-check {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .planejador-lembrete-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .planejador-lembretes-input {
    background: var(--bg-primary);
}

body.light-mode .planejador-tabs {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .planejador-tab.active {
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-mode .planejador-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}



/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .topbar {
        padding: 10px 14px;
    }

    .topbar-title {
        font-size: 0.875rem;
    }

    .topbar-center {
        display: none;
    }

    .board {
        padding: 10px 10px 60px 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scroll-padding-left: 10px;
    }

    .list {
        min-width: 260px;
        max-width: 260px;
        max-height: calc(100dvh - 150px);
        scroll-snap-align: start;
    }

    .bottombar {
        gap: 0;
        padding: 6px 8px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }

    .bottombar-inner {
        padding: 8px;
    }

    .bottombar-item {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .bottombar-item span {
        display: none;
    }

    .bottombar-item.active span {
        display: inline;
    }

    /* Mobile: mostrar apenas Início e Quadros */
    .bottombar-item#lembretesBtn,
    .bottombar-item#planejadorBtn {
        display: none;
    }

    /* Settings e Filter: dropdown abaixo do topbar */
    .settings-modal,
    .filter-modal {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 70dvh;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .board-hover-popup {
        display: none;
    }

    .planejador-overlay {
        right: 8px;
        left: 8px;
        bottom: 65px;
    }

    .planejador-container {
        width: auto;
        max-width: 100%;
    }

    .planejador-tabs {
        gap: 2px;
    }

    .planejador-tab {
        padding: 6px 10px;
        font-size: 0.73rem;
    }

    /* Modal overlay: scrollável no mobile */
    .modal-overlay {
        align-items: flex-end;
    }

    .modal-overlay.active {
        align-items: flex-start;
    }

    /* Card modal */
    .card-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 90dvh;
        margin-top: 10dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .card-modal-top-actions {
        top: 12px;
        right: 12px;
    }

    .card-modal-header-actions {
        gap: 6px;
    }

    .card-modal-header {
        padding: 20px 16px 14px 16px;
    }

    .card-modal-body {
        padding: 16px;
    }

    .card-modal-body-split {
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
    }

    .card-modal-col-left {
        padding: 16px;
        overflow-y: visible;
    }

    .card-modal-col-right {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 16px;
        overflow-y: visible;
    }

    /* Responsáveis modal */
    .responsaveis-modal {
        margin-top: 0;
        margin-top: 10dvh;
        width: 100vw;
        max-width: 100vw;
        max-height: 85dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    /* Card modal compacto (recrutamento) */
    .card-modal-compact {
        max-width: 100vw !important;
        max-height: 85dvh !important;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 14px 12px;
    }

    .topbar-right {
        gap: 0;
    }

    .topbar-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .board {
        padding: 8px 8px 60px 8px;
        gap: 8px;
        scroll-padding-left: 8px;
    }

    .list {
        min-width: 75vw;
        max-width: 75vw;
        max-height: calc(100dvh - 140px);
    }

    .bottombar-inner {
        padding: 6px;
        gap: 2px;
    }

    .bottombar-item {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .bottombar-item span {
        display: inline;
    }

    .card-modal {
        margin-top: 5dvh;
        max-height: 95dvh;
    }

    .card-modal-header {
        padding: 16px 12px 12px 12px;
        gap: 12px;
    }

    .card-modal-top-actions {
        top: 10px;
        right: 10px;
    }

    .card-modal-body {
        padding: 12px;
    }

    .card-modal-col-left,
    .card-modal-col-right {
        padding: 12px;
    }

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

    .member-info-edit-row {
        grid-template-columns: 1fr;
    }
}

/* Touch devices: mostrar botões que dependem de hover */
@media (hover: none) and (pointer: coarse) {
    .card-agendar-btn {
        opacity: 1 !important;
    }

    .list-cards {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.12) transparent;
    }

    .list-cards::-webkit-scrollbar {
        width: 4px;
    }

    .board::-webkit-scrollbar {
        height: 4px;
    }
}

/* ====== Member Info Grid ====== */
.member-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.member-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.member-info-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.member-info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-info-value {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.discord-mention {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.discord-mention:hover {
    background: rgba(88, 101, 242, 0.25);
    color: #7289DA;
}

/* ====== Observações (list-based) ====== */
.obs-add-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.obs-add-btn:hover {
    color: var(--accent-primary);
    background: var(--overlay-06);
}

.obs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    padding-bottom:6px
}

.obs-empty {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
    padding: 8px 0;
}

.obs-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}
.obs-item:hover {
    background: var(--overlay-04);
}

.obs-bullet {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 7px;
}

.obs-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.obs-item-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}
.obs-item:hover .obs-item-actions {
    opacity: 1;
}

.obs-edit-btn,
.obs-delete-btn,
.obs-save-btn,
.obs-cancel-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.obs-edit-btn {
    color: var(--text-muted);
}
.obs-edit-btn:hover {
    color: var(--accent-primary);
    background: var(--overlay-06);
}

.obs-delete-btn {
    color: var(--text-muted);
}
.obs-delete-btn:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}
.obs-confirm-label {
    font-size: 0.72rem;
    color: var(--accent-danger);
    font-weight: 600;
    white-space: nowrap;
}
.obs-confirm-yes {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--accent-danger);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    transition: all 0.15s ease;
}
.obs-confirm-yes:hover {
    background: rgba(239, 68, 68, 0.15);
}
.obs-confirm-no {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    transition: all 0.15s ease;
}
.obs-confirm-no:hover {
    color: var(--text-secondary);
    background: var(--overlay-06);
}

.obs-save-btn {
    color: var(--accent-success);
}
.obs-save-btn:hover {
    background: rgba(16, 185, 129, 0.1);
}

.obs-cancel-btn {
    color: var(--text-muted);
}
.obs-cancel-btn:hover {
    color: var(--text-secondary);
    background: var(--overlay-06);
}

.obs-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    padding: 5px 10px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    resize: none;
    overflow: hidden;
    min-height: 30px;
    line-height: 1.4;
}

.obs-item-editing .obs-item-actions {
    opacity: 1;
}

/* Light mode observações */
body.light-mode .obs-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .obs-input {
    background: #f8f8f8;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}
body.light-mode .obs-edit-btn:hover {
    background: rgba(59, 130, 246, 0.08);
}
body.light-mode .obs-delete-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}
body.light-mode .obs-save-btn:hover {
    background: rgba(16, 185, 129, 0.08);
}
body.light-mode .obs-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Edit button (pencil icon inline with title) */
.member-info-edit-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 2px;
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    opacity: 0.4;
    transition: all 0.15s ease;
}

.member-info-edit-btn:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.member-info-edit-btn.editing {
    opacity: 1;
    color: #ef4444;
}

/* Edit form */
.member-info-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.member-info-edit-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.member-info-edit-field label i {
    font-size: 0.65rem;
    width: 14px;
    text-align: center;
}

.member-info-edit-field input,
.member-info-edit-field select,
.member-info-edit-field input[type="date"],
.member-info-edit-field input[type="time"] {
    width: 100%;
    height: 36px;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    line-height: 34px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    letter-spacing: normal !important;
    position: static;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}

.member-info-edit-field input:hover,
.member-info-edit-field select:hover {
    border-color: var(--border-hover) !important;
    background: var(--bg-tertiary) !important;
}

.member-info-edit-field input:focus,
.member-info-edit-field select:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
    background: var(--bg-tertiary) !important;
}

.member-info-edit-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 26px;
}

.member-info-edit-field select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.member-info-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 6px;
}

.member-info-save-btn {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.member-info-save-btn:hover {
    background: var(--accent-hover);
}

.member-info-cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.member-info-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ====== Promotion Ready Effect - Border Beam ====== */
/* ====== Promotion Ready - Border Beam (desktop) + Glow (mobile) ====== */
.card-promotion-ready {
    position: relative;
    overflow: visible;
    isolation: isolate;
    border: 1px solid transparent !important;
    transform: translateZ(0);
}

.card-promotion-ready > *:not(.border-beam) {
    position: relative;
    z-index: 2;
}

.card-promotion-ready .border-beam {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translateZ(0);
}

.card-promotion-ready .border-beam::before {
    content: '';
    position: absolute;
    inset: -200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 75%,
        #10b981 85%,
        #34d399 90%,
        #6ee7b7 95%,
        transparent 100%
    );
    animation: borderBeamRotate 4s linear infinite;
    will-change: transform;
}

.card-promotion-ready .border-beam::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-card);
    border-radius: inherit;
    z-index: 1;
}

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

/* Birthday effect (desktop) */
.card-birthday {
    position: relative;
    overflow: visible;
    isolation: isolate;
    border: 1px solid transparent !important;
    transform: translateZ(0);
}

.card-birthday > *:not(.birthday-beam):not(.birthday-confetti) {
    position: relative;
    z-index: 2;
}

.card-birthday .birthday-beam {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translateZ(0);
}

.card-birthday .birthday-beam::before {
    content: '';
    position: absolute;
    inset: -200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 70%,
        #f59e0b 78%,
        #ec4899 84%,
        #8b5cf6 90%,
        #3b82f6 95%,
        transparent 100%
    );
    animation: borderBeamRotate 3s linear infinite;
    will-change: transform;
}

.card-birthday .birthday-beam::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-card);
    border-radius: inherit;
    z-index: 1;
}

/* ====== Mobile: trocar beam por glow (iOS não suporta conic-gradient animado) ====== */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .card-promotion-ready {
        overflow: visible;
        isolation: auto;
        border: 1px solid rgba(16, 185, 129, 0.4) !important;
        transform: none;
        animation: promotionGlow 3s ease-in-out infinite;
    }

    .card-promotion-ready > *:not(.border-beam) {
        position: static;
        z-index: auto;
    }

    .card-promotion-ready .border-beam {
        display: none !important;
    }

    .card-birthday {
        overflow: visible;
        isolation: auto;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
        transform: none;
        animation: birthdayGlow 4s ease-in-out infinite;
    }

    .card-birthday > *:not(.birthday-beam):not(.birthday-confetti) {
        position: static;
        z-index: auto;
    }

    .card-birthday .card-member-row,
    .card-birthday .card-member-row-inline,
    .card-birthday .card-badges {
        position: relative;
        z-index: 3;
    }

    .card-birthday .birthday-beam {
        display: none !important;
    }

    .birthday-confetti {
        z-index: 1;
    }
}

@keyframes promotionGlow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
        border-color: rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
        border-color: rgba(52, 211, 153, 0.7);
    }
}

@keyframes birthdayGlow {
    0%, 100% {
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
        border-color: rgba(245, 158, 11, 0.4);
    }
    33% {
        box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
        border-color: rgba(236, 72, 153, 0.6);
    }
    66% {
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
        border-color: rgba(139, 92, 246, 0.6);
    }
}

.birthday-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.birthday-confetti span {
    position: absolute;
    top: -10px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    opacity: 0.7;
    animation: confettiFall linear infinite;
}

.birthday-confetti span:nth-child(1) { left: 8%; width: 5px; height: 5px; background: #f59e0b; animation-duration: 3.2s; animation-delay: 0s; }
.birthday-confetti span:nth-child(2) { left: 22%; width: 4px; height: 7px; background: #ec4899; animation-duration: 2.8s; animation-delay: 0.4s; }
.birthday-confetti span:nth-child(3) { left: 38%; width: 6px; height: 4px; background: #8b5cf6; animation-duration: 3.5s; animation-delay: 0.8s; }
.birthday-confetti span:nth-child(4) { left: 55%; width: 5px; height: 6px; background: #3b82f6; animation-duration: 2.6s; animation-delay: 1.2s; }
.birthday-confetti span:nth-child(5) { left: 70%; width: 4px; height: 5px; background: #10b981; animation-duration: 3.0s; animation-delay: 0.2s; }
.birthday-confetti span:nth-child(6) { left: 85%; width: 6px; height: 4px; background: #f59e0b; animation-duration: 3.4s; animation-delay: 1.6s; }
.birthday-confetti span:nth-child(7) { left: 15%; width: 5px; height: 5px; background: #ef4444; animation-duration: 2.9s; animation-delay: 2.0s; }
.birthday-confetti span:nth-child(8) { left: 48%; width: 4px; height: 6px; background: #ec4899; animation-duration: 3.1s; animation-delay: 0.6s; }
.birthday-confetti span:nth-child(9) { left: 62%; width: 6px; height: 5px; background: #8b5cf6; animation-duration: 2.7s; animation-delay: 1.4s; }
.birthday-confetti span:nth-child(10) { left: 92%; width: 5px; height: 4px; background: #3b82f6; animation-duration: 3.3s; animation-delay: 1.0s; }

@keyframes confettiFall {
    0% { top: -10px; transform: rotate(0deg) translateX(0); opacity: 0.8; }
    25% { transform: rotate(90deg) translateX(8px); }
    50% { transform: rotate(180deg) translateX(-5px); opacity: 0.6; }
    75% { transform: rotate(270deg) translateX(6px); }
    100% { top: 110%; transform: rotate(360deg) translateX(-3px); opacity: 0; }
}

.card-indicator-birthday {
    background: linear-gradient(270deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899, #ef4444);
    background-size: 400% 100%;
    animation: rgbShift 8s linear infinite;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

@keyframes rgbShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.promotion-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    animation: particleBurst 0.8s ease-out forwards;
}

@keyframes particleBurst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

/* --- Scrollbars --- */
body.light-mode .board {
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}
body.light-mode .board::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}
body.light-mode .board::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}
body.light-mode .list-cards:hover {
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}
body.light-mode .list-cards::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .card-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
body.light-mode .card-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}
body.light-mode .card-modal-left,
body.light-mode .card-modal-right,
body.light-mode .card-modal-main {
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

/* --- Cards --- */
body.light-mode .card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.light-mode .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
body.light-mode .card-banner img {
    opacity: 0.9;
}

/* --- List backgrounds --- */
body.light-mode .list-header-bg {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .list-footer {
    background: rgba(0, 0, 0, 0.03);
}

/* --- Modais overlay --- */
body.light-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.35);
}
body.light-mode .card-modal {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- Info rows / data items --- */
body.light-mode .info-row,
body.light-mode .member-info-row {
    background: rgba(0, 0, 0, 0.03);
}
body.light-mode .info-row:hover,
body.light-mode .member-info-row:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* --- Checklist items --- */
body.light-mode .checklist-item {
    background: rgba(0, 0, 0, 0.02);
}
body.light-mode .checklist-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* --- Badges / Labels --- */
body.light-mode .card-label {
    opacity: 0.85;
}

/* --- Buttons / Dropdowns --- */
body.light-mode .actions-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.06);
}
body.light-mode .actions-submenu-float {
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.light-mode .actions-submenu-item:hover {
    background: rgba(0, 0, 0, 0.06);
}
body.light-mode .actions-confirm-panel {
    background: var(--bg-secondary);
}
body.light-mode .actions-date-toggle {
    background: var(--bg-tertiary);
    border-color: var(--border);
}
body.light-mode .actions-date-edit-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border);
}
body.light-mode .actions-date-edit-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* --- Tooltips / Popovers --- */
body.light-mode .tooltip,
body.light-mode .card-modal-actions-dropdown {
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
}

/* ============================================
   DATE / TIME INPUTS - Dark theme styling
   ============================================ */

input[type="date"],
input[type="time"] {
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    padding: 10px 14px;
    outline: none;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.02em;
}

input[type="date"]:hover,
input[type="time"]:hover {
    border-color: var(--border-hover);
    background: rgba(31, 31, 31, 0.9);
}

input[type="date"]:focus,
input[type="time"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 2px 8px rgba(0, 0, 0, 0.15);
    background: rgba(59, 130, 246, 0.04);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.45) sepia(0.1) saturate(0.5) brightness(1.1);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text {
    color: var(--text-muted);
    padding: 0 3px;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-ampm-field {
    color: var(--text-primary);
    padding: 2px 3px;
    border-radius: 4px;
    transition: all 0.15s;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-ampm-field:focus {
    background: rgba(59, 130, 246, 0.18);
    border-radius: 4px;
    color: #fff;
    outline: none;
}

/* --- Inputs / Selects --- */
body.light-mode select,
body.light-mode input[type="text"],
body.light-mode input[type="date"],
body.light-mode input[type="number"],
body.light-mode textarea {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}
body.light-mode select:focus,
body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: var(--accent-primary);
}

body.light-mode input[type="date"],
body.light-mode input[type="time"] {
    color-scheme: light;
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}

body.light-mode input[type="date"]::-webkit-calendar-picker-indicator,
body.light-mode input[type="time"]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* --- Dividers --- */
body.light-mode .actions-dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

/* --- Topbar / Bottombar --- */
body.light-mode .topbar {
    background: #000000;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}
body.light-mode .topbar-title {
    color: #ffffff;
}
body.light-mode .topbar-dot {
    color: rgba(255, 255, 255, 0.4);
}
body.light-mode .topbar-btn {
    color: rgba(255, 255, 255, 0.7);
}
body.light-mode .topbar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
body.light-mode .topbar .search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
body.light-mode .topbar .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
}
body.light-mode .topbar .search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
body.light-mode .topbar .search-icon {
    color: rgba(255, 255, 255, 0.45);
}
body.light-mode .topbar .search-shortcut {
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
body.light-mode .bottombar-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-mode .bottombar-item {
    color: var(--text-muted);
}

body.light-mode .bottombar-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-mode .bottombar-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
}

body.light-mode .board-hover-popup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.light-mode .board-hover-option {
    color: var(--text-secondary);
}

body.light-mode .board-hover-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* --- Registro items (see full block below in card modal section) --- */

/* --- Config sections --- */
body.light-mode .checklist-section {
    background: rgba(0, 0, 0, 0.03);
}

/* --- Toast --- */
body.light-mode .toast {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* --- Planejador sidebar --- */
body.light-mode .planejador-note-card {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .planejador-note-card:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Readmit panel --- */
body.light-mode .readmit-panel {
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* --- Advertencia indicators --- */
body.light-mode .adv-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --- Settings modal --- */
body.light-mode .settings-modal {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.light-mode .settings-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .settings-option:hover {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .settings-option-icon {
    background: rgba(0, 0, 0, 0.04);
}

/* --- Filter modal --- */
body.light-mode .filter-modal {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
body.light-mode .filter-status-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .filter-status-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* --- List header / count --- */
body.light-mode .list-count {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Card modal --- */
body.light-mode .card-modal {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
body.light-mode .card-modal-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .card-modal-body {
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
body.light-mode .card-modal-col-left {
    scrollbar-color: rgba(0,0,0,0.1) transparent;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .card-modal-col-right {
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
body.light-mode .card-modal-delete-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}
body.light-mode .card-modal-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* --- Member info grid items --- */
body.light-mode .member-info-item {
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .member-info-label {
    color: var(--text-muted);
}
body.light-mode .member-info-value {
    color: var(--text-primary);
}

/* --- Checklist items --- */
body.light-mode .checklist-item:hover {
    background: rgba(0, 0, 0, 0.03);
}
body.light-mode .checklist-item-check {
    border-color: rgba(0, 0, 0, 0.2);
}
body.light-mode .checklist-progress-bar {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Section titles --- */
body.light-mode .card-modal-section-title {
    color: var(--text-primary);
}

/* --- Close buttons generic --- */
body.light-mode .modal-close-btn:hover,
body.light-mode .card-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .card-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* --- Cargo badge in card modal --- */
body.light-mode .card-modal-cargo-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- Registros (complete light mode) --- */
body.light-mode .registro-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .registro-item:hover {
    background: rgba(0, 0, 0, 0.02);
}
body.light-mode .registro-date {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}
body.light-mode .registro-text {
    color: var(--text-primary);
}
body.light-mode .registro-meta {
    color: var(--text-muted);
}
body.light-mode .registro-meta strong {
    color: var(--text-secondary);
}
body.light-mode .registro-cargo-tag {
    color: var(--text-muted);
}

/* --- Registro form --- */
body.light-mode .registro-form {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .registro-form-select,
body.light-mode .registro-form-input {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}
body.light-mode .registro-form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
body.light-mode .registro-form-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* --- Registro filter bar --- */
body.light-mode .registro-filter-bar {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .registro-filter-btn {
    color: var(--text-muted);
}
body.light-mode .registro-filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}
body.light-mode .registro-filter-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
body.light-mode .registro-sub-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}
body.light-mode .registro-sub-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}
body.light-mode .registro-sub-btn.active {
    border-color: var(--sub-color, var(--accent-primary));
}

/* --- Registro ausência/adv groups --- */
body.light-mode .registro-ausencia-group {
    background: rgba(139, 92, 246, 0.05);
}
body.light-mode .registro-ausencia-num {
    color: var(--text-primary);
}
body.light-mode .registro-ausencia-info {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}
body.light-mode .registro-adv-group {
    background: rgba(239, 68, 68, 0.04);
}
body.light-mode .registro-adv-num {
    color: var(--text-primary);
}
body.light-mode .registro-adv-count-pill {
    background: rgba(239, 68, 68, 0.08);
}
body.light-mode .registro-adv-motivo-pill {
    background: rgba(0, 0, 0, 0.04);
}
body.light-mode .registro-adv-vez {
    color: var(--text-muted);
}

/* --- Registro cargo group --- */
body.light-mode .registro-cargo-group {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Registro separator --- */
body.light-mode .registro-separator {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Registro nested items --- */
body.light-mode .registro-item-nested {
    border-left: 2px solid rgba(0, 0, 0, 0.08);
}

/* --- Global tooltip --- */
body.light-mode .global-tooltip {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

/* --- Etiquetas section --- */
body.light-mode .card-label {
    opacity: 0.9;
}

/* --- Edit pencil button --- */
body.light-mode .member-info-edit-btn {
    color: var(--text-muted);
}
body.light-mode .member-info-edit-btn:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
}

/* --- Member info editable rows --- */
body.light-mode .member-info-value {
    color: var(--text-primary);
}
body.light-mode .member-info-edit-input {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

/* --- Confirm action dropdown --- */
body.light-mode .actions-confirm-select {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}
body.light-mode .actions-confirm-motivo {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}
body.light-mode .actions-confirm-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}
body.light-mode .actions-confirm-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* --- Responsáveis modal --- */
body.light-mode .responsaveis-modal {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
body.light-mode .responsaveis-item-remove {
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .responsaveis-item-remove:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}
body.light-mode .responsaveis-add-input {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

/* --- Toggle switch --- */
body.light-mode .toggle-slider::before {
    background: var(--text-muted);
}
body.light-mode .toggle-switch input:checked + .toggle-slider::before {
    background: white;
}

/* --- Links --- */
body.light-mode a {
    color: var(--accent-primary);
}

/* --- General hover effects --- */
body.light-mode .bottombar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* --- Card checklist bar --- */
body.light-mode .card-checklist-bar-bg {
    background: rgba(0, 0, 0, 0.08);
}

/* --- Ausência badge --- */
body.light-mode .ausencia-badge {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Advertencia indicators --- */
body.light-mode .adv-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
body.light-mode .warn-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
