/* HealthKey — stili condivisi delle pagine Pagamenti (06/11/2026). Collegato da index.html. */
.pg-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center;
    justify-content: center; z-index: 1000; overflow-y: auto; padding: 24px; }
.pg-modal { background: #fff; border-radius: 16px; padding: 24px 28px; width: 100%; max-width: 520px; margin: auto; }
.pg-modal--lg { max-width: 760px; }
.pg-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.pg-modal__head h3 { margin: 0; }
.pg-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--hk-gray-400); }
.pg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-tabella { width: 100%; border-collapse: collapse; font-size: 13px; }
.pg-tabella th { text-align: left; font-weight: 600; color: var(--hk-gray-700); border-bottom: 1px solid var(--hk-gray-200); padding: 6px 8px; }
.pg-tabella td { border-bottom: 1px solid var(--hk-gray-100); padding: 6px 8px; vertical-align: top; }
.pg-tabella .pg-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-tabella tfoot td { font-weight: 700; border-top: 2px solid var(--hk-gray-200); border-bottom: 0; }
.pg-cal, .pg-sett { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pg-cal__h { text-align: center; font-size: 12px; font-weight: 600; color: var(--hk-gray-400); padding: 4px 0; }
.pg-cal__d { min-height: 78px; border: 1px solid var(--hk-gray-200); border-radius: 8px; padding: 6px; background: #fff;
    display: flex; flex-direction: column; gap: 2px; font-size: 12px; text-align: left; font: inherit; }
.pg-cal__d--fuori { background: var(--hk-gray-100); opacity: .55; }
.pg-cal__d--oggi { border-color: var(--hk-green); box-shadow: 0 0 0 1px var(--hk-green); }
.pg-cal__d--con { cursor: pointer; }
.pg-cal__d--con:hover { background: var(--hk-green-pale); }
.pg-cal__n { font-weight: 600; color: var(--hk-gray-700); }
.pg-cal__sc { font-size: 11px; color: var(--hk-green); font-weight: 600; }
.pg-cal__imp { font-size: 12px; font-weight: 700; }
.pg-sett .pg-cal__d { min-height: 150px; }
.pg-kv { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; font-size: 13px; }
.pg-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pg-neg { color: var(--hk-red); }
.pg-pos { color: var(--hk-green, #15803d); }
@media (max-width: 640px) { .pg-grid2 { grid-template-columns: 1fr; } .pg-cal__d { min-height: 56px; padding: 3px; } }

/* Fatture (Migration 287) */
.pg-griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pg-griglia label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--hk-gray-700); }
