
        /* Transição suave entre seções */
        .fade-section {
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
        }
        .fade-section.active {
            opacity: 1;
        }
        /* Ripple effect para botões importantes no mobile */
        .ripple {
            position: relative;
            overflow: hidden;
        }
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            transform: scale(0);
            animation: ripple-anim 0.5s linear;
            background: rgba(37, 99, 235, 0.25);
            pointer-events: none;
        }
        @keyframes ripple-anim {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
        /* UX MOBILE: Tabelas, inputs, botões e modais responsivos */
        @media (max-width: 1024px) {
            .sidebar {
                position: fixed !important;
                left: 0;
                top: 0;
                width: 80vw !important;
                min-width: 0 !important;
                max-width: 90vw !important;
                height: 100vh !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch;
                z-index: 50;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(.4,0,.2,1);
                box-shadow: 2px 0 16px rgba(0,0,0,0.12);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            #sidebar-overlay {
                display: block !important;
            }
        }
        @media (max-width: 640px) {
            .sidebar-profile-pic {
                width: 56px;
                height: 56px;
            }
            .aluno-miniatura {
                width: 56px !important;
                height: 56px !important;
                min-width: 56px;
                flex-shrink: 0;
            }
            .content-section {
                padding: 0.5rem !important;
            }
            button, .input-control, input, select, textarea {
                font-size: 1rem !important;
                min-height: 44px !important;
                padding-top: 0.75rem !important;
                padding-bottom: 0.75rem !important;
            }
        }
        /* Tabelas responsivas */
        .overflow-x-auto, .table-responsive {
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        table {
            min-width: 600px;
        }
        @media (max-width: 768px) {
            .overflow-x-auto {
                overflow-x: scroll !important;
                scroll-snap-type: x proximity;
            }
            table {
                min-width: 800px;
            }
        }
        /* Header mobile com scroll horizontal */
        @media (max-width: 1024px) {
            #app-header {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                white-space: nowrap;
            }
            #app-header .flex {
                flex-wrap: nowrap !important;
                min-width: max-content;
            }
        }
        /* Modais centralizados e responsivos */
        .modal-content {
            max-width: 98vw;
            width: 100%;
            box-sizing: border-box;
        }
        @media (max-width: 640px) {
            .modal-content {
                padding: 1rem !important;
                max-width: 99vw !important;
            }
        }
        /* Overlay sempre cobre o fundo no mobile */
        #sidebar-overlay {
            display: none !important;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 40;
            pointer-events: none;
        }
        #sidebar-overlay.active {
            display: block !important;
            pointer-events: auto;
        }
        /* Evitar zoom automático em inputs */
input, select, textarea {
    font-size: 16px;
}
.fo-multi-select {
    min-height: 44px;
    line-height: 1.5;
}
.fo-multi-select[size="1"] {
    height: 44px;
}
.fo-multi-select option[disabled] {
    color: #6b7280;
}
.fo-multi-select.hidden {
    display: none !important;
}
.fo-multi-control {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.fo-multi-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.fo-multi-trigger:hover,
.fo-multi-trigger:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}
body.dark .fo-multi-trigger {
    background: rgba(55, 65, 81, 0.6);
    border-color: rgba(75, 85, 99, 0.8);
    color: #f3f4f6;
}
body.dark .fo-multi-trigger:hover,
body.dark .fo-multi-trigger:focus {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.fo-multi-trigger-icon {
    color: #6b7280;
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}
body.dark .fo-multi-trigger-icon {
    color: #d1d5db;
}
.fo-multi-control.fo-multi-open .fo-multi-trigger-icon {
    transform: rotate(180deg);
}
.fo-multi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 1.5rem;
}
.fo-multi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
}
.fo-multi-chip button {
    border: none;
    background: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    cursor: pointer;
}
.fo-multi-chip button i {
    font-size: 0.65rem;
}
body.dark .fo-multi-chip {
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}
.fo-multi-placeholder {
    font-size: 0.75rem;
    color: #6b7280;
}
body.dark .fo-multi-placeholder {
    color: #9ca3af;
}
.fo-multi-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    width: 100%;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 30;
    padding: 0.5rem;
}
body.dark .fo-multi-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.6);
}
.fo-multi-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.65rem;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-align: left;
}
.fo-multi-option:hover,
.fo-multi-option:focus {
    background: #eff6ff;
    outline: none;
}
.fo-multi-option.is-selected {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}
body.dark .fo-multi-option:hover,
body.dark .fo-multi-option:focus {
    background: rgba(59, 130, 246, 0.15);
}
body.dark .fo-multi-option.is-selected {
    background: rgba(59, 130, 246, 0.25);
    color: #bfdbfe;
}
.fo-multi-option-icon {
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 0.75rem;
}
body.dark .fo-multi-option-icon {
    color: #93c5fd;
}
.fo-multi-option-label {
    flex: 1;
    white-space: normal;
}
.fo-multi-empty {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}
body.dark .fo-multi-empty {
    color: #9ca3af;
}
        :root {
            --cor-primaria: rgb(7 29 73);
            --cor-masculino: #3b82f6; /* Azul discreto */
            --cor-feminino: #ec4899;  /* Rosa discreto */
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f3f4f6; /* bg-gray-100 */
            color: #1f2937; /* text-gray-900 */
        }
.sidebar {
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    background-color: var(--cor-primaria);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
        .sidebar-profile-pic {
            width: 80px; /* Aumentado em 30% de 64px */
            height: 80px; /* Aumentado em 30% de 64px */
        }
        .aluno-miniatura {
            width: 48px;
            height: 48px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .sidebar-item:hover, .submenu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        .sidebar-item.active {
            background-color: rgba(255, 255, 255, 0.2);
        }
        .content-section {
            display: none;
        }
        .content-section.active {
            display: block;
        }
        
        /* Ajuste do menu de Relatórios/Consultas para expandir/colapsar */
        .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        .sidebar-item.expanded .submenu {
            max-height: 500px; /* Suficiente para os submenus */
        }

        /* Classes de Cor de Gênero */
        .text-masculino { color: var(--cor-masculino); }
        .text-feminino { color: var(--cor-feminino); }

        /* Ajustes para o modo Escuro */
        body.dark {
            background-color: #111827; /* bg-gray-900 */
            color: #f3f4f6; /* text-gray-100 */
        }
        .dark .sidebar {
            background-color: #1f2937; /* bg-gray-800 */
        }
        .dark .card, .dark .modal-content {
            background-color: #1f2937;
        }
        .dark input, .dark select, .dark textarea {
            background-color: #374151;
            color: #f3f4f6;
            border-color: #4b5563;
        }
        
        /* Estilo do Menu Dropdown de Perfil (Header) */
        #profile-menu {
            position: absolute;
            top: 100%;
            right: 0;
            z-index: 50;
            min-width: 150px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transform: translateY(10px);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s, transform 0.2s;
        }
        #profile-menu.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        .profile-toggle-container {
            cursor: pointer;
        }

        #login-screen {
            overflow-y: auto;
        }

        #perfil-selection {
            max-height: 70vh;
            overflow-y: auto;
            padding-right: 0.25rem;
        }

        /* Classes ativas para botões Cia/Pel (Claro) */
        .active-view {
            background-color: white !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            color: #1f2937 !important; /* text-gray-900 */
            font-weight: 600;
        }

        /* Classes ativas para botões Cia/Pel (Escuro) */
        .dark-active-view {
             background-color: #374151 !important; /* bg-gray-700 */
             box-shadow: none;
             color: #f3f4f6 !important; /* text-gray-100 */
             font-weight: 600;
        }

        /* Barra de progresso indeterminada para operações de importação/exportação */
        @keyframes ethos-indeterminate {
            0% { left: -40%; width: 40%; }
            50% { left: 20%; width: 60%; }
            100% { left: 100%; width: 40%; }
        }
        .ethos-progress-track {
            position: relative;
            overflow: hidden;
        }
        .ethos-progress-bar {
            position: relative;
            height: 100%;
            animation: ethos-indeterminate 1.2s linear infinite;
        }

        /* Configurações - Campos e Abas */
        .config-tab-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #4b5563;
            background-color: transparent;
            transition: all 0.2s ease;
        }
        .config-tab-btn:hover {
            background-color: rgba(59, 130, 246, 0.08);
            color: #1d4ed8;
        }
        .config-tab-btn.is-active {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: #ffffff;
            box-shadow: 0 10px 18px -12px rgba(37, 99, 235, 0.8);
        }
        .config-tab-btn:focus-visible {
            outline: 2px solid rgba(37, 99, 235, 0.4);
            outline-offset: 2px;
        }
        .dark .config-tab-btn {
            color: #d1d5db;
        }
        .dark .config-tab-btn:hover {
            color: #93c5fd;
            background-color: rgba(37, 99, 235, 0.12);
        }

        .input-label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #4b5563;
            margin-bottom: 0.25rem;
        }
        .input-control {
            width: 100%;
            border-radius: 0.75rem;
            border: 1px solid #d1d5db;
            background-color: #ffffff;
            color: #111827;
            padding: 0.6rem 0.9rem;
            font-size: 0.9375rem;
            line-height: 1.4;
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }
        .input-control:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
            outline: none;
        }
        .input-control::placeholder {
            color: #9ca3af;
        }
        .input-control--readonly {
            background-color: #f3f4f6;
            color: #6b7280;
        }
        .input-control--readonly:focus {
            border-color: #d1d5db;
            box-shadow: none;
        }
        .dark .input-label {
            color: #e5e7eb;
        }
        .dark .input-control {
            background-color: #0f172a;
            border-color: #334155;
            color: #e2e8f0;
        }
        .dark .input-control:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
        }
        .dark .input-control--readonly {
            background-color: #1f2937;
            color: #94a3b8;
        }

        .theme-option {
            position: relative;
            display: block;
            cursor: pointer;
        }
        .theme-option-input {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
        }
        .theme-option-body {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
            border: 1px solid #e5e7eb;
            border-radius: 0.85rem;
            padding: 1rem;
            background-color: #ffffff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }
        .theme-option-body i {
            margin-top: 0.15rem;
        }
        .theme-option-input:checked + .theme-option-body {
            border-color: #2563eb;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
            box-shadow: 0 8px 24px -15px rgba(37, 99, 235, 0.6);
        }
        .dark .theme-option-body {
            background-color: #111827;
            border-color: #1f2937;
        }
        .dark .theme-option-input:checked + .theme-option-body {
            border-color: #60a5fa;
            background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(30, 64, 175, 0.18));
            box-shadow: 0 8px 24px -12px rgba(96, 165, 250, 0.4);
        }

        .notification-option {
            display: flex;
            gap: 0.9rem;
            align-items: flex-start;
            padding: 0.85rem 1rem;
            border-radius: 0.85rem;
            border: 1px solid #e5e7eb;
            background-color: #ffffff;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }
        .notification-option:hover {
            border-color: #2563eb;
            background-color: rgba(37, 99, 235, 0.05);
        }
        .notification-option-input {
            margin-top: 0.35rem;
            accent-color: #2563eb;
        }
        .notification-option-body {
            display: flex;
            gap: 0.65rem;
            align-items: flex-start;
            color: #1f2937;
        }
        .notification-option-body i {
            margin-top: 0.1rem;
        }
        .dark .notification-option {
            border-color: #1f2937;
            background-color: #0f172a;
        }
        .dark .notification-option:hover {
            border-color: #60a5fa;
            background-color: rgba(96, 165, 250, 0.12);
        }
.dark .notification-option-body {
    color: #f3f4f6;
}

/* ---------- Premium visual kit (inspirado no layout clássico) ---------- */

body {
    background-color: #f5f7fb;
    color: #0f172a;
}

#main-content-wrapper {
    background-color: #f5f7fb;
}

.sidebar {
    background: linear-gradient(180deg, #061b44 0%, #05112d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-item > a,
.submenu-item > a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.sidebar-item:hover > a,
.submenu-item:hover > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-item.active > a,
.submenu-item.active > a {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 2px 0 0 #60a5fa;
    color: #ffffff;
    font-weight: 600;
}

#app-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.35);
}

#app-header button,
#app-header .profile-toggle-container {
    border-radius: 12px;
}

.sidebar-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-horizontal {
    max-width: 80%;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
    transition: opacity 0.3s ease;
}

main > .content-section {
    background-color: #f5f7fb;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

main > .content-section .content-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

#dashboard-metrics > div,
#avisos-lista .card,
main > .content-section .card {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.45);
}

.dark body,
.dark #main-content-wrapper {
    background-color: #0b1222;
    color: #e5e7eb;
}

.dark .sidebar {
    background: linear-gradient(180deg, #0b1d49 0%, #050c21 100%);
    border-right-color: rgba(255, 255, 255, 0.04);
}

.dark #app-header {
    background-color: #111c33;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 36px -18px rgba(0, 0, 0, 0.45);
}

.dark #dashboard-metrics > div,
.dark #avisos-lista .card,
.dark main > .content-section .card {
    background-color: #111c33;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 45px -28px rgba(2, 8, 20, 0.65);
}

.dark main > .content-section {
    background-color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.04);
}

.dark main > .content-section .content-section {
    background: transparent;
    box-shadow: none;
}

.dark .sidebar-item.active > a,
.dark .submenu-item.active > a {
    box-shadow: inset 2px 0 0 #38bdf8;
}

/* Sidebar colapsável (desktop) */
#collapse-sidebar-toggle {
    display: none;
}

@media (min-width: 1024px) {
    #collapse-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
        color: #e0e7ff;
        transition: background 0.2s ease;
    }

    #collapse-sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.16);
    }
}

body.sidebar-collapsed #sidebar {
    width: 5.5rem;
}

body.sidebar-collapsed #sidebar .sidebar-logo-horizontal,
body.sidebar-collapsed #sidebar #current-user-info,
body.sidebar-collapsed #sidebar #current-perfil {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.sidebar-collapsed #sidebar .sidebar-item > a,
body.sidebar-collapsed #sidebar .submenu-item > a {
    justify-content: center;
    font-size: 0;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

body.sidebar-collapsed #sidebar .sidebar-item > a span,
body.sidebar-collapsed #sidebar .submenu-item > a span {
    display: none;
}

body.sidebar-collapsed #sidebar .sidebar-item > a i,
body.sidebar-collapsed #sidebar .submenu-item > a i {
    font-size: 1.1rem;
    margin-right: 0;
}

body.sidebar-collapsed #sidebar .submenu {
    display: none !important;
}

/* Sidebar colapsável */
#collapse-sidebar-toggle {
    display: none;
}

@media (min-width: 1024px) {
    #collapse-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 9999px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.06);
        color: #e0e7ff;
        transition: background 0.2s ease;
    }

    #collapse-sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.14);
    }
}

body.sidebar-collapsed #sidebar {
    width: 5.5rem;
}

body.sidebar-collapsed #sidebar .sidebar-logo-horizontal,
body.sidebar-collapsed #sidebar .sidebar-item > a span,
body.sidebar-collapsed #sidebar .sidebar-item > a .menu-label,
body.sidebar-collapsed #sidebar .submenu-item > a span,
body.sidebar-collapsed #sidebar #current-user-info,
body.sidebar-collapsed #sidebar #current-perfil {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.sidebar-collapsed #sidebar .submenu {
    display: none;
}

body.sidebar-collapsed #main-content-wrapper {
    margin-left: 0;
}

/* Tooltip customizado - usar classe .tooltip-custom */
.tooltip-custom {
  position: relative;
}

.tooltip-custom:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  margin-bottom: 0.5rem;
  max-width: 300px;
  white-space: normal;
  text-align: center;
}

.tooltip-custom:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  pointer-events: none;
  margin-bottom: -6px;
}


/* Grade MDE - Scroll horizontal mobile */
#tabela-medidas-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

@media (max-width: 768px) {
  #tabela-medidas-container {
    overflow-x: scroll !important;
  }
  #tabela-medidas-container table {
    min-width: 1000px;
  }
}

/* Impressão da Grade MDE */
@media print {
  /* Ocultar elementos desnecessários */
  #sidebar,
  #app-header,
  #sidebar-overlay,
  .print\:hidden,
  button,
  #filtros-medidas,
  footer {
    display: none !important;
  }
  
  /* Ajustar layout para impressão */
  body {
    background: white !important;
    color: black !important;
  }
  
  #main-content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #exportacao-medidas-disciplinares {
    padding: 10mm !important;
  }
  
  /* Tabela em modo paisagem */
  @page {
    size: A4 landscape;
    margin: 10mm;
  }
  
  /* Garantir que a tabela caiba */
  #tabela-medidas-container {
    overflow: visible !important;
  }
  
  #tabela-medidas-container table {
    width: 100% !important;
    font-size: 9pt !important;
    page-break-inside: auto;
  }
  
  #tabela-medidas-container thead {
    display: table-header-group;
  }
  
  #tabela-medidas-container tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  #tabela-medidas-container th,
  #tabela-medidas-container td {
    padding: 4px !important;
    border: 1px solid #000 !important;
    color: #000 !important;
  }
  
  #tabela-medidas-container thead tr {
    background: #1e40af !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  #tabela-medidas-container thead th {
    color: white !important;
  }
  
  #tabela-medidas-container tbody tr:nth-child(even) {
    background: #f9fafb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
