/* =========================
 * Napit + vuosi
 * ========================= */

.ak-napit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.ak-napit label {
    font-weight: 600;
}

.ak-napit select {
    padding: 0.35rem;
    margin-right: 0.75rem;
}

.ak-napit button {
    background: #1e6bd6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.ak-napit button:hover {
    background: #154fa3;
}

/* =========================
 * Huomautus
 * ========================= */

.ak-huom {
    font-style: italic;
    margin-top: 0.5rem;
    color: #444;
}

/* =========================
 * Asiakirjan tulostuslaatikko
 * ========================= */

.ak-laatikko {
    border: 2px solid #1e6bd6;
    background: #fff;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ak-laatikko h1 { font-size: 1.35rem; }
.ak-laatikko h2 { font-size: 1.15rem; }
.ak-laatikko h3 { font-size: 1.05rem; margin-top: 0; }

.ak-laatikko table {
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ak-laatikko th,
.ak-laatikko td {
    border: 1px solid #ccc;
    padding: 0.3rem 0.5rem;
}

/* Tositelinkit */
.ak-laatikko a.ak-tosite {
    color: #1e6bd6;
    font-weight: 600;
    text-decoration: underline;
}

/* =========================
 * Käyttäjäoikeuslistat
 * ========================= */

.cn26-ak-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cn26-ak-col {
    font-size: 0.9rem;
    line-height: 1.35;
}

.cn26-ak-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
}

.cn26-ak-col ul {
    margin: 0 0 1rem 0;
    padding-left: 1.1rem;
}

.cn26-ak-col li {
    margin: 0.15rem 0;
}

.cn26-ak-col em {
    font-style: normal;
    color: #555;
}

/* =========================
 * Lisää / poista -napit
 * ========================= */

.ak-lisaa {
    background: #1e6bd6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.ak-lisaa:hover {
    background: #154fa3;
}

/* Poista – pakotettu pieneksi (yliajaa teeman) */
.ak-laatikko .ak-poista {
    background: #c62828 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    margin-left: 0.4rem !important;
}

.ak-laatikko .ak-poista:hover {
    background: #8e0000 !important;
}
