@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   STYLE.CSS - NOVAGESTÃO - TORRES CARVALHO ENGENHARIA
   ========================================================================== */
:root {
    /* Vobi palette */
    --brand-blue:        #2563EB;
    --brand-blue-dark:   #1D4ED8;
    --brand-blue-light:  #EFF6FF;
    --brand-green:       #16A34A;
    --brand-green-hover: #15803D;
    --brand-green-light: #DCFCE7;
    --brand-red:         #DC2626;
    --brand-red-light:   #FEE2E2;
    --brand-amber:       #D97706;
    --bg-body:           #F3F4F6;
    --bg-white:          #FFFFFF;
    --bg-subtle:         #F9FAFB;
    --text-main:         #111827;
    --text-sub:          #374151;
    --text-light:        #6B7280;
    --text-muted:        #9CA3AF;
    --border-color:      #E5E7EB;
    --border-dark:       #D1D5DB;
    --nav-height:        60px;
    --sidebar-width:     64px;
}

* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

body {
    background-color:var(--bg-body); color:var(--text-main);
    display:flex; flex-direction:column; min-height:100vh; overflow-x:hidden;
}

/* ── NAVBAR ── */
.navbar {
    position:fixed; top:0; left:0; width:100%; height: var(--nav-height);
    background:var(--bg-white); border-bottom:1px solid var(--border-color);
    display:flex; align-items:center; justify-content:space-between;
    padding:0 28px; z-index:1000; box-shadow:0 1px 4px rgba(0,0,0,0.06);
}
.logo-img { height:44px; width:auto; }
.nav-brand { display:flex; gap:10px; align-items:center; }
.nav-right  { display:flex; align-items:center; gap:12px; }

/* ── BOTÕES ── */
.btn-primary {
    background-color:var(--brand-green); color:#fff; border:1px solid var(--brand-green-hover);
    padding:10px 20px; border-radius:7px; font-size:13px; font-weight:600;
    cursor:pointer; display:inline-flex; align-items:center; gap:7px; transition:0.2s;
    white-space:nowrap;
}
.btn-primary:hover { background-color:var(--brand-green-hover); transform:translateY(-1px); }

.btn-outline {
    background:transparent; border:1.5px solid var(--border-color); color:var(--text-main);
    padding:9px 16px; border-radius:7px; font-size:13px; font-weight:500;
    cursor:pointer; transition:0.2s; display:inline-flex; align-items:center; gap:6px;
}
.btn-outline:hover { border-color:var(--brand-blue); color:var(--brand-blue); background:#eff6ff; }
.btn-outline:disabled { opacity:0.4; cursor:not-allowed; }

.btn-danger {
    background:transparent; border:1.5px solid #fee2e2; color:var(--brand-red);
    padding:9px 16px; border-radius:7px; font-size:13px; font-weight:500;
    cursor:pointer; transition:0.2s; display:inline-flex; align-items:center; gap:6px;
}
.btn-danger:hover { background:#fef2f2; }

/* ── PERFIL ── */
.user-profile {
    display:flex; align-items:center; gap:10px;
    border-left:1px solid var(--border-color); padding-left:16px;
}
.avatar-circle {
    width:36px; height:36px; background:var(--brand-blue); color:#fff;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700;
}
.user-info  { display:flex; flex-direction:column; line-height:1.2; }
.user-name  { font-size:13px; font-weight:600; }
.user-role  { font-size:11px; color:var(--text-light); }

/* ── SIDEBAR — Vobi Style ── */
.sidebar {
    position: fixed; top: var(--nav-height); left: 0;
    width: var(--sidebar-width); height: calc(100vh - var(--nav-height));
    background: #FFFFFF;
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 0; z-index: 900;
    box-shadow: 1px 0 4px rgba(0,0,0,.04);
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    position: relative;
    width: 42px; height: 42px;
    margin-bottom: 4px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: #9CA3AF;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nav-item i { font-size: 17px; }
.nav-item:hover {
    background: #F3F4F6;
    color: #374151;
}
.nav-item.active {
    background: #EFF6FF;
    color: #2563EB;
}
.tooltip {
    position: absolute; left: calc(100% + 10px);
    background: #111827; color: #fff;
    padding: 5px 10px; border-radius: 6px; font-size: 11px;
    font-weight: 500; white-space: nowrap;
    opacity: 0; visibility: hidden; z-index: 1100; pointer-events: none;
    transition: opacity .15s, visibility .15s;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.tooltip::before {
    content: '';
    position: absolute; left: -4px; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: #111827;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.nav-item:hover .tooltip { opacity: 1; visibility: visible; }

/* ── MAIN CONTENT ── */
.main-content { margin-left:var(--sidebar-width); margin-top:var(--nav-height); padding:28px; min-height:calc(100vh - var(--nav-height)); }
.page-header-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.page-title    { font-size:22px; font-weight:700; color:var(--text-main); }
.breadcrumbs   { font-size:11px; color:var(--text-light); margin-bottom:3px; }

/* ── TABELAS ── */
.table-container {
    background:#fff; border:1px solid var(--border-color);
    border-radius:10px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,0.04);
}
.custom-table { width:100%; border-collapse:collapse; }
.custom-table th {
    background:#f9fafb; text-align:left; padding:12px 18px;
    font-size:11px; font-weight:700; color:var(--text-light);
    text-transform:uppercase; border-bottom:1px solid var(--border-color);
}
.custom-table td { padding:13px 18px; font-size:13px; border-bottom:1px solid var(--border-color); vertical-align:middle; }
.custom-table tr:last-child td { border-bottom:none; }
.custom-table tr:hover td { background:#f9fafb; }

/* ── BADGES ── */
.badge { padding:4px 10px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.badge-gray   { background:#f3f4f6; color:#4b5563; }
.badge-blue   { background:#eff6ff; color:#2563eb; }
.badge-green  { background:#dcfce7; color:#16a34a; }
.badge-orange { background:#ffedd5; color:#c2410c; }
.badge-red    { background:#fee2e2; color:#dc2626; }
.badge-purple { background:#f5f3ff; color:#7c3aed; }

/* ── MODAL ── */
.modal-overlay {
    position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.5); display:flex; align-items:center; justify-content:center;
    z-index:2000; opacity:0; visibility:hidden; transition:0.2s;
}
.modal-overlay.open { opacity:1; visibility:visible; }
.modal-content {
    background:#fff; width:520px; max-width:95vw; max-height:90vh;
    overflow-y:auto; border-radius:12px; padding:28px;
    box-shadow:0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:22px; border-bottom:1px solid var(--border-color); padding-bottom:14px;
}
.modal-header h3 { font-size:16px; font-weight:700; }
.modal-close { cursor:pointer; color:var(--text-light); font-size:20px; line-height:1; }
.modal-close:hover { color:var(--brand-red); }

/* ── FORMULÁRIOS ── */
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:12px; font-weight:600; margin-bottom:5px; color:#374151; }
.form-control {
    width:100%; padding:10px 12px; border:1.5px solid var(--border-color);
    border-radius:7px; font-size:13px; outline:none; transition:0.2s; background:#fff;
    color:var(--text-main);
}
.form-control:focus { border-color:var(--brand-blue); box-shadow:0 0 0 3px rgba(37,99,235,0.08); }
.form-control[readonly] { background:#f9fafb; color:var(--text-light); cursor:not-allowed; }
.form-row { display:flex; gap:14px; }
.form-row .form-group { flex:1; }
.actions-bar {
    background:#fff; padding:14px 18px; border-radius:10px;
    border:1px solid var(--border-color); display:flex; gap:10px;
    align-items:center; margin-bottom:18px; flex-wrap:wrap;
}

/* ── ABAS ── */
.btn-tab {
    background:none; border:none; border-bottom:2.5px solid transparent;
    padding:8px 14px; color:var(--text-light); font-weight:600;
    cursor:pointer; font-size:13px; transition:0.2s;
}
.btn-tab:hover { color:var(--brand-blue); }
.btn-tab.active { color:var(--brand-blue); border-bottom-color:var(--brand-blue); }

/* ── KANBAN ── */









.card-tag {
    font-size:11px; text-transform:uppercase; font-weight:700; letter-spacing:.3px;
    padding:2px 9px; border-radius:4px; margin-bottom:6px; display:inline-block;
}
.tag-urgente { background:#fee2e2; color:#dc2626; }
.tag-normal  { background:#f3f4f6; color:#9ca3af; }
.card-actions { margin-top:10px; padding-top:10px; border-top:1px solid #f3f4f6; display:flex; justify-content:space-between; }
.btn-move { background:none; border:none; cursor:pointer; font-size:12px; color:#6b7280; padding:4px 6px; border-radius:4px; transition:0.2s; }
.btn-move:hover { color:#2563eb; background:#eff6ff; }

/* ── NOTIFICAÇÕES ── */
.notification-container { position:relative; cursor:pointer; }
.notification-icon { font-size:20px; color:var(--text-light); transition:0.2s; }
.notification-icon:hover { color:var(--brand-blue); }
.badge-notif {
    position:absolute; top:-5px; right:-6px; background:#ef4444; color:#fff;
    font-size:9px; font-weight:bold; height:16px; min-width:16px; padding:0 4px;
    border-radius:10px; display:flex; align-items:center; justify-content:center;
    border:2px solid #fff;
}
.notif-dropdown {
    position:absolute; top:38px; right:-10px; width:310px; background:#fff;
    border:1px solid var(--border-color); box-shadow:0 8px 24px rgba(0,0,0,0.12);
    border-radius:10px; display:none; flex-direction:column; z-index:2000;
}
.notif-dropdown.show { display:flex; }
.notif-header { padding:11px 14px; border-bottom:1px solid var(--border-color); font-weight:700; font-size:13px; background:#f9fafb; border-radius:10px 10px 0 0; }
.notif-list   { max-height:280px; overflow-y:auto; }
.notif-item   { padding:11px 14px; border-bottom:1px solid var(--border-color); font-size:12px; display:flex; align-items:flex-start; gap:9px; transition:0.1s; }
.notif-item:hover  { background:#f3f4f6; }
.empty-notif { padding:20px; text-align:center; color:#9ca3af; font-size:12px; }

/* ── CARDS EMPREITEIROS ── */
.grid-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px,1fr)); gap:18px; }
.contrato-card {
    background:#fff; border:1px solid var(--border-color); border-radius:12px;
    padding:20px; display:flex; flex-direction:column;
    box-shadow:0 1px 4px rgba(0,0,0,0.05); transition:0.2s;
}
.contrato-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); }

/* ── ETAPAS SERVIÇO ── */
.etapa-row { display:flex; gap:8px; align-items:center; margin-bottom:8px; background:#f9fafb; padding:8px 10px; border-radius:7px; }
.etapa-row input { border:1px solid var(--border-color); border-radius:5px; padding:6px 8px; font-size:12px; }

/* ── FOLHA ── */
.folha-card {
    background:#fff; border:1px solid var(--border-color); border-radius:10px;
    padding:16px 20px; display:flex; justify-content:space-between;
    align-items:center; cursor:pointer; transition:0.2s; margin-bottom:10px;
}
.folha-card:hover { border-color:var(--brand-blue); background:#f8fbff; }
.folha-card.selected { border-color:var(--brand-blue); background:#eff6ff; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.folha-status-aberta  { background:#dcfce7; color:#16a34a; }
.folha-status-fechada { background:#f3f4f6; color:#4b5563; }

/* ── IMPRESSÃO ── */
@media print {
    body { background:#fff; }
    .sidebar, .navbar, .page-header-row, .btn-primary, .btn-outline, .btn-danger,
    .actions-bar, .no-print { display:none !important; }
    .main-content { margin:0; padding:0; }
}

/* ── SCROLLBAR PERSONALIZADA ── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:#f3f4f6; }
::-webkit-scrollbar-thumb { background:#d1d5db; border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:#9ca3af; }

/* ── RESPONSIVO BÁSICO ── */
@media (max-width: 768px) {
    .main-content { padding:16px; }
    .form-row { flex-direction:column; gap:0; }
    .grid-cards { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVIDADE COMPLETA — NovaGestão v4
══════════════════════════════════════════════════════ */

/* Sidebar recolhida no mobile */
@media (max-width: 900px) {
    .sidebar {
        width: 56px !important;
    }
    .main-content {
        margin-left: 56px !important;
        padding: 16px !important;
    }
    .nav-item span.tooltip {
        left: 58px !important;
        display: block !important;
        position: absolute !important;
    }
}

/* Layout de tabela scrollável no mobile */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .custom-table {
        min-width: 600px;
    }
    /* Kanban em coluna única no mobile */
    
    /* Detalhe folha em tela cheia */
    div[style*="grid-template-columns:340px"] {
        grid-template-columns: 1fr !important;
    }
    /* Header rows empilhados */
    .page-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .actions-bar {
        flex-direction: column !important;
    }
    /* Navbar responsiva */
    .navbar {
        padding: 0 12px !important;
    }
    /* Modal full width no mobile */
    .modal-content {
        width: 98vw !important;
        max-width: 98vw !important;
        padding: 20px 14px !important;
    }
    /* Cards empreiteiros */
    .grid-cards {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px !important;
    }
    .navbar {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 8px 0 8px !important;
        gap: 6px !important;
    }
    /* Esconde texto do usuário, mantém avatar */
    .user-info { display: none !important; }
    /* Esconde versão */
    .nav-version { display: none !important; }
    /* Logo menor */
    .logo-img { height: 30px !important; }
    /* Texto do sync */
    #tc-realtime-txt { display: none !important; }
    .page-title {
        font-size: 16px !important;
    }
    .btn-primary, .btn-outline, .btn-danger {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    /* Notif dropdown cabe na tela */
    .notif-dropdown {
        right: -60px !important;
        width: 280px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   iOS / iPhone 15+ — Safe Areas, Touch, PWA
══════════════════════════════════════════════════════════════ */

/* Safe area: respeita Dynamic Island e barra home */
.navbar {
    padding-top: max(0px, env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}
.sidebar {
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}
.main-content {
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
    padding-right: max(28px, env(safe-area-inset-right));
}

/* Botões — touch target mínimo 44x44px apenas em dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-outline, .btn-danger,
    .nav-item, .sidebar a,
    .btn-move, .tc-action-btn, .tc-move-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Remove delay de 300ms no tap do iOS */
* {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Scroll suave e nativo no iOS */
.main-content,
.kanban-cards-area,
.modal-content,
#drawer-tarefa-body,
#drawer-tarefa > div:last-child,
.table-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Drawer/modal: evita bounce no fundo do iOS */
#drawer-tarefa {
    overscroll-behavior: none;
}
#drawer-tarefa-painel > div:last-child > div:first-child {
    -webkit-overflow-scrolling: touch;
}

/* Inputs e textareas — evita zoom automático no iOS (mínimo 16px), só em touch */
@media (hover: none) and (pointer: coarse) {
    input, textarea, select {
        font-size: max(16px, 1em) !important;
    }
}

/* Kanban — scroll horizontal nativo no touch */



/* Modal full-screen no mobile com safe area */
@media (max-width: 768px) {
    .modal-overlay.open {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    /* Drawer tarefa full-width no mobile */
    #drawer-tarefa-painel {
        border-radius: 0 !important;
        max-width: 100% !important;
        min-height: 100dvh;
    }
    #drawer-tarefa {
        padding: 0 !important;
        align-items: stretch !important;
    }
    /* Colunas do drawer empilhadas no mobile */
    #drawer-tarefa-painel > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* Sidebar do drawer vai para baixo */
    #drawer-tarefa-painel > div > div:last-child {
        border-left: none !important;
        border-top: 1.5px solid #f1f1f4;
    }
    /* Kanban em coluna única com scroll horizontal entre colunas */
    
    
    /* Barra de filtro scroll horizontal */
    #kanban-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    /* Botões de ação menores ficam maiores */
    .tc-action-btn, .tc-move-btn {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    /* Popover full-width no mobile */
    #popover-etiquetas, #popover-resp, #popover-data {
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        bottom: env(safe-area-inset-bottom);
    }
}

/* iPhone em landscape — respeita safe areas laterais */
@media (max-width: 896px) and (orientation: landscape) {
    .main-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* Barra home do iPhone — evita conteúdo embaixo */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* dvh — altura dinâmica que ignora barra do Safari */
@supports (height: 100dvh) {
    
}

/* ── TC DATE PICKER ─────────────────────────────────────── */
.tc-dp-wrapper {
    display: flex;
    align-items: stretch;
    position: relative;
}
.tc-dp-wrapper input {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    flex: 1;
}
.tc-dp-wrapper button {
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0 11px;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: background .15s;
    flex-shrink: 0;
}
.tc-dp-wrapper button:hover {
    background: #e5e7eb;
    color: #374151;
}
#tc-datepicker-popup {
    animation: tcDpFadeIn .12s ease;
}
@keyframes tcDpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════
   CONTRATOS v2 — Card limpo e premium
════════════════════════════════════════ */
.contrato-card-v2 {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow .18s, border-color .18s;
}
.contrato-card-v2:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    border-color: #d1d5db;
}

/* ════════════════════════════════════════
   ÍCONES UNIFORMES — lixeira e editar
════════════════════════════════════════ */
/* Garante que todos os botões de ação usem o mesmo padrão */
.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: .15s;
    color: #6b7280;
}
.btn-icon-action:hover { background: #f3f4f6; color: #111827; }
.btn-icon-action.danger { border-color: #fee2e2; color: #dc2626; }
.btn-icon-action.danger:hover { background: #fef2f2; color: #b91c1c; }
.btn-icon-action.primary { border-color: #dbeafe; color: #2563eb; }
.btn-icon-action.primary:hover { background: #eff6ff; }

/* ════════════════════════════════════════
   COR UNIFICADA — variáveis de marca
════════════════════════════════════════ */
:root {
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --accent-border: #dbeafe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #b45309;
    --warning-light: #fef3c7;
    --text-main: #111827;
    --text-sub: #6b7280;
    --border-base: #e5e7eb;
}


/* ═══════════════════════════════════════════════════════
   VOBI DESIGN SYSTEM OVERRIDES
   Inter font · Green primary · Blue accent · Clean sidebar
═══════════════════════════════════════════════════════ */

/* Font — NÃO usar !important no * pois quebra o Font Awesome */
body, input, textarea, select, button { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── Navbar ── */
.navbar {
    height: 60px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.logo-img { height: 36px !important; }
.nav-version { display: none !important; }

/* Navbar center: page name + back arrow (injected via JS) */
.navbar-page-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-page-title .back-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    cursor: pointer;
    color: #374151;
    font-size: 13px;
    transition: background .15s;
    text-decoration: none;
}
.navbar-page-title .back-btn:hover { background: #F3F4F6; }

/* ── Sidebar Vobi ── */
.sidebar {
    width: 64px !important;
    background: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
    box-shadow: 1px 0 4px rgba(0,0,0,0.04) !important;
    padding: 10px 0 !important;
    align-items: center !important;
}
.nav-item {
    width: 42px !important; height: 42px !important;
    border-radius: 10px !important;
    color: #9CA3AF !important;
    margin-bottom: 2px !important;
}
.nav-item i { font-size: 17px !important; }
.nav-item:hover { background: #F3F4F6 !important; color: #374151 !important; }
.nav-item.active { background: #EFF6FF !important; color: #2563EB !important; }

/* ── Buttons — Vobi green primary ── */
.btn-primary {
    background-color: #16A34A !important;
    border: 1px solid #15803D !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
}
.btn-primary:hover {
    background-color: #15803D !important;
    box-shadow: 0 2px 8px rgba(22,163,74,.30) !important;
    transform: translateY(-1px) !important;
}

/* ── Tabs active — Vobi green ── */
.btn-tab.active {
    color: #16A34A !important;
    border-bottom-color: #16A34A !important;
}

/* ── Focus ring — blue ── */
.form-control:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10) !important;
}

/* ── Badge blue ── */
.badge-blue { background: #EFF6FF !important; color: #1D4ED8 !important; }
.badge-green { background: #DCFCE7 !important; color: #15803D !important; }

/* ── Kanban columns ── */




/* ── Table hover ── */
.custom-table tbody tr:hover td { background: #F0FDF4 !important; }

/* ── Active nav underline blue ── */
.nav-item.active { box-shadow: none !important; }

/* ── Main content left margin matches sidebar ── */
.main-content { margin-left: 64px !important; }

@media (max-width: 900px) {
    .sidebar { width: 52px !important; }
    .main-content { margin-left: 52px !important; }
}




/* ── Logo maior ── */
.logo-img {
    height: 46px !important;
}

/* ── Navbar altura ajustada para logo maior ── */
.navbar {
    height: 64px !important;
}
:root {
    --nav-height: 64px !important;
}
.sidebar {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
}
.main-content {
    margin-top: 64px !important;
}

/* ── Remove purple from filter bar selects ── */
/* Handled via JS but add CSS fallback */
select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10) !important;
}

/* ── Drawer: all purple → blue ── */
.tc-ab:hover { 
    border-color: #2563eb !important; 
    background: #eff6ff !important; 
    color: #2563eb !important; 
}
.tc-mb.tc-on { 
    background: #eff6ff !important; 
    border-color: #2563eb !important; 
    color: #2563eb !important; 
}
.tc-in:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}



/* Mobile */
@media (max-width: 768px) {
    
}



/* ═══════════════════════════════════════════════════
   KANBAN — COLUNAS PREENCHEM A PÁGINA, CARDS COMPACTOS
═══════════════════════════════════════════════════ */
.kanban-board {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 20px !important;
    height: calc(100vh - 220px) !important;
}
.kanban-column {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    background: #F7F8FA !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
}
.kanban-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 14px 10px !important;
    background: #F7F8FA !important;
    border-bottom: 2px solid #E5E7EB !important;
    border-radius: 12px 12px 0 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    flex-shrink: 0 !important;
}
.kanban-header.todo  { border-bottom-color: #FCD34D !important; }
.kanban-header.doing { border-bottom-color: #2563EB !important; }
.kanban-header.done  { border-bottom-color: #16A34A !important; }
.kanban-header .col-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #374151 !important;
    font-weight: 600 !important;
}
.kanban-header .col-count {
    background: #E9EBF0 !important;
    color: #6B7280 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    border: none !important;
}
.kanban-cards-area {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}
/* Card compacto — só o card, não a coluna */
.kanban-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    cursor: pointer !important;
    display: block !important;
    transition: box-shadow .15s, border-color .15s !important;
}
.kanban-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.10) !important;
    border-color: #D1D5DB !important;
}
.kanban-cards-area.drag-over {
    background: #EFF6FF !important;
    outline: 2px dashed #2563EB !important;
    outline-offset: 2px !important;
    border-radius: 8px !important;
}
@media (max-width: 768px) {
    .kanban-board { height: auto !important; }
    .kanban-column {
        flex: 0 0 82vw !important;
        height: auto !important;
        min-height: 200px !important;
    }
}

/* ── Phosphor Icons na sidebar ── */
.nav-item i[class^="ph"] {
    font-size: 20px !important;
    font-weight: 400 !important;
}
