/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-bk711904un] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----- Yläpalkki ----- */
.tc-topbar[b-bk711904un] {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 3.5rem;
    padding: 0 1rem;
    background-color: rgb(5, 39, 103);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.tc-brand[b-bk711904un] {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

    .tc-brand .tc-logo-icon[b-bk711904un] {
        height: 2.1rem;
        width: auto;
        display: block;
    }

.tc-wordmark[b-bk711904un] {
    font-family: 'Segoe UI', Montserrat, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

    .tc-wordmark .tc-w-taika[b-bk711904un] {
        position: relative;
        color: #e7ebef;
    }

    .tc-wordmark .tc-w-tilaus[b-bk711904un] {
        color: #7ac143;
    }

    .tc-wordmark .tc-w-app[b-bk711904un] {
        position: absolute;
        top: -0.58em;
        left: 50%;
        transform: translateX(-50%) rotate(-9deg);
        color: #e8352a;
        font-size: 0.6em;
        font-weight: 800;
        font-style: italic;
        letter-spacing: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
        pointer-events: none;
    }

/* ----- Vaakavalikko ----- */
.tc-nav[b-bk711904un] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tc-nav[b-bk711904un]  .tc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.5;
}

    .tc-nav[b-bk711904un]  .tc-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .tc-nav[b-bk711904un]  .tc-nav-link.active {
        background-color: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

    .tc-nav[b-bk711904un]  .tc-nav-link .bi {
        font-size: 1rem;
    }

/* ----- Vaakavalikon pudotusvalikko (Postitus) ----- */
.tc-navdrop[b-bk711904un] {
    position: relative;
    display: flex;
    align-items: center;
}

    .tc-navdrop > summary[b-bk711904un] {
        list-style: none;
        cursor: pointer;
    }

        .tc-navdrop > summary[b-bk711904un]::-webkit-details-marker {
            display: none;
        }

    .tc-navdrop .tc-caret[b-bk711904un] {
        font-size: 0.7rem;
        margin-left: 0.15rem;
        opacity: 0.75;
        transition: transform 0.15s;
    }

    .tc-navdrop[open] .tc-caret[b-bk711904un] {
        transform: rotate(180deg);
    }

.tc-submenu[b-bk711904un] {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.35rem;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 0.25rem;
    z-index: 1050;
}

    /* Läpinäkyvä "silta" peittää summaryn ja alivalikon välisen raon,
       jotta hiiri ei poistu details-alueelta valikkoa kohti siirryttäessä. */
    .tc-submenu[b-bk711904un]::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -0.5rem;
        height: 0.5rem;
    }

.tc-submenu[b-bk711904un]  .tc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 0;
    background: transparent;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

    .tc-submenu[b-bk711904un]  .tc-menu-item:hover {
        background-color: #f0f0f5;
    }

    .tc-submenu[b-bk711904un]  .tc-menu-item.active {
        background-color: #e7e9f5;
        color: rgb(5, 39, 103);
    }

/* ----- Oikean reunan työkalut ----- */
.tc-tools[b-bk711904un] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tc-search[b-bk711904un] {
    width: 200px;
}

    .tc-search .form-control:focus[b-bk711904un],
    .tc-search .input-group-text[b-bk711904un] {
        box-shadow: none;
    }

.tc-icon[b-bk711904un] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    background: none;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .tc-icon:hover[b-bk711904un] {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.12);
    }


/* Ilmoitusten lukumäärämerkki ikonin oikeassa yläkulmassa */
.tc-badge[b-bk711904un] {
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    padding: 0.2em 0.4em;
    line-height: 1;
}

/* ----- Hammasratasvalikko (details/summary, ei JS:ää) ----- */
.tc-dropdown[b-bk711904un] {
    position: relative;
}

    .tc-dropdown > summary[b-bk711904un] {
        list-style: none;
    }

        .tc-dropdown > summary[b-bk711904un]::-webkit-details-marker {
            display: none;
        }

.tc-menu[b-bk711904un] {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 0.25rem;
    z-index: 1050;
}

.tc-menu[b-bk711904un]  .tc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

    .tc-menu[b-bk711904un]  .tc-menu-item:hover {
        background-color: #f0f0f5;
    }

    .tc-menu[b-bk711904un]  .tc-menu-item.active {
        background-color: #e7e9f5;
        color: rgb(5, 39, 103);
    }

/* ----- Sisältö ----- */
.tc-tools[b-bk711904un]  .tc-user-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.tc-tools[b-bk711904un]  .tc-user-link:hover,
.tc-tools[b-bk711904un]  .tc-user-link.active {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
    text-decoration: none;
}

main[b-bk711904un] {
    flex: 1;
}

.content[b-bk711904un] {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* ----- Kapeat näytöt ----- */
@media (max-width: 991.98px) {
    .tc-nav[b-bk711904un]  .tc-nav-link span {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .tc-search[b-bk711904un] {
        display: none;
    }
}

#blazor-error-ui[b-bk711904un] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-bk711904un] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-gcw1kdnpul],
.components-reconnect-repeated-attempt-visible[b-gcw1kdnpul],
.components-reconnect-failed-visible[b-gcw1kdnpul],
.components-pause-visible[b-gcw1kdnpul],
.components-resume-failed-visible[b-gcw1kdnpul],
.components-rejoining-animation[b-gcw1kdnpul] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-retrying[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-failed[b-gcw1kdnpul],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-gcw1kdnpul] {
    display: block;
}


#components-reconnect-modal[b-gcw1kdnpul] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-gcw1kdnpul 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-gcw1kdnpul 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-gcw1kdnpul 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-gcw1kdnpul]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-gcw1kdnpul 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-gcw1kdnpul {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-gcw1kdnpul {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-gcw1kdnpul {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-gcw1kdnpul] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-gcw1kdnpul] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-gcw1kdnpul] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-gcw1kdnpul] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-gcw1kdnpul] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-gcw1kdnpul] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-gcw1kdnpul] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-gcw1kdnpul 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-gcw1kdnpul] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-gcw1kdnpul {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ----- Päivän kuva ----- */
.tc-paivankuva[b-t0r4xy671t] {
    max-width: 100%;
    width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* ----- Sää ----- */
.tc-saa-ikoni[b-t0r4xy671t] {
    font-size: 3rem;
    line-height: 1;
    color: rgb(5, 39, 103);
}

.tc-saa-lampo[b-t0r4xy671t] {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1;
}

/* ----- Voimassa olevat tilaukset -vaakapylväskaavio (pelkkä CSS) ----- */
.tc-hbar-ryhma[b-t0r4xy671t] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    color: rgb(5, 39, 103);
    margin: 14px 0 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #e3e3e3;
}

    .tc-hbar-ryhma:first-child[b-t0r4xy671t] {
        margin-top: 0;
    }

.tc-hbar-row[b-t0r4xy671t] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.tc-hbar-nimi[b-t0r4xy671t] {
    flex: 0 0 220px;
    font-size: 0.8rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-hbar-track[b-t0r4xy671t] {
    flex: 1;
    height: 18px;
    background: #f0f0f5;
    border-radius: 4px;
    overflow: hidden;
}

.tc-hbar-fill[b-t0r4xy671t] {
    height: 100%;
    background: linear-gradient(90deg, #3a6fd8 0%, rgb(5, 39, 103) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2px;
}

.tc-hbar-arvo[b-t0r4xy671t] {
    flex: 0 0 48px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

@media (max-width: 575.98px) {
    .tc-hbar-nimi[b-t0r4xy671t] {
        flex-basis: 110px;
    }
}

/* ----- Analoginen viisarikello (pelkkä CSS, ei JS:ää) ----- */
.tc-clock[b-t0r4xy671t] {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgb(5, 39, 103);
    background: #fff;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.08);
}

.tc-tick[b-t0r4xy671t] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 6px;
    background: #c2c2c2;
    border-radius: 1px;
}

.tc-hand[b-t0r4xy671t] {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    border-radius: 3px;
}

.tc-hour[b-t0r4xy671t] {
    width: 3px;
    height: 28px;
    margin-left: -1.5px;
    background: #222;
    animation: tc-spin-b-t0r4xy671t 43200s linear infinite;
}

.tc-minute[b-t0r4xy671t] {
    width: 2px;
    height: 40px;
    margin-left: -1px;
    background: #333;
    animation: tc-spin-b-t0r4xy671t 3600s linear infinite;
}

.tc-second[b-t0r4xy671t] {
    width: 1px;
    height: 46px;
    margin-left: -0.5px;
    background: #e74c3c;
    animation: tc-spin-b-t0r4xy671t 60s linear infinite;
}

.tc-center[b-t0r4xy671t] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: rgb(5, 39, 103);
    border-radius: 50%;
}

@keyframes tc-spin-b-t0r4xy671t {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ----- Digitaalinen kello ----- */
.tc-digi[b-t0r4xy671t] {
    font-size: 2.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    color: rgb(5, 39, 103);
    line-height: 1.1;
}

/* ----- Kalenteri ----- */
.tc-cal th[b-t0r4xy671t] {
    color: #8a8a8a;
    font-weight: 600;
    font-size: 0.65rem;
    padding: 0.15rem;
}

.tc-cal td[b-t0r4xy671t] {
    width: 14.28%;
    font-size: 0.72rem;
    padding: 0.15rem;
}

    .tc-cal td.tc-today[b-t0r4xy671t] {
        background: rgb(5, 39, 103);
        color: #fff;
        font-weight: 700;
        border-radius: 6px;
    }
/* /Components/Shared/LeikepoytaBadge.razor.rz.scp.css */
/* Sama perustyyli kuin MainLayoutin .tc-icon, mutta isompana —
   määritelty tässä, koska MainLayoutin scoped CSS ei ulotu komponenttiin. */
.lp-ikoni[b-ju11ob9bcu] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .lp-ikoni:hover[b-ju11ob9bcu] {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.12);
    }

/* Lukumäärämerkki kuvakkeen oikeassa yläkulmassa. */
.lp-merkki[b-ju11ob9bcu] {
    top: 0;
    right: 0;
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    line-height: 1;
}
