﻿:root {
    --blue: #0A5CA8;
    --light: #eef5ff;
    --border: #d7e2f1;
    --muted: #6b7280;
}

/* ================= BASE ================= */

html, body {
    height: 100%;
}

body {
    font-family: system-ui, Segoe UI, Arial, sans-serif;
    margin: 0;
    color: #111;
    background: #fff;
}

/* ================= HEADER ================= */

.header {
    display: grid;
    grid-template-columns: 200px 1fr 160px;
    align-items: center;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 64px;
    width: auto;
}

.title {
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

.lang-flags {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================= LAYOUT ================= */

main {
    padding: 16px;
}

.footer {
    position: fixed;
    right: 16px;
    bottom: 16px;
    color: #888;
    font-size: 12px;
    background: #fff;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 10px;
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    margin-right: 8px;
}

    .btn.outline {
        background: #fff;
        color: var(--blue);
    }

/* ================= CONTENT ================= */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.section {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

    .section h3 {
        margin: 0 0 10px 0;
        color: var(--blue);
    }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

.muted {
    color: var(--muted);
}

/* ================= FORM ================= */

.field {
    display: grid;
    grid-template-columns: 220px 520px max-content;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

    .field label {
        font-weight: 600;
    }

    .field input,
    .field select {
        width: 100%;
        padding: 8px;
        border: 1px solid #cfd8e3;
        border-radius: 8px;
    }

.unit-badge {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

/* ================= HELP MODAL ================= */

.exxeo-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exxeo-help-modal {
    width: min(720px, 95vw);
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
}

.exxeo-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
}

.exxeo-help-body {
    padding: 16px;
    overflow-y: auto;
    line-height: 1.5;
}

/* ================= INFO ICON – PUHDAS IKONI ================= */

.info-icon {
    /* ÄLÄ käytä all: unset tässä */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    margin: 0;
    margin-right: 12px;
    padding: 0;
    /* PAKOTETTU KOKO */
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    /* AITO YMPYRÄ */
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    /* KESKITYS */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* TEKSTI */
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

    .info-icon:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .info-icon:focus,
    .info-icon:focus-visible {
        outline: none;
        box-shadow: none;
    }


/* =========================================================
   ADMIN-SIVU – ERIKOISTYYLIT
   (Palautettu, ÄLÄ POISTA ilman syytä)
   ========================================================= */

.admin-button-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 12px;
}

.admin-btn {
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
