﻿/* TEO design "Wendik Blau" – overrides on top of the Radzen material theme */

/*
 * Icon font for Firefox. Radzen registers its local icon font as "Material Symbols" and only with
 * the "woff2 supports variations" format. Firefox shows the ligature text ("arrow_drop_down") instead
 * of icons when "allow pages to choose their own fonts" is off (only allowlisted icon font names such
 * as "Material Symbols Outlined" pass) or when font variations are not supported. Same local file,
 * no internet access needed.
 */
@font-face {
    font-family: "Material Symbols Outlined";
    src: url("../_content/Radzen.Blazor/fonts/MaterialSymbolsOutlined.woff2") format("woff2-variations"),
         url("../_content/Radzen.Blazor/fonts/MaterialSymbolsOutlined.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
}

:root {
    --teo-bg: linear-gradient(135deg, #dbe9fb 0%, #e3e4f8 50%, #e9dcf6 100%);
    --teo-panel: rgba(255, 255, 255, 0.6);
    --teo-card: rgba(255, 255, 255, 0.7);
    --teo-row-hover: rgba(255, 255, 255, 0.85);
    --teo-chip: #ffffff;
    --teo-text: #14213a;
    --teo-muted: #6b7690;
    --teo-line: rgba(20, 33, 58, 0.07);
    --teo-accent: #1f5fd1;
    --teo-accent-hover: #194fb0;
    --teo-accent-soft: #dce8fb;
    --teo-primary: #0f2a5c;
    --teo-primary-hover: #1a3a78;
    --teo-danger: #e2544b;
    --teo-warning: #c98a12;
    --teo-success: #2e9d6b;
    --teo-page: #eef2fb;
    /* --teo-card on --teo-page, for elements that must cover what scrolls below them */
    --teo-card-solid: #fafbfe;
    /* Brand blue of wendik.de (#2025b0, hover #1a1e8d) */
    --teo-rail-bg: linear-gradient(180deg, #2a30c4 0%, #2025b0 45%, #1a1e8d 100%);
    --teo-rail-text: #ffffff;
    --teo-rail-muted: rgba(255, 255, 255, 0.65);
    --teo-rail-hover: rgba(255, 255, 255, 0.12);
    --teo-rail-line: rgba(255, 255, 255, 0.2);
    --teo-radius-card: 24px;
    --teo-radius-pill: 999px;
    --teo-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    /* Radzen */
    --rz-primary: var(--teo-accent);
    --rz-primary-light: #4c80dd;
    --rz-primary-lighter: var(--teo-accent-soft);
    --rz-primary-dark: var(--teo-accent-hover);
    --rz-primary-darker: #143f8f;
    --rz-on-primary: #ffffff;
    --rz-on-primary-lighter: var(--teo-text);
    --rz-text-font-family: var(--teo-font);
    --rz-text-color: var(--teo-text);
    --rz-text-secondary-color: var(--teo-muted);
    --rz-text-title-color: var(--teo-text);
    --rz-body-background-color: transparent;
    --rz-border-radius: 12px;
    --rz-icon-font-family: "Material Symbols Outlined", "Material Symbols";
}

html, body {
    font-family: var(--teo-font);
    color: var(--teo-text);
    background: #e3e4f8 var(--teo-bg) fixed;
    min-height: 100%;
}

/* ---------- Shell ---------- */

/* Blue menu on the left, the page lies on it as a light sheet; the active menu entry is a tab of that sheet */
/* The shell fills the window: the menu (with the avatar at the bottom) stays put, only the page scrolls */
.teo-shell {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--teo-rail-bg);
}

.teo-rail {
    height: 100%;
    min-height: 0;
    padding: 18px 0 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: var(--teo-rail-text);
}

.teo-rail-user {
    margin-top: auto;
    padding: 8px 12px 0 0;
    display: flex;
    justify-content: center;
}

/* The avatar sits at the bottom of the rail, so its menu opens upwards next to it */
.teo-rail-user .rz-profile-menu .rz-navigation-menu {
    top: auto !important;
    bottom: 0;
    left: calc(100% + 8px);
    min-width: 180px;
    z-index: 10 !important;
}

.teo-profile-menu.rz-profile-menu,
.teo-profile-menu.rz-profile-menu .rz-navigation-item,
.teo-profile-menu.rz-profile-menu .rz-navigation-item-wrapper,
.teo-profile-menu.rz-profile-menu .rz-navigation-item-link {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    /* Radzen clips the link, which would cut off the ring around the avatar */
    overflow: visible;
}

.teo-profile-menu.rz-profile-menu .rz-navigation-item-icon-children {
    display: none;
}

.teo-profile-menu.rz-profile-menu img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Vertical padding leaves room for the rounded corners of the active tab, which reach above and below it */
.teo-rail-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-height: 0;
    overflow-y: auto;
    padding: 19px 0;
    margin: -19px 0;
}

.teo-rail-divider {
    height: 1px;
    background: var(--teo-rail-line);
    margin: 6px 24px 6px 12px;
    flex-shrink: 0;
}

.teo-rail-item {
    position: relative;
    height: 38px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--teo-rail-text);
    display: flex;
    align-items: center;
    /* Fixed left padding: the icon keeps its position whether the entry is normal, hovered or active */
    justify-content: flex-start;
    padding: 0 0 0 20px;
    gap: 12px;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.teo-rail-item:hover {
    background: var(--teo-rail-hover);
    color: var(--teo-rail-text);
}

.teo-rail-item.active,
.teo-rail-item.active:hover {
    /* reaches into the page; the extra right padding keeps label and badge in place */
    margin-right: 0;
    padding-right: 12px;
    border-radius: 19px 0 0 19px;
    background: var(--teo-page);
    color: var(--teo-accent);
}

/* Inverted corners above and below the active tab, so it flows into the page */
.teo-rail-item.active::before,
.teo-rail-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    width: 19px;
    height: 19px;
    background: transparent;
    pointer-events: none;
}

.teo-rail-item.active::before {
    top: -19px;
    border-bottom-right-radius: 19px;
    box-shadow: 8px 8px 0 8px var(--teo-page);
}

.teo-rail-item.active::after {
    bottom: -19px;
    border-top-right-radius: 19px;
    box-shadow: 8px -8px 0 8px var(--teo-page);
}

.teo-rail-item .rzi {
    font-size: 21px;
}

.teo-rail-badge {
    position: absolute;
    z-index: 1;
    top: 3px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 600;
    background: #fff;
    color: var(--teo-accent);
}

.teo-rail-item.active .teo-rail-badge {
    right: 20px;
    background: var(--teo-accent);
    color: #fff;
}

.teo-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.teo-nav-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--teo-rail-muted);
    background: transparent;
    border: 0;
    padding: 10px 24px 4px 20px;
    cursor: pointer;
}

.teo-nav-group-head:hover {
    color: var(--teo-rail-text);
}

.teo-nav-group-head .rzi {
    font-size: 16px;
}

.teo-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--teo-page);
    border-radius: 28px 0 0 28px;
    padding: 20px 24px 20px 28px;
    height: 100%;
    overflow-y: auto;
}

.teo-anonymous {
    min-height: 100vh;
    padding: 20px;
}

@media (max-width: 768px) {
    /* On phones the menu is a bar above the page, without the tab shape */
    .teo-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .teo-rail {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .teo-rail-badge,
    .teo-rail-item.active .teo-rail-badge {
        top: -2px;
        right: -2px;
    }

    .teo-rail-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .teo-main {
        border-radius: 22px 22px 0 0;
        padding: 16px 12px;
    }

    .teo-rail-user {
        margin: 0 0 0 4px;
        padding: 0;
    }

    .teo-rail-user .rz-profile-menu .rz-navigation-menu {
        top: calc(100% + 8px) !important;
        bottom: auto;
        left: auto;
        right: 0;
    }

    .teo-rail-divider {
        display: none;
    }

    .teo-rail-item,
    .teo-rail-item.active,
    .teo-rail-item.active:hover {
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .teo-rail-item.active::before,
    .teo-rail-item.active::after {
        display: none;
    }

    .teo-page-head {
        top: -16px;
        margin-top: -16px;
        padding: 16px 0 10px;
    }

    .teo-toolbar, .teo-toolbar-group {
        width: 100%;
    }

    .teo-toolbar-group .teo-search {
        flex: 1 1 160px;
        width: auto;
    }
}

/* ---------- Page header ---------- */

.teo-crumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    color: var(--teo-muted);
}

.teo-crumbs a {
    color: var(--teo-muted);
    text-decoration: none;
}

.teo-crumbs a:hover {
    color: var(--teo-text);
}

.teo-crumbs .rzi {
    font-size: 16px;
}

/* The last breadcrumb entry is the page title */
.teo-crumbs h1.current {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--teo-text);
}

/* Breadcrumb/title in the first row, toolbar below */
.teo-page-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    /* Stays at the top of the scrolling page (.teo-main); sticky offsets count from inside the page padding,
       so the negative top and margin pull it up to the very edge */
    position: sticky;
    top: -20px;
    z-index: 5;
    background: var(--teo-page);
    margin: -20px 0 4px;
    padding: 24px 40px 10px 0;
}

.teo-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.teo-page-actions .teo-toolbar {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* ---------- Building blocks ---------- */

.teo-card {
    background: var(--teo-card);
    border-radius: var(--teo-radius-card);
    padding: 14px 18px 10px;
    margin-bottom: 16px;
}

.teo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.teo-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.teo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    height: 34px;
    /* optical centering: the font's ascent space makes lowercase labels ("am", "bis") sit low */
    padding: 0 14px 3px;
    border-radius: var(--teo-radius-pill);
    background: var(--teo-chip);
    color: var(--teo-text);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.teo-chip:focus {
    outline: none;
}

.teo-chip:focus-visible {
    outline: 2px solid var(--teo-accent);
    outline-offset: 1px;
}

.teo-chip:hover {
    border-color: var(--teo-accent-soft);
}

/* Chip that only shows a value, e.g. the number of processes */
.teo-chip.teo-chip-static {
    cursor: default;
}

.teo-chip.active {
    background: var(--teo-accent-soft);
    border-color: var(--teo-accent);
}

.teo-chip .rzi {
    font-size: 16px;
}

.teo-chip .teo-chip-remove {
    color: var(--teo-muted);
}

.teo-chip .teo-chip-remove:hover {
    color: var(--teo-danger);
}

.teo-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    width: 260px;
    max-width: 100%;
    padding: 0 16px;
    border-radius: var(--teo-radius-pill);
    background: var(--teo-chip);
    color: var(--teo-muted);
}

.teo-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--teo-text);
    width: 100%;
}

.teo-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--teo-chip);
    color: var(--teo-text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.teo-icon-button:hover {
    background: var(--teo-accent-soft);
}

.teo-icon-button.active {
    background: var(--teo-accent);
    color: #fff;
}

.teo-icon-button.small {
    width: 32px;
    height: 32px;
    background: transparent;
}

.teo-icon-button .rzi {
    font-size: 20px;
}

.teo-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.teo-avatar-1 { background: #1f5fd1; }
.teo-avatar-2 { background: #3d405b; }
.teo-avatar-3 { background: #2fa6a0; }
.teo-avatar-4 { background: #8b7be8; }
.teo-avatar-5 { background: #e07a5f; }
.teo-avatar-6 { background: #5b7fa6; }

.teo-tag {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--teo-radius-pill);
    white-space: nowrap;
    color: #fff;
}

/* Long purposes (up to 40 characters) wrap inside the grid cell instead of being cut off */
/* A table card fills the space below the page header and scrolls inside, so the column headers
   (sticky in Radzen) stay visible; the pager stays at the bottom */
.teo-main > .teo-card:has(> .rz-data-grid) {
    flex: 1 1 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.teo-main > .teo-card > .rz-data-grid {
    flex: 1 1 auto;
    min-height: 0;
}

/* Same for the ListView pages of the framework (user, role and log overview), which already grow inside */
.teo-main > .rz-stack:has(.rz-data-grid) {
    flex: 1 1 0;
    min-height: 320px;
}

.teo-appointment-grid .rz-cell-data .teo-tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
}

.teo-tag-1 { background: #1f5fd1; }
.teo-tag-2 { background: #8b7be8; }
.teo-tag-3 { background: #2fa6a0; }
.teo-tag-4 { background: #5b7fa6; }
.teo-tag-5 { background: #c1679a; }
.teo-tag-6 { background: #d08a3a; }

.teo-priority {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--teo-radius-pill);
    background: #fff;
    white-space: nowrap;
}

.teo-priority-low { color: var(--teo-success); }
.teo-priority-mid { color: var(--teo-warning); }
.teo-priority-high { color: var(--teo-danger); }

.teo-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--teo-radius-pill);
    background: var(--teo-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.teo-chip .teo-count {
    min-width: 18px;
    height: 18px;
    font-size: 10.5px;
    line-height: 1;
    margin-right: -6px;
    /* compensates the optical text shift of the chip, the badge stays geometrically centered */
    transform: translateY(1.5px);
}

.teo-chip:not(.active) .teo-count {
    background: var(--teo-accent-soft);
    color: var(--teo-text);
}

.teo-status {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--teo-radius-pill);
    white-space: nowrap;
}

.teo-status-new { background: #dce8fb; color: #143f8f; }
.teo-status-progress { background: #ebe5fb; color: #4a3a9e; }
.teo-status-other { background: #eceef2; color: #444b5c; }

.teo-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--teo-muted);
}

.teo-text-strong {
    font-weight: 600;
}

.teo-text-sub {
    display: block;
    font-size: 12.5px;
    color: var(--teo-muted);
    margin-top: 2px;
}

.teo-text-danger {
    color: var(--teo-danger);
    font-weight: 500;
}

/* ---------- Radzen overrides ---------- */

.rz-button {
    border-radius: var(--teo-radius-pill);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    box-shadow: none;
}

.rz-button.rz-primary.rz-variant-filled {
    background-color: var(--teo-primary);
}

.rz-button.rz-primary.rz-variant-filled:not(.rz-state-disabled):hover {
    background-color: var(--teo-primary-hover);
}

.rz-button.rz-light.rz-variant-filled {
    background-color: var(--teo-chip);
    color: var(--teo-text);
}

.rz-card, .rz-card.rz-variant-filled {
    background-color: var(--teo-card);
    border-radius: var(--teo-radius-card);
    box-shadow: none;
}

.rz-form-field.rz-variant-outlined .rz-form-field-content,
.rz-form-field.rz-variant-filled .rz-form-field-content {
    border-radius: 14px;
    background-color: #fff;
}

.rz-selectbar .rz-button {
    border-radius: var(--teo-radius-pill) !important;
    margin-right: 6px;
    border: 0;
    background-color: var(--teo-chip);
    color: var(--teo-text);
}

.rz-selectbar .rz-button.rz-state-active {
    background-color: var(--teo-accent);
    color: #fff;
}

.rz-data-grid {
    background-color: transparent;
    border: 0;
    border-radius: 16px;
}

/* Opaque (card color on the page), the header stays on top of the rows while they scroll */
.rz-data-grid .rz-grid-table thead th {
    background-color: var(--teo-card-solid);
    border-color: transparent;
}

.rz-data-grid .rz-grid-table thead th .rz-column-title-content,
.rz-data-grid .rz-grid-table thead th .rz-column-title {
    color: var(--teo-muted);
    font-weight: 500;
    font-size: 12.5px;
    text-transform: none;
}

.rz-data-grid .rz-grid-table tbody > tr > td {
    background-color: transparent;
    border-color: var(--teo-line);
}

.rz-data-grid .rz-grid-table-striped tbody > tr:nth-child(even) > td {
    background-color: transparent;
}

.rz-data-grid .rz-grid-table tbody > tr:hover > td {
    background-color: var(--teo-row-hover);
}

.rz-pager {
    background-color: transparent;
    border: 0;
    padding: 4px 0 2px;
    gap: 2px;
}

.rz-pager .rz-pager-element {
    min-width: 28px;
    min-height: 28px;
    width: auto;
    height: 28px;
    padding: 0 6px;
    letter-spacing: 0;
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rz-pager .rz-pager-pages {
    margin: 0 2px;
    height: 28px;
    display: inline-flex;
    gap: 2px;
}

.rz-pager .rz-pager-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rz-pager .rz-pager-page.rz-state-active {
    background-color: var(--teo-accent);
    color: #fff;
}

.rz-pager .rz-pager-element:not(.rz-state-disabled):not(.rz-state-active):hover {
    background-color: var(--teo-chip);
}

.rz-dialog {
    border-radius: var(--teo-radius-card);
}

.rz-notification-item-wrapper {
    border-radius: 16px;
}

/* Trinidat ListView cards (user, role and log administration) */
.overview-detail-card {
    border-radius: var(--teo-radius-card) !important;
    background-color: var(--teo-card) !important;
    box-shadow: none !important;
}

/* ---------- Appointment overview ---------- */

.teo-appointment-grid .rz-grid-table tbody > tr > td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

.teo-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: var(--teo-card);
    border-radius: var(--teo-radius-card);
}

/* ---------- Account pages (login, register, ...) ---------- */

.teo-account-card {
    border-radius: 28px;
    background: var(--teo-card);
}

.teo-account-card > .rz-col:first-child > .rz-card {
    background: linear-gradient(135deg, #1f5fd1 0%, #5b6fe0 55%, #8b7be8 100%) !important;
}

.teo-account-card .rz-card {
    border-radius: 0;
}

.rz-link, .rz-link .rz-link-text {
    color: var(--teo-accent);
}

/* ---------- Expandable rail ---------- */

.teo-shell {
    transition: grid-template-columns .2s ease;
}

.teo-shell.teo-rail-expanded {
    grid-template-columns: 248px minmax(0, 1fr);
}

.teo-rail-toggle {
    border: 0;
    cursor: pointer;
    font: inherit;
    margin-bottom: 8px;
    color: var(--teo-rail-muted);
}

.teo-rail-label {
    display: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Same left offset as the collapsed rail, so the icons do not move when expanding */
.teo-rail-expanded .teo-rail-item {
    padding: 0 16px 0 20px;
}

.teo-rail-expanded .teo-rail-item.active {
    padding-right: 28px;
}

.teo-rail-expanded .teo-rail-toggle .teo-rail-label {
    font-size: 13px;
}

.teo-rail-expanded .teo-rail-label {
    display: inline;
}

/* Positioned with z-index, otherwise the inverted corners of the active tab paint over the badge */
.teo-rail-expanded .teo-rail-badge,
.teo-rail-expanded .teo-rail-item.active .teo-rail-badge {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    font-size: 12px;
    padding: 0 8px;
}

@media (max-width: 768px) {
    .teo-rail-toggle {
        display: none;
    }

    .teo-shell.teo-rail-expanded {
        grid-template-columns: minmax(0, 1fr);
    }

    .teo-nav-group {
        display: contents;
    }

    .teo-nav-group-head {
        display: none;
    }

    .teo-rail-expanded .teo-rail-label {
        display: none;
    }

    .teo-rail-expanded .teo-rail-item {
        padding: 0;
        justify-content: center;
    }

    .teo-rail-expanded .teo-rail-badge,
    .teo-rail-expanded .teo-rail-item.active .teo-rail-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        margin: 0;
    }
}

/* Search field that takes all remaining toolbar width */
.teo-search.teo-search-wide {
    flex: 1 1 240px;
    width: auto;
    max-width: none;
}

/* ---------- FilterToolbar ---------- */

.teo-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

.teo-page-actions .teo-filter {
    margin-bottom: 0;
}

.teo-filter .teo-filter-panel {
    margin-bottom: 0;
}

.teo-filter .teo-text-sub {
    margin: 0;
}

.teo-toolbar-divider {
    width: 1px;
    height: 22px;
    margin: 0 4px;
    background: var(--teo-line);
}

/* ---------- FloatingAddButton ---------- */

.teo-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    height: 52px;
    min-width: 52px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--teo-radius-pill);
    background: var(--teo-primary);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 42, 92, 0.28);
    transition: background-color .2s ease, padding .2s ease;
}

.teo-fab .rzi {
    font-size: 24px;
}

.teo-fab-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .25s ease, opacity .2s ease, margin .25s ease;
}

.teo-fab:hover, .teo-fab:focus-visible {
    background: var(--teo-accent);
    padding: 0 22px 0 16px;
    outline: none;
}

.teo-fab:hover .teo-fab-label, .teo-fab:focus-visible .teo-fab-label {
    max-width: 260px;
    opacity: 1;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .teo-fab {
        right: 16px;
        bottom: 16px;
    }
}

/* ---------- Dashboard ---------- */

.teo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.teo-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: var(--teo-radius-card);
    background: var(--teo-card);
    color: var(--teo-text);
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color .15s, background-color .15s;
}

a.teo-kpi:hover {
    color: var(--teo-text);
    background: var(--teo-row-hover);
    border-color: var(--teo-accent-soft);
}

.teo-kpi-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teo-muted);
}

.teo-kpi-label .rzi {
    font-size: 18px;
}

.teo-kpi-value {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.teo-kpi-sub {
    font-size: 12px;
    color: var(--teo-muted);
}

.teo-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.teo-dashboard-grid > .teo-card,
.teo-dashboard-side > .teo-card {
    margin-bottom: 0;
}

.teo-dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.teo-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.teo-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.teo-card-head a {
    font-size: 13px;
    color: var(--teo-accent);
    text-decoration: none;
}

.teo-upcoming {
    list-style: none;
    margin: 0;
    padding: 0;
}

.teo-upcoming li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    border-top: 1px solid var(--teo-line);
}

.teo-upcoming li:first-child {
    border-top: 0;
}

.teo-upcoming-date {
    width: 92px;
    flex-shrink: 0;
}

.teo-upcoming-main {
    flex: 1;
    min-width: 0;
}

.teo-upcoming-main .teo-text-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .teo-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Appointment detail ---------- */

.teo-detail-head {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.teo-detail-head .teo-spacer {
    flex: 1;
}

.teo-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.teo-detail-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.teo-detail-col .teo-card {
    margin-bottom: 0;
    padding: 16px 20px;
}

.teo-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.teo-card-title .rzi {
    color: var(--teo-accent);
    font-size: 20px;
}

.teo-card-title .teo-count-right {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--teo-muted);
}

.teo-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 14px;
}

.teo-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.teo-field > label {
    font-size: 12px;
    font-weight: 600;
    color: var(--teo-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.teo-field > label .teo-label-note {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.teo-field > label .teo-label-note .rzi {
    font-size: 14px;
}

.teo-field .rz-dropdown,
.teo-field .rz-textbox,
.teo-field .rz-textarea,
.teo-field .rz-datepicker,
.teo-field .rz-numeric {
    width: 100%;
}

.teo-field-hint {
    font-size: 12px;
    color: var(--teo-muted);
}

.teo-field .validation-message {
    font-size: 12px;
    color: var(--teo-danger);
}

.teo-span-2 { grid-column: span 2; }
.teo-span-3 { grid-column: span 3; }
.teo-span-4 { grid-column: span 4; }
.teo-span-6 { grid-column: span 6; }

.teo-stepper {
    display: flex;
    gap: 4px;
    align-items: center;
}

.teo-stepper > :not(button) {
    flex: 1;
    min-width: 0;
}

.teo-stepper > button {
    flex: 0 0 30px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--teo-line);
    background: #fff;
    color: var(--teo-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.teo-stepper > button:hover {
    color: var(--teo-accent);
}

.teo-stepper > button .rzi {
    font-size: 18px;
}

.teo-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.teo-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff4dc;
    color: #7a5000;
}

.teo-alert.info {
    background: var(--teo-accent-soft);
    color: #143f8f;
}

.teo-alert .rzi {
    font-size: 18px;
}

.teo-kv {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}

.teo-kv dt {
    color: var(--teo-muted);
    font-size: 13px;
}

.teo-kv dd {
    margin: 0;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teo-process-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.teo-process-head .teo-process-number {
    font-size: 18px;
    font-weight: 700;
}

.teo-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.teo-mini-list li {
    display: grid;
    grid-template-columns: 64px 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 6px;
    border-top: 1px solid var(--teo-line);
    border-radius: 10px;
}

.teo-mini-list li:first-child {
    border-top-color: transparent;
}

.teo-mini-list li.clickable {
    cursor: pointer;
}

.teo-mini-list li.clickable:hover {
    background: var(--teo-row-hover);
}

.teo-mini-list li.current {
    background: var(--teo-accent-soft);
    border-top-color: transparent;
}

.teo-mini-list .teo-mini-main {
    min-width: 0;
}

.teo-mini-list .teo-mini-main .teo-text-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teo-mini-list.day li {
    grid-template-columns: 46px minmax(0, 1fr) auto;
}

.teo-empty {
    color: var(--teo-muted);
    font-size: 13px;
    padding: 4px 0;
}

.teo-capacity {
    margin-bottom: 10px;
}

.teo-capacity-bar {
    height: 8px;
    border-radius: var(--teo-radius-pill);
    background: rgba(20, 33, 58, 0.08);
    overflow: hidden;
    display: flex;
    gap: 2px;
}

.teo-capacity-bar i {
    display: block;
    height: 100%;
    background: var(--teo-accent);
    border-radius: var(--teo-radius-pill);
}

.teo-capacity-bar i.current {
    background: var(--teo-primary);
}

.teo-capacity-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--teo-muted);
    margin-top: 6px;
}

.teo-capacity-label b {
    color: #7a5000;
}

.teo-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12px;
    color: var(--teo-muted);
    padding: 0 4px;
}

.teo-detail-meta b {
    color: var(--teo-text);
    font-weight: 600;
}

.teo-dirty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--teo-muted);
}

.teo-dirty::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teo-warning);
}

/* Complete dialog */
.teo-question {
    border: 1px solid var(--teo-line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.teo-question-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.teo-question-title .rzi {
    color: var(--teo-accent);
    font-size: 20px;
}

.teo-question p {
    margin: 4px 0 10px;
    color: var(--teo-muted);
    font-size: 13px;
}

.teo-question p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .teo-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .teo-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teo-span-3,
    .teo-span-4,
    .teo-span-6 {
        grid-column: span 2;
    }
}

.teo-appointment-grid .rz-data-row {
    cursor: pointer;
}

.teo-upcoming li.clickable {
    cursor: pointer;
    border-radius: 10px;
}

.teo-upcoming li.clickable:hover {
    background: var(--teo-row-hover);
}

.teo-field-hint a {
    color: var(--teo-accent);
    text-decoration: none;
}

.teo-stepper .rz-datepicker input {
    min-width: 0;
}

/* ---------- Year overview ---------- */

.teo-year {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 37 day columns do not fit on small screens, the calendar scrolls sideways there */
.teo-year-scroll {
    overflow-x: auto;
}

.teo-year-grid {
    display: grid;
    grid-template-columns: 64px repeat(37, minmax(26px, 1fr));
    gap: 3px;
    min-width: 1100px;
}

.teo-year-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--teo-muted);
    padding-bottom: 4px;
}

.teo-year-weekday.weekend {
    color: #a3abbd;
}

.teo-year-month {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--teo-text);
}

.teo-year-day {
    height: 30px;
    border: 0;
    border-radius: 7px;
    padding: 0;
    font: inherit;
    font-size: 12px;
    color: var(--teo-text);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--teo-line);
    cursor: pointer;
}

.teo-year-day.blank {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.teo-year-day.free.weekend {
    background: #eef1f7;
    color: var(--teo-muted);
}

.teo-year-day.planned {
    background: #f8c4bf;
}

.teo-year-day.full {
    background: var(--teo-danger);
    color: #ffffff;
}

.teo-year-day.vacation {
    background: var(--teo-success);
    color: #ffffff;
}

.teo-year-day.overbooked {
    background: #9e2a22;
    color: #ffffff;
}

.teo-year-day.sickness {
    background: #2025b0;
    color: #ffffff;
}

/* Public holidays and company vacation of "ALLGEMEIN": green day number as in Access */
.teo-year-day.general {
    color: var(--teo-success);
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--teo-success);
}

.teo-year-day.today {
    box-shadow: inset 0 0 0 2px var(--teo-accent);
    font-weight: 700;
}

button.teo-year-day:hover {
    filter: brightness(0.93);
}

.teo-year-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.teo-year-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--teo-text);
}

.teo-year-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 4-week overview ---------- */

.teo-weeks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 1100px;
}

.teo-weeks-row {
    display: grid;
    grid-template-columns: 96px repeat(28, minmax(28px, 1fr));
    column-gap: 3px;
    align-items: center;
}

.teo-weeks-row.block-start {
    margin-top: 10px;
}

/* Extra space between the weeks */
.teo-weeks-row > .week-start {
    margin-left: 8px;
}

.teo-weeks-head {
    grid-column: span 7;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px 6px;
    font-size: 13px;
}

.teo-weeks-head + .teo-weeks-head {
    margin-left: 8px;
}

.teo-weeks-employee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teo-text);
    text-decoration: none;
    border-radius: 10px;
    padding: 2px 6px 2px 0;
}

.teo-weeks-employee:hover {
    color: var(--teo-accent);
}

.teo-weeks-employee .teo-avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
    flex: 0 0 auto;
}

/* ---------- Pin board ---------- */

/* Card colors like the paper slips of the old wall */
:root {
    --teo-slip-workshop: #d6ecf7;
    --teo-slip-workshop-line: #7fb8d8;
    --teo-slip-field: #fadadd;
    --teo-slip-field-line: #e48c97;
    --teo-slip-absence: #d9f2df;
    --teo-slip-absence-line: #7cc596;
}

.teo-pin-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: -4px 0 12px;
    font-size: 12px;
    color: var(--teo-muted);
}

.teo-pin-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.teo-pin-swatch {
    width: 16px;
    height: 11px;
    border-radius: 3px;
}

.teo-pin-swatch.workshop { background: var(--teo-slip-workshop); box-shadow: inset 0 -1px 0 var(--teo-slip-workshop-line); }
.teo-pin-swatch.field { background: var(--teo-slip-field); box-shadow: inset 0 -1px 0 var(--teo-slip-field-line); }
.teo-pin-swatch.absence { background: var(--teo-slip-absence); box-shadow: inset 0 -1px 0 var(--teo-slip-absence-line); }
.teo-pin-swatch.urgent { width: 4px; background: var(--teo-danger); }

/* Fills the space below the page header and scrolls in itself, so the day headings stay visible */
.teo-main > .teo-pin {
    flex: 1 1 0;
    min-height: 320px;
    margin-bottom: 0;
    overflow: auto;
}

.teo-pin-grid {
    display: grid;
    grid-template-columns: 170px minmax(200px, 1.15fr) repeat(4, minmax(170px, 1fr));
    gap: 6px;
    min-width: 1100px;
}

.teo-pin-head {
    position: sticky;
    /* Card padding, so the heading sits at the top edge of the card */
    top: -14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 8px 10px;
    background: var(--teo-card-solid);
    font-size: 13px;
}

.teo-pin-head.overdue .teo-text-strong {
    color: var(--teo-danger);
}

.teo-pin-head.today .teo-text-strong {
    color: var(--teo-accent);
}

.teo-pin-head.weekend .teo-text-strong {
    color: var(--teo-muted);
}

/* The yellow name tags of the old wall */
.teo-pin-employee {
    align-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: #fff7d6;
    box-shadow: inset 0 0 0 1px #f0dc93;
    color: var(--teo-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.teo-pin-employee:hover {
    box-shadow: inset 0 0 0 1px var(--teo-warning);
}

.teo-pin-employee small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--teo-muted);
}

.teo-pin-employee .teo-avatar {
    flex: 0 0 auto;
}

/* Lined background like the rails of the wall */
.teo-pin-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 64px;
    padding: 6px;
    border-radius: 12px;
    background: repeating-linear-gradient(180deg, #f5f7fb 0 22px, #eef1f7 22px 24px);
}

.teo-pin-cell.overdue {
    background: repeating-linear-gradient(180deg, #fdf3f2 0 22px, #f8e7e5 22px 24px);
}

.teo-pin-cell.weekend {
    opacity: 0.8;
}

.teo-pin-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 6px 8px 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--teo-text);
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s;
}

.teo-pin-card.workshop { background: var(--teo-slip-workshop); box-shadow: 0 1px 0 var(--teo-slip-workshop-line), 0 2px 6px rgba(20, 33, 58, 0.06); }
.teo-pin-card.field { background: var(--teo-slip-field); box-shadow: 0 1px 0 var(--teo-slip-field-line), 0 2px 6px rgba(20, 33, 58, 0.06); }
.teo-pin-card.absence { background: var(--teo-slip-absence); box-shadow: 0 1px 0 var(--teo-slip-absence-line), 0 2px 6px rgba(20, 33, 58, 0.06); }

.teo-pin-card:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.teo-pin-card.urgent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--teo-danger);
}

.teo-pin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.teo-pin-place {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--teo-muted);
    white-space: nowrap;
}

.teo-pin-customer,
.teo-pin-pump {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.teo-pin-pump {
    font-size: 11px;
    color: var(--teo-muted);
}

.teo-pin-hint {
    margin-left: auto;
}

.teo-pin-hint .rzi {
    font-size: 16px;
}

/* Drag and drop: free cells are outlined while a card is dragged, the cell below the pointer is highlighted */
.teo-pin-card[draggable="true"] {
    cursor: grab;
}

.teo-pin-card.dragging {
    opacity: 0.45;
}

.teo-pin-cell.droppable {
    box-shadow: inset 0 0 0 1px rgba(31, 95, 209, 0.25);
}

.teo-pin-cell.drop-target {
    box-shadow: inset 0 0 0 2px var(--teo-accent);
    background: var(--teo-accent-soft);
}

.teo-pin-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    border: 1.5px dashed rgba(31, 95, 209, 0.45);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    color: var(--teo-accent);
    /* Drop events belong to the cell, not to this hint */
    pointer-events: none;
}

.teo-pin-drop .rzi {
    font-size: 16px;
}

.teo-pin-cell.drop-target .teo-pin-drop {
    border-style: solid;
    background: #ffffff;
}

.teo-pin-more {
    align-self: flex-start;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--teo-accent);
    text-decoration: none;
}

/* ---------- Week overview of one employee ---------- */

.teo-week {
    display: grid;
    grid-template-columns: 72px repeat(7, minmax(130px, 1fr));
    gap: 4px;
    min-width: 1000px;
}

.teo-week-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--teo-line);
    font: inherit;
    font-size: 13px;
    color: var(--teo-text);
    text-align: left;
    cursor: pointer;
}

.teo-week-head:hover {
    box-shadow: inset 0 0 0 1px var(--teo-accent);
}

/* Access colored weekends green */
.teo-week-head.weekend {
    background: #e3f4ec;
}

.teo-week-head.general {
    background: #e3f4ec;
    box-shadow: inset 0 0 0 2px var(--teo-success);
}

.teo-week-head.today {
    box-shadow: inset 0 0 0 2px var(--teo-accent);
}

.teo-week-time {
    padding: 6px 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--teo-muted);
    text-align: right;
}

.teo-week-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px var(--teo-line);
}

.teo-week-cell.weekend {
    background: #f1f3f8;
}

/* Separates the appointments without time like the gap in Access */
.teo-week-time.without-time,
.teo-week-cell.without-time {
    margin-top: 10px;
}

.teo-week-cell.without-time {
    min-height: 80px;
}

.teo-week-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 33, 58, 0.08), inset 0 0 0 1px var(--teo-line);
    color: var(--teo-text);
    font-size: 12px;
    text-decoration: none;
}

.teo-week-item:hover {
    box-shadow: inset 0 0 0 1px var(--teo-accent);
}

.teo-week-item-head {
    display: flex;
    gap: 6px;
}

.teo-week-item .teo-tag {
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
    line-height: 1.3;
}

.teo-week-capacity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--teo-line);
    font-size: 12px;
}

.teo-week-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--teo-accent-soft);
    overflow: hidden;
}

.teo-week-bar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--teo-accent);
}

.teo-week-bar > span.over {
    background: var(--teo-danger);
}

.teo-weeks-stepper .rz-datepicker {
    width: 130px;
}

.teo-year-legend .teo-year-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 20px;
    font-size: 11px;
    cursor: default;
}

/* ---------- Process detail ---------- */

.teo-tabs.rz-tabview {
    background: transparent;
    border: 0;
}

.teo-tabs .rz-tabview-nav {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(20, 33, 58, 0.12);
    gap: 26px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.teo-tabs .rz-tabview-nav li,
.teo-tabs .rz-tabview-nav li.rz-tabview-selected,
.teo-tabs .rz-tabview-nav li.rz-state-focused,
.teo-tabs .rz-tabview-nav li:hover {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: -1px;
}

.teo-tabs .rz-tabview-nav li::before,
.teo-tabs .rz-tabview-nav li::after,
.teo-tabs .rz-tabview-nav li a::before,
.teo-tabs .rz-tabview-nav li a::after {
    display: none;
}

/* .rz-tabview-nav li a:not([href]):not([class]) in material-base outranks a plain selector */
.teo-tabs.rz-tabview .rz-tabview-nav li a {
    padding: 10px 2px 11px;
    border-bottom: 3px solid transparent;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--teo-muted);
    transition: color 0.15s, border-color 0.15s;
}

.teo-tabs .rz-tabview-nav li:not(.rz-tabview-selected) a:hover {
    color: var(--teo-text);
    border-bottom-color: rgba(32, 37, 176, 0.25);
}

.teo-tabs .rz-tabview-nav li.rz-tabview-selected a {
    color: #2025b0;
    font-weight: 600;
    border-bottom-color: #2025b0;
}

.teo-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.teo-tab-label .rzi {
    font-size: 19px;
}

.teo-tab-count {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--teo-accent-soft);
    color: var(--teo-accent-hover);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.teo-tabs .rz-tabview-panels {
    background: transparent;
    padding: 0;
}

.teo-detail-wide {
    margin-top: 16px;
    padding: 16px 20px;
}

.teo-address-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.teo-address-grid > .teo-card {
    margin: 0;
    padding: 16px 20px;
}

@media (max-width: 1100px) {
    .teo-address-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.teo-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.teo-fieldset:disabled {
    opacity: 0.55;
}

.teo-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teo-text);
    cursor: pointer;
}

.teo-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-content: center;
}

.teo-card-subtitle {
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teo-muted);
}

.teo-readonly-value {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.teo-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.teo-mini-table th {
    padding: 6px 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--teo-muted);
    border-bottom: 1px solid var(--teo-line);
}

.teo-mini-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--teo-line);
    vertical-align: middle;
}

.teo-mini-table .num {
    text-align: right;
    white-space: nowrap;
}

.teo-mini-table tr.clickable {
    cursor: pointer;
}

.teo-mini-table tr.clickable:hover td {
    background: var(--teo-row-hover);
}

.teo-mini-empty {
    color: var(--teo-muted);
    text-align: center;
}

.teo-nowrap {
    white-space: nowrap;
}

.teo-avatar.small {
    width: 26px;
    height: 26px;
    font-size: 10px;
}

.teo-measure-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: separate;
    border-spacing: 4px;
}

.teo-measure-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--teo-muted);
    text-align: left;
    white-space: nowrap;
}

.teo-measure-table td .rz-textbox {
    width: 100%;
    min-width: 0;
}

.teo-measure-notes {
    margin-top: 12px;
}

.teo-billing-hint {
    margin-top: 16px;
}