*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role="list"],ol[role="list"]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}:root {
    --clr-bg: #FFFFFF;
    --clr-surface: #FDFDFD;
    --loader-bg: #f1f1f1;
    --clr-text: #212121;
    --clr-text-light: #9E9E9E;
    --clr-primary: #D32F2F;
    --clr-primary-hover: #B71C1C;
    --clr-success: #388E3C;
    /* green for success */
    --clr-warning: #F57C00;
    /* orange for warnings */
    --clr-error: #D32F2F;
    /* red for errors (same as primary here) */
    --radius: 10px;
    --font-family: 'Lato', sans-serif;
    --sidebar-w: 300px;
    --topbar-h: 56px;
    --primary: #D32F2F;
    --primary-hover: #B71C1C;
    --background-color: #FFFFFF;
    --card-background-color: #FDFDFD;
    --color: #212121;
    --muted-color: #9E9E9E;
}html[data-theme="dark"] {
    --clr-bg: #212121;
    --clr-surface: #2D2D2D;
    --loader-bg: #333333;
    --clr-text: #ECECEC;
    --clr-text-light: #B0B0B0;
    --clr-primary: #EF5350;
    /* slightly lighter red for dark mode */
    --clr-primary-hover: #E53935;
    --clr-success: #4CAF50;
    --clr-warning: #FFA000;
    --clr-error: #EF5350;
    --primary: #EF5350;
    --primary-hover: #E53935;
    --background-color: #212121;
    --card-background-color: #2D2D2D;
    --color: #ECECEC;
    --muted-color: #B0B0B0;
}/* Base styles */body {
    font-family: var(--font-family);
    background: var(--clr-bg);
    color: var(--clr-text);
    margin: 0;
}.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 20;
    background: var(--clr-surface);
    border-right: 0.5px solid #e0e0e0;
    transition: width .2s, transform .2s;
}.sidebar.open {
    transform: translateX(0);
}.sidebar-logo {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem;
    color: var(--clr-text);
    text-wrap: nowrap;
}.sidebar-logo .logo {
    height: 24px;
    vertical-align: middle;
    margin-right: 0.3rem;
    margin-bottom: 5px;
    display: inline;
}.menu {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}.menu-top {
    flex: 1;
    /* nimmt den ganzen Restplatz */
}.menu-bottom {
    margin-top: auto;
    /* wandert ans untere Ende */
    font-size: 90%;
}.menu-item {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--clr-text);
    display: flex;
    align-items: center;
}.menu-item.secondary {
    color: var(--clr-text-light);
}.menu-item i {
    /* icon styles (using e.g., pseudo-element or actual <svg> icons) */
    margin-right: 0.5rem;
}.menu-item:hover,
.menu-item.active {
    background: var(--clr-primary);
    color: #FFF;
}.topbar {
    margin-left: var(--sidebar-w);
    /* space for sidebar */
    background: var(--clr-surface);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}.page-title {
    font-size: 1.2rem;
    margin: 0;
    text-overflow: ellipsis;

    word-wrap: break-word;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}.topbar-actions {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}.topbar-actions select,
.topbar-actions input {
    margin-bottom: 0px;
    margin-right: 25px;
}.topbar-actions input {
    min-width: 100px;
    max-width: 400px;
}.tenant-switch {
    margin-right: 1rem;
    font: inherit;
}.profile-menu {
    cursor: pointer;
    max-width: 150px;
    text-align: right;
}.profile-menu span {
    font-size: 80%;
}.profile-menu img {
    margin: 0 auto;
}.btn.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--clr-text);
}.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
}.content {
    min-height: calc(100vh - var(--topbar-h));
    margin-left: var(--sidebar-w);
    padding: 1rem 2rem;
}.breadcrumbs {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    margin-bottom: 1rem;
    display: block;
}.breadcrumbs b {
    color: var(--clr-text);
    margin-left: 0.1rem;
}.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}.toolbar input {
    margin-bottom: 0px;
}.search-input {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--radius);
    font: inherit;
    color: var(--clr-text);
    background: var(--pico-background-color) url('search-icon.svg') no-repeat 0.5rem center;
    padding-left: 2rem;
    /* space for icon */
}.search-input::placeholder {
    color: #AAA;
}.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}.data-table thead {
    background: var(--clr-surface);
}.data-table th,
.data-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    color: var(--clr-text);
}.data-table tbody tr:nth-child(even) {
    background: var(--clr-surface);
}.status.active {
    color: #388E3C;
    font-weight: 600;
}/* green text for active */.status.inactive {
    color: #757575;
}/* grey text for inactive */.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--clr-text-light);
}.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--clr-text-light);
}.empty-state p {
    margin: 0.5rem 0 1rem;
}.topbar [data-nav-toggle] {
    display: none;
}.main-container {
    transition: transform .2s, width .2s ease-in-out;
    min-width: 380px;
}@media (max-width: 1200px) {
    :root {
        --sidebar-w: 180px;
        /* etwas dünner */
    }

    h1 {
        text-align: left;
    }

}.sidebar .close {
    display: none;
    margin: 0;
    padding: 0;
    position: absolute;
    right: -33px;
    /*background: #FDFDFD;
    background: linear-gradient(90deg,rgba(253, 253, 253, 1) 1%, #e0e0e0 140%);*/
    border-radius: 0 4px 4px 0;
    border-right: 0.5px solid #e0e0e0;
    border-top: 0.5px solid #e0e0e0;
    border-bottom: 0.5px solid #e0e0e0;
    width: 32px;
    height: 32px;


}.sidebar .close:after {
    content: "\00d7";
    position: relative;
    margin-top: -1.35rem;
    padding-right: 2px;
    display: inline-block;
    /* This will render the 'X' */
}.sidebar .close:hover {
    color: var(--clr-primary-hover);
}span#user-avatar-name {
    font-weight: 600;
    white-space: nowrap;
    /*opacity: 0;*/
    /* Start unsichtbar */
    transition: opacity 0.2s ease;
    border-right: 2px solid transparent;
    padding-right: 4px;
}/* wird per JS gesetzt, sobald getippt wird */span#user-avatar-name.visible {
    opacity: 1;
}span#user-avatar-name.typing {
    border-right: 2px solid currentColor;
    animation: blink-caret 0.7s step-end infinite;
}@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: currentColor;
    }
}.tenant-switch {
    border-radius: 0.5rem;
    font-size: 0.95rem;
    width: auto !important;
}.tenant-switch[disabled] {
    opacity: 0.95 !important;
    -webkit-appearance: none !important;
    /* Safari/Chrome */
    -moz-appearance: none !important;
    /* Firefox */
    appearance: none !important;
    /* Standard */
    background-image: none !important;
    /* falls ein Icon per CSS gesetzt ist */
    width: auto !important;
}.tenant-switch::-ms-expand {
    display: none;
}nav.breadcrumbs a {
    color: var(--pico-color-grey-50);
    text-decoration-color: var(--pico-color-grey-50);
}@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.open+.main-container {
        /* when sidebar is open, push content */
        transform: translateX(var(--sidebar-w));
        width: calc(100% - var(--sidebar-w));
    }

    .sidebar.open .sidebar-logo {
        text-align: left;
    }

    .page-title {
        display: none;
    }

    .tenant-switch {
        display: none;
    }


    .topbar,
    .content {
        margin-left: 0;
    }

    /* kein Overlay auf kleinen Screens */
    .topbar [data-nav-toggle] {
        display: block;
        padding: 0;
        padding-right: 15px;
        font-size: 1.5rem;
        text-align: left;
    }

    .sidebar.open+.main-container .topbar [data-nav-toggle] {
        opacity: 0;
    }

    .sidebar.open .close {
        display: inline;
    }

    /*.sidebar.open+.main-container .topbar .topbar-actions .tenant-switch {
        display: none;
    }*/

    /*.sidebar.open .sidebar-logo .logo {
        display: none;
    }

    .sidebar.open .sidebar-logo span {
        display: none;
    }*/

    .page-title {
        font-size: 1rem;
    }

    .topbar {

        justify-content: flex-end;

    }
}/* Minimal-Modal CSS (kannst du in deine globale CSS übernehmen) */.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}.modal {
    width: min(520px, 100%);
    background: var(--card, #fff);
    color: inherit;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    overflow: hidden;
}.modal-header,
.modal-footer {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}.modal-footer {
    border-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    justify-content: flex-end;
}.modal-body {
    padding: 14px;
}.field label {
    display: block;
    font-size: 12px;
    opacity: .8;
    margin-bottom: 6px;
}.field input,
.field select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .15);
    background: transparent;
    color: inherit;
}.error {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 0, 0, .08);
    border: 1px solid rgba(255, 0, 0, .25);
}.loader {
  opacity: 0.8;
  color: transparent;   
  background: var(--loader-bg);
  box-sizing: border-box;
  padding-left: 0px;
  padding-right: 0px;
  animation: animloader 0.3s ease infinite alternate;
}.loader * {
    visibility: hidden;       
}@keyframes animloader {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.2;
  }
}td, th {
    background-color: var(--clr-bg);
}