/*
 * Voce — stili specifici dell'applicazione.
 * La personalizzazione di UIkit (colori, font, componenti) è in _development/custom.scss:
 * qui solo ciò che UIkit non prevede. I colori ripetono quelli della palette del tema.
 */

/* Collegamento "Vai al contenuto": visibile solo quando riceve il focus da tastiera */
.voce-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1100;
    padding: 10px 16px;
    border-radius: 0 0 6px 6px;
    background: #fff;
    color: #004c99;
    font-weight: 600;
}
.voce-skip-link:focus {
    top: 0;
}
main:focus {
    outline: none;
}

/* Marchio nell'intestazione */
.voce-brand {
    gap: 10px;
}
.voce-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0066cc;
    color: #fff;
}
.uk-navbar-nav > li > a {
    white-space: nowrap;
}
.voce-brand-org {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: #d0dcea;
}
.voce-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #0b3a66;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Intestazione di pagina: titolo, sottotitolo e azioni */
.voce-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 24px;
}
.voce-page-header h1 {
    margin: 0;
}
.voce-page-header p {
    margin: 4px 0 0;
}

/* Tabelle dentro le card: margini laterali allineati all'intestazione della card */
.uk-card > .uk-table :is(th, td):first-child,
.uk-card > .uk-overflow-auto > .uk-table :is(th, td):first-child {
    padding-left: 20px;
}
.uk-card > .uk-table :is(th, td):last-child,
.uk-card > .uk-overflow-auto > .uk-table :is(th, td):last-child {
    padding-right: 20px;
}

/* Contatori della dashboard */
.voce-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    box-sizing: border-box;
}
.voce-stat:hover {
    border-color: #0066cc;
}
.voce-stat-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f1fb;
    color: #0066cc;
}
.voce-stat-icon.voce-tone-warning {
    background: #fff4e5;
    color: #9e5b00;
}
.voce-stat-icon.voce-tone-success {
    background: #e6f4ee;
    color: #00704a;
}
.voce-stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: #17324d;
}

/* Domande frequenti */
.voce-faq-nav {
    position: sticky;
    top: 88px;
}
.voce-faq-section {
    scroll-margin-top: 88px;
}
.voce-faq-section .uk-accordion-default > :nth-child(n+2) {
    border-top: 1px solid #d9e1ea;
}
.voce-faq-section .uk-accordion-content {
    max-width: 70ch;
}

/* Riquadro di accesso */
.voce-auth {
    min-height: 100vh;
    background: linear-gradient(160deg, #0b3a66 0%, #004c99 55%, #0066cc 100%);
}
.voce-auth-brand {
    color: #fff;
}
.voce-auth-brand .voce-brand-mark {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #0066cc;
}
.voce-faq-section .uk-accordion-icon {
    transition: transform 0.2s ease-in-out;
}
.voce-faq-section .uk-open .uk-accordion-icon {
    transform: rotate(180deg);
}
