/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 23.03.2022, 09:38:41
    Author     : mauersda
*/
/*
aus global.css
*/

body .ui-fileupload-simple .ui-icon-plusthick:before {
    content: "\e934";
}

.pdm-col-50 {
    width: 50%;
}

.hide-table-header thead {
    display: none;
}

.width4col {
    width: 218px;
}

.p-field500 {
    width: 500px;
}

/* Editor Edit Feld anpassen */
.scrollTextEditor .ql-editor {
    overflow: auto;
    max-height: 200px;
}

.orange {
    background-color: #FFA500 !important;
}

/* dropdownlisten bei 5 Elementen ohne Scrollbalken */
.ui-selectonemenu-items-wrapper {
    max-height: 250px !important;
}

/* kleinere checkboxen */
body .ui-selectbooleancheckbox.ui-chkbox.ui-widget .ui-chkbox-box {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    min-height: 1.1rem;
}

/* Popups mit Scrollbalken  */
.ui-dialog .ui-dialog-content{
    max-width: 950px !important;
    max-height: 700px !important;
    overflow-y: scroll;
    margin-bottom: 5px !important;
}

/* Ausnahme für Dokument Betrachter Dialog in Projektansicht*/
.dok-view-dialog .ui-dialog-content {
    max-width: none !important;
    max-height: none !important;
    height: 100% !important;
    overflow: visible !important;
    margin-bottom: 0px !important;
}
.dok-view-dialog-height {
    height: 80% !important;
    overflow: visible !important;
}

.ui-dialog.dialogFitContentWidth .ui-dialog-content{
    max-width: fit-content !important;
    max-height: 700px !important;
    overflow-y: scroll !important;
}

.ui-dialog.dialogFitContentWidth2 .ui-dialog-content{
    max-width: 1300px !important;
    max-height: 700px !important;
    overflow-y: scroll !important;
}

body .ui-calendar.ui-trigger-calendar input.hasDatepicker {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
}

.ui-widget-header.calenderFullWidth .ui-inputfield, .ui-widget-content .ui-inputfield {
    font-weight: normal;
    width: 100%;
}

.seleconemenue-contentoverflow-kleiner .ui-selectonemenu-label {
    width: 80% !important;
}

/*
aus listdark.css
*/

.button10 {
    width: 10em;
}

.ctxmenu {
    width: 18em;
}

/* schmalere tabellenzeilen */
body .ui-datatable.ui-datatable-sm .ui-datatable-data > tr > td {
    padding: 0.3rem 0.3rem;
}

.editable {
    padding: 0.1rem 0.3rem !important;
}

body .ui-dialog .ui-dialog-titlebar, body .ui-datatable .ui-paginator {
    padding: unset;
}

/*.paginatorfilter.ui-datatable .ui-paginator .ui-paginator-top {
    height: 45px;
}*/

.selonemenuelabel .ui-selectonemenu-label{
    width: 85% !important;
}

.paginatorTab1 .ui-paginator {
    height: 42px !important;
}

.paginatorTab2 .ui-paginator {
    height: 42px !important;
}

.mylabel .ui-outputlabel-label {
    font-size: medium !important;
}

/*
TODO: kann eigentlich entfallen durch schriftsize 12 in den select boxen
.myselectone {
    transform: scale(0.9);
}

.custom-filter {
    transform: scale(0.85);
}
*/

.ui-paginator-top-left-content {
    margin-bottom: -0.6em;
}

.gray {
    background-color: #DADADA !important;
    font-style: italic;
}

.red {
    background-color: #FDE3E3 !important;
}

.gridSmallerSpace .ui-panelgrid td {
    padding: 2px 5px ;
}

.fullWidth {
    width: 100%;
}

/*
SMWA Logo und Farben
*/
/* farben der smwa seite */
.dunkelblau {
    background-color: #1d2c3f;
}

.hellblau {
    background-color: #cce3ed;
}

.textweiss {
    color: white;
}

.vorlback {
    background-color: rgba(253, 202, 95, 0.5) !important;
}

.header-dunkelblau {
    color: #1d2c3f;
    font-size: 40px;
    font-family: sans-serif;
    font-weight: bold;
}

.text-hoeher {
    position: relative;
    top: -.2em;
}

.menuheader {
    font-size: 1rem !important;
    color: #fdca5f;
}

/* url(/pdm/faces/jakarta.faces.resource/images/bg-wave.svg 
sachsen header url("https://www.styleguide.sachsen.de/dist/img/bg-wave.svg")
*/
.ui-layout-north {
    background-color: #1d2c3f;
    background-image: url("/pdm/faces/jakarta.faces.resource/images/bg-wave.svg"),
        linear-gradient(rgb(29, 44, 63), rgb(29, 44, 63)),
        linear-gradient(to top, rgb(230, 241, 246) 0px, rgb(230, 241, 246) 5px, rgb(231, 242, 246) 75px, rgb(255, 255, 255) 100%);
    background-position: 49.75% -3px,0 0,0 77px;
    z-index: 20 !important;
    overflow: visible !important;
}

/*Wenn das Logo in den Hintergrund implementiert wird. Geht nur wenn Kein Menü im oberen bereich ist.*/
/*.ui-layout-north {
    background-image:
        url("/pdm/faces/jakarta.faces.resource/images/logo-sachsen.png"),
        url("/pdm/faces/jakarta.faces.resource/images/bg-wave.svg"),
        linear-gradient(rgb(29, 44, 63), rgb(29, 44, 63)),
        linear-gradient(to top, rgb(230, 241, 246) 0px, rgb(230, 241, 246) 5px, rgb(231, 242, 246) 75px, rgb(255, 255, 255) 100%);

    background-position:
        left 20px top 10px,  
        49.75% -3px,
        0 0,
        0 77px;

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat, 
        repeat-x;  

    background-size: 
        auto 35px,  
        auto,       
        auto,       
        auto;       
}*/

/* toolbar texte weiß 
body .ui-toolbar {
    color: #fff;
    border: unset;
    background: unset;
}*/

body .ui-button {
    background: #1d2c3f;
    color: #fdca5f; /* textfarbe */
    font-weight: bolder;
    border: 2px solid #363f53;
    margin-right: 4px;
}

body .ui-button.ui-state-hover {
    background: #363f53;
    color: #fdca5f; /* textfarbe */
    font-weight: bolder;
    border: 2px solid #1d2c3f;
}

body .ui-button.ui-state-active {
    background: #363f53;
    color: #fdca5f; /* textfarbe */
    font-weight: bolder;
    border: 2px solid #1d2c3f;
}

body .ui-button.ui-state-focus {
    background: #363f53;
    color: #fdca5f; /* textfarbe */
    font-weight: bolder;
    border: 2px solid #1d2c3f;
}

body .ui-chkbox .ui-chkbox-box.ui-state-active {
    background: #1d2c3f;
    border-color: #363f53;
}

body .ui-selectbooleanbutton.ui-state-active:not(.ui-state-disabled):hover {
    background: #363f53;
    border-color: #1d2c3f;
}

/* tabellenselektion */
body .ui-datatable .ui-datatable-data > tr.ui-state-highlight {
    background: #cce3ed;
    font-weight: bold;
}

body .ui-commandlink, body .ui-datatable thead th.ui-state-active {
    color: #1d2c3f;
}

body .ui-commandlink, body .ui-datatable thead th.ui-state-active.ui-state-hover {
    color: #363f53;
}

body .ui-datatable thead th {
    color: #363f53;
}

/* icons in selectbuttons disablen */
body .ui-selectbooleanbutton .ui-icon {
    color: #911;
}

/* texte in selectbuttons disablen */
body .ui-selectbooleanbutton {
    color: #fff;
}

/* switchbuttons andere farbe */
body .ui-selectbooleanbutton.ui-state-active {
    background: #1d2c3f;
    border-color: #363f53;
}

/* select many butons table header */
body .ui-selectbooleanbutton.ui-state-active, body .ui-selectonebutton > .ui-button.ui-state-active, body .ui-selectmanybutton > .ui-button.ui-state-active {
    background: #1d2c3f;
    color: #fdca5f; /* textfarbe */
    font-weight: bolder;
    border: 2px solid #363f53;
}

.ui-layout-center, .ui-layout-south {
    background-color: #cce3ed;
}

body .ui-panel .ui-panel-titlebar {
    background-image: linear-gradient(#1d2c3f, #fff 25%);
}

body .ui-selectonemenu-label{
    font-size: 12px;
}

/* paltz nach links*/
.spaceleft {
    margin-right: .5rem !important; /* aus p-mr-2 */
    margin-left: 1rem !important;
}

/* aus jsfcrud, kleinere schrift usw */

.ui-widget {
    font-size: 12px !important;

}

.ui-layout-north .ui-layout-unit-content {
    overflow: visible !important;
}

.ui-widget-header {
    text-align: center;
}

.greyGrid td {
    background-color: #f2f2f2 !important;
}

.achterGrid {
    width: 100%;
    table-layout: fixed;
}

.achterGrid td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.achterGrid td:nth-child(odd) {
    width: 12.5%;
    font-weight: bold;
}

.achterGrid td:nth-child(even) {
    width: 12.5%;
}
.square-menu-button .ui-button {
    height: 40px;
    width: 40px;
    margin: 5px;
}

.ui-menu {
    width: auto !important;
    min-width: 12.5em;
}

.ui-menu .ui-menu-parent .ui-menu-child {
    width: max-content !important;
    max-width: 800px !important;
}

/* Größe soll nicht anpassbar sein daher kann das weg, sonst ist dort eine unnötige Lücke.*/
.ui-layout-resizer-north {
    display: none !important;
}
.ui-layout-pane-north {
    margin-bottom: 0 !important;
}
.ui-layout-pane-center {
    top: 75px !important;
}

.gesteinseigenschaften-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.korngroessen-grid {
    flex: 0 1 auto;
}

.korngroessen-grid .ui-panelgrid-cell {
    padding: 2px 5px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.rechte-gesteinsdaten {
    flex: 0 0 auto;
    width: max-content;
    max-width: 40%;
    min-width: max-content;
    margin-left: 20px;
    border-left: 1px solid #d5d5d5 !important;
}

.rechte-gesteinsdaten .ui-panelgrid-cell {
    padding: 3px 5px !important;
    white-space: nowrap;
}

.rechte-gesteinsdaten tr > td:first-child {
    padding-left: 15px !important;
}

.rechte-gesteinsdaten tr > td:nth-child(2) {
    padding-left: 20px !important;
}

.gesteins-bereich {
    display: block;
    padding-top: 15px;
    padding-bottom: 12px
}

/* Wird für das Panel benötigt, damit es die volle höhe entfalten kann mit den Flex Elementen darin.*/
.kontakt-edit-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.kontakt-edit-panel > .ui-panel-titlebar {
    flex: 0 0 auto;
}

.kontakt-edit-panel > .ui-panel-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}
