/* ============================================================
   Sistema Flucon V03 — Estilos Principais
   ============================================================ */

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

/* ── Variáveis ─────────────────────────────────────────────── */
:root {
    --sidebar-w: 260px;
    --sidebar-bg: #0f1624;
    --sidebar-hover: #1e2d4a;
    --sidebar-active: #1d4ed8;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;

    --topbar-h: 64px;
    --topbar-bg: #ffffff;

    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --card-shadow-hover: 0 8px 25px rgba(0,0,0,.12);

    --blue: #1d4ed8;
    --blue-light: #3b82f6;
    --blue-pale: #eff6ff;
    --orange: #f97316;
    --orange-pale: #fff7ed;
    --green: #16a34a;
    --green-pale: #f0fdf4;
    --red: #dc2626;
    --red-pale: #fef2f2;
    --yellow: #d97706;
    --yellow-pale: #fffbeb;

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;

    --transition: all .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

a { text-decoration: none; color: var(--blue); transition: var(--transition); }
a:hover { color: var(--blue-light); }

/* ── Layout Principal ───────────────────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-body {
    flex: 1;
    padding: 28px 32px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.sidebar-logo .logo-mark {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #fff;
    margin-bottom: 10px;
}

.sidebar-logo .logo-text {
    font-size: 15px; font-weight: 700;
    color: #ffffff;
    letter-spacing: .3px;
}

.sidebar-logo .logo-sub {
    font-size: 11px; color: var(--sidebar-text);
    margin-top: 2px;
}

.sidebar-logo-img {
    display: block;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section {
    padding: 10px 20px 4px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(148,163,184,.5);
}

.nav-item { margin: 2px 10px; }

.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 13.5px; font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    box-shadow: 0 2px 8px rgba(29,78,216,.35);
}

.nav-link i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.nav-badge {
    margin-left: auto;
    background: var(--orange);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 99px;
    min-width: 20px; text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.05);
}

.sidebar-user .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: #fff;
    flex-shrink: 0;
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-level { font-size: 11px; color: var(--sidebar-text); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--card-border);
    display: flex; align-items: center;
    padding: 0 32px;
    gap: 16px;
    position: sticky; top: 0; z-index: 900;
}

.topbar-title {
    flex: 1;
    font-size: 18px; font-weight: 700;
    color: var(--text-primary);
}

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

.btn-icon {
    width: 38px; height: 38px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.notif-dot {
    position: absolute; top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--card-border);
    display: flex; align-items: center; gap: 12px;
    font-weight: 600; font-size: 15px;
}

.card-body { padding: 22px; }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--card-shadow);
    display: flex; align-items: center; gap: 18px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

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

.stat-icon.blue   { background: var(--blue-pale);   color: var(--blue); }
.stat-icon.orange { background: var(--orange-pale);  color: var(--orange); }
.stat-icon.green  { background: var(--green-pale);   color: var(--green); }
.stat-icon.red    { background: var(--red-pale);     color: var(--red); }

.stat-value { font-size: 28px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrapper {
    overflow: visible;
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th {
    background: #f8fafc;
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    vertical-align: middle;
}

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

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 99px;
    letter-spacing: .3px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary); margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-primary);
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
    outline: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px; font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    border: none;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover { background: #1e40af; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,.3); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-warning { background: var(--yellow); color: #fff; }
.btn-warning:hover { background: #b45309; color: #fff; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}
.btn-outline:hover { background: var(--body-bg); color: var(--text-primary); }

.btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}

.page-header-left h1 {
    font-size: 22px; font-weight: 800;
    margin: 0; line-height: 1.2;
}

.page-header-left .breadcrumb-text {
    font-size: 12.5px; color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Fusão do topbar no bloco de título ─────────────────────────
   Onde a página tem o seu próprio .page-header, os controlos globais
   (idioma/notificações/sair) são movidos por JS para .page-header-right,
   evitando a duplicação do título que existia no topbar. */
.page-header-right {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.page-header-right #globalActions {
    margin-left: 4px; padding-left: 10px;
    border-left: 1px solid var(--card-border);
}
/* Esconde o título duplicado do topbar quando existe page-header.
   (regra :has para navegadores modernos; a classe .merged é o fallback via JS) */
.main-content:has(.page-header) .topbar .topbar-title,
.topbar.merged .topbar-title { display: none; }
/* Em ecrã grande, o topbar deixa de ser preciso — mas só se esconde depois
   de o JS ter movido as ações (classe .merged), para nunca perder os controlos. */
@media (min-width: 993px) {
    .topbar.merged { display: none; }
}

/* ── Wizard Steps ───────────────────────────────────────────── */
.wizard-steps {
    display: flex; gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.wizard-step {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    border-right: 1px solid var(--card-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.wizard-step:last-child { border-right: none; }

.wizard-step.active {
    background: var(--blue-pale);
    color: var(--blue);
}

.wizard-step.done {
    background: var(--green-pale);
    color: var(--green);
}

.wizard-step .step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    margin: 0 auto 5px;
    opacity: .8;
}

/* ── Kanban Board ───────────────────────────────────────────── */
.kanban-board {
    display: flex;
    flex-wrap: wrap; /* permite que as colunas quebrem em telas menores */
    gap: 16px;
    overflow-x: hidden; /* desativar rolagem horizontal */
    padding-bottom: 16px;
    align-items: flex-start;
    width: 100%;
}
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    align-items: flex-start;
}

.kanban-col {
    flex: 1 1 250px; /* colunas flexíveis, largura mínima 250px */
    min-width: 250px;
    max-width: 100%;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    margin-bottom: 16px; /* espaço extra quando quebrar linha */
}
    flex-shrink: 0;
    min-width: 290px;
    max-width: 310px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.kanban-col-header {
    padding: 12px 14px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.kanban-col-body {
    flex: 1;
    padding: 8px;
    min-height: 150px;
    overflow-y: auto;
    max-height: calc(100vh - 320px);
}

.kanban-card {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    margin-bottom: 8px;
    cursor: grab;
    border: 1px solid var(--card-border);
    transition: box-shadow .15s ease, transform .15s ease;
}

.kanban-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
    transform: translateY(-2px);
}

.kanban-card:active {
    cursor: grabbing;
}

/* ── Kanban por pessoa (swimlanes) ──────────────────────────── */
.kanban-lanes { display: flex; flex-direction: column; gap: 14px; width: 100%; }

.kanban-lane {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: #f8fafc;
    overflow: hidden;
}
.kanban-lane-head {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 600; font-size: 13px;
}
.kanban-lane-body { display: flex; align-items: stretch; min-height: 120px; }

/* Zona "Soltar aqui para concluir" — vertical, à esquerda da linha */
.kanban-dropzone-v {
    flex: 0 0 54px; width: 54px;
    display: flex; align-items: center; justify-content: center;
    margin: 8px; padding: 6px 2px;
    border: 2px dashed #94a3b8; border-radius: 8px;
    background: #fff; color: #64748b;
    font-size: 10.5px; line-height: 1.3; text-align: center;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.kanban-dropzone-v > span {
    writing-mode: vertical-rl;
    white-space: normal;
}
.kanban-dropzone-v.drag-over {
    border-color: #16a34a; color: #16a34a; background: #f0fdf4;
}

/* Cartões fluem na horizontal dentro da linha da pessoa */
.kanban-lane-cards {
    flex: 1;
    display: flex; gap: 8px; padding: 8px;
    overflow-x: auto; align-items: flex-start;
}
.kanban-lane-cards .kanban-card {
    flex: 0 0 230px; width: 230px;
    margin-bottom: 0;
}

/* ── Gantt ──────────────────────────────────────────────────── */
/* Região de scroll (vertical + horizontal) para o cronograma poder ter
   cabeçalho de datas e linha de carga fixos (sticky) ao rolar. */
.gantt-container { overflow: auto; max-height: 78vh; }

.gantt-table { border-collapse: collapse; min-width: 900px; width: 100%; font-size: 12.5px; }

.gantt-table th {
    background: #f8fafc; padding: 10px 8px;
    border: 1px solid var(--card-border);
    font-weight: 600; font-size: 11px;
    text-align: center; white-space: nowrap;
}

/* Cabeçalho de datas fixo no topo ao rolar verticalmente.
   (box-shadow desenha as arestas, que com border-collapse podem "fugir" ao rolar) */
.gantt-table thead th {
    position: sticky; top: 0; z-index: 6;
    box-shadow: inset 0 -1px 0 var(--card-border);
}

/* Linha "Carga (min)" fixa logo abaixo do cabeçalho de datas.
   O deslocamento (--gantt-head-h) é medido em JS conforme a altura real
   do cabeçalho (varia entre modo normal e compacto). */
.gantt-table tr.gantt-carga td {
    position: sticky; top: var(--gantt-head-h, 44px); z-index: 4;
    box-shadow: inset 0 -1px 0 var(--card-border);
}

.gantt-table td {
    border: 1px solid var(--card-border);
    padding: 0; height: 38px; position: relative;
    vertical-align: middle;
}

.gantt-label { padding: 0 10px; font-weight: 500; white-space: nowrap; background: #fafafa; }

.gantt-bar {
    position: absolute; inset: 4px 3px;
    border-radius: 4px;
    display: flex; align-items: center; padding: 0 8px;
    font-size: 11px; font-weight: 600; color: #fff;
    overflow: hidden; white-space: nowrap;
}

.gantt-bar.normal  { background: var(--blue); }
.gantt-bar.urgente { background: var(--yellow); }
.gantt-bar.critica { background: var(--red); }

/* Realce da coluna do dia atual (verde-claro), em toda a coluna */
.gantt-table td.col-hoje { background: #dcfce7 !important; }
.gantt-table thead th.col-hoje { background: #bbf7d0 !important; color: #166534; }

/* Histórico: dias em que o item só tem tarefas já concluídas (trabalho efetuado) */
.gantt-bar-historico {
    position: absolute; inset: 4px 3px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 0 6px;
    font-size: 11px; font-weight: 600;
    color: #64748b; background: #eef2f6;
    border: 1px dashed #cbd5e1;
    overflow: hidden; white-space: nowrap;
}
.gantt-bar-historico.compact { inset: 4px 1px; padding: 0 2px; font-size: 10px; }

/* Linhas de sub-tarefa (explodir por etapa) */
.gantt-table tr.gantt-row-item td { height: 24px; background: #fbfbfc; }
.gantt-table tr.gantt-row-item .gantt-label { font-size: 11px; font-style: italic; color: #64748b; padding-left: 22px; font-weight: 400; }
.gantt-table tr.gantt-row-etapa td { height: 26px; }
.gantt-table tr.gantt-row-etapa .gantt-label { font-size: 11px; color: #475569; padding-left: 34px; font-weight: 400; }

.gantt-bar-etapa {
    position: absolute; top: 3px; bottom: 3px;
    border-radius: 3px;
    background: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 600; color: #fff;
    overflow: hidden; white-space: nowrap;
}
.gantt-bar-etapa.fechar         { background: #6366f1; }
.gantt-bar-etapa.sistema_piloto { background: #0ea5e9; }
.gantt-bar-etapa.teste          { background: #14b8a6; }
.gantt-bar-etapa.embalagem      { background: #f59e0b; }
.gantt-bar-etapa.expedicao      { background: #64748b; }

/* Etapa já concluída: mostra o histórico esbatido, com marca de check */
.gantt-bar-etapa.concluida {
    opacity: .45;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px);
    justify-content: center; color: #fff;
}

.capacity-bar-wrap {
    background: #e2e8f0;
    border-radius: 99px;
    height: 10px; overflow: hidden;
    margin-top: 4px;
}

.capacity-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .5s ease;
}

/* ── Charts ─────────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1624 0%, #1e2d4a 50%, #0f1624 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%; max-width: 420px;
    backdrop-filter: blur(12px);
}

.login-logo {
    text-align: center; margin-bottom: 32px;
}

.login-logo-img {
    display: block;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
}

.login-logo .logo-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900; color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(29,78,216,.4);
}

.login-logo h1 {
    font-size: 22px; font-weight: 800; color: #fff;
    margin: 0;
}

.login-logo p {
    font-size: 13px; color: rgba(255,255,255,.5);
    margin: 4px 0 0;
}

.login-card .form-label { color: rgba(255,255,255,.7); }

.login-card .form-control {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.login-card .form-control::placeholder { color: rgba(255,255,255,.3); }
.login-card .form-control:focus {
    border-color: var(--blue-light);
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.login-card .btn-primary { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

.login-lang { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.login-lang a { font-size: 12px; color: rgba(255,255,255,.4); padding: 4px 10px; border-radius: 4px; transition: var(--transition); }
.login-lang a:hover, .login-lang a.active-lang { color: #fff; background: rgba(255,255,255,.1); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); font-size: 13.5px; border: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.gap-8  { gap: 8px !important; }
.gap-12 { gap: 12px !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); transition: transform .3s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .page-body { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp .3s ease; }

.spinner-border { width: 20px; height: 20px; border-width: 2px; }

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    @page { size: landscape; margin: 1cm; }
    body { background: #fff !important; font-size: 11px !important; }
    .sidebar, .topbar, form, .btn, .no-print, #globalActions { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-body { padding: 0 !important; }
    .card { border: none !important; box-shadow: none !important; margin-bottom: 20px !important; }
    .card-header { padding: 10px 0 !important; border-bottom: 2px solid #000 !important; }
    .gantt-container, .table-wrapper { overflow: visible !important; max-height: none !important; }
    .gantt-table { width: 100% !important; min-width: 0 !important; }
    /* Ao imprimir, o cabeçalho/carga não devem ficar sticky (evita sobreposições) */
    .gantt-table thead th, .gantt-table tr.gantt-carga td { position: static !important; }
    * { print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }
}
