/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 20px;
    color: #333;
}

#cont_tblIn {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 10px;
}

/* Header */
.cabecera {
    background: #f0f2f5;
    /* padding: 10px 15px; */
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
}

.cabecera .input-line {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    padding: 4px;
}

.input-line input[type="search"] {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #ccc; /* light gray */
    font-size: 13px;
    width: 100%;
    height:26px;
    background-color: #f0f2f5;
}

button#buscarHard {
    background: transparent;
    color: #007bff;
    border: 1px solid #ccc; /* now matches input */
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-size: 13px;
}

button#buscarHard:hover {
    background: #007bff;
    color: #fff;
}

/* Table Grid */
.tbl_g {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    font-size: 13px;
}

.tbl_g_head, .g_row, .tbl_g_foot {
    display: contents;
}

.hTg {
    background: #e9ecef;
    padding: 4px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}
.hTg input.strFltr,
.hTg select.strFltr {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #ccc; /* light gray */
    font-size: 13px;
    width: 100%;
    height:26px;
    background-color:  #f0f2f5;


}
.tTg.tot {
    padding: 4px;
}

.cTg {
    padding: 4px;
    border-bottom: 1px solid #e0e0e0;
    border-left: 1px solid #f3f3f3; /* subtle cell separation */
    background: #fff;
    transition: background 0.2s;
    color: #999;
}

.g_row > .cTg:first-child {
    border-left: none;
}


/* If the current .cTg contains only an svg and is followed by another .cTg with only an svg, remove the right border */
.g_row > .cTg:has(svg) + .cTg:has(svg) {
    border-left: none;
}

div.g_row_sub_table {
	background-color: #a9bdce;
}

.tot, .nReg {
    background: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    align-items: center;
}

/* Even rows */
.g_row:nth-child(even) .cTg {
    background: #f9f9f9;
}

/* Hover effect */
.g_row:hover .cTg {
    background: #f1f1f1;
}

/* Table Footer (Total Row) */
.tbl_g_foot .cTg {
    background: #e9ecef; /* same as header background */
    font-weight: bold;
    color: #333; /* darker font */
    border-top: 2px solid #dee2e6; /* same as header bottom border */
}

/* Icons */
.icomn {
    fill: #666;
    transition: transform 0.2s, fill 0.3s;
    width: 16px;
    height: 16px;
    margin: 0 1px;
}

.icomn:hover {
    transform: scale(1.1);
    fill: #007bff;
}

.cTg select {
    width: 100%;
    padding: 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    font-size: 13px;
    color: #333;
}
/* Inputs inside cells */
.cTg input[type="date"] {
    /* width: 100%; */
    padding: 1px 3px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
}

.cTg input[type="text"] {
    /* width: 100%; */
    padding: 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    font-size: 13px;
    color: #333;
    white-space: normal; /* allow wrapping */
    overflow-wrap: break-word; /* break long words */
    word-break: break-word; /* strong breaking */
}

.cTg input[type="text"]::placeholder,
.cTg input[type="date"]::placeholder {
    color: #bbb;
}

/* Editable cells */
.cTg.editable {
    color: #333;
}

div.g_row:last-child > div.cTg {
    border-bottom: 1px solid #b1b1b1;
}



/* Counter and columns */
.counter {
    font-size: 13px;
    color: #666;
}

.columnasElegidas {
    font-size: 13px;
    color: #333;
}

/* Adjust icons inside table */
.cTg svg.icomn.inline {
    cursor: pointer;
}
