/* _content/evoi.Shared/Components/Layout/MainLayout.razor.rz.scp.css */
/* Hidden checkbox for drawer toggle */
.navbar-toggler[b-x8on7olpap] {
    display: none;
}

/* Fixed mobile header */
.mobile-header[b-x8on7olpap] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(env(safe-area-inset-top, 0px) + 3.5rem);
    padding-top: env(safe-area-inset-top, 0px);
    background-color: var(--evoi-surface-sunken);
    border-bottom: 1px solid var(--evoi-border);
    z-index: 997;
    align-items: center;
    justify-content: center;
}

.header-title[b-x8on7olpap] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--evoi-text);
}

/* Kopfzeilen-Aktion rechts (Gegenstück zum Hamburger links), Optik wie der Haken der Detailseiten */
.header-action[b-x8on7olpap] {
    position: absolute;
    right: calc(env(safe-area-inset-right, 0px) + 0.75rem);
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    height: 2.5rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--evoi-accent);
    padding: 0 0.5rem;
    line-height: 1;
}

/* Hamburger icon - inside header on mobile */
.hamburger-icon[b-x8on7olpap] {
    display: block;
    position: absolute;
    left: calc(env(safe-area-inset-left, 0px) + 0.75rem);
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.hamburger-icon:hover[b-x8on7olpap] {
    opacity: 0.7;
}

.hamburger-icon span[b-x8on7olpap] {
    display: block;
    width: 100%;
    height: 2px;
    /* Feste Farbe wuerde im dunklen Erscheinungsbild auf dem Kopfbereich verschwinden. */
    background-color: var(--evoi-text);
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-icon span:last-child[b-x8on7olpap] {
    margin-bottom: 0;
}


/* „‹“ statt Menü auf Unterseiten (PageTitleService.BackAction) — gleiche Stelle wie das Menü-Symbol. */
.header-back[b-x8on7olpap] {
    position: absolute;
    left: calc(env(safe-area-inset-left, 0px) + 0.5rem);
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--evoi-accent);
    font-size: 1.3rem;
    cursor: pointer;
}

/* Drawer overlay */
.drawer-overlay[b-x8on7olpap] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--evoi-backdrop);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-toggler:checked ~ .drawer-overlay[b-x8on7olpap] {
    display: block;
    opacity: 1;
}

/* Show drawer when toggler is checked */
.navbar-toggler:checked ~ .page .sidebar[b-x8on7olpap]  .nav-menu-container {
    left: 0;
}

.page[b-x8on7olpap] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-x8on7olpap] {
    flex: 1;
}

.sidebar[b-x8on7olpap] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-x8on7olpap] {
    background-color: var(--evoi-surface-sunken);
    border-bottom: 1px solid var(--evoi-border);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-x8on7olpap]  a, .top-row[b-x8on7olpap]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-x8on7olpap]  a:hover, .top-row[b-x8on7olpap]  .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-x8on7olpap]  a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .mobile-header[b-x8on7olpap] {
        display: flex;
    }

    .top-row[b-x8on7olpap] {
        justify-content: space-between;
    }

        .top-row[b-x8on7olpap]  a, .top-row[b-x8on7olpap]  .btn-link {
            margin-left: 0;
        }

    .sidebar[b-x8on7olpap] {
        width: 0;
        height: 0;
        overflow: visible;
    }

    main[b-x8on7olpap] {
        width: 100%;
        /* = Höhe der festen Kopfzeile (.mobile-header); auf Android ist der Statusbereich 0 */
        padding-top: calc(env(safe-area-inset-top, 0px) + 3.5rem);
    }

    .hamburger-icon[b-x8on7olpap] {
        display: block;
    }
}


@media (min-width: 641px) {
    .page[b-x8on7olpap] {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .hamburger-icon[b-x8on7olpap] {
        display: none;
    }

    .drawer-overlay[b-x8on7olpap] {
        display: none !important;
    }

    .sidebar[b-x8on7olpap] {
        width: 200px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    main[b-x8on7olpap] {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .content[b-x8on7olpap] {
        flex: 1;
        min-height: 0;
        overflow: auto;
    }

    .top-row[b-x8on7olpap] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-x8on7olpap]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row[b-x8on7olpap], article[b-x8on7olpap] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* _content/evoi.Shared/Components/Layout/NavMenu.razor.rz.scp.css */
/* Nav menu container - Mobile-first approach */
.nav-menu-container[b-jxht1srosp] {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* Nav group headers */
.nav-group-header[b-jxht1srosp] {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
    user-select: none;
}

/* Touch-friendly nav items */
.nav-item[b-jxht1srosp] {
    font-size: 0.95rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-jxht1srosp] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-jxht1srosp] {
        padding-bottom: 1rem;
    }

    .nav-item[b-jxht1srosp]  a {
        color: #d7d7d7;
        border-radius: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        text-decoration: none;
        transition: all 0.2s ease;
        line-height: 1.2;
    }

        .nav-item[b-jxht1srosp]  a i {
            width: 1.5rem;
            margin-right: 0.75rem;
            font-size: 1.1rem;
            text-align: center;
            flex-shrink: 0;
        }

        .nav-item[b-jxht1srosp]  a.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

        .nav-item[b-jxht1srosp]  a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

/* Nav sync button */
.nav-sync-btn[b-jxht1srosp] {
    color: #d7d7d7;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-height: 44px;
    width: 100%;
}

    .nav-sync-btn:hover:not(:disabled)[b-jxht1srosp] {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

    .nav-sync-btn:disabled[b-jxht1srosp] {
        opacity: 0.6;
    }

/* Nav user section */
.nav-account-section[b-jxht1srosp] {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

    .nav-account-section small[b-jxht1srosp] {
        display: block;
        color: #d7d7d7;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        word-break: break-word;
    }

    .nav-account-section .nav-link[b-jxht1srosp] {
        color: #d7d7d7;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

        .nav-account-section .nav-link:hover[b-jxht1srosp] {
            color: white;
            background-color: rgba(255,255,255,0.1);
            border-radius: 8px;
        }

        .nav-account-section .nav-link i[b-jxht1srosp] {
            margin-right: 0.75rem;
        }

.nav-scrollable[b-jxht1srosp] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-scrollable nav[b-jxht1srosp] {
    padding-left: env(safe-area-inset-left);
}

/* Desktop styles */
@media (min-width: 641px) {
    .hamburger-icon[b-jxht1srosp] {
        display: none;
    }

    .drawer-overlay[b-jxht1srosp] {
        display: none !important;
    }

    .nav-menu-container[b-jxht1srosp] {
        position: static;
        left: auto;
        width: 100%;
        height: 100%;
        transition: none;
        box-shadow: none;
    }

    .nav-scrollable[b-jxht1srosp] {
        height: calc(100vh - 3.5rem);
        padding-bottom: 0;
    }

    .nav-scrollable nav[b-jxht1srosp] {
        padding-left: 0;
    }

    .nav-item[b-jxht1srosp] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .nav-item[b-jxht1srosp]  a {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nav-item[b-jxht1srosp]  a i {
        width: 1.25rem;
        margin-right: 0.5rem;
    }

    .nav-sync-btn[b-jxht1srosp] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Top row styling */
.top-row[b-jxht1srosp] {
    height: auto;
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
    flex-shrink: 0;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand[b-jxht1srosp] {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* Versionszeile unter dem Logo: klein, gedaempft, markierbar (Support fragt danach) */
.top-row .container-fluid[b-jxht1srosp] {
    flex-wrap: wrap; /* die Versionszeile bricht unter den Schriftzug */
}

.brand-version[b-jxht1srosp] {
    flex-basis: 100%;
    font-size: 0.7rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.15rem;
    padding-left: 2.45rem; /* Siegelbreite + Abstand: buendig mit dem Schriftzug */
    user-select: text;
    -webkit-user-select: text;
}

/* Etwas groesser als die Zeilenhoehe des Schriftzugs: Ein Kreis wirkt neben
   Buchstaben sonst kleiner, als er ist. */
.brand-mark[b-jxht1srosp] {
    width: 1.9rem;
    height: 1.9rem;
    flex: none;
}

.nav-item .bi[b-jxht1srosp] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}
/* _content/evoi.Shared/Components/Pages/InvoiceCreate.razor.rz.scp.css */
.add-position-wrapper[b-dkq75f04c8] {
    position: relative;
    display: inline-block;
}

.add-position-menu[b-dkq75f04c8] {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 1000;
    min-width: 220px;
    background: var(--evoi-surface);
    border: 1px solid var(--evoi-border);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.add-position-item[b-dkq75f04c8] {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.85rem;
    border: 0;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
}

.add-position-item:hover[b-dkq75f04c8] {
    background: var(--evoi-surface-hover);
}
/* _content/evoi.Shared/Components/Shared/AttachmentGallery.razor.rz.scp.css */
.attachment-toolbar[b-vw191ssef1] { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.attachment-usage[b-vw191ssef1] { margin-left: auto; font-size: .875rem; }
.attachment-grid[b-vw191ssef1] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 641px) { .attachment-grid[b-vw191ssef1] { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .attachment-grid[b-vw191ssef1] { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.attachment-tile[b-vw191ssef1] { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .375rem; background: var(--bs-body-bg, #fff); }
.attachment-tile img[b-vw191ssef1] { width: 100%; height: 100%; object-fit: cover; display: block; }
.attachment-icon[b-vw191ssef1] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; height: 100%; padding: .5rem; text-align: center; font-size: .75rem; word-break: break-all; }
.attachment-icon i[b-vw191ssef1] { font-size: 2rem; }
.attachment-icon.large i[b-vw191ssef1] { font-size: 5rem; }
.attachment-badge[b-vw191ssef1] { position: absolute; left: .25rem; bottom: .25rem; right: .25rem; padding: .1rem .35rem; border-radius: .25rem; color: #fff; font-size: .7rem; }
.attachment-filter[b-vw191ssef1] { display: flex; align-items: center; gap: .5rem; max-width: 28rem; }
.attachment-cell[b-vw191ssef1] { display: flex; flex-direction: column; min-width: 0; }
.attachment-meta[b-vw191ssef1] { display: flex; flex-direction: column; padding: .2rem .1rem 0; font-size: .75rem; line-height: 1.25; min-width: 0; }
.attachment-date[b-vw191ssef1] { color: var(--evoi-text-muted); }
.attachment-caption[b-vw191ssef1] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--evoi-text); }
/* _content/evoi.Shared/Components/Shared/AttachmentViewer.razor.rz.scp.css */
.attachment-viewer-stage[b-moygrhexjo] { display: flex; align-items: center; gap: .5rem; }
.attachment-viewer-media[b-moygrhexjo] { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; min-height: 12rem; }
.attachment-viewer-media img[b-moygrhexjo] { max-width: 100%; max-height: 60vh; object-fit: contain; }
.attachment-viewer-counter[b-moygrhexjo] { justify-content: flex-end; min-width: 2.5rem; color: var(--evoi-text-muted); font-size: .9rem; }

/* Telefon: Vollbild (Gerüst aus app.css), das Bild nimmt den freien Platz, die Pfeile werden schmal. */
@media (max-width: 640px) {
    .attachment-viewer .detail-content[b-moygrhexjo] { display: flex; flex-direction: column; padding-left: .75rem; padding-right: .75rem; }
    .attachment-viewer-stage[b-moygrhexjo] { flex: 1; min-height: 0; gap: .25rem; }
    .attachment-viewer-media img[b-moygrhexjo] { max-height: calc(100dvh - 20rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .attachment-viewer-stage[b-moygrhexjo]  .e-btn { padding-left: .4rem; padding-right: .4rem; min-width: 0; }
}
.attachment-viewer-zoom[b-moygrhexjo] { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; display: flex; max-width: 100%; }
.attachment-viewer-zoom-hint[b-moygrhexjo] {
    position: absolute; right: .4rem; bottom: .4rem; width: 2rem; height: 2rem; border-radius: 50%;
    background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
/* _content/evoi.Shared/Components/Shared/JobPhotoPickerDialog.razor.rz.scp.css */
.job-photo-grid[b-ed58b3t9nh] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-height: 60vh; overflow-y: auto; }
@media (min-width: 641px) { .job-photo-grid[b-ed58b3t9nh] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.job-photo-item[b-ed58b3t9nh] { border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .375rem; padding: .25rem; }
.job-photo-item.picked[b-ed58b3t9nh] { border-color: var(--bs-primary, #0d6efd); box-shadow: 0 0 0 1px var(--bs-primary, #0d6efd); }
.job-photo-item img[b-ed58b3t9nh], .job-photo-placeholder[b-ed58b3t9nh] { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: .25rem; margin-bottom: .25rem; }
.job-photo-placeholder[b-ed58b3t9nh] { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--bs-secondary-color, #6c757d); }
/* _content/evoi.Shared/Components/Shared/PageHeader.razor.rz.scp.css */
.page-header-title[b-1m75rhxaim] {
    margin-bottom: 1rem;
}

/* Hide on mobile when the fixed header is visible - no spacing */
@media (max-width: 640.98px) {
    .page-header-title[b-1m75rhxaim] {
        display: none;
        margin: 0;
        padding: 0;
        height: 0;
    }
}
/* _content/evoi.Shared/Components/Shared/PhotoZoom.razor.rz.scp.css */
/* Über allem, auch über der Vorschau; schlägt die Telefon-Regeln von .detail-page-container (heller Grund, Ausrichtung). */
.detail-page-container.photo-zoom[b-q8s1i94057] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    padding: 0;
    background-color: #000;
    display: block;
}
.photo-zoom-stage[b-q8s1i94057] { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.photo-zoom-stage img[b-q8s1i94057] {
    width: 100%; height: 100%; object-fit: contain; display: block;
    transform-origin: 0 0; will-change: transform; pointer-events: none; -webkit-user-drag: none;
}
.photo-zoom-bar[b-q8s1i94057] {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: .75rem;
    padding: calc(.5rem + env(safe-area-inset-top)) calc(.75rem + env(safe-area-inset-right)) .5rem calc(.75rem + env(safe-area-inset-left));
    background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0)); color: #fff; pointer-events: none;
}
.photo-zoom-bar > *[b-q8s1i94057] { pointer-events: auto; }
.photo-zoom-title[b-q8s1i94057] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.photo-zoom-counter[b-q8s1i94057] { font-size: .9rem; opacity: .85; }
.photo-zoom-btn[b-q8s1i94057] {
    background: rgba(0,0,0,.45); color: #fff; border: 0; border-radius: 50%;
    width: 2.75rem; height: 2.75rem; font-size: 1.2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.photo-zoom-nav[b-q8s1i94057] { position: absolute; top: 50%; transform: translateY(-50%); }
.photo-zoom-nav.prev[b-q8s1i94057] { left: calc(.5rem + env(safe-area-inset-left)); }
.photo-zoom-nav.next[b-q8s1i94057] { right: calc(.5rem + env(safe-area-inset-right)); }
