html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Paleta: azul + verde + cinza */
:root {
    --mlt-blue: #0ea5e9;
    --mlt-green: #22c55e;
    --mlt-gray-900: #0f172a;
    --mlt-gray-700: #334155;
    --mlt-gray-200: #e2e8f0;
}

a, .btn-link {
    color: var(--mlt-blue);
}

.btn-primary {
    color: #fff;
    background-color: var(--mlt-blue);
    border-color: var(--mlt-blue);
}

.btn-success {
    background-color: var(--mlt-green);
    border-color: var(--mlt-green);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 165, 233, 0.35);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.mlt-auth-recovery-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.mlt-auth-recovery-card {
    background: rgba(11, 53, 81, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    color: #ffffff;
    max-width: 430px;
    padding: 2rem;
    width: 100%;
}

.mlt-auth-recovery-card h1 {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
    text-align: center;
}

.mlt-auth-recovery-card > p {
    color: #cbd5e1;
    font-size: 0.86rem;
    margin: 0 0 1.4rem;
    text-align: center;
}

.mlt-auth-recovery-card .form-label {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
}

.mlt-auth-recovery-logo {
    border-radius: 12px;
    display: block;
    height: 48px;
    margin: 0 auto 1rem;
    object-fit: cover;
    width: 48px;
}

.mlt-auth-recovery-back {
    color: #bae6fd;
    display: block;
    font-size: 0.82rem;
    margin-top: 1.25rem;
    text-align: center;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.mlt-topbar {
    border-bottom: 1px solid var(--mlt-gray-200);
    background: #fff;
}

.mlt-topbar-shell,
.mlt-topbar-left,
.mlt-topbar-right,
.mlt-topbar-client-select {
    min-width: 0;
}

.mlt-topbar-client-input {
    min-width: 200px;
}

.mlt-sidebar-header {
    background: linear-gradient(135deg, var(--mlt-gray-900), var(--mlt-gray-700));
}

.task-client-accent {
    border-left: 6px solid var(--client-accent, var(--mlt-blue)) !important;
}

.mlt-task-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.mlt-task-toolbar-sticky {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    margin: -0.25rem -0.25rem 0.5rem;
    padding: 0.35rem 0.35rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -24px rgba(15, 23, 42, 0.7);
}

.mlt-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.72rem 1.05rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.55);
}

.mlt-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -20px rgba(15, 23, 42, 0.45);
}

.mlt-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mlt-btn-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 88%, white), var(--client-accent, var(--mlt-blue)));
    color: white;
}

.mlt-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 82%, white), color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 92%, black));
}

.mlt-btn-secondary {
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 10%, white);
    border-color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 24%, white);
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 72%, #0f172a);
}

.mlt-btn-secondary:hover:not(:disabled) {
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, white);
    border-color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 34%, white);
}

.mlt-btn-ghost {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--mlt-gray-700);
}

.mlt-btn-ghost:hover:not(:disabled) {
    background: white;
    border-color: rgba(148, 163, 184, 0.42);
}

.mlt-btn-sm {
    padding: 0.62rem 0.95rem;
    font-size: 0.84rem;
}

.mlt-chip-btn {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.96);
    color: var(--mlt-gray-700);
    border-radius: 999px;
    padding: 0.38rem 0.78rem;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mlt-chip-btn:hover {
    background: white;
    border-color: rgba(100, 116, 139, 0.36);
    color: var(--mlt-gray-900);
    transform: translateY(-1px);
}

.mlt-chip-btn-success {
    background: color-mix(in srgb, var(--mlt-green) 14%, white);
    border-color: color-mix(in srgb, var(--mlt-green) 28%, white);
    color: color-mix(in srgb, var(--mlt-green) 68%, #14532d);
}

.mlt-chip-btn-success:hover {
    background: color-mix(in srgb, var(--mlt-green) 18%, white);
    border-color: color-mix(in srgb, var(--mlt-green) 38%, white);
}

.mlt-chip-btn-danger {
    background: color-mix(in srgb, #ef4444 10%, white);
    border-color: color-mix(in srgb, #ef4444 24%, white);
    color: color-mix(in srgb, #ef4444 72%, #7f1d1d);
}

.mlt-chip-btn-danger:hover {
    background: color-mix(in srgb, #ef4444 14%, white);
    border-color: color-mix(in srgb, #ef4444 34%, white);
}

.mlt-task-order-toggle {
    width: 2rem;
    min-width: 2rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mlt-task-order-btn {
    flex: 1;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(248, 250, 252, 0.92);
    color: rgba(100, 116, 139, 0.9);
    border-radius: 12px;
    font-size: 0.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mlt-task-order-btn:hover:not(:disabled) {
    background: white;
    border-color: rgba(100, 116, 139, 0.34);
    color: var(--mlt-gray-900);
    transform: translateY(-1px);
}

.mlt-task-order-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mlt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    z-index: 1050;
}

.mlt-modal {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--mlt-gray-200);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow-y: auto;
    padding: 16px;
}

.mlt-quick-task-modal {
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

@media (max-height: 760px) {
    .mlt-modal-backdrop {
        align-items: flex-start;
    }
}

.mlt-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1085;
    width: min(420px, calc(100vw - 24px));
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mlt-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 18px 44px -24px rgba(15, 23, 42, 0.58), 0 1px 0 rgba(255,255,255,0.78) inset;
    padding: 0.8rem 0.85rem;
    pointer-events: auto;
}

.mlt-toast-success {
    border: 1px solid rgba(187, 247, 208, 0.92);
    background: rgba(240, 253, 244, 0.98);
    color: #14532d;
}

.mlt-toast-danger {
    border: 1px solid rgba(254, 202, 202, 0.95);
    background: rgba(254, 242, 242, 0.98);
    color: #7f1d1d;
}

.mlt-toast-warning {
    border: 1px solid rgba(253, 230, 138, 0.96);
    background: rgba(255, 251, 235, 0.98);
    color: #78350f;
}

.mlt-toast-info {
    border: 1px solid rgba(186, 230, 253, 0.95);
    background: rgba(240, 249, 255, 0.98);
    color: #0c4a6e;
}

.mlt-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #fff;
}

.mlt-toast-success .mlt-toast-icon {
    background: #16a34a;
    box-shadow: 0 8px 18px -12px rgba(22, 163, 74, 0.9);
}

.mlt-toast-danger .mlt-toast-icon {
    background: #dc2626;
    box-shadow: 0 8px 18px -12px rgba(220, 38, 38, 0.9);
}

.mlt-toast-warning .mlt-toast-icon {
    background: #d97706;
    box-shadow: 0 8px 18px -12px rgba(217, 119, 6, 0.9);
}

.mlt-toast-info .mlt-toast-icon {
    background: #0284c7;
    box-shadow: 0 8px 18px -12px rgba(2, 132, 199, 0.9);
}

.mlt-toast-body {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.mlt-toast-title {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
}

.mlt-toast-success .mlt-toast-title {
    color: #166534;
}

.mlt-toast-danger .mlt-toast-title {
    color: #991b1b;
}

.mlt-toast-warning .mlt-toast-title {
    color: #92400e;
}

.mlt-toast-info .mlt-toast-title {
    color: #075985;
}

.mlt-toast-message {
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}

.mlt-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
}

.mlt-toast-close:hover,
.mlt-toast-close:focus {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    outline: 0;
}

@media (max-width: 520px) {
    .mlt-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .mlt-toast {
        border-radius: 9px;
        padding: 0.72rem;
    }
}

.mlt-task-modal-header {
    min-width: 0;
}

.mlt-task-client-dropdown {
    min-width: 130px;
    max-width: 260px;
    position: relative;
    border-radius: 999px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--task-form-client-color, var(--client-accent, var(--mlt-blue))) 13%, #ffffff), #f8fafc);
    border: 1px solid color-mix(in srgb, var(--task-form-client-color, var(--client-accent, var(--mlt-blue))) 34%, #dbe4ee);
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.65), inset 0 1px 0 rgba(255,255,255,0.82);
    overflow: hidden;
}

.mlt-task-client-dropdown::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--task-form-client-color, var(--client-accent, var(--mlt-blue)));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--task-form-client-color, var(--client-accent, var(--mlt-blue))) 14%, transparent);
    pointer-events: none;
    z-index: 1;
}

.mlt-task-client-dropdown::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    z-index: 1;
}

.mlt-task-client-dropdown .form-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border-radius: 999px;
    border: 0;
    background-color: transparent;
    background-image: none;
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 800;
    height: 32px;
    line-height: 1.15;
    padding-left: 30px;
    padding-right: 28px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.mlt-task-client-dropdown .form-select:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--task-form-client-color, var(--client-accent, var(--mlt-blue))) 18%, transparent);
    outline: 0;
}

.mlt-task-client-dropdown .form-select:disabled {
    color: #475569;
    cursor: default;
    opacity: 1;
}

.mlt-task-client-dropdown:has(.form-select:disabled) {
    background: #f1f5f9;
    border-color: #dbe4ee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

@media (max-width: 520px) {
    .mlt-task-modal-header {
        align-items: flex-start !important;
    }

    .mlt-task-client-dropdown {
        min-width: 0;
        max-width: none;
    }
}

.mlt-task-notes-details {
    border: 1px solid var(--mlt-gray-200);
    border-radius: 8px;
    background: #f8fafc;
    padding: 0;
}

.mlt-task-notes-details summary {
    cursor: pointer;
    padding: 7px 10px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    list-style-position: inside;
}

.mlt-task-notes-details[open] {
    padding: 0 10px 10px;
}

.mlt-task-notes-details[open] summary {
    padding-left: 0;
    padding-right: 0;
}

.mlt-task-group + .mlt-task-group {
    margin-top: 1rem;
}

.mlt-kanban-shell {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 12%, transparent), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.55);
}

.mlt-kanban-client-picker {
    min-width: 220px;
}

.mlt-kanban-client-picker .form-label {
    color: rgba(51, 65, 85, 0.84);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.mlt-kanban-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mlt-kanban-column {
    min-height: 520px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.42);
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mlt-kanban-column.is-drop-target {
    border-color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 46%, white);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, white);
}

.mlt-kanban-column-success {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240, 253, 244, 0.92));
}

.mlt-kanban-column-warning {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(254, 243, 199, 0.92));
}

.mlt-kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mlt-kanban-column-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mlt-gray-900);
}

.mlt-kanban-column-subtitle {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: rgba(51, 65, 85, 0.74);
}

.mlt-kanban-column-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
}

.mlt-kanban-card {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 24px -24px rgba(15, 23, 42, 0.42);
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mlt-kanban-card-description {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mlt-kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -26px rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.34);
}

.mlt-kanban-card.is-dragging {
    opacity: 0.72;
    transform: rotate(-1deg);
    box-shadow: 0 22px 34px -24px rgba(15, 23, 42, 0.46);
}

.mlt-kanban-card-completed {
    background: rgba(248, 250, 252, 0.96);
}

.mlt-kanban-grip {
    color: rgba(100, 116, 139, 0.72);
    letter-spacing: 0.1em;
    user-select: none;
}

.mlt-kanban-empty {
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 18px;
    padding: 1rem;
    color: rgba(51, 65, 85, 0.76);
    background: rgba(248, 250, 252, 0.75);
}

@media (max-width: 991.98px) {
    .mlt-kanban-client-picker {
        min-width: 100%;
    }
}

.mlt-task-date-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--mlt-gray-200);
    color: var(--mlt-gray-700);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mlt-calendar-shell {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 12%, transparent), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.55);
}

.mlt-calendar-toolbar {
    padding-bottom: 0.25rem;
}

.mlt-calendar-client-pill {
    align-items: center;
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 11%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 28%, #e2e8f0);
    border-radius: 999px;
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 72%, #0f172a);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.45rem;
    max-width: min(46vw, 280px);
    min-height: 1.8rem;
    padding: 0.24rem 0.65rem 0.24rem 0.45rem;
}

.mlt-calendar-client-dot {
    background: var(--client-accent, var(--mlt-blue));
    border-radius: 999px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, transparent);
    flex: 0 0 auto;
    height: 0.58rem;
    width: 0.58rem;
}

.mlt-calendar-toolbar-meta {
    justify-content: flex-end;
}

.mlt-calendar-nav {
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.48);
}

.mlt-calendar-nav-btn {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 10%, white);
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 75%, #0f172a);
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mlt-calendar-nav-btn:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 16%, white);
    box-shadow: 0 14px 24px -18px rgba(15, 23, 42, 0.45);
}

.mlt-calendar-title-wrap {
    min-width: 180px;
    padding: 0 0.35rem;
    text-align: center;
}

.mlt-calendar-caption {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(51, 65, 85, 0.72);
}

.mlt-calendar-title {
    font-size: 1.05rem;
    color: var(--mlt-gray-900);
}

.mlt-calendar-title-client {
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 76%, #334155);
    font-size: 0.74rem;
    font-weight: 800;
    margin-top: 0.08rem;
}

.mlt-calendar-subtitle {
    max-width: 360px;
}

.mlt-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.48);
}

.mlt-view-switch-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--mlt-gray-700);
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mlt-view-switch-btn:hover {
    transform: translateY(-1px);
    background: rgba(241, 245, 249, 0.95);
}

.mlt-view-switch-btn.is-active {
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, white);
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 80%, #0f172a);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 18%, white);
}

.mlt-calendar {
    display: grid;
    gap: 0.75rem;
}

.mlt-calendar-weekday {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mlt-gray-700);
    text-transform: uppercase;
    padding: 0.2rem 0.1rem;
}

.mlt-calendar-cell {
    min-height: 180px;
    padding: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px -26px rgba(15, 23, 42, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mlt-calendar-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -28px rgba(15, 23, 42, 0.45);
}

.mlt-calendar-cell.is-outside {
    opacity: 0.62;
    background: rgba(248, 250, 252, 0.7);
}

.mlt-calendar-cell.is-today {
    border-color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 56%, white);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 16%, transparent);
}

.mlt-calendar-cell.is-drag-over {
    outline: 2px dashed var(--client-accent, var(--mlt-blue));
    outline-offset: -5px;
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 8%, white);
}

.mlt-calendar-task {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, white);
    color: var(--mlt-gray-900);
    font-size: 0.82rem;
    line-height: 1.25;
    padding: 0.42rem 0.55rem;
    cursor: grab;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 18%, white);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mlt-calendar-task:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 24%, white),
        0 16px 22px -20px rgba(15, 23, 42, 0.55);
}

.mlt-calendar-task.is-dragging {
    opacity: 0.55;
}

.mlt-calendar-task.is-completed {
    background: color-mix(in srgb, var(--mlt-green) 18%, white);
}

.mlt-calendar-task.is-recurring {
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 24%, white),
        inset 3px 0 0 var(--client-accent, var(--mlt-blue));
}

.mlt-calendar-task.is-projected {
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 8%, white);
    border: 1px dashed color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 42%, white);
    box-shadow: none;
    opacity: 0.92;
}

.mlt-calendar-recurring-tag {
    display: inline-block;
    margin-bottom: 0.2rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 72%, black);
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 12%, white);
}

.mlt-calendar-event {
    border-radius: 12px;
    background: color-mix(in srgb, #f59e0b 18%, white);
    color: var(--mlt-gray-900);
    padding: 0.5rem 0.6rem;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 24%, white);
}

.mlt-trello-board {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.mlt-trello-list {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    padding: 0.75rem;
}

.mlt-trello-list-title {
    align-items: center;
    color: var(--mlt-gray-800);
    display: flex;
    font-size: 0.85rem;
    font-weight: 800;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.mlt-trello-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    color: var(--mlt-gray-900);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mlt-trello-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 16px 24px -22px rgba(15, 23, 42, 0.48);
    color: var(--mlt-gray-900);
    transform: translateY(-1px);
}

.mlt-quick-entry-area {
    min-height: 360px;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.5;
}

.mlt-quick-entry-page {
    padding-top: 0.25rem;
}

.mlt-quick-entry-header h1 {
    font-size: 1.35rem;
    line-height: 1.1;
}

.mlt-quick-entry-header .text-muted {
    font-size: 0.78rem;
    line-height: 1.25;
}

.mlt-quick-entry-page .card-body {
    padding: 0.85rem;
}

.mlt-quick-entry-page .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
}

.mlt-quick-entry-page .form-text {
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

.mlt-quick-entry-page .mlt-quick-client-pill {
    min-height: 2rem;
    padding: 0.34rem 0.58rem;
}

.mlt-quick-entry-page .mlt-quick-entry-area {
    min-height: clamp(220px, 39vh, 310px);
    resize: vertical;
}

.mlt-quick-preview-card h2 {
    font-size: 1rem;
    line-height: 1.2;
}

.mlt-quick-preview-list {
    max-height: clamp(220px, 48vh, 420px);
    overflow: auto;
}

.mlt-quick-preview-list .list-group-item {
    font-size: 0.86rem;
    padding-bottom: 0.42rem !important;
    padding-top: 0.42rem !important;
}

.mlt-quick-client-pill {
    align-items: center;
    background: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 28%, #e2e8f0);
    border-radius: 10px;
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 75%, #0f172a);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.55rem;
    min-height: 2.38rem;
    max-width: 100%;
    padding: 0.45rem 0.7rem;
    width: 100%;
}

.mlt-quick-client-dot {
    background: var(--client-accent, var(--mlt-blue));
    border-radius: 999px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, transparent);
    flex: 0 0 auto;
    height: 0.62rem;
    width: 0.62rem;
}

.mlt-new-task-page h1 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.mlt-new-task-page .card-body {
    padding: 0.95rem;
}

.mlt-new-task-page .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
}

.mlt-new-task-page .form-text {
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

.mlt-new-task-page .mlt-quick-client-pill {
    min-height: 2rem;
    padding: 0.38rem 0.65rem;
}

.mlt-new-task-page textarea.form-control {
    resize: vertical;
}

.mlt-new-task-page .mlt-new-task-description {
    min-height: 2.6rem;
}

.mlt-new-task-page .mlt-new-task-notes {
    min-height: 2rem;
}

.mlt-dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mlt-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.45);
}

.mlt-dashboard-hero-actions {
    min-width: min(100%, 430px);
}

.mlt-dashboard-picker {
    padding: 1rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.4);
}

.mlt-dashboard-picker .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mlt-gray-700);
}

.mlt-dashboard-select {
    min-width: 240px;
    border-radius: 999px;
    min-height: 46px;
}

.mlt-dashboard-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(51, 65, 85, 0.72);
    margin-bottom: 0.35rem;
}

.mlt-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mlt-dashboard-stats.has-admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mlt-stat-card.is-overdue .mlt-stat-value {
    color: #b91c1c;
}

.mlt-stat-card.is-overdue {
    border-color: rgba(254, 202, 202, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.92));
}

.mlt-stat-card.is-billing {
    border-color: rgba(186, 230, 253, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mlt-stat-card.is-billing:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -15px rgba(14, 165, 233, 0.3);
    border-color: #0ea5e9;
}

.mlt-stat-card.is-billing .mlt-stat-value {
    color: #0284c7;
}

.mlt-stat-card {
    padding: 1.3rem 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.42);
}

.mlt-stat-card.is-interactive {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mlt-stat-card.is-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -15px rgba(15, 23, 42, 0.15);
}

.mlt-stat-card.is-overdue.is-interactive:hover {
    border-color: #fca5a5;
    box-shadow: 0 16px 30px -15px rgba(239, 68, 68, 0.25);
}

.mlt-stat-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--mlt-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mlt-stat-value {
    margin-top: 0.55rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--mlt-gray-900);
    line-height: 1;
}

.mlt-stat-meta {
    margin-top: 0.5rem;
    color: rgba(51, 65, 85, 0.78);
    font-size: 0.92rem;
}

.mlt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.mlt-company-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow: 0 14px 30px -28px rgba(15, 23, 42, 0.42);
    border-top: 4px solid var(--client-accent, var(--mlt-blue));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mlt-company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px -30px rgba(15, 23, 42, 0.45);
}

.mlt-company-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mlt-gray-900);
}

.mlt-company-card-meta {
    margin-top: 0.3rem;
    color: rgba(51, 65, 85, 0.72);
    font-size: 0.9rem;
}

.mlt-company-card-value {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 78%, #0f172a);
    line-height: 1;
}

.mlt-company-card-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mlt-company-card-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mlt-company-card-metric-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(51, 65, 85, 0.72);
}

.mlt-company-card-metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--mlt-gray-900);
    line-height: 1;
}

.mlt-company-card-metric-value.is-today {
    color: color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 78%, #0f172a);
}

.mlt-company-card-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: var(--client-accent, var(--mlt-blue));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--client-accent, var(--mlt-blue)) 14%, transparent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.mlt-empty-state {
    padding: 1.25rem 1.3rem;
    border-radius: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: rgba(248, 250, 252, 0.82);
    color: var(--mlt-gray-700);
}

.mlt-complete-details summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
}

.mlt-complete-details summary::-webkit-details-marker {
    display: none;
}

.mlt-inline-complete-form {
    min-width: 260px;
    max-width: 420px;
    padding: 0.75rem;
    border: 1px solid var(--mlt-gray-200);
    border-radius: 10px;
    background: #f8fafc;
}

.mlt-log-entry {
    border-left: 6px solid #dc3545;
}

.mlt-log-stack {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .mlt-kanban-board {
        grid-template-columns: 1fr;
    }

    .mlt-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .mlt-dashboard-hero-actions {
        width: 100%;
    }

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

    .mlt-calendar-toolbar {
        align-items: flex-start !important;
    }

    .mlt-calendar-toolbar-meta {
        justify-content: flex-start;
    }

    .mlt-calendar-subtitle {
        max-width: none;
    }
}

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

    .mlt-topbar {
        display: flex !important;
    }

    .mlt-task-actions {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .mlt-tasks-shell {
        padding: 0.65rem !important;
        border-left-width: 4px !important;
    }

    .mlt-tasks-shell > .d-flex:first-child {
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin-bottom: 0 !important;
    }

    .mlt-tasks-shell h2 {
        font-size: 1rem;
    }

    .mlt-task-actions .mlt-btn {
        width: auto;
        min-height: 34px;
        padding: 0.55rem 0.7rem;
        font-size: 0.78rem;
    }

    .mlt-task-actions .mlt-btn-ghost {
        display: none;
    }

    .mlt-task-filters-desktop {
        display: none;
    }

    .mlt-task-filters-mobile {
        display: block;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 10px;
        background: rgba(248, 250, 252, 0.82);
        padding: 0.45rem 0.6rem;
    }

    .mlt-task-filters-mobile summary {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        list-style: none;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--mlt-gray-700);
    }

    .mlt-task-filters-mobile summary::-webkit-details-marker {
        display: none;
    }

    .mlt-task-filters-mobile summary::after {
        content: "+";
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid rgba(203, 213, 225, 0.9);
        color: var(--mlt-gray-700);
        flex-shrink: 0;
    }

    .mlt-task-filters-mobile[open] summary::after {
        content: "-";
    }

    .mlt-tasks-shell > .mt-3 {
        margin-top: 0.65rem !important;
    }

    .mlt-task-group .list-group-item {
        padding: 0.5rem 0.45rem !important;
        gap: 0.35rem !important;
    }

    .mlt-task-order-toggle {
        display: none !important;
    }

    .mlt-calendar-nav {
        width: 100%;
        justify-content: space-between;
    }

    .mlt-calendar-title-wrap {
        min-width: 0;
        flex: 1;
    }

    .mlt-view-switch {
        width: 100%;
        justify-content: space-between;
    }

    .mlt-view-switch-btn {
        flex: 1;
        padding-inline: 0.75rem;
    }

    .mlt-dashboard-select {
        min-width: 0;
        width: 100%;
    }

    .mlt-dashboard-picker .d-flex.gap-2.flex-wrap {
        width: 100%;
    }

    .mlt-dashboard-picker .mlt-btn {
        width: 100%;
    }

    .mlt-dashboard-shell {
        gap: 0.85rem;
    }

    .mlt-dashboard-hero {
        border-radius: 12px;
        padding: 0.9rem;
    }

    .mlt-dashboard-picker {
        border-radius: 12px;
        padding: 0.8rem;
    }

    .mlt-stat-card,
    .mlt-company-card {
        border-radius: 12px;
        padding: 0.9rem;
    }

    .mlt-stat-value {
        font-size: 1.8rem;
    }

    .mlt-company-card-metrics {
        gap: 0.75rem;
        justify-content: space-between;
    }

    .mlt-company-card-metric-value {
        font-size: 1.35rem;
    }

    .mlt-calendar-shell {
        border-radius: 10px !important;
        padding: 0.75rem !important;
    }

    .mlt-calendar-header-compact > div,
    .mlt-calendar-header-compact .mlt-kanban-client-picker,
    .mlt-calendar-header-compact .mlt-btn {
        width: 100%;
    }

    .mlt-calendar-scroll {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        overflow-x: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    .mlt-calendar-scroll > .mlt-calendar {
        min-width: 620px;
    }

    .flex-grow-1.overflow-auto > table {
        min-width: 420px;
    }
}

@media (min-width: 641px) {
    .mlt-task-filters-mobile {
        display: none;
    }
}

/* --- OVERRIDES E MELHORIAS DE UI --- */

/* Menu Lateral Colapsado no Desktop (mídia query de 641px) */
@media (min-width: 641px) {
    .page.sidebar-collapsed .sidebar .nav-item {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .page.sidebar-collapsed .sidebar .nav-item .nav-link {
        padding: 0.5rem !important;
        justify-content: center !important;
    }
    
    .page.sidebar-collapsed .sidebar .mlt-nav-icon {
        margin-right: 0 !important;
    }
}

/* Espaçamento Compacto para a Lista de Tarefas */
.mlt-task-group .list-group-item {
    padding: 0.45rem 0.75rem !important;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.mlt-task-group .list-group-item:hover {
    background-color: #f8fafc;
}

.mlt-task-row-clickable {
    cursor: pointer;
}

.mlt-task-row-clickable .mlt-task-body {
    cursor: pointer;
}

.mlt-task-description-line {
    display: inline-block;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    max-width: 180px;
}

.mlt-task-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.mlt-task-tags-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

@media (min-width: 400px) {
    .mlt-task-description-line {
        max-width: 240px;
    }
}

@media (min-width: 576px) {
    .mlt-task-description-line {
        max-width: 340px;
    }
}

@media (min-width: 768px) {
    .mlt-task-description-line {
        max-width: 450px;
    }
}

@media (min-width: 992px) {
    .mlt-task-description-line {
        max-width: 600px;
    }
}

@media (min-width: 1200px) {
    .mlt-task-description-line {
        max-width: 750px;
    }
}

@media (max-width: 640px) {
    .mlt-task-summary {
        display: block;
        min-width: 0;
    }

    .mlt-task-description-line {
        display: -webkit-box;
        max-width: 100%;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        line-height: 1.25;
    }

    .mlt-task-tags-line {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        margin-top: 0.25rem;
        padding-bottom: 0.05rem;
        scrollbar-width: none;
    }

    .mlt-task-tags-line::-webkit-scrollbar {
        display: none;
    }

    .mlt-task-tags-line .badge,
    .mlt-task-tags-line span {
        flex: 0 0 auto;
    }
}

.mlt-task-inline-row {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.mlt-task-inline-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mlt-task-row-deleted {
    cursor: default;
}

/* Compactador do Painel de Ações e Ordenação */
.mlt-task-order-toggle {
    width: 1.25rem !important;
    min-width: 1.25rem !important;
    gap: 0.1rem !important;
}

.mlt-task-order-btn {
    border-radius: 4px !important;
    font-size: 0.55rem !important;
    padding: 0 !important;
    height: 13px !important;
    background-color: #f1f5f9 !important;
}

/* Checkbox Circular Premium para Conclusão de Tarefas */
.mlt-task-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    flex-shrink: 0;
    padding: 0;
    margin-top: 2px;
}

.mlt-task-checkbox:hover {
    border-color: var(--mlt-green);
    background-color: color-mix(in srgb, var(--mlt-green) 10%, white);
}

.mlt-task-checkbox.is-completed {
    border-color: var(--mlt-green);
    background-color: var(--mlt-green);
    color: #ffffff;
}

.mlt-task-checkbox svg {
    width: 11px;
    height: 11px;
    stroke-width: 3.5;
    display: none;
}

.mlt-task-checkbox.is-completed svg {
    display: block;
}

.mlt-task-history-preview {
    max-width: 100%;
    overflow: hidden;
}

.mlt-task-history-preview-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Botões Compactos de Ícones (Edit / Delete) */
.mlt-icon-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    width: 28px;
    height: 28px;
}

.mlt-icon-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.mlt-icon-btn-danger:hover {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.mlt-icon-btn-warning:hover {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #fcd34d;
}

.mlt-users-list-card {
    min-width: 0;
    overflow: hidden;
}

.mlt-users-table-wrap {
    max-width: 100%;
}

.mlt-users-table {
    width: 100%;
    table-layout: fixed;
}

.mlt-users-table th,
.mlt-users-table td {
    vertical-align: middle;
}

.mlt-users-table th:first-child {
    width: 14%;
}

.mlt-users-col-email {
    width: 21%;
}

.mlt-users-col-phone {
    width: 15%;
}

.mlt-users-col-status {
    width: 10%;
}

.mlt-users-col-type {
    width: 10%;
}

.mlt-users-col-clients {
    width: 20%;
}

.mlt-users-col-actions {
    width: 88px;
    white-space: nowrap;
}

.mlt-users-cell-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mlt-users-col-actions .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
}

@media (max-width: 1199.98px) {
    .mlt-users-table th:first-child {
        width: 20%;
    }

    .mlt-users-col-email {
        width: 30%;
    }

    .mlt-users-col-clients {
        width: 26%;
    }

    .mlt-users-table .mlt-users-col-phone,
    .mlt-users-table .mlt-users-col-type {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .mlt-users-table {
        font-size: 0.8125rem;
    }

    .mlt-users-table th:first-child {
        width: 26%;
    }

    .mlt-users-col-email {
        width: 30%;
    }

    .mlt-users-col-status {
        width: 16%;
    }

    .mlt-users-col-clients {
        display: none;
    }

    .mlt-users-col-actions {
        width: 78px;
    }
}

/* Pequeno ajuste no tamanho dos filtros */
.mlt-task-group + .mlt-task-group {
    margin-top: 0.75rem !important;
}

.mlt-task-date-divider {
    margin-bottom: 0.3rem !important;
    padding-bottom: 0.25rem !important;
}

/* --- SUPORTE COMPATÍVEL AO MENU COLAPSÁVEL (HTML/CSS CHECKBOX HACK) --- */

.mlt-brand-collapsed {
    display: none !important;
}

.mlt-brand-expanded {
    display: block !important;
}

.chevron-expand {
    display: none !important;
}

.chevron-collapse {
    display: inline-flex !important;
}

.mlt-footer-collapsed {
    display: none !important;
}

.mlt-footer-expanded {
    display: block !important;
}

/* Regras ativadas no desktop quando o checkbox estiver checado */
@media (min-width: 641px) {
    #mlt-sidebar-chk:checked ~ .page .sidebar {
        width: 75px !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-text {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-brand-expanded {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-brand-collapsed {
        display: block !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .chevron-expand {
        display: inline-flex !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .chevron-collapse {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-footer-expanded {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-footer-collapsed {
        display: block !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .nav-item {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .nav-item .nav-link {
        padding: 0.5rem !important;
        justify-content: center !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-icon {
        margin-right: 0 !important;
    }

    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-submenu-links,
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-submenu-caret {
        display: none !important;
    }
}

/* --- FEEDBACK VISUAL DO ARRASTE (DRAG & DROP SORTING) --- */

.list-group-item.mlt-dragging {
    opacity: 0.4 !important;
    border: 1px dashed #cbd5e1 !important;
    background-color: #f8fafc !important;
}

.list-group-item.mlt-drag-over-top {
    border-top: 2px solid var(--mlt-blue, #0ea5e9) !important;
}

.list-group-item.mlt-drag-over-bottom {
    border-bottom: 2px solid var(--mlt-blue, #0ea5e9) !important;
}

/* --- RECONNECT MODAL CUSTOM STYLING --- */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: inherit;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

/* Modal Content Card */
#components-reconnect-modal::before {
    content: "Tentando reconectar ao servidor...";
    display: block;
    background: #ffffff;
    color: #0f172a;
    padding: 2.25rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-weight: 600;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: mlt-pulse 2s infinite ease-in-out;
}

#components-reconnect-modal.components-reconnect-failed::before {
    content: "Não foi possível reconectar. Tentando restabelecer e recarregar a página...";
    color: #ef4444;
}


.mlt-task-date-divider {
    margin-bottom: 0.3rem !important;
    padding-bottom: 0.25rem !important;
}

/* --- SUPORTE COMPATÍVEL AO MENU COLAPSÁVEL (HTML/CSS CHECKBOX HACK) --- */

.mlt-brand-collapsed {
    display: none !important;
}

.mlt-brand-expanded {
    display: block !important;
}

.chevron-expand {
    display: none !important;
}

.chevron-collapse {
    display: inline-flex !important;
}

.mlt-footer-collapsed {
    display: none !important;
}

.mlt-footer-expanded {
    display: block !important;
}

/* Regras ativadas no desktop quando o checkbox estiver checado */
@media (min-width: 641px) {
    #mlt-sidebar-chk:checked ~ .page .sidebar {
        width: 75px !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-text {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-brand-expanded {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-brand-collapsed {
        display: block !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .chevron-expand {
        display: inline-flex !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .chevron-collapse {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-footer-expanded {
        display: none !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-footer-collapsed {
        display: block !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .nav-item {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .nav-item .nav-link {
        padding: 0.5rem !important;
        justify-content: center !important;
    }
    
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-icon {
        margin-right: 0 !important;
    }

    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-submenu-links,
    #mlt-sidebar-chk:checked ~ .page .sidebar .mlt-nav-submenu-caret {
        display: none !important;
    }
}

/* --- FEEDBACK VISUAL DO ARRASTE (DRAG & DROP SORTING) --- */

.list-group-item.mlt-dragging {
    opacity: 0.4 !important;
    border: 1px dashed #cbd5e1 !important;
    background-color: #f8fafc !important;
}

.list-group-item.mlt-drag-over-top {
    border-top: 2px solid var(--mlt-blue, #0ea5e9) !important;
}

.list-group-item.mlt-drag-over-bottom {
    border-bottom: 2px solid var(--mlt-blue, #0ea5e9) !important;
}

/* --- RECONNECT MODAL CUSTOM STYLING --- */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: inherit;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

/* Modal Content Card */
#components-reconnect-modal::before {
    content: "Tentando reconectar ao servidor...";
    display: block;
    background: #ffffff;
    color: #0f172a;
    padding: 2.25rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.1);
    font-weight: 600;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: mlt-pulse 2s infinite ease-in-out;
}

#components-reconnect-modal.components-reconnect-failed::before {
    content: "Não foi possível reconectar. Tentando restabelecer e recarregar a página...";
    color: #ef4444;
}

#components-reconnect-modal.components-reconnect-rejected::before {
    content: "Sessão expirada ou servidor reiniciado. Recarregando página...";
    color: #0f766e;
}

@keyframes mlt-pulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.02); opacity: 1; }
}

/* Botão fechar dos Modais */
.mlt-modal-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.mlt-modal-close-btn:hover {
    background-color: #f1f5f9;
    color: #334155;
    transform: scale(1.08);
}

.mlt-modal-close-btn:active {
    transform: scale(0.92);
}

/* Tamanho de fonte menor para labels do formulário de criar/editar tarefas */
.mlt-modal .form-label {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 0.2rem !important;
}

.mlt-modal .form-check-label {
    font-size: 0.76rem !important;
}

/* --- MOBILE PORTRAIT: NAVEGACAO E TELAS INTERNAS --- */
@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    h1,
    .h1 {
        font-size: 1.35rem !important;
        line-height: 1.18;
    }

    h2,
    .h2 {
        font-size: 1.12rem !important;
        line-height: 1.22;
    }

    h3,
    .h3,
    h4,
    .h4,
    h5,
    .h5 {
        line-height: 1.24;
    }

    .content > .d-flex:first-child,
    article.content > .d-flex:first-child,
    .card-body > .d-flex:first-child,
    section > .d-flex:first-child {
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .content > .d-flex:first-child > .btn,
    .content > .d-flex:first-child > .btn-group,
    article.content > .d-flex:first-child > .btn,
    article.content > .d-flex:first-child > .btn-group {
        width: 100%;
    }

    .card {
        border-radius: 10px !important;
    }

    .card-body {
        padding: 0.85rem !important;
    }

    .btn {
        min-height: 2.55rem;
        white-space: normal;
    }

    .btn-sm {
        min-height: 2.25rem;
    }

    .btn-group > .btn {
        min-height: 2.25rem;
    }

    .form-control,
    .form-select {
        min-height: 2.45rem;
    }

    textarea.form-control {
        min-height: 5.5rem;
    }

    .form-label {
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .row {
        --bs-gutter-x: 0.75rem;
    }

    .table-responsive {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        max-width: calc(100% + 1.5rem);
        overflow-x: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive::after {
        content: "";
        display: block;
        height: 1px;
        min-width: 1px;
    }

    .table-responsive > table {
        min-width: 620px;
    }

    .table-responsive > .table-sm,
    .table-responsive > table.table-sm {
        font-size: 0.78rem;
    }

    .table th,
    .table td,
    table th,
    table td {
        vertical-align: top;
    }

    .mlt-users-table {
        min-width: 540px;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .modal-content {
        border-radius: 10px;
        max-height: calc(100dvh - 1rem);
        overflow: hidden;
    }

    .modal-body {
        max-height: calc(100dvh - 8.5rem) !important;
        overflow-y: auto !important;
        padding: 0.9rem !important;
    }

    .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 0.5rem;
        padding: 0.75rem 0.9rem !important;
    }

    .modal-footer > * {
        margin: 0 !important;
        width: 100%;
    }

    .mlt-modal-backdrop {
        align-items: flex-start;
        padding: 0.5rem;
    }

    .mlt-modal {
        border-radius: 10px;
        max-height: calc(100dvh - 1rem);
        padding: 0.85rem;
    }

    .mlt-modal .d-flex.justify-content-between,
    .mlt-modal .d-flex.align-items-center.justify-content-between {
        align-items: flex-start !important;
    }

    .mlt-modal .btn,
    .mlt-modal button[type="submit"] {
        min-height: 2.5rem;
    }

    .mlt-icon-btn {
        height: 34px;
        width: 34px;
    }

    .input-group-sm > .form-control,
    .input-group-sm > .form-select,
    .input-group-sm > .input-group-text,
    .input-group-sm > .btn {
        min-height: 2.35rem;
    }

    .badge {
        white-space: normal;
    }
}
