﻿/* Workspace.razor.css */

/* =========================================================
   PAGE
   ========================================================= */

.ws-page {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ws-content {
    max-width: 120rem;
    width: 100%;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.ws-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0rem 0 0.625rem 0;
    flex: 0 0 auto; /* bleibt fix */
}

.ws-filter {
    flex: 1 1 auto;
    height: 2.125rem;
    padding: 0 0.625rem;
    border: 0.0625rem solid #d9d9d9;
    border-radius: 0.1875rem;
    font-size: 0.8125rem;
    outline: none;
}

    .ws-filter:focus {
        border-color: #bdbdbd;
    }

.ws-toolbar-right {
    flex: 0 0 auto;
}

.ws-create-btn {
    height: 2.125rem;
    padding: 0 0.75rem;
    border: 0.0625rem solid #d9d9d9;
    background: #fff;
    border-radius: 0.1875rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ws-caret {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

/* =========================================================
   TABLE WRAPPER (DER EINZIGE SCROLLBEREICH)
   ========================================================= */

.ws-table-wrap {
    border: 0.0625rem solid #e2e2e2;
    border-radius: 0.25rem;
    background: #fff;
    /* NEU: Wrapper ist nur Layout (kein Scroll),
       damit Footer immer unten bleiben kann */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* NEU: Nur dieser Bereich scrollt (ListView) */
.ws-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* =========================================================
   TABLE
   ========================================================= */

.ws-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.75rem;
}

    /* Sticky Header */
    .ws-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        text-align: left;
        padding: 0.625rem 0.625rem;
        background: #f7f7f7;
        border-bottom: 0.0625rem solid #e2e2e2;
        color: #222;
        letter-spacing: .02em;
        font-weight: 600;
    }

    .ws-table tbody td {
        padding: 0.5625rem 0.625rem;
        border-bottom: 0.0625rem solid #f0f0f0;
        vertical-align: middle;
    }

.ws-row:hover {
    background: #f6f6f6;
}
