/* ============================
   LINES — ESTILO ORIGINAL EXACTO
   ============================ */

#lines h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

#lines .lines-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 6px 0;
    color: var(--accent-color);
}

#lines .table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

#lines .table-custom {
    border-collapse: collapse;
    table-layout: fixed;
    width: auto;
    margin: 0;
    font-family: Arial, sans-serif;
}

#lines .table-custom th,
#lines .table-custom td {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--table-border-color);
    border-bottom: 1px solid var(--table-border-color);
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#lines .table-custom th {
    background-color: var(--table-header-bg);
    color: var(--text-color);
}

#lines .table-custom td {
    font-family: 'Courier New', monospace;
}

#desc .table-container,
#lines .table-container {
    overflow-x: auto;
}

/* ============================================================
   Alignment classes for sample tables
   ============================================================ */

#lines .table-custom th.align-right,
#lines .table-custom td.align-right {
    text-align: right;
}

#lines .table-custom th.align-left,
#lines .table-custom td.align-left {
    text-align: left;
}

#lines .table-custom th.align-center,
#lines .table-custom td.align-center {
    text-align: center;
}

/* ============================================================
   SUMMARY BLOCK — THREE CARDS IN ONE ROW + INVISIBLE TOOLTIPS
   ============================================================ */

#summary {
    width: 100%;
    margin: 0;
    margin-bottom: 32px;
}

.summary-row {
    display: flex;
    gap: 200px;
    flex: 1;
    min-width: 260px;
    margin-top: 16px;
    flex-wrap: nowrap;
}

.summary-card {
    flex: 0.5;
    background-color: var(--card-bg);
    padding-top: 0px;     /* espacio superior */
    padding-bottom: 0px;
    padding-left: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
    height: 200px;
    overflow: auto;
}

.summary-card .indent p.level-0 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-left: 0;
}

.summary-card .indent p.level-0 .metric-label {
    font-weight: 600;
}

.summary-card .indent p.level-1 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-left: 18px;   /* ← ESTE valor controla la indentación */
}

.summary-card h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-color);
}

.summary-card .indent p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 2px;
}

/* Label with tooltip */
.metric-label {
    position: relative;
    cursor: help;
    transition: color 0.2s ease-in-out;
}

.metric-label:hover {
    color: var(--accent-color);
}

/* Tooltip bubble */
.metric-label .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 0;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--table-border-color);
    width: 240px;
    transition: opacity 0.25s ease-in-out;
    font-size: 0.85rem;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.metric-label .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--table-border-color) transparent transparent transparent;
}

.metric-label:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Note under the block */
.summary-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}