.dashboard {
    /*width: 100%;
    min-width: 100%;
    max-width: 100%;*/
    position: relative;
    padding: 0px;
    /*
        TODO: ezt meg kéne fixálni. valamiért nem követi sajnos a konténer méret :(
    */
    --gzs-cell-height: max(10rem,7.5vw) !important;
    /*margin: 0.5rem;*/
}
.dashboard-widget{
    box-sizing: border-box;
    width: 100%; height: 100%;
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    background-color: var(--filter-bg);
    padding: 10px 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-widget h3{
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    font-weight: 300;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.dashboard-widget .d-w-content{
    /*flex-grow: 1;*/
    display: flex;
    justify-content: center;
    align-content: center;
    flex: 1;
    height: 100%;
    flex-direction: column;
    padding: 5px 15px;
    overflow: hidden;
}

.dashboard-widget [data-qfield-id="v0-ts"] {
    font-size: 10px;
}
.dashboard-widget .led_outer {
    margin: 15px;
}

.dashboard-header{
    /*width:100%;*/
    border-radius: 0.5rem;
    background-color: var(--filter-bg);
    padding: 1rem;
    margin: 0.5rem;
    box-shadow: var(--box-shadow);
}
.dashboard_editing .dashboard-widget {
    
}

.dashboard-user-function {
    position: absolute;
    right: 3px;
    top: 3px;
    z-index: 100;
    display: none;
}
.dashboard-user-function .btn{
    background-color: #0dcaf0;
    border-color:  #0dcaf0;
    padding: 0.275rem 0.5rem;
    
}

.dashboard-widget-edit{
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-left-radius: 0;

    background-color: rgba(var(--editorbarcolor),0.15);
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    padding: 0.125rem;
    min-height: 1rem;
    width: 100%;
    --editorbarcolor: 190,190,190;
    border: 2px solid rgba(var(--editorbarcolor),0.15);

}
.dashboard_editing .dashboard-widget-edit {
    display: block;
}

.dashboard-widget-edit-content{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dashboard_show_when_edit{
    display:none;
}

.dashboard_hide_when_edit{
    display: initial;
}
.dashboard_editing .dashboard_show_when_edit{
    display: initial;
}

.dashboard_editing .dashboard_hide_when_edit{
    display: none;
}
/*
.tab-pane:not(.active) {
    display: none;
}
*/

/*
    Eltüntetve indulnak a grid itemek.
    A :not azért van, hogy a később keletkező (így sosem fadeIn-elt), -placeholder néven futó, szerkesztés közben megjelenő árnyékok látszódjanak.
*/
.grid-stack-item:not(.grid-stack-placeholder){
    opacity: 0;
}

/*
    Zoom gomb megjelenítés
*/
.grid-stack-item:hover .dashboard-user-function {
  display: block;
}

.dashboard-user-function .compressbutton{
    display: none;
}

.widgetmodal{
    position: fixed !important;
    z-index: 1;
    
    top: 7rem !important;
    left: 1rem !important;
    right: 1rem !important;

    bottom: 1rem !important;
    box-shadow: black 0px 0px 50px;
    border-radius: 0.5rem;
    border: 0.25rem solid var(--color1);
}
.widgetmodal .dashboard-user-function{
  display: block;
}

.widgetmodal .expandbutton {
    display: none;
}

.widgetmodal .compressbutton {
    display: block;
}

/*
.d-w-content h1{
    margin-left: auto;
    margin-right: auto;
}*/
.d-w-content * {
  align-self: center;
}

.dashboard-editor-button {
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  margin: 0.25rem;
  background-color: var(--color1);
  color: black;
  border: none;
  
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}