﻿input.k-textbox,
textarea.k-textbox {
    border-radius: 8px;
    box-sizing: border-box;
    height: 32.58px;
    padding: 0 12px;
    text-indent: 0;
}

.k-input .k-input-inner {
    border: none;
}

/* #region GRID */

.k-grid {
    border: none;
    border-radius: 0;
    font-size: 12.5px;
}

    .k-grid tbody,
    .k-grid-content {
        font-size: 12.5px;
    }

.k-grid-header .k-header,
.k-grid-header th {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 550;
}

.k-grid .k-grouping-row p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.k-grid .k-command-cell .k-button {
    min-width: 45px;
}

.k-grid-content tr .k-grid-edit-command,
.k-grid-content tr .k-grid-del {
    visibility: hidden;
}

.k-grid-content tr:hover .k-grid-edit-command,
.k-grid-content tr:hover .k-grid-del,
.k-grid-content tr.k-selected .k-grid-edit-command,
.k-grid-content tr.k-selected .k-grid-del {
    visibility: visible;
}

/* #endregion*/

/* #region Tooltips */
.k-tooltip {
    background-color: var(--color-tooltip-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.k-tooltip,
.k-tooltip-content {
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
}

.k-tooltip-content {
    padding: 4px 7px;
}

.k-tooltip.k-tooltip-validation {
    margin-top: -1px;
    padding: 2px 5px;
}

    .k-tooltip.k-tooltip-validation.k-invalid-msg {
        border: 1px solid transparent;
        background-color: var(--red);
        color: var(--color-font-white);
    }

        .k-tooltip.k-tooltip-validation.k-invalid-msg .k-callout-n {
            display: none;
        }

.k-invalid {
    border: 1px solid var(--red) !important;
}

/* #endregion */

/*#region window*/

.k-window {
    background-color: var(--surface);
}

.k-window-titlebar {
    min-height: 15px;
}

    .k-window-titlebar .k-window-title {
        font-size: var(--value-font-size);
        font-weight: 400;
        height: 20px;
        text-transform: uppercase;
    }

/*#endregion*/


/*################### NEW #######################*/

.k-button:has(> .site-icon:only-child) {
    min-height: 32.58px;
}

/* App main button = near-black (--color-btn-primary), overriding the Kendo Meridian
   primary (slate #334155). ONLY the button is recoloured — --kendo-color-primary and
   other primary accents (tags/switches) stay Kendo default. Hover/active LIGHTEN.
   Covers every k-button-primary incl. "Speichern & Schließen" (btn_save). */
.k-button.k-button-primary,
.k-button.k-button-solid-primary {
    background-color: var(--color-btn-primary);
    border-color: var(--color-btn-primary);
    color: var(--color-font-white);
}
.k-button.k-button-primary:hover,
.k-button.k-button-primary.k-hover,
.k-button.k-button-primary:active,
.k-button.k-button-primary.k-active,
.k-button.k-button-primary.k-selected,
.k-button.k-button-solid-primary:hover,
.k-button.k-button-solid-primary.k-hover,
.k-button.k-button-solid-primary:active,
.k-button.k-button-solid-primary.k-active,
.k-button.k-button-solid-primary.k-selected {
    background-color: color-mix(in srgb, var(--color-btn-primary) 85%, #fff);
    border-color: color-mix(in srgb, var(--color-btn-primary) 85%, #fff);
    color: var(--color-font-white);
}
.k-button.k-button-primary:focus,
.k-button.k-button-primary.k-focus,
.k-button.k-button-solid-primary:focus,
.k-button.k-button-solid-primary.k-focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-btn-primary) 28%, transparent);
}

/*editor*/

.k-editor .k-editor-toolbar:empty {
    display: none;
}

    .k-editor .k-editor-toolbar:empty + .k-editor-content {
        border-start-start-radius: inherit;
        border-start-end-radius: inherit;
    }

/* gantt */

.k-gantt-treelist .k-table-row .k-table-th.k-focus,
.k-gantt-treelist .k-table-row .k-table-td.k-focus {
    outline: none;
}

.k-gantt-timeline-pane tr:not(:hover) .k-task-single {
    background-color: transparent;
}

.k-gantt-timeline-pane .k-task-template {
    overflow: visible;
}

.k-gantt-tasks.k-table .k-table-td {
    overflow: visible;
}

/*menu*/
.k-menu-popup .k-menu-link {
    min-height: 33px;
}

.k-menu .k-menu-link-text {
    align-items: center;
    gap: 5px;
}

/*date picker*/
.k-popup .k-calendar {
    width: 100%;
}


/*tabstrip*/

.k-tabstrip-item .k-link-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.k-tabstrip-content:focus,
.k-tabstrip-content.k-focus,
.k-tabstrip > .k-content:focus,
.k-tabstrip > .k-content.k-focus {
    outline-width: 0;
}

/*#region loader*/

.k-loading-mask {
    cursor: progress;
}

    .k-loading-mask .k-loading-image,
    .k-loading-mask .k-loader {
        display: none !important;
    }

    .k-loading-mask .k-loading-color {
        background-color: var(--surface);
        opacity: 0.4;
    }

    .k-loading-mask.k-opaque .k-loading-color {
        opacity: 0.4;
    }

    .k-loading-mask::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 22px;
        margin: -11px 0 0 -11px;
        border: 3px solid var(--border-strong, rgba(0, 0, 0, .12));
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin .8s linear infinite;
        z-index: 1;
    }

/*#endregion*/

/*#region icons */
.k-icon.k-i-plus,
.k-icon.k-i-minus {
    display: inline-flex;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.k-icon.k-i-plus {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-minus {
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-arrow-60-up,
.k-icon.k-i-arrow-60-down,
.k-icon.k-i-arrow-60-left,
.k-icon.k-i-arrow-60-right,
.k-icon.k-i-arrow-chevron-up,
.k-icon.k-i-arrow-chevron-down,
.k-icon.k-i-arrow-chevron-left,
.k-icon.k-i-arrow-chevron-right,
.k-icon.k-i-sort-asc-sm,
.k-icon.k-i-sort-desc-sm,
.k-icon.k-i-more-vertical {
    display: inline-flex;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--ki-mask) center / contain no-repeat;
    mask: var(--ki-mask) center / contain no-repeat;
}

.k-icon.k-i-arrow-60-up,
.k-icon.k-i-arrow-chevron-up {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 15l6-6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-arrow-60-down,
.k-icon.k-i-arrow-chevron-down {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-arrow-60-left,
.k-icon.k-i-arrow-chevron-left {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 6l-6 6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-arrow-60-right,
.k-icon.k-i-arrow-chevron-right {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-sort-asc-sm {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 19V5M6 11l6-6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-sort-desc-sm {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M6 13l6 6 6-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-more-vertical {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='5' r='1.7' fill='black'/><circle cx='12' cy='12' r='1.7' fill='black'/><circle cx='12' cy='19' r='1.7' fill='black'/></svg>");
}

.k-icon.k-i-loading,
.k-icon.k-i-search,
.k-icon.k-i-info,
.k-icon.k-i-expand,
.k-icon.k-i-delete,
.k-icon.k-i-image,
.k-icon.k-i-align-left,
.k-icon.k-i-align-center,
.k-icon.k-i-align-right,
.k-icon.k-i-reorder,
.k-icon.k-i-foreground-color,
.k-icon.k-i-clock,
.k-icon.k-i-play,
.k-icon.k-i-droplet,
.k-icon.k-i-palette,
.k-icon.k-i-zoom,
.k-icon.k-i-zoom-in,
.k-icon.k-i-zoom-out {
    display: inline-flex;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--ki-mask) center / contain no-repeat;
    mask: var(--ki-mask) center / contain no-repeat;
}

.k-icon.k-i-loading {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a9 9 0 109 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>");
    animation: spin .7s linear infinite;
}

.k-icon.k-i-search {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/><path d='M21 21l-4.3-4.3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-info {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/><path d='M12 11v5M12 7.5v.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-expand {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-delete {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 7h14M10 7V5h4v2M7 7l1 12h8l1-12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-image {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='4' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/><circle cx='8.5' cy='9.5' r='1.6' fill='black'/><path d='M21 15l-5-4-9 8' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-align-left {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 6h16M4 12h10M4 18h13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-align-center {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 6h16M7 12h10M5 18h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-align-right {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 6h16M10 12h10M7 18h13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-reorder {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 8h16M4 12h16M4 16h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-foreground-color {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 16l4-10 4 10M7.5 12.5h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><rect x='5' y='19' width='14' height='2.4' rx='1' fill='black'/></svg>");
}

.k-icon.k-i-clock {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='2'/><path d='M12 8v4.5l3 1.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-play {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z' fill='black'/></svg>");
}

.k-icon.k-i-droplet {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.5s6 6.6 6 10.5a6 6 0 11-12 0c0-3.9 6-10.5 6-10.5z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/></svg>");
}

.k-icon.k-i-palette {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3a9 9 0 100 18 1.7 1.7 0 001.4-2.7 1.7 1.7 0 011.4-2.6H17a4 4 0 004-4 9 9 0 00-9-8.7z' fill='none' stroke='black' stroke-width='1.8'/><circle cx='7.5' cy='12' r='1' fill='black'/><circle cx='10' cy='8' r='1' fill='black'/><circle cx='14.5' cy='8' r='1' fill='black'/></svg>");
}

.k-icon.k-i-zoom {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='10.5' cy='10.5' r='6' fill='none' stroke='black' stroke-width='2'/><path d='M20 20l-5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-zoom-in {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='10.5' cy='10.5' r='6' fill='none' stroke='black' stroke-width='2'/><path d='M20 20l-5-5M10.5 8v5M8 10.5h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

.k-icon.k-i-zoom-out {
    --ki-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='10.5' cy='10.5' r='6' fill='none' stroke='black' stroke-width='2'/><path d='M20 20l-5-5M8 10.5h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}

/*#endregion*/
