/* ============================================================
   UDesign Reskin — solo struttura, spaziatura, transizioni
   Nessun colore hardcoded: tutto via CSS custom properties
   ============================================================ */

/* ---- 2. TIPOGRAFIA — intestazioni colonna tabella ---- */
th {
    letter-spacing: 0.3px;
    font-size: 0.72rem;
    /* padding-right preservato per la freccia di ordinamento */
    padding: 8px 22px 8px 14px;
}

/* line-height celle corpo tabella */
td {
    line-height: 1.5;
}

/* ---- 3. TABELLA — padding celle e respiro ---- */
td {
    padding: 10px 14px;
}

/* ---- 4. INPUT / FILTRI — border-radius e focus ring ---- */
.form-control {
    border-radius: 6px;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* select nella filter-row */
.filter-row2 select,
.filter-row2 input.form-control {
    border-radius: 6px;
}

/* ---- 5. TREEVIEW — chevron con animazione invece di +/- ---- */

/* rimuove il box quadrato */
.toggle-icon {
    border: none !important;
    background-color: transparent !important;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    flex-shrink: 0;
}

/* chevron via border trick — si trasforma via rotate */
.toggle-icon::before {
    content: "" !important;
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transition: transform 0.2s ease;
}

/* stato CHIUSO: freccia › (destra) */
.toggle-icon.plus::before {
    transform: rotate(-45deg);
}

/* stato APERTO: freccia ˅ (giù) */
.toggle-icon.minus::before {
    transform: rotate(45deg);
}

/* hover sul nodo — highlight sottile */
.node-label:hover {
    border-radius: 4px;
    padding-left: 3px;
    padding-right: 3px;
}

/* ---- 6. PULSANTI AZIONE (btn-small) ---- */
.btn-small {
    border-radius: 6px !important;
    transition: all 0.15s ease;
}

.btn-square-small {
    border-radius: 6px !important;
}

/* ---- 7. NAVBAR — hover con transizione ---- */
.menu li > a {
    transition: background-color 0.15s ease, opacity 0.15s ease;
    border-radius: 4px;
    padding: 5px 8px;
}

.menu li > a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* voce attiva: indicatore inferiore */
.menu li > a.nav-active {
    border-bottom: 3px solid currentColor;
    font-weight: 600;
    padding-bottom: 2px;
}

/* submenu — border-radius */
.submenu {
    border-radius: 6px;
}

.submenu li a {
    border-radius: 4px;
    transition: background-color 0.12s ease;
}

/* ---- 8. TABS PANNELLO INFERIORE ---- */
.tab-item {
    transition: background-color 0.15s ease;
}

.tab-item.active {
    border-top: 3px solid var(--bg-selected);
    font-weight: 600;
}

/* ---- 9. FOOTER ---- */
.bottom-2 {
    font-size: 0.75rem;
}

/* badge versione pill */
.bottom-right span {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: rgba(254, 243, 199, 0.85);
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.25);
    line-height: 1.6;
}
