/* TOOLTIP SISTEMA – MED-OS */
/* Copertura: #sala-lista-tooltip (lista ordine sala) + #card-tooltip (fumetto appuntamento) */

/* ── TOOLTIP LISTA ORDINE SALA ── */
#sala-lista-tooltip {
    position: fixed;
    z-index: 10000;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(22,125,135,0.12);
    border: 1.5px solid #e0e0e0;
    padding: 10px 14px 12px;
    min-width: 240px;
    max-width: 320px;
    font-size: 0.8em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    line-height: 1.5;
}

#sala-lista-tooltip.visible {
    opacity: 1;
    pointer-events: auto;
}

.slt-header {
    font-size: 0.78em;
    font-weight: 700;
    color: #167D87;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 5px;
}

.slt-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 0;
    border-bottom: 1px solid #f5f6f7;
}

.slt-row:last-child { border-bottom: none; }

.slt-num  { font-weight: 900; color: #167D87; min-width: 16px; font-size: 0.85em; }
.slt-ora  { color: #7f8c8d; font-size: 0.85em; min-width: 52px; }
.slt-paz  { color: #2c3e50; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slt-prest { color: #95a5a6; font-size: 0.78em; }

.slt-icon-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    color: #95a5a6;
    transition: color 0.15s;
}
.slt-icon-btn:hover { color: #167D87; }

/* ── FUMETTO TOOLTIP APPUNTAMENTO ── */
#card-tooltip {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(22,125,135,0.12);
    border: 1.5px solid #e0e0e0;
    padding: 12px 16px 14px 16px;
    min-width: 200px;
    max-width: 280px;
    font-size: 0.82em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    line-height: 1.5;
}

#card-tooltip.visible { opacity: 1; }

#card-tooltip::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #fff;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}

.tt-row         { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.tt-row:last-child { margin-bottom: 0; }
.tt-label       { color: #aaa; font-size: 0.85em; min-width: 60px; }
.tt-val         { color: #2c3e50; font-weight: 600; }
