/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-u12xzt78ah] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-u12xzt78ah] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-u12xzt78ah] {
    background: linear-gradient(180deg, #04374c 0%, #022533 100%);
}

.top-row[b-u12xzt78ah] {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6e9f2;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

    .top-row[b-u12xzt78ah]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
        color: #475569;
        font-weight: 500;
    }

    .top-row[b-u12xzt78ah]  .btn-link:hover {
        color: #4f46e5;
    }

    .top-row[b-u12xzt78ah]  .who {
        display: flex;
        align-items: center;
        gap: .6rem;
        color: #0f172a;
        font-size: .9rem;
        text-decoration: none;
        border-radius: 999px;
        padding: .2rem .6rem .2rem .2rem;
    }

    .top-row[b-u12xzt78ah]  a.who:hover { background: #f1f3fa; color: #5b2fd6; }

    .top-row[b-u12xzt78ah]  .who small {
        color: #94a3b8;
    }

/* Up to a tablet held upright (an 11-inch iPad is 834px wide, a 13-inch one 1024px) the menu folds away behind the
   button at the top so the page gets the whole width; a fixed 240px menu left an 11-inch iPad with 590px for the
   Leads table (owner, 20 Oct 2026). From a tablet on its side upwards the menu stays open at the left. */
@media (max-width: 1024.98px) {
    .top-row[b-u12xzt78ah] {
        justify-content: space-between;
    }
}

@media (min-width: 641px) and (max-width: 1024.98px) {
    .top-row[b-u12xzt78ah], article[b-u12xzt78ah] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    article[b-u12xzt78ah] {
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 640.98px) {
    .top-row[b-u12xzt78ah] {
        height: 2.9rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* On a phone the bar shows the bell, the person's initials and Log out; the name and role are dropped. */
    .top-row[b-u12xzt78ah]  .who > span:not(.avatar) {
        display: none;
    }

    article[b-u12xzt78ah] {
        padding: 1rem 1rem 5.5rem !important;
    }
}

@media (min-width: 1025px) {
    .page[b-u12xzt78ah] {
        flex-direction: row;
    }

    .sidebar[b-u12xzt78ah] {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-u12xzt78ah] {
        position: sticky;
        top: 0;
        z-index: 900;   /* above anything on the page that has its own layer (job step circles, sticky table columns) */
    }

    .top-row[b-u12xzt78ah], article[b-u12xzt78ah] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    /* Every page uses the whole screen, however wide it is: zooming out on a laptop shows more, not a narrow
       page with empty space beside it. */
    article[b-u12xzt78ah] {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }
}

#blazor-error-ui[b-u12xzt78ah] {
    color-scheme: light only;
    background: #fff7ed;
    color: #7c2d12;
    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-u12xzt78ah] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-203m2ps5jm] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-203m2ps5jm] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-203m2ps5jm] {
    min-height: 3.5rem;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand[b-203m2ps5jm] {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em;
    color: #fff;
}

    .brand .mark-img[b-203m2ps5jm] {
        height: 34px;
        width: auto;
        display: block;
        filter: drop-shadow(0 2px 6px rgba(124, 77, 255, .45));
    }

    .brand .brand-text[b-203m2ps5jm] {
        display: flex;
        flex-direction: column;
        line-height: 1.05;
    }

    .brand .brand-text small[b-203m2ps5jm] {
        font-size: .62rem;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .5);
        font-weight: 600;
    }

.nav-section[b-203m2ps5jm] {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .35);
    padding: 1.1rem 1.5rem .4rem;
}

.nav-item[b-203m2ps5jm] {
    font-size: 0.92rem;
    padding-bottom: 0.25rem;
}

    .nav-item[b-203m2ps5jm]  .nav-link {
        color: rgba(255, 255, 255, .72);
        background: none;
        border: none;
        border-radius: 10px;
        height: 2.6rem;
        display: flex;
        align-items: center;
        gap: .7rem;
        line-height: 2.6rem;
        width: 100%;
        padding: 0 .85rem;
        font-weight: 500;
        transition: background .12s, color .12s;
    }

    .nav-item[b-203m2ps5jm]  .nav-link svg {
        width: 18px;
        height: 18px;
        opacity: .85;
        flex: 0 0 18px;
    }

    .nav-item[b-203m2ps5jm]  a.active {
        background: linear-gradient(90deg, rgba(27, 185, 184, .95), rgba(17, 156, 155, .9));
        color: #fff;
        box-shadow: 0 6px 16px rgba(91, 47, 214, .4);
    }

    .nav-item[b-203m2ps5jm]  .nav-link:hover:not(.active) {
        background-color: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

/* Something needs the person (on a call, inspections waiting): the link glows. With nav-pulse it also pulses,
   until the person has looked (opened the page); it stays lit while the work is still there. */
.nav-item[b-203m2ps5jm]  .nav-link.nav-attention,
.nav-item[b-203m2ps5jm]  a.nav-attention.active {
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #1f1300;
    font-weight: 700;
}

    .nav-item[b-203m2ps5jm]  .nav-link.nav-attention.nav-pulse:not(.active) {
        animation: nav-attention-b-203m2ps5jm 1.4s ease-in-out infinite;
    }

    .nav-item[b-203m2ps5jm]  .nav-link.nav-attention:hover {
        background: linear-gradient(90deg, #fbbf24, #fb923c);
        color: #1f1300;
    }

    .nav-item[b-203m2ps5jm]  .nav-link.nav-attention svg {
        opacity: 1;
    }

/* The label never wraps; the "on a call" marker is a small dot so it always fits beside it. */
.nav-item[b-203m2ps5jm]  .nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.nav-item[b-203m2ps5jm]  .nav-attention-tag {
    margin-left: auto;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* How many things wait on the person (e.g. inspections), shown at the end of a lit-up link. */
.nav-item[b-203m2ps5jm]  .nav-count {
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 1.5rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #1f1300;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
}

/* The same count on an ordinary (not lit) link, e.g. unread chats. */
.nav-item[b-203m2ps5jm]  .nav-count-soft {
    background: #6d3bff;
    color: #fff;
}

@keyframes nav-attention-b-203m2ps5jm {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .75); }
    50% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-item[b-203m2ps5jm]  .nav-link.nav-attention { animation: none; }
}

.nav-scrollable[b-203m2ps5jm] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-203m2ps5jm] {
    display: block;
}

/* The menu button shows up to a tablet held upright; from a tablet on its side upwards the menu is always open (MainLayout.razor.css). */
@media (min-width: 1025px) {
    .navbar-toggler[b-203m2ps5jm] {
        display: none;
    }

    .nav-scrollable[b-203m2ps5jm] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

.nav-sub[b-203m2ps5jm]  .nav-link {
    height: 2.1rem;
    line-height: 2.1rem;
    font-size: .84rem;
    padding-left: 2.3rem;
    color: rgba(255, 255, 255, .6);
}

.nav-sub[b-203m2ps5jm]  .pill {
    font-size: .62rem;
    padding: .05rem .4rem;
}

/* State badges in the menu: identical fixed size regardless of the letters inside. */
.nav-sub[b-203m2ps5jm]  .pill {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 18px;
    padding: 0;
    font-size: .6rem;
    letter-spacing: .03em;
    border-radius: 6px;
    flex: 0 0 34px;
}

.nav-sub[b-203m2ps5jm]  .pill { line-height: 1; font-weight: 700; }
.nav-sub[b-203m2ps5jm]  .nav-link { display: flex; align-items: center; gap: .6rem; }
