/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* App shell: a full-width header row above a sidebar + content row. CSS grid keeps the header
   spanning both columns while the sidebar holds a fixed-width navigation rail on wide viewports. */
.page[b-xovunqka5v] {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "topbar  topbar"
        "sidebar content";
    min-height: 100vh;
}

/* The nav toggle is a visually hidden checkbox driven by the header's label; its :checked state
   opens the sidebar drawer on narrow viewports (see the media query below). */
.nav-toggle[b-xovunqka5v] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ---- Header ---- */
.topbar[b-xovunqka5v] {
    grid-area: topbar;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 3.5rem;
    padding: 0 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e0e4ea;
}

.brand[b-xovunqka5v] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #1b2a4a;
}

.brand-logo[b-xovunqka5v] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #1b2a4a;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
}

.brand-word[b-xovunqka5v] {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.topbar-spacer[b-xovunqka5v] {
    flex: 1;
}

.user-badge[b-xovunqka5v] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.user-name[b-xovunqka5v] {
    font-weight: 600;
}

.user-role[b-xovunqka5v] {
    font-size: 0.8rem;
    color: #6b7280;
}

.logout-button[b-xovunqka5v] {
    border: 1px solid #c4c9d4;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}

.logout-button:hover[b-xovunqka5v] {
    background: #e9edf3;
}

/* ---- Hamburger toggle (hidden on wide viewports) ---- */
.nav-toggler[b-xovunqka5v] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: -0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggler:hover[b-xovunqka5v] {
    background: #eceef3;
}

/* Middle bar plus ::before/::after bars form the three-line hamburger glyph. */
.nav-toggler-bar[b-xovunqka5v],
.nav-toggler-bar[b-xovunqka5v]::before,
.nav-toggler-bar[b-xovunqka5v]::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: #1b2a4a;
    border-radius: 2px;
}

.nav-toggler-bar[b-xovunqka5v] {
    position: relative;
}

.nav-toggler-bar[b-xovunqka5v]::before,
.nav-toggler-bar[b-xovunqka5v]::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggler-bar[b-xovunqka5v]::before {
    top: -6px;
}

.nav-toggler-bar[b-xovunqka5v]::after {
    top: 6px;
}

/* ---- Sidebar ---- */
.sidebar[b-xovunqka5v] {
    grid-area: sidebar;
    background: #1b2a4a;
    color: #f5f7fa;
    overflow-y: auto;
}

/* ---- Content ---- */
.content[b-xovunqka5v] {
    grid-area: content;
    padding: 1.5rem;
    min-width: 0;
}

/* ---- Narrow viewports: single column, sidebar becomes a slide-in drawer ---- */
@media (max-width: 720px) {
    .page[b-xovunqka5v] {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "content";
    }

    .nav-toggler[b-xovunqka5v] {
        display: inline-flex;
    }

    .sidebar[b-xovunqka5v] {
        position: fixed;
        top: 3.5rem;
        left: 0;
        bottom: 0;
        width: 250px;
        max-width: 80vw;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 2px 0 16px rgba(15, 23, 42, 0.25);
        z-index: 25;
    }

    .nav-toggle:checked ~ .sidebar[b-xovunqka5v] {
        transform: translateX(0);
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* The nav container is rendered directly by NavMenu, so CSS isolation applies to it here. The
   per-link ".nav-link" rules deliberately live in the global app.css instead: those anchors are
   emitted by the framework <NavLink> child component and never carry this component's scope
   attribute, so a scoped rule would not reach them. */
.nav-links[b-evfs3hjl02] {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.6rem;
    gap: 0.15rem;
}
/* /Components/Pages/TablePlanEditor.razor.rz.scp.css */
/* Tischplan-Designer (WP-17), adapted from the device-side planner to the web admin palette. */

.planner-toolbar[b-s3p3l040ez] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tb-group[b-s3p3l040ez] { display: flex; gap: 0.5rem; align-items: center; }
.tb-group.ms-auto[b-s3p3l040ez] { margin-left: auto; }

/* "+ Eckig" / "+ Rund" add-table actions: styled as solid buttons rather than
   the underlined link look, so they read clearly as clickable buttons. */
.tool-btn[b-s3p3l040ez] {
    padding: 0.5rem 0.9rem;
    border: 1px solid #1b2a4a;
    border-radius: 6px;
    background: #1b2a4a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tool-btn:hover[b-s3p3l040ez] {
    background: #24365c;
    border-color: #24365c;
}

.tool-btn:disabled[b-s3p3l040ez] {
    opacity: 0.5;
    cursor: not-allowed;
}

.plan-name[b-s3p3l040ez] {
    width: clamp(140px, 32vw, 260px);
    padding: 0.5rem 0.6rem;
    border: 1px solid #c4c9d4;
    border-radius: 6px;
    font-size: 1rem;
}

.dim[b-s3p3l040ez] { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: #6b7280; }
.dim input[b-s3p3l040ez] { width: 5.5rem; padding: 0.4rem 0.5rem; border: 1px solid #c4c9d4; border-radius: 6px; }

.planner-body[b-s3p3l040ez] {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.planner-canvas-wrap[b-s3p3l040ez] {
    flex: 1 1 auto;
    min-width: 0;
    max-height: calc(100vh - 240px);
    overflow: auto;
    background: #eef1f6;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 1rem;
}

.planner-canvas[b-s3p3l040ez] {
    position: relative;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, rgba(15,23,42,.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15,23,42,.06) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid #c4c9d4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.06);
    touch-action: auto;
}

.canvas-empty[b-s3p3l040ez] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #9aa2b1;
    font-style: italic;
    pointer-events: none;
}

.table-node[b-s3p3l040ez] {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    background: var(--tbl, #4f46e5);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(15,23,42,.25);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid rgba(255,255,255,.35);
    overflow: hidden;
}

.table-node:active[b-s3p3l040ez] { cursor: grabbing; }
.table-node.circle[b-s3p3l040ez] { border-radius: 50%; }

.table-node.selected[b-s3p3l040ez] {
    outline: 3px solid rgba(79,70,229,.55);
    outline-offset: 2px;
    box-shadow: 0 6px 18px rgba(15,23,42,.35);
}

.tn-label[b-s3p3l040ez] {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.1;
    text-align: center;
    padding: 0 0.35rem;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.tn-seats[b-s3p3l040ez] {
    font-size: 0.78rem;
    opacity: 0.95;
    pointer-events: none;
}

.tn-resize[b-s3p3l040ez] {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #4f46e5;
    border-radius: 5px;
    cursor: nwse-resize;
    touch-action: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.planner-panel[b-s3p3l040ez] {
    flex: 0 0 300px;
    width: 300px;
    background: #ffffff;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.05);
    padding: 1.1rem;
    position: sticky;
    top: 1rem;
}

.panel-title[b-s3p3l040ez] { font-size: 1.05rem; margin: 0 0 0.9rem; }
.panel-hint strong[b-s3p3l040ez] { display: block; margin-bottom: 0.35rem; }
.panel-hint p[b-s3p3l040ez] { color: #6b7280; font-size: 0.88rem; margin: 0; }

.field[b-s3p3l040ez] { display: flex; flex-direction: column; margin-bottom: 0.8rem; }
.field label[b-s3p3l040ez] { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.field input[b-s3p3l040ez], .field select[b-s3p3l040ez] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border: 1px solid #c4c9d4;
    border-radius: 6px;
    font-size: 1rem;
}
.field-row[b-s3p3l040ez] { display: flex; gap: 0.7rem; }
/* min-width:0 lets the two number inputs shrink to half-width; without it the
   flex items keep their intrinsic (content-box) width and "Höhe" overflows the panel. */
.field-row .field[b-s3p3l040ez] { flex: 1; min-width: 0; }

.swatches[b-s3p3l040ez] { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch[b-s3p3l040ez] {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(15,23,42,.2);
}
.swatch.active[b-s3p3l040ez] { border-color: #1f2733; outline: 2px solid #fff; outline-offset: -4px; }

.panel-stats[b-s3p3l040ez] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e0e4ea;
    color: #6b7280;
    font-size: 0.9rem;
}
.panel-stats strong[b-s3p3l040ez] { color: #1f2733; font-size: 1.05rem; }

@media (max-width: 900px) {
    .planner-body[b-s3p3l040ez] { flex-direction: column; }
    .planner-canvas-wrap[b-s3p3l040ez] { width: 100%; max-height: 62vh; }
    .planner-panel[b-s3p3l040ez] { flex-basis: auto; width: 100%; position: static; }
}
