:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --sidebar-bg: #0b0f1a;
    --primary-color: #38bdf8;
    --primary-hover: #0ea5e9;
    --text-color: #f8fafc;
    --text-muted: #f1f5f9;
    /* Ajustado para quase branco para legibilidade máxima */
    --border-color: rgba(255, 255, 255, 0.05);
    --bg-hover: #334155;
    --danger-color: #f43f5e;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 85px;
    --transition-speed: 0.25s;
    --glass-bg: rgba(30, 41, 59, 0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Utilities */
.btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #121212;
    border: none;
    border-radius: 8px;
    /* Mais rounded */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* transição suavizada */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* espaço para o icon */
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 173, 181, 0.2);
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

.btn-success {
    background-color: var(--success-color);
    color: #121212;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #121212;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Data Tables Minimalist */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: width var(--transition-speed);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar.collapsed,
.sidebar.pebble-pro-sidebar-menu-collapse {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.brand-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.sidebar.collapsed .brand-name {
    display: none;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

/* Menu items */
.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border-left: 4px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: rgba(56, 189, 248, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-icon {
    font-size: 18px;
    min-width: 30px;
}

.menu-text {
    white-space: nowrap;
    margin-left: 10px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed .sidebar-menu li a {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .sidebar-menu li.active a {
    border-left: none;
    border-bottom: 2px solid var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed), width var(--transition-speed);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
}

.sidebar.collapsed~.main-content,
.sidebar.pebble-pro-sidebar-menu-collapse~.main-content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Header Navbar */
.top-navbar {
    height: 60px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* impede overflow horizontal */
    gap: 8px;
}

.top-navbar>div:first-child {
    flex-shrink: 0;
    /* botão toggle nunca encolhe */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    /* permite encolher */
    overflow: hidden;
}

.user-profile>div {
    min-width: 0;
    overflow: hidden;
}

.user-profile>div strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.user-profile .btn-outline {
    flex-shrink: 0;
    /* botão Sair nunca some */
    white-space: nowrap;
}

.user-role {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(0, 173, 181, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Content Body */
.content-body {
    padding: 2rem;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Dashboard header flex-wrap para não sair da tela */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* =========================================
   Modal Global
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 500;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 16px;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0 4px;
}

.modal-close:hover {
    color: var(--danger-color);
}

/* =========================================
   Checklist Progress Bar
   ========================================= */
.checklist-progress {
    background: var(--bg-hover);
    border-radius: 20px;
    height: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.checklist-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--warning-color), var(--success-color));
    transition: width 0.4s ease;
    width: 0%;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.checklist-item input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--success-color);
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Kanban Board Styling */
/* =========================================
   KANBAN BOARD 2.0 — MODERN GLASSMORMISM
   ========================================= */

.kanban-board {
    display: flex;
    gap: 1.5rem;
    height: calc(100vh - 180px);
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    align-items: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

/* Custom Scrollbar for Kanban Board */
.kanban-board::-webkit-scrollbar {
    height: 6px;
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: rgba(0, 173, 181, 0.2);
    border-radius: 10px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.kanban-col {
    background-color: var(--sidebar-bg);
    /* Fundo preto/opaco restaurado para performance extrema */
    border-radius: 16px;
    width: 320px;
    min-width: 320px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borda muito sutil */
    /* Removido box-shadow e backdrop-filter pesados */
    transition: transform var(--transition-speed) ease;
    will-change: transform;
    contain: layout paint;
}

.kanban-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-header span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-transform: uppercase;
}

.kanban-badge {
    background: rgba(0, 173, 181, 0.08);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-cards {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 150px;
    transition: background 0.2s ease;
}

/* Card Styling */
.k-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* overflow: hidden; REMOVIDO para evitar corte de botões no rodapé */
    will-change: transform, opacity;
    contain: layout style;
}

.k-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-muted);
    opacity: 0.5;
}

/* Performance Guard: Disable transitions and fix containment during global drag */
body.dragging-active .kanban-board * {
    transition: none !important;
    cursor: grabbing !important;
    user-select: none;
}

body.dragging-active .k-card:not(.dragging) {
    pointer-events: none;
    will-change: auto;
}

.phantom-card {
    contain: strict;
    background: rgba(56, 189, 248, 0.05) !important;
    border: 2px dashed rgba(56, 189, 248, 0.3) !important;
}

/* Priority Accents */
.k-card[data-priority="urgente"]::before {
    background: var(--danger-color);
    opacity: 1;
}

.k-card[data-priority="alta"]::before {
    background: var(--warning-color);
    opacity: 1;
}

.k-card[data-priority="media"]::before {
    background: var(--info-color);
    opacity: 1;
}

.k-card[data-priority="baixa"]::before {
    background: var(--success-color);
    opacity: 1;
}

/* Pointer lock during drag to speed up hit testing */
body.dragging-active .k-card:not(.dragging) {
    pointer-events: none;
}

/* Hover effects - disabled when something is dragging for performance */
body:not(.dragging-active) .k-card:hover {
    background: #252525;
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 173, 181, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.k-card:active {
    cursor: grabbing;
}

.k-card.dragging {
    opacity: 0.9;
    /* Maior opacidade para poupar composição do Alpha Channel na GPU */
    transform: rotate(2deg) scale(0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    /* Sombra mais barata de renderizar */
    border: 1px solid var(--primary-color);
}

/* Syncing Animation (Silent Feedback) */
@keyframes syncPulse {
    0% {
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2);
    }

    50% {
        border-color: rgba(56, 189, 248, 0.6);
        box-shadow: 0 0 10px 2px rgba(56, 189, 248, 0.3);
    }

    100% {
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.2);
    }
}

.k-card.syncing {
    animation: syncPulse 1.5s infinite ease-in-out;
    pointer-events: none;
    opacity: 0.8;
}

.kanban-cards.drag-over {
    background: rgba(0, 173, 181, 0.05);
    border-radius: 0 0 16px 16px;
}

.k-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.k-card-client {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.k-card-date {
    font-size: 0.75rem;
    color: #fff;
    /* Branco para data do card */
    font-weight: 500;
}

.k-actions-wrapper {
    display: flex;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.k-card:hover .k-actions-wrapper {
    opacity: 1;
}

.k-quick-action {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1;
}

.k-quick-action:hover {
    background: var(--primary-color);
    color: #121212;
    transform: scale(1.1);
}

/* Nova classe para o botão Finalizar em Azul Sólido */
.k-quick-action.k-btn-finish {
    background: #007bff !important;
    /* Azul primário sólido */
    color: #ffffff !important;
    opacity: 1 !important;
    /* Garante que não herde opacidade baixa do wrapper */
    border-color: #0056b3 !important;
}

.k-quick-action.k-btn-finish:hover {
    background: #0056b3 !important;
    transform: scale(1.15);
}

.k-btn-finish i {
    color: #ffffff !important;
}

/* Botão WhatsApp em Verde Original */
.k-quick-action.k-btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    border-color: #128C7E !important;
}

.k-quick-action.k-btn-whatsapp:hover {
    background: #128C7E !important;
    transform: scale(1.15);
}

.k-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

.k-empty-state i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Phantom Card (Drag Placeholder) */
.phantom-card {
    background: rgba(56, 189, 248, 0.1) !important;
    border: 2px dashed var(--primary-color) !important;
    border-radius: 12px;
    margin-bottom: 1rem;
    /* No transitions for phantom - must be instant */
    transition: none !important;
    will-change: height;
}

/* Card Entry Animation */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.k-card {
    animation: cardIn 0.3s ease-out backwards;
    will-change: transform, opacity, box-shadow;
}

.k-card:nth-child(1) {
    animation-delay: 0.05s;
}

.k-card:nth-child(2) {
    animation-delay: 0.1s;
}

.k-card:nth-child(3) {
    animation-delay: 0.15s;
}

/* Status Colors for Column Headers (Optional Accent) */
.kanban-col[id="col-wrapper-aberto"] .kanban-header {
    border-top: 3px solid var(--text-muted);
}

.kanban-col[id="col-wrapper-em_andamento"] .kanban-header {
    border-top: 3px solid var(--info-color);
}

.kanban-col[id="col-wrapper-aguardando_peca"] .kanban-header {
    border-top: 3px solid var(--warning-color);
}

.kanban-col[id="col-wrapper-concluido"] .kanban-header {
    border-top: 3px solid var(--success-color);
}

.kanban-col[id="col-wrapper-cancelado"] .kanban-header {
    border-top: 3px solid var(--danger-color);
}

/* Form Elements Consistency */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-hover);
    color: var(--text-color);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 12px;
    display: none;
    margin-top: 5px;
}

.is-invalid~.invalid-feedback {
    display: block;
}

/* Dashboard Grid */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.metric-icon {
    font-size: 32px;
    color: var(--primary-color);
    background: rgba(0, 173, 181, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.metric-info h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.metric-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    /* Tablet: sidebar recolhida por padrão (Pebble-style) */
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar .brand-name,
    .sidebar .menu-text {
        display: none;
    }

    .sidebar .sidebar-header {
        justify-content: center;
        padding: 0;
    }

    .sidebar .sidebar-menu li a {
        justify-content: center;
        padding: 15px 0;
    }

    .sidebar-menu li.active a {
        border-left: none;
        border-bottom: 2px solid var(--primary-color);
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
        width: calc(100% - var(--sidebar-collapsed-width));
    }

    /* Quando usuário expande manualmente no tablet */
    .sidebar.mobile-open {
        width: var(--sidebar-width);
        transform: translateX(0);
        z-index: 1000;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.6);
    }

    .sidebar.mobile-open .brand-name,
    .sidebar.mobile-open .menu-text {
        display: inline-block;
    }

    .sidebar.mobile-open .sidebar-header {
        justify-content: space-between;
        padding: 0 20px;
    }

    .sidebar.mobile-open .sidebar-menu li a {
        justify-content: flex-start;
        padding: 15px 20px;
    }

    .sidebar.mobile-open .sidebar-menu li.active a {
        border-left: 3px solid var(--primary-color);
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        /* Force content width */
    }

    .kanban-board {
        flex-direction: column;
        height: auto;
    }

    .kanban-col {
        width: 100%;
        min-width: 100%;
        margin-bottom: 20px;
        /* Space out kanban col in mobile */
    }

    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .k-card {
        padding: 20px;
        /* Bigger touch target on mobile */
    }

    .k-quick-action {
        padding: 10px 14px;
        /* Larger action buttons */
        font-size: 16px;
    }

    /* Responsive Table to Cards */
    .card table {
        border: 0;
    }

    .card table thead {
        display: none;
    }

    .card table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 12px;
        background: var(--bg-hover);
    }

    .card table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0 !important;
        text-align: right;
    }

    .card table td:last-child {
        border-bottom: 0;
        padding-bottom: 0 !important;
        justify-content: flex-end;
    }

    .card table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 11px;
    }
}

/* =========================================
   KANBAN DRAG OPTIMIZATION (TOTAL GRIP)
   ========================================= */
.k-card {
    user-select: none;
    -webkit-user-drag: element;
}

/* Garante que o clique nos textos e ícones atravesse para o card pai */
.k-card-title,
.k-card-client,
.k-card-date,
.k-card i,
.k-card span,
.k-card small {
    pointer-events: none;
}

/* Botões e links de ação devem continuar clicáveis */
.k-actions-wrapper,
.k-quick-action {
    pointer-events: auto;
}

.k-card:active {
    cursor: grabbing !important;
}