:root {
            --bg-body: #f8fafc;
            --brand-color: rgb(7, 65, 147);
            --accent-color: rgb(7, 65, 147);
            --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
        }

        body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg-body); color: #334155; padding-bottom: 80px; }
        
        .container { 
            width: 98%; max-width: 1400px; margin: 25px auto; 
            background: #ffffff; border-radius: 16px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.05); padding: 25px; 
            border: 1px solid #e2e8f0; 
        }

        .header-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
        #filtro { width: 400px; padding: 10px 18px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
        #filtro:focus { border-color: var(--brand-color); box-shadow: 0 0 0 3px rgba(7, 65, 147, 0.1); }

        .norma-group { margin-bottom: 40px; }
        .norma-title { font-size: 20px; color: var(--brand-color); margin-bottom: 15px; padding-left: 15px; border-left: 5px solid var(--accent-color); display: flex; align-items: center; gap: 12px; }

        /* Estilos da Tabela com Grid e Alinhamentos */
        .table-responsive { width: 100%; overflow-x: auto; border-radius: 10px; border: 1px solid #cbd5e1; box-shadow: var(--card-shadow); }
        .data-table { width: 100%; border-collapse: collapse; background: #ffffff; font-size: 13px; }
        
        .data-table th { 
            background: var(--brand-color); 
            color: #ffffff; 
            padding: 10px 10px; 
            font-weight: 600; 
            text-transform: uppercase; 
            font-size: 11px; 
            letter-spacing: 0.5px; 
            white-space: nowrap; 
            border: 1px solid #05316c; 
            text-align: center; 
        }

        .data-table th:first-child { 
            text-align: left; 
        }

        .data-table th:last-child, 
        .data-table td:last-child {
            width: 1%;
            white-space: nowrap;
        }
        
        .data-table td { 
            padding: 10px 10px; 
            color: #1e293b; 
            white-space: nowrap; 
            border: 1px solid #e2e8f0; 
            text-align: center; 
        }

        .data-table td:first-child { 
            text-align: left; 
        }

        .data-table tbody tr { background: #ffffff; transition: background 0.2s; }
        .data-table tbody tr:nth-child(even) { background: #f8fafc; }
        
        .data-table tbody tr:hover { background: #f1f5f9; }

        /* Badges Modernos para Têmpera */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }
        .badge-sim { background-color: #dcfce7; color: #166534; }
        .badge-nao { background-color: #fef9c3; color: #854d0e; }

        /* Badges Modernos para Tipos de Aço (Forçados na mesma linha) */
        .aco-container {
            display: inline-flex;
            gap: 6px;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
        }

        .badge-carbono,
        .badge-liga,
        .badge-austenitico,
        .badge-martensitico,
        .badge-ferritico {
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        .badge-carbono { background-color: #dcfce7; color: #166534; }
        .badge-liga { background-color: #fee2e2; color: #991b1b; }
        .badge-austenitico { background-color: #f3e8ff; color: #6b21a8; }
        .badge-martensitico { background-color: #ffedd5; color: #c2410c; }
        .badge-ferritico { background-color: #f1f5f9; color: #475569; }

        /* Botão Detalhes mais compacto */
        .btn-detalhes { 
            display: inline-flex; 
            align-items: center; 
            justify-content: center; 
            gap: 4px; 
            padding: 3px 8px; 
            background: transparent; 
            color: var(--brand-color); 
            font-weight: 600; 
            text-decoration: none; 
            border-radius: 6px; 
            font-size: 11px; 
            border: 1px solid #cbd5e1;
            transition: all 0.2s;
        }
        .btn-detalhes:hover { 
            background: #e2e8f0; 
            border-color: var(--brand-color);
            color: var(--brand-color);
        }

        /* RESPONSIVIDADE APENAS PARA DISPOSITIVOS MÓVEIS (Abaixo de 900px) */
        @media (max-width: 900px) {
            body {
                background: #ffffff;
            }

            .container {
                width: 100%;
                margin: 0;
                border-radius: 0;
                padding: 10px;
                border: none;
                box-shadow: none;
                background: transparent;
            }

            .header-section {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                margin-bottom: 20px;
                padding: 15px;
                background: #f8fafc;
                border-radius: 12px;
                border: 1px solid #e2e8f0;
            }

            .header-section h2 {
                font-size: 17px;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            #filtro {
                width: 100%;
                padding: 12px 15px;
                font-size: 15px;
                background: #ffffff;
            }

            .norma-group {
                margin-bottom: 25px;
            }

            .norma-title {
                font-size: 16px;
                padding-left: 12px;
                border-left-width: 4px;
                margin-bottom: 12px;
            }

            .table-responsive {
                border: none;
                box-shadow: none;
                background: transparent;
                overflow-x: visible;
                border-radius: 0;
            }

            .data-table, .data-table thead, .data-table tbody, .data-table tr, .data-table th {
                display: block;
                width: 100%;
            }

            .data-table thead {
                display: none;
            }

            .data-table td {
                display: none;
            }

            .data-table td:first-child,
            .data-table td:nth-child(2),
            .data-table td:last-child {
                display: block;
                border: none;
                white-space: normal;
            }

            .data-table tbody tr {
                background: #ffffff;
                border: 1px solid #cbd5e1;
                border-radius: 14px;
                margin-bottom: 12px;
                padding: 14px 16px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.05);
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;
                gap: 8px;
            }

            .data-table tbody tr:nth-child(even) {
                background: #ffffff;
            }

            .data-table td:first-child {
                text-align: left;
                padding: 0;
                font-size: 19px;
                color: var(--brand-color);
                font-weight: 700;
                flex: 1 1 auto;
            }

            .data-table td:nth-child(2) {
                text-align: left;
                padding: 0;
                font-size: 13px;
                color: #64748b;
                flex: 0 1 auto;
                margin-left: 8px;
            }

            .data-table td:first-child::before,
            .data-table td:nth-child(2)::before {
                display: none;
            }

            .data-table td:last-child {
                display: flex;
                width: 100%;
                justify-content: flex-end;
                padding-top: 8px;
                border-top: 1px dashed #e2e8f0;
                margin-top: 4px;
            }

            .btn-detalhes {
                width: 100%;
                padding: 9px;
                font-size: 13px;
                justify-content: center;
                background: var(--brand-color);
                color: #ffffff;
                border: none;
                border-radius: 8px;
                box-shadow: 0 2px 5px rgba(7, 65, 147, 0.2);
            }

            .btn-detalhes:hover {
                background: #05316c;
                color: #ffffff;
            }
        }