/* some style */

:root {
    --background-color: rgba(240, 240, 240, 1.0);
    --readonly-background-color: rgba(245, 245, 245, 1.0);
    --writeable-background-color: rgba(255, 255, 255, 1.0);
    --focus-color: lightblue;
    --selected-background-color: lightgrey;
}

:focus-visible {
    border-color: var(--focus-color);
}

/* Only usefull, if the body in index.hetml has not the class w3-auto */
body {
    width: 100vw;
    margin: 0;
    padding: 0;
}

.selected {
    background-color: var(--selected-background-color);
}

.input-column {
    display: grid;
    grid-template-columns: max-content auto max-content;
    grid-column-gap: 0.3125em;  /* 5px */
    grid-row-gap: 0.625em; /* 10px; */
    padding: 0.3125em; /* 5px; */
    background-color: var(--background-color);
}

.input-cell {
    padding: 0.25em; /* 4px; */
    border-radius: 5px;
    border-color: var(--focus-color);
}

.label-cell {
    display: flex;
    align-items: center;
    padding: 0.25em 0;
    line-height: 1.4;
    min-height: calc(1.4em + 0.5em + 2px);
    white-space: nowrap;
}

.text-input-cell,
.number-input-cell {
    min-height: calc(1.4em + 0.5em + 2px);
}

/* UserPage: Eingabefelder doppelt so lang wie der Browser-Standard
   (Standard ~20 Zeichen -> 60 Zeichen). */
#user-realname,
#user-email,
#user-tel,
#user-fax,
#user-company {
    width: 60ch;
    max-width: 100%;
}

.select-wrap-cell {
    display: flex;
    align-items: center;
}

select.select-input-cell {
    box-sizing: border-box;
    margin: 0;
    line-height: 1.4;
    min-height: calc(1.4em + 0.5em + 2px);
    padding-left: 0.5em;
}

/* Fuer Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column; /* row */
}

.radio {
    background-color: var(--writeable-background-color);
}

.checkbox {
    background-color: var(--writeable-background-color);
    margin-top: 8px;
    /*margin-bottom: 8px;*/
}

.readonly {
    background-color: var(--readonly-background-color);
}

.writeable {
    background-color: var(--writeable-background-color);
}

/*
.text {
    white-space: none;
    text-overflow: ellipsis;
    overflow: auto;
}
*/

.parent-of-textarea {
    /*height: auto;*/
    width: 100%;
}

.textarea {
    /*white-space: pre*/ /* neccessary for scrolling and \n */
    /*text-overflow: ellipsis;
    overflow: auto;*/
    /*width: ;*/  /* geht nicht: fit-content; min-content; max-content; auto; geht: 80em; 100%;*/
    width: 100%;

    /*height: 2em;*/
    /*height: 100%;*/
    /*color: blue;*/
}

.translated-eng {
    border: 2px solid #d61a1a;
    background-color: #ffe9e9;
}

.text-number {
    margin: 0px;
    padding-left: 2px;
    width: 5em;
}

.save-dialog-single-line-input {
    display: block;
    width: 100%;
    margin: 0px;
    padding-left: 1px;
    box-sizing: border-box;
}

.save-dialog-single-line-wrap {
    margin-left: -14px;
}

.text-line {
    border-width: 1px;
    border-style: solid;
}

.reduce-gap-below {
    margin-bottom: -0.635em; /* -10px; */
}

.gap-between-editors {
    padding-left: 2px
}

.popdown-menu {
    padding: 0.25em;
    margin-left: -0.25em;
    border-radius: 5px;
}

/* TreeView */

/* Remove default bullets */

ul.treeview, #myUL {
  list-style-type: none;
}


/* Remove margins and padding from the parent ul */
#myUL {
  margin: 0;
  padding: 0;
}


/* Style the caret/arrow */
.caret {
  cursor: pointer;
  user-select: none; /* Prevent text selection */
}

 
/* Create the caret/arrow with a unicode, and style it */
.caret::before {
  content: "\25B6";
  color: black;
  display: inline-block;
  margin-right: 6px;
}

 
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
  transform: rotate(90deg);
}

/* Hide the nested list */
.nested {
  display: none;
}
 
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
  display: block;
}

.hm {
    background-color: #ffff00;
    border-width: 10px;
    border-style: double;
}

.content-show {
    margin-top: 0em;
    
}

.content-header {
    margin-top: 3em;
}

/* Toolbar above the editor text: keeps the "Editieren" checkbox and the
   "Sichern" button on one vertically centered line, reserves a fixed
   height so toggling "Sichern" does not push the text down, and adds a
   gap between the toolbar and the text below. */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 1em;
    min-height: 2.2em;
    margin-bottom: 0.5em;
}

/* 3D button style */
.vt-button {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ddd 100%);
    border: 1px solid #aaa;
    border-radius: 3px;
    box-shadow: 0 2px 0 #888;
    color: #333;
    cursor: pointer;
    font-size: inherit;
    margin-bottom: 2px;
    /*padding: 6px 14px;*/
    padding: 0.2em 0.2em;
    transform: translateY(0);
    transition: box-shadow 0.08s ease, transform 0.08s ease;
    white-space: nowrap;
}

.vt-button:hover {
    background: linear-gradient(to bottom, #fff 0%, #e8e8e8 100%);
}

.vt-button:active {
    box-shadow: 0 1px 0 #888;
    transform: translateY(2px);
}

.vt-button:disabled {
    background: linear-gradient(to bottom, #e0e0e0 0%, #ccc 100%);
    border-color: #bbb;
    box-shadow: 0 1px 0 #aaa;
    color: #999;
    cursor: default;
    transform: none;
}

.vt-button-primary {
    background: linear-gradient(to bottom, #6ccc6c 0%, #4aaa4a 100%);
    border-color: #3a8a3a;
    box-shadow: 0 3px 0 #2a6a2a;
    color: white;
}

.vt-button-primary:hover {
    background: linear-gradient(to bottom, #7dd97d 0%, #55b555 100%);
}

.vt-button-primary:active {
    box-shadow: 0 1px 0 #2a6a2a;
}

.vt-button-primary:disabled {
    background: linear-gradient(to bottom, #a8d8a8 0%, #8ec88e 100%);
    border-color: #7aaa7a;
    box-shadow: 0 1px 0 #6a9a6a;
    color: rgba(255, 255, 255, 0.75);
    transform: none;
}

.main-header-import {
    margin-right: 12px;
}

.action-button {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ddd 100%);
    border: 1px solid #aaa;
    border-radius: 3px;
    box-shadow: 0 2px 0 #888;
    color: #333;
    cursor: pointer;
    font-size: inherit;
    margin-bottom: 2px;
    /*padding: 5px 14px;*/
    padding: 0.2em 0.2em;
    transform: translateY(0);
    transition: box-shadow 0.08s ease, transform 0.08s ease;
    white-space: nowrap;
}

.action-button:hover {
    background: linear-gradient(to bottom, #fff 0%, #e8e8e8 100%);
}

.action-button:active {
    box-shadow: 0 1px 0 #888;
    transform: translateY(2px);
}

.action-button:disabled,
.action-button--disabled {
    background: linear-gradient(to bottom, #e0e0e0 0%, #ccc 100%);
    border-color: #bbb;
    box-shadow: 0 1px 0 #aaa;
    color: #999;
    cursor: default;
    transform: none;
}

.action-button--primary {
    background: linear-gradient(to bottom, #42a5f5 0%, #1976d2 100%);
    border-color: #1565c0;
    box-shadow: 0 2px 0 #0d47a1;
    color: #ffffff;
}

.action-button--primary:hover {
    background: linear-gradient(to bottom, #64b5f6 0%, #1e88e5 100%);
}

.action-button--primary:active {
    box-shadow: 0 1px 0 #0d47a1;
    transform: translateY(2px);
}

.action-button--secondary {
    background: linear-gradient(to bottom, #f5f5f5 0%, #ddd 100%);
    border-color: #aaa;
    box-shadow: 0 2px 0 #888;
    color: #333;
}

.action-button--danger {
    background: linear-gradient(to bottom, #ef5350 0%, #c62828 100%);
    border-color: #b71c1c;
    box-shadow: 0 2px 0 #7f0000;
    color: #ffffff;
}

.action-button--danger:hover {
    background: linear-gradient(to bottom, #f44336 0%, #d32f2f 100%);
}

.action-button--danger:active {
    box-shadow: 0 1px 0 #7f0000;
    transform: translateY(2px);
}

.action-button--ghost {
    background: transparent;
    border-color: #1976d2;
    box-shadow: none;
    color: #1976d2;
}

.action-button--loading {
    opacity: 0.7;
    cursor: progress;
}

/*
.main-header-btn-logout {
    width: 84px;
}

.main-header-btn-user {
    width: auto;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
}

.main-header-btn-f2p {
    width: auto;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
    margin-right: 0;
}
*/

.main-header-btn-logout,
.main-header-btn-user,
.main-header-btn-f2p,
.main-header-btn-right-groups,
.main-header-btn-user-admin {
    width: auto;
    white-space: nowrap;
    padding-left: 0.2em;
    padding-right: 0.2em;
    padding-top: 0em;
    padding-bottom: 0em;
    border-radius: 3px;
    font-size: 0.8rem
}



/* The button height */
/*
.main-header-btn-logout,
.main-header-btn-user,
.main-header-btn-f2p,
*/
.main-header-import-label,
.main-header-btn-translation,
.main-header-btn-groups,
.main-header-btn-texts {
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 3px;
}

.main-header-import-label {
    display: inline-block;
}

.main-header-btn-translation,
.main-header-btn-groups,
.main-header-btn-texts {
    margin-right: 4px;
}

.import-status-banner-actions {
    margin-top: 8px;
}

.import-status-banner-feedback {
    margin-top: 8px;
    font-size: 0.9rem;
}

.import-status-banner-feedback-success {
    color: #0b4a1f;
}

.import-status-banner-feedback-warning {
    color: #7a3a00;
}

.checkbox-label {
    margin-left: 0.2em;
}

/* Tooltip */
.tooltip {
    display: none;
}

/* Tooltip */
.tooltip-anchor:hover + .tooltip {    
    display: block;
}

/* Save dialog viewport and scrolling behavior */
.save-dialog-content {
    max-height: calc(100dvh - 98px);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 8px auto 24px;
    transform: translateY(-50px);
    overflow: hidden;
}

.save-dialog-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.save-dialog-footer {
    flex: 0 0 auto;
}

.save-dialog-blocker {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: wait;
}

.save-dialog-blocker-message {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
}


/*
.input-column < input {
    width: 80%;
}
*/

/*
.background {
    background-color: rgba(200, 200, 200, 0.5)
}

.input-ctrl {
    border-style: groove;
    border-width: 100px;
    border-color: yellow;
    border-radius: 50px;
    background: red;
    padding: 50px;
}

.row {
    /* background-color: lightgrey; * /
    border-spacing: 0px;
}

.column {
    /*border: 10px;
    padding: 10px;
    border-style: double * /
}
*/
