﻿/* WISO Window Content */
.wiso_window-content {
    padding: var(--wiso-contant-padding);
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: var(--wiso-contant-font-size);
    color: var(--wiso-content-color);
}

/* Window Header */
.wiso_window-header .wiso_navbar-title {
    text-align: center;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: var(--wiso-navbar-title-font-size);
    color: var(--wiso-navbar-title-color);
    font-weight: var(--wiso-navbar-title-font-weight);
}

.wiso_window-header {
    background-color: var(--wiso-navbar-background-color);
    background: var(--wiso-navbar-background);
    padding: var(--wiso-header-padding);
    height: var(--wiso-header-height);
}

.wiso_window .wiso_window-header .wiso_toolbar .wiso_navbar {
    background-color: var(--wiso-navbar-Background-color);
    padding: var(--wiso-navbar-padding);
    border: var(--wiso-navbar-border);
}

.wiso_window-header .wiso_navbar {
    height: var(--wiso-navbar-height);
    background: var(--wiso-navbar-background);
}

.wiso_window-header .title_max {
    height: var(--wiso-navbar-title-height);
    align-content: center;
}

/* Form Window */
.wiso_formWindow {
    --wiso-navbar-title-font-size: 36px;
    --wiso-navbar-title-font-weight: 400;
    --wiso-header-height: 100px;
    --wiso-navbar-title-height: 100px;
    --wiso-header-padding: 0 28px;
    --wiso-navbar-height: 100px;
    padding-bottom: 45px;
}

.wiso_formWindow_no_bottom {
    --wiso-navbar-title-font-size: 36px;
    --wiso-navbar-title-font-weight: 400;
    --wiso-header-height: 75px;
    --wiso-navbar-title-height: 75px;
    --wiso-header-padding: 0 28px;
    --wiso-navbar-height: 100px;
    padding-bottom: 0;
}

.wiso_Window_no_bottom {
    --wiso-navbar-title-font-size: 20px;
    --wiso-navbar-title-font-weight: 400;
    --wiso-header-height: 75px;
    --wiso-navbar-title-height: 75px;
    --wiso-header-padding: 0 28px;
    --wiso-navbar-height: 100px;
    border: solid 3px black;
    padding-bottom: 0;
}

.wiso_subWindow_no_bottom {
    --wiso-navbar-title-font-size: 20px;
    --wiso-navbar-title-font-weight: 400;
    --wiso-header-height: 100px;
    --wiso-navbar-title-height: 75px;
    --wiso-header-padding: 10px 28px;
    --wiso-navbar-height: 100px;
    border: solid 3px black;
    padding-bottom: 0;
}

.wiso_functionWindow {
    --wiso-navbar-title-font-size: 36px;
    --wiso-navbar-title-font-weight: 400;
    --wiso-header-height: 100px;
    --wiso-navbar-title-height: 100px;
    --wiso-header-padding: 0 28px;
    --wiso-navbar-height: 100px;
}

/* Subgrid Window */
.wiso_window_subgrid {
    --wiso-contant-padding: 0;
    --wiso-header-height: 10px;
    --wiso-header-padding: 0;
}

/* WISO Messages */
.wiso_message--warning {
    background-color: #F49519;
}

.wiso_message--chatbot {
    background-color: #3f4350;
    width: 500px;
    height: 300px;
}

/* WIS.messageWindow / wiso.confirm */
[data-wiso-theme=contrast-light] .wiso_alert__header {
    position: relative;
    margin-bottom: 20px;
    font-weight: var(--wiso-font-weight-medium);
    line-height: var(--wiso-line-height-normal);
    color: black;
    font-size: 32px;
}

[data-wiso-theme=contrast-light] .wiso_alert__content {
    height: 100%;
    font-weight: var(--wiso-font-weight-regular);
    color: black;
    line-height: 1.3;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-size: 24px;
    padding-right: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

[data-wiso-theme=dark] .wiso_alert__header {
    position: relative;
    padding-top: 30px;
    font-weight: var(--wiso-font-weight-medium);
    line-height: var(--wiso-line-height-normal);
    color: white;
    font-size: 32px;
}

[data-wiso-theme=dark] .wiso_alert__content {
    height: 100%;
    font-weight: var(--wiso-font-weight-regular);
    color: white;
    line-height: 1.3;
    overflow-y: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-size: var(--wiso-font-size-alert);
    margin-right: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Message Window Skins */
.wiso_confirm_window {
    background-image: url("img/confirm.svg");
    background-repeat: no-repeat !important;
    width: 600px;
    height: 300px;
}

.wiso_error_window {
    background-image: url("img/error.svg");
    background-repeat: no-repeat !important;
    width: 600px;
    height: 300px;
    --wiso-font-size-alert: 24px;
}

.wiso_error_window_small {
    background-image: url("img/error.svg");
    background-repeat: no-repeat !important;
    width: 600px;
    height: 300px;
    --wiso-font-size-alert: 14px;
}

.wiso_warning_window {
    background-image: url("img/warning.svg");
    background-repeat: no-repeat !important;
    width: 600px;
    height: 300px;
    --wiso-font-size-alert: 24px;
}

.wiso_message_window {
    background-image: url("../img/message.svg");
    background-repeat: no-repeat !important;
    width: 600px;
    height: 300px;
    --wiso-font-size-alert: 24px;
}

/* Login Window */
.wiso_loginWindow_de {
    --wiso-navbar-title-color: #41A7E1;
    --wiso-navbar-title-font-size: 24px;
    background-image: url("../img/login-fenster-de.svg");
}

.wiso_loginWindow_en {
    --wiso-navbar-title-color: #41A7E1;
    --wiso-navbar-title-font-size: 24px;
    background-image: url("../img/login-fenster-en.svg");
}

.wiso_loginWindow_form {
    --wiso-font-color-primary: black;
}

.wiso_loginWindow_user {
    --wiso-font-color-active: black;
}

/* Filter / Confirm / Tabbar */
.wiso_filterWindow {
    --wiso-navbar-title-font-size: 18px;
}

.wiso_confirmWindow {
    --wiso-contant-font-size: 18px;
    --wiso-navbar-title-font-size: 18px;
}

.wiso_tabbarWindow {
    --wiso-navbar-title-font-size: 18px;
    --wiso-header-height: 100px;
    --wiso-header-padding: 30px 0 0 0;
}

.wiso_header-wrapper {
    display: var(--wiso-header-wrapper);
}

.wiso_filtergrid {
    --wiso-header-wrapper: none;
}

/* Filemanager */
.wiso_filemanager_tree {
    padding: 10px;
}

.wiso_fileManagerWindow {
    --wiso-navbar-title-font-size: 24px;
    --wiso-header-height: 80px;
    border: solid 2px #cecece;
    padding: 8px;
}

.wiso_fileManagerButton {
    padding: 3px 1px;
    font-size: 15px;
    font-family: Arial;
}

/* Progress im Grid */
.wiso_progress_bar {
    height: 100%;
    background-color: #F49519;
    text-align: left;
    padding-left: 20px;
    color: white;
    line-height: 8px;
    border-radius: 5px;
    transition: width 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* Spinner-Anpassung */
.wiso_spinner .path {
    stroke: white;
}

/* Grid Rows Status */
.wiso_row_unsave {
    background: rgba(255, 0, 0, 0.5);
}

.wiso_row_select {
    background: rgba(11, 79, 158, 0.5);
}

.wiso_row_new {
    background: rgba(244, 149, 25, 1);
}

.wiso_row_error {
    background: red;
}

.wiso_row_expanded {
    background: #F49519;
}

/* XML-View Wrapper */
.wiso_xmlview {
    text-align: left;
    padding: 0 20px;
}

/* Grid-Icons / Toolbar */
.wiso_grid_img {
    height: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wiso-toolbar-button {
    display: flex;
    justify-content: center;
    padding: 0 12px;
}

.wiso_grid-row:hover {
    background-color: #0b4f9e50;
}

/* Kontextmenü */
.wiso_context_menu {
    z-index: 9999 !important;
}

/* Toolbar Search */
.wiso-toolbar_search_active {
    border-color: red;
}

/* Button-Abstände */
.wiso_button_right_20px {
    padding-left: 20px;
}

.wiso_button_left_10px {
    padding-right: 6px;
}

/* Window-Logo */
.window-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px 0 0;
}

.window-toolbar-logo {
    max-height: 50px;
    object-fit: contain;
}

/* Theme-Überschreibungen für Sidebar (wiso) */
[data-dhx-theme='theme-contrast-light'] {
    --wiso-color-primary: blue;
}

[data-wiso-theme=contrast-light] .wiso_sidebar__item--separator,
[data-wiso-theme=dark] .wiso_sidebar__item--separator {
    height: 1px;
    min-height: 1px;
    width: 100%;
    background-color: #cecece;
    margin: 2px 0;
}

[data-wiso-theme=contrast-light] .wiso_sidebar--popup-menu {
    --wiso-font-color-primary: #3c3c3b;
}

[data-wiso-theme=contrast-light] .wiso_sidebar-button:active,
[data-wiso-theme=contrast-light] .wiso_sidebar-button:hover {
    background-color: var(--wiso-background-additional);
    transition: background-color var(--wiso-transition-time) var(--wiso-transition-out);
}

[data-wiso-theme=contrast-light] .wiso_sidebar-button__html,
[data-wiso-theme=contrast-light] .wiso_sidebar-button__text:hover,
[data-wiso-theme=contrast-light] .wiso_sidebar-button__text:active {
    width: 100%;
    text-align: left;
    color: #0b4f9e;
}

[data-wiso-theme=contrast-light] .wiso_sidebar--popup-menu .wiso_menu-button:hover {
    --wiso-font-color-primary: #0b4f9e;
}

[data-wiso-theme=contrast-light] .wiso_sidebar--minimized .wiso_sidebar-button--select {
    padding-right: 12px;
}

[data-wiso-theme=dark] .wiso_sidebar-button__html,
[data-wiso-theme=dark] .wiso_sidebar-button__text:hover {
    width: 100%;
    text-align: left;
    color: #cecece;
}

[data-wiso-theme=dark] .wiso_sidebar--popup-menu .wiso_menu-button:hover {
    --wiso-font-color-primary: #cecece;
}

/* Inneres HTML im Hauptfenster */
.wiso_window__inner-html-content {
    height: 100%;
    overflow: hidden;
    background: url('img/Login-Background-W6-hybrid.svg') no-repeat !important;
}

/* DHTMLX Alerts / Menü */
.dhtmlx-alert-warning .dhtmlx_popup_title,
.dhtmlx-confirm-warning .dhtmlx_popup_title,
.dhtmlx-alert .dhtmlx_popup_title,
.dhtmlx-confirm .dhtmlx_popup_title {
    color: #fff;
    background: #F49519;
}

.dhtmlxMenu_material_Middle {
    padding-left: 350px;
    height: 50px;
    line-height: 50px;
}

    .dhtmlxMenu_material_Middle div.dhtmlxMenu_TopLevel_Text_right {
        right: 35px;
        top: 20px;
    }

/* Subgrid / Toolbar Button */
.subgrid {
    height: 40px;
}

.wiso_toolbar-button-subgrid {
    padding: 0 0 17px 0;
}

/* FileExplorer-Grid Theme */
.wiso_fileExplorer-grid {
    --wiso-border: none;
}

/* Spinner-Tweaks in Upload */
.wiso-cell-upload .wiso_spinner .path {
    background: url('img/icons_grid/file.ico');
}
