/* Novos Negócios — visual inspirado no Monday.com */

:root {
    --monday-bg: #f6f7fb;
    --monday-sidebar: #ffffff;
    --monday-border: #e6e9ef;
    --monday-text: #323338;
    --monday-text-muted: #676879;
    --monday-text-light: #9699a6;
    --monday-primary: #6161ff;
    --monday-primary-hover: #5050e0;
    --monday-primary-light: #ededff;
    --monday-card: #ffffff;
    --monday-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --monday-radius: 8px;
    --monday-radius-lg: 12px;
    --sidebar-width: 260px;
    --font: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    --calendar-outlook-bg: #fff4e8;
    --calendar-outlook-border: #c76a1a;
    --calendar-outlook-text: #9a4a12;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--monday-text);
    background: var(--monday-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Shell */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

/* Chrome mobile (visível só em telas estreitas) */
.mobile-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 56px;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid var(--monday-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fff;
    color: var(--monday-text);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav-toggle:hover {
    background: var(--monday-primary-light);
    border-color: #d9daff;
    color: var(--monday-primary);
}

.mobile-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--monday-text);
}

.mobile-topbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--monday-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-topbar-brand strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-header-top {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-header-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
}

.sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fff;
    color: var(--monday-text);
    cursor: pointer;
}

.sidebar-close:hover {
    background: #fff1f1;
    border-color: #f3c2c2;
    color: #c62828;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--monday-sidebar);
    border-right: 1px solid var(--monday-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--monday-border);
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.sidebar-company-top {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: var(--monday-radius-lg);
    background: #fff;
    border: 1px solid #e8eaf3;
    box-shadow: 0 1px 2px rgba(97, 97, 255, 0.06);
}

.sidebar-company-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--monday-primary);
    margin-bottom: 4px;
}

.sidebar-company-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--monday-text);
    word-break: break-word;
}

.sidebar-company-switch {
    margin: 0;
}

.company-picker {
    position: relative;
}

.company-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.company-picker-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--monday-text);
    word-break: break-word;
}

.company-picker-chevron {
    flex-shrink: 0;
    color: var(--monday-text-muted);
    transition: transform 0.15s ease;
}

.company-picker.is-open .company-picker-chevron {
    transform: rotate(180deg);
}

.company-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: var(--monday-radius-lg);
    background: #fff;
    border: 1px solid var(--monday-border);
    box-shadow: var(--monday-shadow);
    max-height: 240px;
    overflow-y: auto;
}

.company-picker-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--monday-radius);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--monday-text);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.company-picker-option:hover,
.company-picker-option:focus-visible {
    background: #f0f1f5;
    outline: none;
}

.company-picker-option.is-selected {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-bottom: none;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--monday-radius);
    background: var(--monday-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--monday-text);
}

.sidebar-brand-text {
    min-width: 0;
}

.sidebar-brand span {
    font-size: 11px;
    color: var(--monday-text-muted);
}

.sidebar-nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav:not(.sidebar-nav-bottom) {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-nav-bottom {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--monday-border);
    padding-top: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--monday-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--monday-text-muted);
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
    background: #f0f1f5;
    color: var(--monday-text);
}

.nav-item.active {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
}

.nav-item-accent {
    margin-top: 8px;
    color: var(--monday-primary);
}

.nav-item-accent:hover {
    background: var(--monday-primary-light);
}

.sidebar-nav button.nav-item {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.nav-item-accent + .nav-item {
    margin-top: 0;
}

.nav-group {
    margin: 0;
}

.nav-group-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--monday-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--monday-text-muted);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.nav-group-summary::-webkit-details-marker {
    display: none;
}

.nav-group-summary:hover {
    background: #f0f1f5;
    color: var(--monday-text);
}

.nav-group-summary.active {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
}

.nav-group-chevron {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-group[open] .nav-group-chevron {
    transform: rotate(180deg);
}

.nav-group-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 4px 8px;
}

.nav-item-sub {
    padding: 8px 12px 8px 28px;
    font-size: 13px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--monday-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--monday-primary-light);
    color: var(--monday-primary);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    display: block;
    font-size: 11px;
    color: var(--monday-text-muted);
}

.sidebar-logout {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--monday-text-muted);
}

.sidebar-logout:hover {
    color: #e2445c;
}

.demo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--monday-text-light);
    background: #f0f1f5;
    padding: 8px 10px;
    border-radius: var(--monday-radius);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fdab3d;
    flex-shrink: 0;
}

/* Page */
.page {
    padding: 28px 32px 40px;
    max-width: 100%;
}

.page-narrow { max-width: 860px; }

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.page-calendar .page-header-actions .btn {
    min-width: 158px;
    justify-content: center;
}

.page-calendar .page-header-actions .btn-primary {
    border: 1px solid transparent;
}

.page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--monday-text);
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--monday-text-muted);
}

.page-section { margin-bottom: 24px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--monday-text-muted);
    margin-bottom: 16px;
}

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

.breadcrumb-link {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--monday-radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--monday-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(97, 97, 255, 0.35);
}

.btn-primary:hover { background: var(--monday-primary-hover); }

.btn-secondary {
    background: #fff;
    color: var(--monday-text);
    border: 1px solid var(--monday-border);
}

.btn-secondary:hover { background: #f6f7fb; }

.btn-danger {
    background: #e2445c;
    color: #fff;
    border: none;
}

.btn-danger:hover { background: #c93a50; }

.btn-success {
    background: #00c875;
    color: #fff;
    border: none;
}

.btn-success:hover { background: #00b368; }

.btn-task-toggle {
    min-width: 4.75rem;
    justify-content: center;
}

.catalog-delete-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e6e9ef;
}

.catalog-sort-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #676879;
}

.catalog-sortable-card {
    padding: 0;
    overflow: hidden;
}

.catalog-sortable-empty {
    margin: 0;
    padding: 32px 24px;
    text-align: center;
    color: #676879;
    font-size: 14px;
}

.catalog-sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-sortable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #e6e9ef;
    background: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

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

.catalog-sortable-item.dragging {
    opacity: 0.55;
    background: #f6f7fb;
}

.catalog-sortable-item.drag-over {
    box-shadow: inset 0 2px 0 #0073ea;
}

.catalog-drag-handle {
    display: flex;
    align-items: center;
    color: #c5c7d0;
    cursor: grab;
    flex-shrink: 0;
}

.catalog-sortable-item[draggable="true"] .catalog-drag-handle:hover {
    color: #676879;
}

.catalog-sortable-item.dragging .catalog-drag-handle {
    cursor: grabbing;
}

.catalog-sortable-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.catalog-sortable-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-installation .install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.install-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 20px 24px;
}

.install-section {
    margin-bottom: 20px;
}

.install-section .panel-title {
    margin: 0 0 12px;
}

.install-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #676879;
    line-height: 1.5;
}

.install-hint-warn {
    color: #c93a50;
}

.install-status-badge {
    align-self: flex-start;
}

.install-log-card {
    background: #f9fafc;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.install-log-list,
.install-summary-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #323338;
}

.install-log-list li,
.install-summary-list li {
    margin: 4px 0;
}

@media (max-width: 900px) {
    .page-installation .install-grid {
        grid-template-columns: 1fr;
    }
}

.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.stat-card {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--monday-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-icon-indigo { background: #ededff; color: var(--monday-primary); }
.stat-icon-amber  { background: #fff4e0; color: #fdab3d; }
.stat-icon-green  { background: #e5f7ed; color: #00c875; }
.stat-icon-red    { background: #fde8eb; color: #e2445c; }
.stat-icon-purple { background: #f3e8ff; color: #a25ddc; }

.stat-card > div:last-child {
    flex: 1;
    min-width: 0;
}

.stat-label {
    margin: 0;
    font-size: clamp(10px, 0.75vw, 12px);
    line-height: 1.25;
    color: var(--monday-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    margin: 2px 0 0;
    font-size: clamp(13px, 1.05vw, 18px);
    font-weight: 700;
    color: var(--monday-text);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alternador Kanban / Lista — pills separados, distribuição igual aos estágios */
.view-switcher-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.view-switcher {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.view-switcher .nav-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: 20px;
}

.view-switcher .nav-item:hover {
    background: #f0f1f5;
    color: var(--monday-text);
}

.view-switcher .nav-item.active {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
    border-color: #d4d4ff;
}

.view-switcher .nav-item svg {
    flex-shrink: 0;
}

.entity-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 320px;
    z-index: 40;
}

.responsible-filter {
    flex: 0 0 13.75rem;
    width: 13.75rem;
    margin-left: auto;
}

.responsible-filter-select {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--monday-border);
    border-radius: 20px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23676879' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 14px;
    color: var(--monday-text);
    cursor: pointer;
}

.responsible-filter-select:focus {
    outline: none;
    border-color: var(--monday-primary);
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.15);
}

.entity-search-field {
    position: relative;
}

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

.entity-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid var(--monday-border);
    border-radius: 20px;
    background: #fff;
    color: var(--monday-text);
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.entity-search-input::placeholder {
    color: var(--monday-text-light);
}

.entity-search-input:focus {
    border-color: #c7c7ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.12);
}

.entity-search-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    box-shadow: 0 12px 32px rgba(50, 51, 56, 0.14);
}

.entity-search-empty,
.entity-search-loading,
.entity-search-error {
    margin: 0;
    padding: 14px 12px;
    color: var(--monday-text-muted);
    font-size: 13px;
}

.entity-search-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.entity-search-item:hover,
.entity-search-item.is-active {
    background: #f3f4fa;
}

.entity-search-item-body {
    min-width: 0;
    flex: 1;
}

.entity-search-item-title {
    display: block;
    font-weight: 600;
    color: var(--monday-text);
    line-height: 1.35;
}

.entity-search-item-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--monday-text-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-search-badge {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0f1f5;
    color: var(--monday-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.entity-search-badge-project {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
}

.entity-search-badge-task {
    background: #e8f8ef;
    color: #0f8a4b;
}


/* Kanban / Pipeline */
.page-pipeline .page-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pipeline-toolbar {
    margin-bottom: 20px;
}

.pipeline-stages-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pipeline-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--monday-text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}

.pipeline-stage-pill:hover {
    border-color: var(--stage-color, var(--monday-primary));
    color: var(--monday-text);
}

.pipeline-stage-pill.is-selected {
    border-color: var(--stage-color, var(--monday-primary));
    background: color-mix(in srgb, var(--stage-color, var(--monday-primary)) 14%, #fff);
    color: var(--monday-text);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage-color, var(--monday-primary)) 35%, transparent);
}

.pipeline-stage-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stage-color);
}

.pipeline-stage-pill strong {
    color: var(--monday-text);
    font-weight: 700;
}

.tasks-status-filter-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--monday-text-muted);
}

.tasks-status-filter-empty {
    margin: 12px 0 0;
    padding: 16px;
    text-align: center;
    color: var(--monday-text-muted);
    background: #fff;
    border: 1px dashed var(--monday-border);
    border-radius: var(--monday-radius);
}

.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 280px);
}

.kanban-column {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    border-radius: var(--monday-radius-lg);
    overflow: hidden;
    background: #eeeff3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.kanban-column-top {
    padding: 12px 14px;
    color: #fff;
}

.kanban-column-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kanban-board-tasks .kanban-column-top-row {
    justify-content: flex-start;
}

.kanban-column-drag-handle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    cursor: grab;
    touch-action: none;
}

.kanban-column-drag-handle:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.kanban-column-drag-handle:active {
    cursor: grabbing;
}

.kanban-board-tasks .kanban-column-top-row h3 {
    flex: 1;
    min-width: 0;
}

.kanban-board-tasks .kanban-column-top-row .kanban-count-light {
    margin-left: auto;
}

.kanban-board-tasks .kanban-column.column-dragging {
    opacity: 0.55;
}

.kanban-board-tasks .kanban-column.column-drag-over {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.kanban-column-top h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.kanban-column-value {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.kanban-count-light {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 12px;
}

.kanban-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--stage-color, #94a3b8);
    flex-shrink: 0;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--monday-text);
}

.kanban-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--monday-text-light);
    background: #e6e9ef;
    padding: 2px 8px;
    border-radius: 10px;
}

.kanban-column-body {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 220px;
    transition: background 0.15s;
}

.kanban-column-body.drag-over {
    background: #e3e4f8;
    outline: 2px dashed var(--monday-primary);
    outline-offset: -2px;
}

.kanban-card {
    display: block;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    cursor: grab;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
    color: inherit;
    text-decoration: none;
}

.kanban-card:hover {
    border-color: #c5c7d0;
    box-shadow: var(--monday-shadow);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.kanban-card-top h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--monday-text);
}

.kanban-card-heading {
    min-width: 0;
    flex: 1;
}

.company-color-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.company-color-field input[type="color"] {
    width: 44px;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fff;
    cursor: pointer;
}

.company-color-form input[type="color"] {
    width: 36px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--monday-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.kanban-card-company {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--monday-text-muted);
}

.kanban-card-tasks {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--monday-primary);
    font-weight: 500;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f1f5;
}

.kanban-value {
    font-size: 13px;
    font-weight: 700;
    color: #00c875;
}

.kanban-date {
    font-size: 11px;
    color: var(--monday-text-light);
}

.kanban-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 80px;
    font-size: 12px;
    color: var(--monday-text-light);
    border: 2px dashed #d0d4e4;
    border-radius: var(--monday-radius);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-priority-low    { background: #f0f1f5; color: #676879; }
.badge-priority-medium { background: #dceeff; color: #0073ea; }
.badge-priority-high   { background: #fff4e0; color: #c87a00; }
.badge-priority-urgent { background: #ffe0e6; color: #e2445c; }

.badge-done    { background: #e5f7ed; color: #00c875; }
.badge-pending { background: #f0f1f5; color: #676879; }
.badge-personal { background: #ede7ff; color: #5030e5; }
.badge-shared { background: #e8f5e9; color: #2e7d32; }
.badge-shared { background: #e8f4ff; color: #1f6feb; }
.badge-sm { font-size: 10px; padding: 2px 6px; }
.badge-today   { background: #ededff; color: var(--monday-primary); }
.badge-overdue { background: #ffe0e6; color: #e2445c; }

.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: color-mix(in srgb, var(--stage-color) 15%, white);
    color: var(--stage-color);
}

.stage-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stage-color);
}

.stage-badge-lg { font-size: 13px; padding: 5px 12px; }

/* Table */
.table-card {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f6f7fb;
    border-bottom: 1px solid var(--monday-border);
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f5;
    font-size: 13px;
    vertical-align: middle;
}

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

.page-tasks .data-table-tasks {
    table-layout: fixed;
    width: 100%;
}

.page-tasks .tasks-table-card {
    overflow-x: auto;
}

.page-tasks .data-table-tasks .tasks-col-task { width: 28%; }
.page-tasks .data-table-tasks .tasks-col-reason { width: 12%; }
.page-tasks .data-table-tasks .tasks-col-project { width: 18%; }
.page-tasks .data-table-tasks .tasks-col-due { width: 12%; }
.page-tasks .data-table-tasks .tasks-col-responsible { width: 14%; }
.page-tasks .data-table-tasks .tasks-col-status { width: 16%; }

.table-empty {
    text-align: center;
    color: var(--monday-text-muted);
    padding: 32px 16px !important;
}

.table-muted {
    color: var(--monday-text-muted);
    font-size: 13px;
}

.task-no-project-field {
    margin-top: -8px;
}

.calendar-task-no-project {
    color: var(--monday-text-muted);
}

.tasks-block {
    margin-bottom: 32px;
}

.tasks-block:last-child {
    margin-bottom: 0;
}

.tasks-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.tasks-block-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
}

.tasks-block-toggle:hover .tasks-block-title,
.tasks-block-toggle:hover .tasks-block-chevron {
    color: var(--monday-primary);
}

.tasks-block-chevron {
    flex-shrink: 0;
    color: var(--monday-text-muted);
    transition: transform 0.15s ease;
}

.tasks-block:not(.is-collapsed) .tasks-block-chevron {
    transform: rotate(90deg);
}

.tasks-block.is-collapsed .tasks-block-toggle {
    margin-bottom: 0;
}

.tasks-block-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--monday-text);
}

.tasks-block-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f0f1f5;
    font-size: 12px;
    font-weight: 700;
    color: var(--monday-text-muted);
}

.tasks-block-hint {
    margin: -6px 0 12px;
    font-size: 13px;
    color: var(--monday-text-muted);
}

.kanban-board-personal {
    margin-bottom: 0;
}

/* Tarefas — linha inteira destacada no hover */
.page-tasks .data-table tbody tr.tasks-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.page-tasks .data-table tbody tr.task-row-personal.task-done .task-title {
    text-decoration: line-through;
    color: var(--monday-text-light);
}

.task-actions-bar {
    justify-content: flex-start;
    gap: 8px;
}

.task-status-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.task-status-badge {
    flex-shrink: 0;
}

.page-tasks .data-table td .task-item-actions {
    margin-left: 0;
    width: 100%;
}

.page-tasks .data-table td .task-status-actions {
    margin-left: auto;
}

.page-tasks .data-table td .task-status-badge {
    flex-shrink: 0;
}

.task-meta-personal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.task-meta-personal .task-meta-reason {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.task-edit-history {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--monday-border);
}

.task-edit-history-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--monday-text);
}

.task-edit-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.task-history-item {
    padding: 12px 14px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fafbfc;
}

.task-history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.task-history-type {
    font-size: 12px;
    font-weight: 700;
    color: var(--monday-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.task-history-top time {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.task-history-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--monday-text);
    white-space: pre-wrap;
}

.task-history-author {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--monday-text-muted);
}

.task-notes-preview {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--monday-text-muted);
    white-space: pre-wrap;
}

.task-notes-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.task-notes-display {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    color: var(--monday-text);
}

.kanban-card-title-link {
    color: inherit;
    text-decoration: none;
}

.kanban-card-title-link:hover {
    color: var(--monday-primary);
    text-decoration: underline;
}

.info-actions-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f5;
}

.info-share-box {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f5;
    scroll-margin-top: 24px;
}

.info-share-box .task-share-form {
    margin-top: 8px;
}

.detail-actions .btn svg {
    flex-shrink: 0;
}

.info-actions-box .task-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.info-actions-box .task-status-actions {
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.page-tasks .data-table tbody tr:hover {
    background: var(--monday-primary-light) !important;
}

.page-tasks .data-table tbody tr.row-overdue:hover {
    background: #ffe0e6 !important;
}

.page-tasks .data-table tbody tr.row-today:hover {
    background: #e0e0ff !important;
}

/* Negócios — linha/card destacado no hover */
.page-negocios .data-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.page-negocios .data-table tbody tr:hover {
    background: var(--monday-primary-light) !important;
}

.page-negocios .kanban-card {
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s, background 0.15s;
}

.page-negocios .kanban-card:hover {
    border-color: #b8b8ff;
    background: var(--monday-primary-light);
    box-shadow: 0 4px 16px rgba(97, 97, 255, 0.14);
    transform: translateY(-1px);
}

.page-tasks .kanban-card {
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s, background 0.15s;
}

.page-tasks .kanban-card:hover {
    border-color: #b8b8ff;
    background: var(--monday-primary-light);
    box-shadow: 0 4px 16px rgba(97, 97, 255, 0.14);
    transform: translateY(-1px);
}

.table-link strong {
    display: block;
    color: var(--monday-text);
    font-weight: 600;
}

.table-link:hover strong { color: var(--monday-primary); }

.table-sub {
    display: block;
    font-size: 12px;
    color: var(--monday-text-muted);
    margin-top: 2px;
}

.table-sub-muted {
    color: var(--monday-text-light);
    font-size: 11px;
}

.td-value { font-weight: 600; }

.table-action {
    font-size: 12px;
    color: var(--monday-text-light);
    white-space: nowrap;
}

.table-action:hover { color: var(--monday-primary); }

.row-overdue { background: #fff8f9 !important; }
.row-today   { background: #fafaff !important; }

/* Detail */
.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-edit {
    position: relative;
    display: inline-flex;
}

.quick-edit-trigger {
    border: 0;
    cursor: default;
    font: inherit;
    line-height: 1.2;
}

.quick-edit.is-editable .quick-edit-trigger {
    cursor: pointer;
    gap: 6px;
    transition: filter .15s ease, transform .15s ease;
}

.quick-edit.is-editable .quick-edit-trigger:hover {
    filter: brightness(0.97);
}

.quick-edit.is-editable .quick-edit-trigger:focus-visible {
    outline: 2px solid rgba(97, 97, 255, 0.35);
    outline-offset: 2px;
}

.quick-edit-trigger.badge {
    display: inline-flex;
    align-items: center;
}

.quick-edit-caret {
    flex-shrink: 0;
    opacity: 0.75;
}

.quick-edit-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    box-shadow: 0 12px 32px rgba(50, 51, 56, 0.14);
}

.quick-edit-option {
    justify-content: flex-start;
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.quick-edit-option.stage-badge,
.quick-edit-option.badge {
    border-radius: 10px;
}

.quick-edit-option:hover,
.quick-edit-option.is-selected {
    filter: brightness(0.96);
    box-shadow: inset 0 0 0 1px rgba(50, 51, 56, 0.08);
}

.quick-edit.is-saving .quick-edit-trigger {
    opacity: 0.65;
    pointer-events: none;
}

.detail-desc { max-width: 640px; }

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.modal-dev-andamentos-body {
    max-height: min(60vh, 520px);
    overflow-y: auto;
}

.modal-dev-andamentos-body .panel-hint {
    margin-top: 0;
}

.modal-title-count {
    font-weight: 500;
    color: var(--monday-text-muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.detail-side .panel-section-documents {
    margin: 0;
}

.detail-side .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.detail-side .documents-actions {
    width: 100%;
}

.detail-side .documents-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
}

.detail-side .documents-item-actions {
    width: 100%;
}

.info-panel,
.panel-section {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 20px;
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.panel-subtitle {
    margin: 20px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--monday-text-secondary, #676879);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-section { margin-bottom: 20px; }

.info-list { margin: 0; }

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f5;
}

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

.info-item dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-light);
    margin-bottom: 2px;
}

.info-item dd {
    margin: 0;
    font-size: 14px;
    color: var(--monday-text);
}

.info-item-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

/* Tasks */
.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f5;
}

.task-item .task-body {
    flex: 1;
    min-width: 0;
}

.task-item.task-done .task-title {
    text-decoration: line-through;
    color: var(--monday-text-light);
}

.task-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.task-delete {
    flex-shrink: 0;
}

.task-item-personal {
    align-items: center;
    cursor: default;
    padding: 14px 16px;
    margin: 0;
    border-radius: 0;
    transition: background 0.15s ease;
}

.task-item-personal .task-body {
    flex: 1;
    min-width: 0;
}

.task-actions-bar .badge {
    flex-shrink: 0;
}

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

.task-check {
    width: 18px;
    height: 18px;
    border: 2px solid #c5c7d0;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

button.task-check {
    padding: 0;
    background: transparent;
    cursor: pointer;
}

button.task-check:disabled {
    cursor: default;
}

.task-done .task-check {
    background: #00c875;
    border-color: #00c875;
}

.task-done .task-title {
    text-decoration: line-through;
    color: var(--monday-text-light);
}

.task-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.task-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--monday-text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e6e9ef;
}

.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e6e9ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-card {
    flex: 1;
    background: #fafbfc;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    padding: 14px 16px;
    min-width: 0;
}

.timeline-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.timeline-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-primary);
}

.timeline-card h3 {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.timeline-top time {
    font-size: 11px;
    color: var(--monday-text-light);
    white-space: nowrap;
}

.task-notes-form {
    margin-bottom: 16px;
}

.task-notes-list {
    margin-top: 8px;
}

.timeline-author {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--monday-text-light);
}

.timeline-top-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.timeline-item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.3;
}

.panel-hint {
    margin: -4px 0 16px;
    font-size: 13px;
    color: #676879;
}

.panel-section-andamentos {
    border-top: 1px solid #e6e9ef;
    padding-top: 8px;
}

.andamentos-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.andamentos-toggle:hover .panel-title,
.andamentos-toggle:hover .andamentos-chevron {
    color: var(--monday-primary);
}

.andamentos-toggle .panel-title {
    margin: 0;
}

.andamentos-chevron {
    flex-shrink: 0;
    color: var(--monday-text-muted);
    transition: transform 0.15s ease;
}

.panel-section-andamentos:not(.is-collapsed) .andamentos-chevron {
    transform: rotate(90deg);
}

.panel-section-andamentos .panel-hint {
    margin: 4px 0 0 24px;
}

.andamentos-collapse-body {
    margin-top: 12px;
}

.andamentos-collapse-body[hidden] {
    display: none;
}

.panel-section-notes {
    border-top: 1px solid #e6e9ef;
    padding-top: 8px;
}

.timeline-andamentos .timeline-card {
    background: #f6f7fb;
}

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 20px; }

.form-card {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 24px;
}

.form-card-title {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
}

.form-help-block {
    margin: -8px 0 16px;
}

.user-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.user-company-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.user-company-option:hover {
    border-color: #c7c7ff;
}

.user-company-option.is-selected {
    border-color: #c7c7ff;
    background: var(--monday-primary-light);
}

.user-company-option input {
    margin: 0;
}

.user-company-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--company-color, #6161ff);
    flex-shrink: 0;
}

.user-company-name {
    font-weight: 600;
    color: var(--monday-text);
    min-width: 0;
}

.user-companies-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-company-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 180px;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--company-color, #6161ff) 14%, white);
    color: var(--monday-text);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-company-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--company-color, #6161ff);
    flex-shrink: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    color: var(--monday-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--monday-primary);
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-row .form-group { margin-bottom: 0; }

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--monday-radius);
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-info {
    background: #ededff;
    color: #4444bb;
    border: 1px solid #d0d0ff;
}

.empty-text {
    text-align: center;
    color: var(--monday-text-light);
    font-size: 13px;
    padding: 24px;
}

/* Modal */
body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#modal-board-confirm {
    z-index: 1200;
}

.modal[hidden] {
    display: none;
}

[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(50, 51, 56, 0.45);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.2s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 0;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--monday-text);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: var(--monday-radius);
    background: transparent;
    color: var(--monday-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #f0f1f5;
    color: var(--monday-text);
}

.modal-hint {
    margin: 12px 24px 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #7a5b00;
    background: #fff8e6;
    border: 1px solid #ffe8a3;
    border-radius: var(--monday-radius);
}

.modal-body {
    padding: 20px 24px;
}

.modal-body.form-stack {
    gap: 16px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 24px;
}

.share-notice-intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--monday-text-muted);
}

.share-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-notice-item {
    margin: 0;
}

.share-notice-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid #e6e9ef;
    border-radius: var(--monday-radius);
    text-decoration: none;
    color: var(--monday-text);
    transition: border-color .15s ease, background .15s ease;
}

.share-notice-link:hover {
    border-color: var(--monday-primary);
    background: var(--monday-primary-light);
}

.share-notice-meta {
    font-size: 13px;
    color: var(--monday-text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #323338;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--monday-radius);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 360px;
    animation: slideUp 0.25s ease;
}

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

/* 404 */
.error-box {
    text-align: center;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 48px;
}

.error-box h1 {
    margin: 0;
    font-size: 48px;
    color: var(--monday-primary);
}

.error-box p {
    color: var(--monday-text-muted);
    margin: 8px 0 24px;
}

/* Calendar */
.page-calendar {
    --calendar-row-height: 145px;
    --calendar-grid-height: calc(var(--calendar-row-height) * 6);
}

.calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.calendar-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
}

.calendar-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    min-height: 0;
}

.calendar-panel-main {
    gap: 16px;
}

.calendar-panel-sidebar .calendar-sidebar-card {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.calendar-toolbar,
.calendar-sidebar-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    flex-shrink: 0;
}

.calendar-toolbar {
    gap: 12px;
}

.calendar-nav-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    color: var(--monday-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-view-switcher {
    margin-bottom: 16px;
}

.calendar-grid-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 1fr;
    height: var(--calendar-grid-height);
    min-height: var(--calendar-grid-height);
}

.calendar-grid-day {
    grid-template-columns: 1fr;
    height: var(--calendar-grid-height);
    min-height: var(--calendar-grid-height);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(var(--calendar-row-height), 1fr);
    height: var(--calendar-grid-height);
    min-height: var(--calendar-grid-height);
    overflow: auto;
}

.calendar-day-week,
.calendar-day-single {
    min-height: var(--calendar-row-height);
    height: 100%;
}

.calendar-day-week .calendar-day-tasks {
    flex: 1;
    overflow-y: auto;
}

.calendar-day-single .calendar-day-tasks {
    flex: 0 1 auto;
    overflow-y: auto;
}

.calendar-day-single {
    display: flex;
    flex-direction: column;
    border-right: none;
    border-bottom: none;
    overflow: hidden;
}

.calendar-day-header-static {
    cursor: default;
    text-decoration: none;
    color: inherit;
}

.calendar-day-detail {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    border-top: 1px solid #f0f1f5;
    overflow: hidden;
}

.calendar-day-detail .calendar-sidebar-card {
    min-height: 0;
    height: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
}

.calendar-day-detail .calendar-sidebar-header {
    background: transparent;
    border-bottom: 1px solid #f0f1f5;
}

.calendar-weekdays-single {
    grid-template-columns: 1fr;
}

.calendar-day-detail .calendar-sidebar-body {
    overflow-y: auto;
}

.btn-icon {
    padding: 8px 10px;
}

.calendar-today-btn {
    margin-left: auto;
}

.calendar-card {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f6f7fb;
    border-bottom: 1px solid var(--monday-border);
}

.calendar-weekday {
    padding: 10px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
    min-width: 0;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    min-height: var(--calendar-row-height);
    min-width: 0;
    padding: 8px;
    border-right: 1px solid #f0f1f5;
    border-bottom: 1px solid #f0f1f5;
    background: #fff;
    transition: background 0.12s, box-shadow 0.12s;
    color: inherit;
    overflow: hidden;
    cursor: default;
}

.calendar-day:nth-child(7n) { border-right: none; }

.calendar-day:hover {
    background: #fafaff;
    box-shadow: inset 0 0 0 2px var(--monday-primary-light);
}

.calendar-day-out {
    background: #fafbfc;
    opacity: 0.55;
}

.calendar-day-today .calendar-day-num {
    background: var(--monday-primary);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-day-selected {
    background: #f3f3ff;
    box-shadow: inset 0 0 0 2px var(--monday-primary);
}

.calendar-day-overdue:not(.calendar-day-out) {
    background: #fff8f9;
}

.calendar-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-text);
}

.calendar-day-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--monday-primary);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

.calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.calendar-day-header:hover {
    text-decoration: none;
}

.calendar-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.calendar-task-chip {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--monday-primary-light);
    color: #4444bb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    border: none;
    font-family: inherit;
    cursor: default;
}

.calendar-task-chip-action {
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.calendar-task-chip-action:hover {
    filter: brightness(0.96);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

button.calendar-task-chip-action {
    appearance: none;
    -webkit-appearance: none;
}

.calendar-day-overdue .calendar-task-chip {
    background: #ffe8ec;
    color: #c42d4a;
}

.calendar-task-chip-done {
    opacity: 0.55;
    text-decoration: line-through;
}

.calendar-task-chip-unlinked {
    background: #f0f1f3;
    color: var(--monday-text-muted);
}

.calendar-day-overdue .calendar-task-chip-unlinked {
    background: #ffe8ec;
    color: #c42d4a;
}

.calendar-task-more {
    font-size: 10px;
    color: var(--monday-text-light);
    padding-left: 4px;
}

.calendar-sidebar-card {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-sidebar-header {
    padding: 10px 16px;
    background: #f6f7fb;
    border-bottom: 1px solid var(--monday-border);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.calendar-sidebar-toolbar .btn-icon {
    padding: 6px 8px;
}

.calendar-sidebar-toolbar .calendar-today-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.calendar-sidebar-day-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--monday-text);
    text-align: center;
}

.calendar-sidebar-day-title-static {
    margin: 0;
    justify-content: flex-start;
}

.calendar-day[data-day-url] {
    cursor: pointer;
}

.calendar-task-more {
    color: var(--monday-text-muted);
    text-decoration: none;
}

.calendar-task-more:hover {
    color: var(--monday-primary);
}

.calendar-sidebar-body {
    padding: 8px 16px 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.calendar-sidebar-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
}

.calendar-sidebar-card .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.calendar-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-task-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f5;
}

.calendar-task-item:first-child { padding-top: 0; }

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

.calendar-task-item-action,
.calendar-task-item-project {
    cursor: pointer;
    border-radius: var(--monday-radius);
    margin: 0 -8px;
    padding: 10px 8px;
    transition: background 0.15s ease;
}

.calendar-task-item-action:hover,
.calendar-task-item-project:hover {
    background: var(--monday-primary-light);
}

.calendar-task-item-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.calendar-task-item-main {
    flex: 1;
    min-width: 0;
}

.calendar-task-item-link:hover .calendar-task-item-title {
    color: var(--monday-primary);
}

.calendar-task-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.calendar-task-item-body {
    flex: 1;
    min-width: 0;
}

.calendar-task-item-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--monday-text);
}

.calendar-task-project {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--monday-primary);
    margin-bottom: 2px;
}

.calendar-task-project:hover { text-decoration: underline; }

.calendar-task-company {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--company-color, var(--monday-text-muted));
    margin-bottom: 2px;
}

.calendar-task-location,
.calendar-task-responsible {
    display: block;
    font-size: 11px;
    color: var(--monday-text-muted);
}

.calendar-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px 18px;
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
}

.legend-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
    flex-shrink: 0;
}

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

.legend-list-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.legend-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--monday-text-muted);
    padding: 0;
}

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

.legend-today { background: var(--monday-primary); }
.legend-selected { background: #f3f3ff; border: 2px solid var(--monday-primary); }
.legend-overdue { background: #ffe8ec; border: 2px solid #e2445c; }
.legend-unlinked { background: #f0f1f3; border: 2px solid #c4c4c4; }
.legend-company { background: var(--monday-primary-light); border: 2px solid var(--monday-primary); }

.org-company-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--monday-primary);
    background: var(--monday-primary-light);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.calendar-task-chip .org-company-label,
.calendar-task-item-title .org-company-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 2px 0 0;
}

.table-link .org-company-label,
.task-title .org-company-label {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 2px 0 0;
}

.kanban-card-top .org-company-label {
    margin-left: 4px;
}
.legend-outlook { background: var(--calendar-outlook-bg); border: 2px solid var(--calendar-outlook-border); }

.calendar-task-chip-outlook {
    background: var(--calendar-outlook-bg);
    color: var(--calendar-outlook-text);
}

.calendar-task-chip-outlook-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--calendar-outlook-text);
    margin-bottom: 4px;
}

.calendar-task-item-outlook {
    cursor: default;
}

/* Projetos fechados */
.page-closed .page-header { margin-bottom: 20px; }

.closed-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.closed-stat-card {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.closed-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--monday-text);
    line-height: 1.2;
}

.closed-stat-label {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.closed-stat-green .closed-stat-value { color: #00a65a; }
.closed-stat-amber .closed-stat-value { color: #c87a00; }
.closed-stat-indigo .closed-stat-value { color: var(--monday-primary); }

.closed-group {
    margin-bottom: 28px;
}

.closed-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.closed-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.closed-group-bar {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: #00c875;
}

.closed-group-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--monday-text);
}

.closed-group-meta {
    font-size: 13px;
    color: var(--monday-text-muted);
}

.closed-list-card {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    overflow: hidden;
}

.closed-list-head,
.closed-list-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
}

.closed-list-head {
    background: #f6f7fb;
    border-bottom: 1px solid var(--monday-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--monday-text-muted);
}

.closed-list-row {
    border-bottom: 1px solid #f0f1f5;
    color: inherit;
    transition: background 0.12s;
}

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

.closed-list-row:hover {
    background: #fafaff;
}

.closed-col-project strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--monday-text);
    margin-bottom: 2px;
}

.closed-col-project em {
    display: block;
    font-size: 12px;
    font-style: normal;
    color: var(--monday-text-muted);
}

.closed-col-date time {
    font-size: 13px;
    color: var(--monday-text);
}

.closed-col-delivery time {
    font-weight: 600;
}

.closed-col-value {
    font-size: 14px;
    font-weight: 700;
    color: #00a65a;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.delivery-delivered { background: #e5f7ed; color: #00a65a; }
.delivery-progress  { background: #fff4e0; color: #c87a00; }
.delivery-scheduled { background: #ededff; color: #4444bb; }

.closed-col-owner {
    font-size: 13px;
    color: var(--monday-text-muted);
}

.closed-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
}

.closed-empty p {
    color: var(--monday-text-muted);
    margin: 0 0 16px;
}

/* Desenvolvimento */
.info-dev-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--monday-border);
}

.dev-toggle-form {
    margin: 0;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--monday-text);
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--monday-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.modal-dialog-wide {
    max-width: 560px;
}

.form-help {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--monday-text-muted);
    line-height: 1.4;
}

.form-help code {
    font-size: 11px;
    word-break: break-all;
}

.form-error {
    margin: 0;
    font-size: 12px;
    color: #e2445c;
}

.dev-edit-embed {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-text-muted);
    cursor: pointer;
}

.dev-edit-embed:hover {
    color: var(--monday-primary);
}

.dev-uncheck-form {
    display: none;
}

.dev-board-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-primary);
}

.dev-board-link:hover {
    text-decoration: underline;
}

.dev-empty {
    text-align: center;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 48px 24px;
}

.dev-empty p {
    margin: 0 0 8px;
    color: var(--monday-text-muted);
}

.dev-empty-hint {
    font-size: 13px;
    margin-bottom: 20px !important;
}

.dev-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dev-project-card {
    display: block;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 20px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dev-project-card:hover {
    border-color: #b8b8ff;
    box-shadow: var(--monday-shadow);
    transform: translateY(-2px);
}

.dev-project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.dev-project-arrow {
    color: var(--monday-text-light);
    font-size: 18px;
}

.dev-project-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--monday-text);
    line-height: 1.35;
}

.dev-project-company {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--monday-text-muted);
}

.dev-project-meta {
    margin: 0;
    font-size: 12px;
    color: var(--monday-text-light);
}

.dev-type-badge {
    background: #eef0ff;
    color: #4b4fc7;
    font-weight: 600;
}

.dev-project-card-task .dev-type-badge {
    background: #e8f5ef;
    color: #1a7f4b;
}

.dev-project-card-entry .dev-type-badge {
    background: #fff4e5;
    color: #b45309;
}

.dev-project-card-task {
    border-left: 3px solid #1a7f4b;
}

.dev-project-card-entry {
    border-left: 3px solid #b45309;
}

.dev-board-header {
    margin-bottom: 16px;
}

.dev-board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.dev-board-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--monday-text-muted);
    background: #fff;
    border: 1px solid var(--monday-border);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dev-board-tab:hover {
    background: #f0f1f5;
    color: var(--monday-text);
}

.dev-board-tab.active {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
    border-color: #d4d4ff;
    font-weight: 600;
}

.monday-embed-wrap {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 16px;
    overflow: hidden;
}

.monday-embed {
    display: block;
    width: 100%;
    min-height: 500px;
    height: calc(100vh - 280px);
    max-height: 900px;
    border: 0;
    border-radius: var(--monday-radius);
    box-shadow: 5px 5px 56px 0 rgba(0, 0, 0, 0.25);
}

/* Quadro modelo próprio (estilo Monday) */
.page-development-board {
    overflow-x: clip;
    max-width: 100%;
}

.page-development-board .breadcrumb {
    margin-bottom: 16px;
}

.page-development-board .page-board {
    overflow-x: hidden;
    max-width: 100%;
}

.page-development-board .board-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.dev-board-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.dev-board-footer-note {
    font-size: 13px;
    color: var(--monday-text-muted);
}

.dev-board-type-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.dev-board-type-option {
    cursor: pointer;
}

.dev-board-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dev-board-type-card {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--monday-border);
    border-radius: var(--monday-radius);
    transition: border-color 0.15s, background 0.15s;
}

.dev-board-type-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.dev-board-type-card small {
    display: block;
    font-size: 12px;
    color: var(--monday-text-muted);
    line-height: 1.4;
}

.dev-board-type-option input:checked + .dev-board-type-card {
    border-color: var(--monday-primary);
    background: #f5f6ff;
}

.page-board {
    --board-menu-width: 36px;
    --board-chevron-width: 28px;
    --board-item-indent: calc(var(--board-menu-width) + var(--board-chevron-width) + 12px);
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    overflow: visible;
}

.board-table-wrap {
    overflow-x: visible;
}

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

.board-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.board-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.board-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e8e9ff;
    color: var(--monday-primary);
}

.board-header-slot {
    visibility: hidden;
    pointer-events: none;
}

.board-title.board-header-slot {
    min-height: 33px;
    min-width: 140px;
}

.board-badge.board-header-slot {
    min-width: 96px;
    min-height: 24px;
}

.board-header-actions {
    display: flex;
    gap: 8px;
}

.board-group-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.board-group-color-option {
    position: relative;
    cursor: pointer;
}

.board-group-color-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.board-group-color-swatch {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.board-group-color-option input:checked + .board-group-color-swatch {
    border-color: var(--monday-text);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--monday-text);
}

.board-group-color-option input:focus-visible + .board-group-color-swatch {
    outline: 2px solid var(--monday-primary);
    outline-offset: 2px;
}

.board-views {
    display: flex;
    gap: 4px;
    padding: 0 24px 12px;
    border-bottom: 1px solid var(--monday-border);
}

.board-view-tab {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-text-muted);
    border-radius: var(--monday-radius);
    cursor: default;
}

.board-view-tab.active {
    color: var(--monday-primary);
    background: #f0f1ff;
}

.board-table {
    border-collapse: collapse;
    font-size: 13px;
}

.board-table-monday {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
}

.board-table-monday.has-custom-column-widths {
    table-layout: fixed;
}

.board-table-monday thead th,
.board-table-monday tbody td {
    white-space: nowrap;
}

.board-table-monday.has-custom-column-widths thead th:not(.board-column-hidden),
.board-table-monday.has-custom-column-widths tbody td:not(.board-column-hidden):not([colspan]) {
    width: auto;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-table-monday thead th {
    font-size: 12px;
    font-weight: 500;
    color: #676879;
    padding: 8px 12px;
    border-bottom: 1px solid #e6e9ef;
    background: #fff;
}

.board-table thead th {
    text-align: left;
    font-weight: 600;
    color: var(--monday-text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--monday-border);
    white-space: nowrap;
    background: #fafbfc;
}

.board-column-header {
    position: relative;
    user-select: none;
    cursor: default;
}

.board-column-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    color: #c5c7d0;
    font-size: 12px;
    letter-spacing: -2px;
    cursor: grab;
    touch-action: none;
    vertical-align: middle;
}

.board-column-drag-handle:hover {
    color: #676879;
}

.board-column-drag-handle:active {
    cursor: grabbing;
}

.board-column-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
    z-index: 2;
}

.board-column-resize-handle:hover,
.board-column-resize-handle.is-resizing {
    background: rgba(80, 52, 255, 0.12);
}

.board-column-header.is-drop-target {
    box-shadow: inset 0 0 0 2px var(--monday-primary);
}

.board-table-monday.is-column-resize-active {
    cursor: col-resize;
    user-select: none;
}

.board-column-header .board-col-title {
    vertical-align: middle;
    cursor: default;
}

.board-column-header.is-dragging {
    opacity: 0.55;
}

.board-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e6e9ef;
    vertical-align: middle;
    cursor: default;
}

/* Células clicáveis (botão esquerdo) — cursor pointer */
.board-table [data-board-person-cell],
.board-table [data-board-client-cell],
.board-table [data-board-status-cell],
.board-table [data-board-priority-cell],
.board-table [data-board-date-cell],
.board-table [data-board-currency-cell],
.board-table [data-board-depends-on-cell],
.board-table .board-option-pill {
    cursor: pointer;
}

/* Campos editáveis inline — cursor text */
.board-table [data-board-item-name],
.board-table [data-board-group-name] {
    cursor: text;
}

.board-table-monday th:not(.board-column-hidden),
.board-table-monday tbody td:not(.board-column-hidden):not([colspan]) {
    width: 1%;
}

.board-group-row td {
    padding: 0;
    border-bottom: 1px solid #e6e9ef;
    background: #f6f7fb;
    position: relative;
}

.board-group-block + .board-group-block > .board-group-row > td {
    border-top: 12px solid #fff;
    box-shadow: inset 0 1px 0 #e6e9ef;
}

.board-group-block.is-dragging {
    opacity: 0.55;
}

.board-group-block.is-drop-target > .board-group-row > td {
    box-shadow: inset 0 3px 0 var(--monday-primary, #0073ea);
}

.board-group-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 24px;
    margin-right: 4px;
    color: #9699a6;
    font-size: 12px;
    letter-spacing: -2px;
    cursor: grab;
    user-select: none;
}

.board-group-drag-handle:active {
    cursor: grabbing;
}

.board-group-header {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 40px;
    padding: 0 12px 0 0;
}

.board-group-toggle-part {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    color: inherit;
}

.board-group-chevron-btn {
    flex-shrink: 0;
}

.board-group-chevron-box {
    width: var(--board-chevron-width);
    height: 24px;
    padding: 0;
    margin-right: 8px;
    justify-content: center;
    border: 1px solid #c5c7d0;
    border-radius: 4px;
    background: #fff;
}

.board-group-chevron-box:hover {
    background: #f6f7fb;
}

.board-group-main-toggle {
    flex: 1;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.board-group-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 10px 12px 10px 0;
}

.board-group-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--board-menu-width);
    flex-shrink: 0;
}

.board-group-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #676879;
    font-size: 16px;
    letter-spacing: 0.08em;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.board-group-menu-btn:hover,
.board-group-menu-btn[aria-expanded="true"] {
    background: #eceef3;
    color: #323338;
}

.board-group-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 20;
    min-width: 220px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.board-group-menu-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--monday-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.board-group-menu-colors {
    margin-bottom: 10px;
}

.board-group-color-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.board-group-color-btn:hover,
.board-group-color-btn.is-active {
    border-color: var(--monday-text);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--monday-text);
}

.board-group-delete-form {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f1f3;
}

.board-group-delete-form .board-group-action {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
}

.board-group-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.board-group-chevron {
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #676879;
    transition: transform 0.15s ease;
}

.board-group-chevron-btn[aria-expanded="false"] .board-group-chevron {
    transform: rotate(-90deg);
}

.board-group-bar {
    width: 5px;
    height: 24px;
    border-radius: 3px;
    flex-shrink: 0;
}

.board-group-title-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.board-group-name {
    font-size: 14px;
    font-weight: 600;
    color: #323338;
    cursor: text;
}

.board-group-name:hover {
    color: #5034ff;
}

.board-group-name-input {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #323338;
    border: 1px solid #5034ff;
    border-radius: 4px;
    padding: 2px 6px;
    background: #fff;
    outline: none;
    min-width: 120px;
    box-shadow: 0 0 0 2px rgba(80, 52, 255, 0.15);
}

.board-group-count {
    font-size: 13px;
    color: #676879;
    font-weight: 400;
}

.board-item-row td {
    background: #fff;
}

.board-item-row .board-col-project {
    padding-left: var(--board-item-indent);
    padding-top: 8px;
    padding-bottom: 8px;
}

.board-item-row:hover td {
    background: #f6f7fb;
}

.board-item-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: none;
}

.board-item-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: #c5c7d0;
    font-size: 12px;
    letter-spacing: -2px;
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
    margin-left: -4px;
}

.board-item-drag-handle:active {
    cursor: grabbing;
}

.board-item-row.is-dragging {
    opacity: 0.45;
}

.board-item-row.is-drop-target td {
    box-shadow: inset 0 2px 0 #5034ff;
}

.board-item-name {
    font-weight: 400;
    font-size: 14px;
    color: #323338;
    line-height: 1.4;
    cursor: text;
    white-space: nowrap;
}

.board-item-name:hover {
    color: #5034ff;
}

.board-item-name-input {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 14px;
    color: #323338;
    border: 1px solid #5034ff;
    border-radius: 4px;
    padding: 2px 6px;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(80, 52, 255, 0.15);
}

.board-context-menu {
    position: fixed;
    z-index: 1300;
    min-width: 180px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.board-context-menu-item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    color: #323338;
    border-radius: 4px;
    cursor: pointer;
}

.board-context-menu-item:hover {
    background: #f6f7fb;
}

.board-context-menu-item.is-active {
    background: #eef0ff;
    font-weight: 600;
}

.board-context-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.board-context-menu-danger {
    color: #c62828;
}

.board-context-menu-danger:hover {
    background: #fde8eb;
}

.board-context-menu-title {
    margin: 0 0 8px;
    padding: 4px 8px 0;
    font-size: 12px;
    font-weight: 700;
    color: #676879;
}

.board-context-menu-section {
    padding: 0 4px 8px;
    border-bottom: 1px solid #f0f1f3;
    margin-bottom: 4px;
}

.board-context-menu-label {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #676879;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.board-context-menu-list {
    max-height: 180px;
    overflow-y: auto;
}

.board-context-menu-list .board-context-menu-item {
    padding-left: 12px;
}

.board-context-menu-muted {
    color: #676879;
}

.board-person-empty {
    color: #676879;
}

.board-option-empty {
    color: #676879;
}

.board-client-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.board-client-dot {
    flex-shrink: 0;
}

.board-client-name {
    font-size: 0.875rem;
}

.board-option-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.board-column-hidden {
    display: none !important;
}

.board-columns-visibility-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}

.board-columns-visibility-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.board-columns-visibility-option:hover {
    background: #f5f6f8;
}

.board-columns-visibility-option input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.board-columns-visibility-option span {
    font-size: 0.9375rem;
    color: #323338;
}

.board-col-start-date,
.board-col-end-date,
.board-col-days {
    text-align: left;
}

.board-col-days {
    text-align: center;
    color: #323338;
}

.board-date-value {
    font-size: 0.875rem;
    white-space: nowrap;
}

.board-date-input {
    width: 100%;
    max-width: 150px;
    padding: 4px 6px;
    border: 1px solid #c5c7d0;
    border-radius: 4px;
    font: inherit;
}

.board-person-pick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 8px;
}

.board-person-pick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.board-person-pick-row.is-active {
    border-color: var(--monday-primary);
    background: #eef0ff;
}

.board-person-pick-row-none {
    padding-left: 10px;
}

.board-person-pick-color {
    flex-shrink: 0;
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c5c7d0;
    cursor: pointer;
}

.board-person-pick-select {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #323338;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 6px 4px;
}

.board-person-pick-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-person-pick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.board-person-pick-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #676879;
    cursor: pointer;
    padding: 0;
}

.board-person-pick-edit:hover {
    background: #f6f7fb;
    color: var(--monday-primary);
}

.board-person-pick-delete {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #c62828;
    cursor: pointer;
    padding: 0;
}

.board-person-pick-delete:hover {
    background: #fde8eb;
    color: #b71c1c;
}

.board-person-color-popover {
    position: fixed;
    z-index: 1200;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.board-person-color-picker-inline {
    gap: 8px;
}

.board-person-pick-empty,
.modal-confirm-message {
    margin: 0;
    color: #676879;
    font-size: 14px;
    line-height: 1.5;
}

.board-item-complete-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #c5c7d0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.board-item-complete-checkbox:hover {
    border-color: #676879;
}

.board-item-complete-checkbox:checked {
    background: #00c875;
    border-color: #00c875;
}

.board-item-complete-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.board-item-name-done {
    text-decoration: line-through;
    color: #676879;
}

.board-item-row.is-saving .board-item-complete-checkbox {
    opacity: 0.6;
    pointer-events: none;
}

.board-col-budget,
.board-col-cost {
    text-align: right;
}

.board-col-depends-on {
    text-align: left;
}

.board-depends-on-name {
    color: #323338;
    font-size: 13px;
}

[data-board-currency-cell] {
    cursor: text;
}

.board-currency-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.board-currency-input {
    min-width: 7rem;
    box-sizing: border-box;
    padding: 4px 8px;
    border: 1px solid var(--monday-primary);
    border-radius: 4px;
    font-size: 13px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.board-summary-currency {
    display: inline-block;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.board-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #579bfc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.board-person-name {
    vertical-align: middle;
}

.board-group-action {
    border: none;
    background: transparent;
    color: var(--monday-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.board-group-action:hover {
    background: #eef0f5;
    color: var(--monday-text);
}

.board-group-action-danger:hover {
    background: #fde8eb;
    color: #c62828;
}

.board-inline-add,
.board-add-column-btn {
    border: none;
    background: transparent;
    color: #5034ff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 0;
}

.board-inline-add:hover,
.board-add-column-btn:hover {
    color: #3727b3;
    background: transparent;
}

.board-add-item-row td,
.board-item-row-empty td {
    background: #fff;
}

.board-add-item-cell,
.board-empty-group {
    padding-left: var(--board-item-indent) !important;
}

.board-add-item-row td {
    padding-top: 4px;
    padding-bottom: 8px;
}

.board-empty-group {
    color: #676879;
    font-size: 13px;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.board-col-add {
    width: 48px;
    text-align: center;
    background: #fafbfc;
}

.board-col-menu-btn {
    border: none;
    background: transparent;
    color: var(--monday-text-muted);
    cursor: pointer;
    margin-left: 4px;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1;
}

.board-col-menu-btn:hover {
    color: var(--monday-text);
}

.board-col-title {
    display: inline-flex;
    align-items: center;
}

.board-cell[data-editable="1"] {
    cursor: pointer;
}

.board-cell.is-editing {
    padding: 4px 8px;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--monday-primary);
}

.board-cell-editor {
    width: 100%;
    border: 1px solid var(--monday-border);
    border-radius: 4px;
    padding: 6px 8px;
    font: inherit;
    background: #fff;
}

.board-timeline-editor {
    display: flex;
    gap: 6px;
}

.board-timeline-editor input {
    flex: 1;
    min-width: 0;
}

.board-col-actions {
    width: 36px;
    text-align: center;
}

.board-item-delete {
    border: none;
    background: transparent;
    color: var(--monday-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

.board-item-row:hover .board-item-delete {
    opacity: 1;
}

.board-item-delete:hover {
    color: #c62828;
}

.board-add-item-row td {
    padding: 4px 12px 10px;
    border-bottom: 1px solid #f0f1f3;
}

.board-view-tab-disabled {
    opacity: 0.45;
}

.dev-board-saving {
    opacity: 0.85;
    pointer-events: none;
}

.board-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1200;
    background: #323338;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--monday-shadow);
}

.board-toast-error {
    background: #c62828;
}

.mstatus {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mstatus-not-started { background: #c4c4c4; color: #333; }
.mstatus-working     { background: #fdab3d; color: #333; }
.mstatus-stuck       { background: #e2445c; color: #fff; }
.mstatus-waiting     { background: #579bfc; color: #fff; }
.mstatus-done        { background: #00c875; color: #fff; }

.board-progress {
    display: inline-block;
    width: 72px;
    height: 8px;
    background: #e6e9ef;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}

.board-progress-bar {
    height: 100%;
    background: var(--monday-primary);
    border-radius: 4px;
}

.board-progress-label {
    font-size: 12px;
    color: var(--monday-text-muted);
    vertical-align: middle;
}

.board-summary-row td {
    background: #fafbfc;
    font-size: 12px;
    color: #676879;
    border-bottom: 1px solid #e6e9ef;
    padding-top: 6px;
    padding-bottom: 6px;
}

.board-summary-label {
    font-weight: 500;
    padding-left: var(--board-item-indent) !important;
}

.board-item-row-empty td {
    background: #fff;
}

.board-summary-budget {
    font-weight: 700;
    color: var(--monday-text);
}

@media (max-width: 640px) {
    .dev-board-type-picker {
        grid-template-columns: 1fr;
    }
}

/* Relatórios / Dashboard */
.reports-filter-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    background: #fff;
}

.reports-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reports-filter-fields .form-group {
    min-width: 160px;
    margin-bottom: 0;
}

.reports-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-kpi-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.reports-kpi-grid-personal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reports-responsible-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-responsible-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f7fb;
    border: 1px solid var(--monday-border);
    font-size: 13px;
}

.reports-responsible-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--monday-primary);
}

.reports-empty {
    padding: 24px;
}

.meeting-minutes-form .form-group-wide {
    flex: 1 1 auto;
}

.meeting-minutes-form .reports-filter-fields {
    flex: 1 1 auto;
}

.meeting-minutes-form #meeting-title {
    min-width: 520px;
    width: 100%;
}

.meeting-minutes-form .reports-filter-actions {
    width: auto;
    margin-left: auto;
}

.meeting-word-preview {
    background: #eef1f8;
    border: 1px solid #dde3ef;
    border-radius: 12px;
    padding: 20px;
}

.meeting-word-page {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d7dbe7;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    border-radius: 4px;
    padding: 36px 42px;
}

.meeting-word-header {
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eceff6;
}

.meeting-word-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.meeting-preview-section {
    margin-bottom: 24px;
}

.meeting-preview-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #8b0000;
    text-decoration: underline;
}

.meeting-preview-list {
    margin: 0;
    padding-left: 20px;
    color: var(--monday-text-muted);
}

.meeting-preview-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.meeting-preview-list strong {
    color: var(--monday-text);
    text-decoration: underline;
}

.meeting-preview-tasks {
    margin-top: 6px;
    margin-left: 16px;
}

.meeting-preview-tasks-label {
    display: block;
    font-weight: 600;
    color: var(--monday-text);
    margin-bottom: 4px;
}

.meeting-preview-tasks ul {
    margin: 0;
    padding-left: 18px;
}

.meeting-preview-tasks li {
    margin-bottom: 4px;
}

.page-reports .page-header {
    margin-bottom: 24px;
}

.reports-period-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--monday-text-muted);
}

.reports-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
}

.reports-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--monday-radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.reports-tab:hover {
    background: #f6f7fb;
    color: var(--monday-text);
}

.reports-tab.is-active {
    background: var(--monday-primary-light);
    color: var(--monday-primary);
}

.reports-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.report-compare-card {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 16px;
}

.report-compare-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.report-funnel-inline {
    margin-bottom: 16px;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.reports-kpi-grid-values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.report-kpi {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.report-kpi-label {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.report-kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--monday-text);
    line-height: 1.1;
}

.report-kpi-indigo .report-kpi-value { color: var(--monday-primary); }
.report-kpi-green .report-kpi-value,
.report-kpi-green-text { color: #00a65a; }
.report-kpi-red .report-kpi-value,
.report-kpi-red-text { color: #e2445c; }
.report-kpi-purple .report-kpi-value { color: #a25ddc; }
.report-kpi-amber .report-kpi-value { color: #c87a00; }

.reports-performance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.report-performance-card {
    background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 18px;
}

.report-performance-label {
    display: block;
    font-size: 12px;
    color: var(--monday-text-muted);
    margin-bottom: 6px;
}

.report-performance-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--monday-text);
    line-height: 1.1;
}

.report-performance-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--monday-text-light);
}

.reports-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.report-chart-card {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 20px;
}

.report-chart-wide {
    grid-column: span 2;
}

.report-chart-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--monday-text);
}

.report-chart-wrap {
    position: relative;
    height: 280px;
}

.report-chart-wrap-donut {
    height: 260px;
}

.report-chart-empty {
    margin: 0;
    padding: 40px 16px;
    text-align: center;
    color: var(--monday-text-muted);
    font-size: 13px;
}

.report-section-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--monday-text);
}

.report-table-section {
    margin-bottom: 28px;
}

.reports-table tbody tr:hover {
    background: var(--monday-primary-light) !important;
}

.report-funnel-section {
    margin-bottom: 20px;
}

.report-funnel {
    background: #fff;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-funnel-row {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.report-funnel-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--monday-text);
}

.report-funnel-bar-wrap {
    height: 28px;
    background: #f0f1f5;
    border-radius: 6px;
    overflow: hidden;
}

.report-funnel-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.report-funnel-row.is-empty .report-funnel-count {
    color: var(--monday-text-light);
}

.report-funnel-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--monday-text);
    text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .calendar-panels { grid-template-columns: 1fr; }
    .calendar-panel-sidebar { order: -1; }
    .calendar-sidebar-card { height: auto; min-height: 0; }
    .calendar-nav-title { font-size: 17px; }
    .calendar-sidebar-day-title { font-size: 14px; }
    .calendar-legend { flex-direction: column; align-items: flex-start; }
    .closed-stats { grid-template-columns: repeat(2, 1fr); }
    .closed-list-head { display: none; }
    .closed-list-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 20px;
    }
    .reports-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .reports-kpi-grid-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-performance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reports-charts { grid-template-columns: 1fr; }
    .report-chart-wide { grid-column: span 1; }
    .reports-compare-grid {
        grid-template-columns: 1fr;
    }

    .reports-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .reports-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .reports-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .page { padding: 22px 20px 32px; }
    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    .detail-actions {
        width: 100%;
    }
    .page-header-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .mobile-topbar {
        display: flex;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 950;
        background: rgba(50, 51, 56, 0.45);
        backdrop-filter: blur(2px);
    }

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

    body.nav-open {
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        width: min(var(--sidebar-width), 88vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
        border-right: 1px solid var(--monday-border);
    }

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

    .sidebar-header-top {
        display: flex;
    }

    .app-main {
        overflow-x: hidden;
        width: 100%;
    }

    .page {
        padding: 16px 14px 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .page-title {
        font-size: 22px;
        line-height: 1.25;
        word-break: break-word;
    }

    .view-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .view-switcher-row {
        flex-direction: column;
        align-items: stretch;
    }

    .entity-search {
        max-width: none;
        width: 100%;
    }

    .responsible-filter {
        margin-left: 0;
        max-width: none;
        width: 100%;
        flex: 1 1 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-card {
        padding: 10px 8px;
    }

    .stat-value {
        font-size: 16px;
    }

    .kanban-board {
        gap: 12px;
        min-height: calc(100vh - 220px);
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .kanban-column {
        flex: 0 0 min(260px, 82vw);
        scroll-snap-align: start;
    }

    .table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 640px;
    }

    .detail-actions .btn {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .breadcrumb {
        flex-wrap: wrap;
        gap: 4px 8px;
        font-size: 13px;
    }

    .panel-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .documents-actions {
        flex-wrap: wrap;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-dialog,
    .modal-dialog-wide {
        max-width: 100%;
        width: 100%;
        max-height: min(92vh, 100dvh);
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-footer {
        flex-wrap: wrap;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .modal-footer .btn {
        flex: 1 1 auto;
    }

    .page-calendar {
        --calendar-row-height: 88px;
        --calendar-grid-height: calc(var(--calendar-row-height) * 6);
    }

    .calendar-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .calendar-day-events {
        gap: 2px;
    }

    .calendar-event-chip,
    .calendar-task-chip {
        font-size: 10px;
        padding: 2px 4px;
    }

    .meeting-minutes-form #meeting-title {
        min-width: 0;
    }

    .meeting-minutes-form {
        flex-direction: column;
        align-items: stretch;
    }

    .meeting-minutes-form .reports-filter-actions {
        margin-left: 0;
        width: 100%;
    }

    .reports-kpi-grid,
    .reports-kpi-grid-values,
    .reports-performance { grid-template-columns: 1fr 1fr; }
    .reports-kpi-grid-compact { grid-template-columns: 1fr 1fr; }
    .report-funnel-row { grid-template-columns: 90px 1fr 32px; }

    .dev-board-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .permissions-matrix-wrap {
        margin: 0 -14px;
        padding: 0 14px;
    }

    .auth-panel {
        padding: 28px 18px;
    }
}

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

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

    .reports-kpi-grid,
    .reports-kpi-grid-values,
    .reports-performance,
    .reports-kpi-grid-compact {
        grid-template-columns: 1fr;
    }

    .report-funnel-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .page-calendar {
        --calendar-row-height: 72px;
    }

    .calendar-weekday,
    .calendar-day-number {
        font-size: 11px;
    }

    .detail-actions .btn {
        flex: 1 1 100%;
    }

    .btn-icon.btn-sm,
    .documents-action-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }

    .stat-icon {
        display: none;
    }

    .kanban-column {
        flex-basis: 88vw;
    }

    .mobile-topbar-brand strong {
        font-size: 14px;
    }
}

/* Login (sem autenticação ativa) */
.auth-body {
    min-height: 100vh;
    background: var(--monday-bg);
}

.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-panel-brand {
    background: linear-gradient(145deg, #6161ff 0%, #4f46e5 55%, #3730a3 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-panel-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    max-width: 380px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.auth-brand-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand-tagline {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.auth-brand-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.82;
}

.auth-panel-form {
    background: #fff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-form-header {
    margin-bottom: 24px;
}

.auth-form-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-form-header p {
    margin: 0;
    color: var(--monday-text-muted);
    font-size: 14px;
}

.auth-notice {
    margin-bottom: 24px;
    padding: 12px 14px;
    border-radius: var(--monday-radius);
    background: #fff8e6;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-error {
    background: #ffe0e6;
    border-color: #f5c6cb;
    color: #c42b48;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-link-muted {
    font-size: 12px;
    font-weight: 600;
    color: var(--monday-text-muted);
    pointer-events: none;
    opacity: 0.6;
}

.auth-remember {
    margin-top: -4px;
}

.auth-form .form-group input:not(:disabled) {
    font-family: var(--font);
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    color: var(--monday-text);
    width: 100%;
}

.auth-form .form-group input:not(:disabled):focus {
    outline: none;
    border-color: var(--monday-primary);
    box-shadow: 0 0 0 3px var(--monday-primary-light);
}

.auth-form .form-group input:disabled {
    background: #f6f7fb;
    color: var(--monday-text-muted);
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
}

.auth-form-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--monday-border);
    text-align: center;
}

.auth-back-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--monday-primary);
}

.auth-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-panel-brand {
        min-height: 220px;
        padding: 32px 24px;
    }

    .auth-brand-title {
        font-size: 26px;
    }

    .auth-brand-desc {
        font-size: 14px;
    }
}

/* ——— Usuários e permissões ——— */

.badge-role-admin   { background: #ededff; color: var(--monday-primary); }
.badge-role-member  { background: #dceeff; color: #0073ea; }
.badge-role-viewer  { background: #f0f1f5; color: #676879; }

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell-avatar,
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--monday-primary-light);
    color: var(--monday-primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-cell strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.permissions-count {
    font-size: 13px;
    color: var(--monday-text-muted);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.profile-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--monday-border);
}

.profile-section-divider {
    height: 1px;
    background: var(--monday-border);
    margin: 8px 0 20px;
}

.profile-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.profile-section-intro {
    margin: 0 0 16px;
}

.profile-password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-password-row .profile-section-title {
    margin-bottom: 4px;
}

.profile-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.profile-username {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--monday-primary);
}

.profile-email {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--monday-text-muted);
}

.profile-aside-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
}

.profile-stats {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.profile-stat dt {
    margin: 0;
    font-size: 13px;
    color: var(--monday-text-muted);
    font-weight: 500;
}

.profile-stat dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--monday-text);
}

.permissions-card {
    margin-top: 0;
}

.permissions-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.permissions-card-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--monday-text-muted);
    max-width: 520px;
}

.permissions-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permissions-legend-item {
    font-size: 11px;
    font-weight: 600;
    color: var(--monday-text-muted);
    background: #f0f1f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.permissions-matrix-wrap {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.permissions-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.permissions-matrix thead th {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--monday-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 10px;
    border-bottom: 1px solid var(--monday-border);
    white-space: nowrap;
}

.permissions-matrix tbody tr {
    border-bottom: 1px solid var(--monday-border);
}

.permissions-matrix tbody tr:last-child {
    border-bottom: none;
}

.permissions-matrix tbody tr:hover {
    background: #fafbfc;
}

.permissions-col-page {
    text-align: left;
    padding: 12px 10px;
    min-width: 180px;
}

.permissions-col-page strong {
    display: block;
    font-weight: 600;
}

.permissions-col-action,
.permissions-col-all {
    text-align: center;
    padding: 8px 10px;
    width: 88px;
}

.permissions-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--monday-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.perm-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.perm-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.perm-check-ui {
    width: 20px;
    height: 20px;
    border: 2px solid #c5c7d0;
    border-radius: 4px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}

.perm-check input:checked + .perm-check-ui {
    background: var(--monday-primary);
    border-color: var(--monday-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.perm-check input:indeterminate + .perm-check-ui {
    background: var(--monday-primary);
    border-color: var(--monday-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.perm-check input:disabled + .perm-check-ui {
    opacity: 0.65;
    cursor: not-allowed;
}

.perm-check input:disabled ~ .perm-check-ui,
.perm-check:has(input:disabled) {
    cursor: not-allowed;
}

.perm-check-all .perm-check-ui {
    border-radius: 50%;
}

.permissions-footnote {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--monday-text-light);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Documents */
.documents-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.documents-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    cursor: pointer;
}

.documents-action-proposal {
    width: auto;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.proposal-pptx-panel {
    max-width: 560px;
}

.proposal-pptx-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--monday-text-muted);
}

.proposal-pptx-actions {
    margin-bottom: 20px;
}

.proposal-pptx-name-form {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e6e9ef;
}

.documents-kind-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    background: transparent;
}

.documents-kind-icon.badge-doc-word,
.documents-kind-icon.badge-doc-presentation {
    background: transparent;
    color: inherit;
}

.documents-action-office {
    background: #fff;
}

.documents-action-office:hover {
    background: #f6f7fb;
}

.documents-item-actions .btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.documents-upload-form,
.documents-create-form {
    margin: 0;
}

.documents-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.documents-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #fff;
}

.documents-item-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.documents-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.documents-item-title {
    font-size: 14px;
    color: var(--monday-text);
}

.documents-item-meta {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.documents-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.documents-delete-form {
    margin: 0;
}

.badge-doc-word {
    background: #e8f1ff;
    color: #2b579a;
}

.badge-doc-presentation {
    background: #fdeee8;
    color: #d24726;
}

.badge-doc-upload {
    background: #eef2f7;
    color: #5f6b7a;
}

.detail-main-single {
    max-width: 960px;
}

.document-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.document-editor-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
    flex-wrap: wrap;
}

.document-editor-title-input {
    flex: 1;
    min-width: 200px;
    font-size: 22px;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--monday-text);
    padding: 4px 0;
}

.document-editor-title-input:focus {
    outline: none;
    border-bottom-color: var(--monday-primary);
}

.document-page-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--monday-text-muted);
    background: #eef1f6;
    border-radius: 999px;
    padding: 4px 10px;
}

.document-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.document-save-status {
    font-size: 12px;
    color: var(--monday-text-muted);
}

.document-save-status.is-saving { color: var(--monday-primary); }
.document-save-status.is-saved { color: #00c875; }
.document-save-status.is-error { color: #e2445c; }

.document-unsaved-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.document-editor-shell-word {
    background: #dce3ec;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    overflow: hidden;
}

.word-editor-toolbar,
.presentation-editor-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--monday-border);
    padding: 6px 8px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.word-editor-canvas {
    display: flex;
    justify-content: center;
    padding: 28px 16px 40px;
    overflow: auto;
    min-height: 70vh;
}

.word-editor-page {
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 26, 45, 0.12);
}

.word-editor-page-a4 {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 18mm;
    box-sizing: border-box;
}

.word-editor-content {
    min-height: calc(297mm - 40mm);
    font-size: 12pt;
    line-height: 1.5;
    font-family: "Times New Roman", Times, "Liberation Serif", serif;
}

.word-editor-content .ql-container,
.presentation-slide-surface .ql-container {
    border: none;
    font-family: inherit;
}

.word-editor-content .ql-editor {
    min-height: calc(297mm - 40mm);
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.word-editor-toolbar .ql-toolbar.ql-snow,
.presentation-editor-toolbar.ql-toolbar.ql-snow,
.ql-toolbar.ql-snow {
    border: none;
}

.presentation-editor-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
    min-height: 640px;
}

.presentation-slides-sidebar {
    background: var(--monday-card);
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.presentation-slides-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.presentation-slides-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.presentation-slides-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 70vh;
}

.presentation-slide-item.is-active .presentation-slide-thumb {
    border-color: var(--monday-primary);
    box-shadow: 0 0 0 2px rgba(97, 97, 255, 0.15);
}

.presentation-slide-thumb {
    width: 100%;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    background: #f7f8fb;
    cursor: pointer;
    text-align: left;
}

.presentation-slide-number {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--monday-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.presentation-slide-thumb-preview {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.presentation-slide-thumb-preview strong {
    font-size: 12px;
    color: var(--monday-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presentation-slide-thumb-preview em {
    font-style: normal;
    font-size: 11px;
    color: var(--monday-text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.presentation-slide-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.presentation-slide-title-input {
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    border: 1px solid var(--monday-border);
    border-radius: var(--monday-radius);
    padding: 10px 12px;
    background: #fff;
}

.presentation-slide-canvas {
    background: #1f2430;
    border-radius: var(--monday-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.presentation-slide-standard {
    width: min(100%, 960px);
    aspect-ratio: 16 / 9;
}

.presentation-slide-canvas .presentation-editor-toolbar {
    width: min(100%, 960px);
    border: 1px solid #d7dbe7;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.presentation-preview-panel {
    grid-column: 1 / -1;
    background: #1f2430;
    border-radius: var(--monday-radius-lg);
    padding: 24px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presentation-preview-stage {
    width: min(100%, 960px);
    aspect-ratio: 16 / 9;
    background: #fff;
    color: var(--monday-text);
    border-radius: var(--monday-radius-lg);
    padding: 48px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    overflow: auto;
}

.presentation-preview-stage h3 {
    margin: 0 0 16px;
    font-size: 28px;
}

.presentation-preview-stage div {
    font-size: 18px;
    line-height: 1.6;
}

.presentation-preview-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.presentation-slide-surface {
    width: min(100%, 960px);
    aspect-ratio: 16 / 9;
    background: #fff;
    border: 1px solid #d7dbe7;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.presentation-slide-surface .ql-container {
    flex: 1;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.presentation-slide-surface .ql-editor {
    flex: 1;
    min-height: 0;
    padding: 36px 44px;
    font-size: 18px;
    line-height: 1.45;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 900px) {
    .documents-item {
        flex-direction: column;
        align-items: stretch;
    }

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

    .word-editor-page-a4 {
        width: 100%;
        min-height: 80vh;
        padding: 24px 20px;
    }

    .word-editor-content,
    .word-editor-content .ql-editor {
        min-height: 70vh;
    }
}
