:root {
    --navy: #0b1f3a;
    --navy-2: #123a73;
    --ink: #0b1220;
    --muted: #4f5f78;
    --bg: #ffffff;
    --bg-soft: #f5f8fe;
    --line: #e6edf8;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(11, 31, 58, .10);
    --shadow-sm: 0 10px 25px rgba(11, 31, 58, .08);
    --radius: 18px;
    --radius-sm: 14px;
    --max: 1160px;
}
/* Arată lupă când treci cu mouse-ul peste poze clickabile */
[data-lightbox] {
    cursor: zoom-in;
    display: block;
}

.tm-label-card:hover {
    box-shadow: var(--shadow); /* Adaugă o umbră mai pronunțată la hover */
    transition: 0.3s;
}
/* 1. Base & Reset */
.page {
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.page * { box-sizing: border-box; }

.tm-clean-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 44px 18px 80px;
}

.tm-clean-header {
    padding: 6px 0 18px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 24px;
}

.tm-clean-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--navy);
}

.tm-section-title {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 600;
    color: var(--navy);
}

/* Layout partea de sus (2 coloane EGAL IMPARTITE) */
.tm-top-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Aici era 320px 1fr înainte */
    gap: 32px;
    margin: 24px 0 40px;
    align-items: stretch;
}

/* Facem cardurile să ocupe aceeași înălțime, chiar dacă pozele sunt diferite */
.tm-label-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    text-align: center;
    height: 100%; /* Le forțează să fie egale vertical */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-label-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.tm-top-specs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px; /* Aliniază cardurile cu imaginea de etichetă din dreapta */
}

.tm-tech-item {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-tech-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tm-tech-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
}

.tm-tech-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.tm-top-label {
    display: flex;
    flex-direction: column;
}



/* 3. Table Layout */
/* 3. Table Layout (Varianta optimizată pentru 4 coloane) */
.tm-table-wrapper {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.tm-master-table-basic {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px; /* Am șters cei 1400px. Acum nu mai face scroll pe desktop! */
    font-size: 14.5px;
    text-align: center;
}

/* FIX PENTRU HEADER */
.tm-master-table-basic thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--navy-2);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    white-space: nowrap;

    /* Ștergem bordurile nedorite */
    border: none !important;
    border-bottom: 2px solid var(--ink) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.tm-master-table-basic thead th:last-child {
    border-right: none !important;
}

.tm-master-table-basic tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: var(--ink);
    background: #fff;

    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
}

.tm-master-table-basic tbody td:last-child {
    border-right: none !important;
}

/* Grouped rows (rowspan) */
.tm-master-table-basic tbody tr td[rowspan] {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--navy);
    border-right: 2px solid var(--line) !important;
}

.tm-master-table-basic tbody tr:hover td:not([rowspan]) {
    background: rgba(18, 58, 115, .04);
}
/* Column sizing (Primele 2 fixe pentru sticky perfect, restul în procente) */
.tm-master-table-basic .col-nr { width: 60px; min-width: 60px; }
.tm-master-table-basic .col-name { width: 220px; min-width: 220px; text-align: left; font-weight: 600;}
.tm-master-table-basic .col-qty { width: 20%; }
.tm-master-table-basic .col-udi { width: 40%; font-family: monospace; font-size: 14px; }

/* Sticky columns - CORECTAT PENTRU TABELUL BAZIC */
.tm-master-table-basic thead th.col-nr,
.tm-master-table-basic tbody tr td:first-child[rowspan] {
    position: sticky;
    left: 0;
    z-index: 11;
    background: var(--bg-soft);
}

.tm-master-table-basic thead th.col-name,
.tm-master-table-basic tbody td.col-name {
    position: sticky;
    left: 60px; /* Lățimea exactă a primei coloane (col-nr) */
    z-index: 11;
    background: var(--bg-soft);
}

/* Colțul stânga-sus (Intersecția de la Header) */
.tm-master-table-basic thead th.col-nr,
.tm-master-table-basic thead th.col-name {
    z-index: 12;
    background: var(--navy-2); /* Culoarea albastră a header-ului BAZIC */
}

/* Umbra pentru delimitarea zonei sticky la scroll */
.tm-master-table-basic tbody td.col-name,
.tm-master-table-basic thead th.col-name {
    box-shadow: 2px 0 8px rgba(11, 31, 58, 0.1);
}

/* 4. IFU SECTION - DATASHEET STYLE */


.tm-ifu {
    margin-top: 64px;
    max-width: 900px; /* Limitează lățimea pentru ca textul să fie ușor de citit */
}

.tm-ifu-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--line);
}

.tm-ifu-body {
    display: flex;
    flex-direction: column;
    gap: 36px; /* Spațiu generos între cele 4 blocuri de text */
}

.tm-ifu-section h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: var(--navy);
    font-weight: 700;
}

.tm-ifu-subhead {
    margin: 24px 0 8px;
    font-size: 15.5px;
    color: var(--navy-2);
    font-weight: 600;
}

.tm-ifu-section p {
    margin: 0 0 14px;
    font-size: 15px; /* Textul o idee mai mare pentru lizibilitate */
    color: var(--ink);
    line-height: 1.65;
}

.tm-ifu-section ul {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
}

.tm-ifu-section li {
    margin: 6px 0;
}

.tm-ifu-note {
    padding: 12px 16px;
    border-left: 3px solid var(--navy-2);
    background: rgba(18, 58, 115, .04); /* Un fundal foarte subtil doar la zonele de atenție */
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    margin-top: 16px;
    border-radius: 0 4px 4px 0; /* Colțuri rotunjite fin în dreapta */
}

.tm-ifu-cols {
    columns: 2;
    column-gap: 24px;
}

.tm-ifu-plain {
    list-style: none;
    padding-left: 0;
}

.tm-ifu-plain li {
    margin: 8px 0;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 8px;
}

.tm-ifu-plain li:last-child {
    border-bottom: none;
}

/* Responsivitate pentru liste (pe mobil trec pe 1 coloană) */
@media (max-width: 600px) {
    .tm-ifu-cols {
        columns: 1;
    }
}
/* 5. Gallery */
.tm-gallery-dual {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tm-gallery-dual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.tm-gallery-dual img:hover {
    transform: scale(1.01);
}

/* Responsivitate Generală */
@media (max-width: 840px) {
    .tm-top-layout {
        grid-template-columns: 1fr;
    }
    .tm-top-specs {
        margin-top: 0;
    }
    .tm-ifu-document {
        padding: 24px;
    }
    .tm-ifu-doc-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tm-ifu-cols {
        columns: 1;
    }
}
@media (max-width: 768px) {
    .tm-gallery-dual img { height: 300px; }
}