@import 'views/login-view.css';
@import 'components/sideNav.css';
@import 'components/datePicker.css';
@import 'components/grid.css';
@import 'components/toolbar.css';
@import 'components/form.css';
@import 'components/card.css';
@import 'components/vaadin-button.css';
@import 'views/actionView.css';
@import 'custom-theme.css';

:root{
    --theme-color : #8d8d8e; /*pour que la barre de scroll n'ai pas la couleur par défaut de vaadin le temps de chargement du style */
}

html.inventory-theme{
    --theme-color : #2fcacc;
    --lumo-button-primary-text-color : black;
    --lumo-button-secondary-text-color : #696969;
    --menu-background-color :  var(--theme-color);
    --menu-text-color : black;
    --menu-icon-color : black;
    --tab-text-color : var(--lumo-body-text-color);
    --edit-button-color : var(--lumo-body-text-color);
    --checkbox-text-color : var(--lumo-body-text-color);
}

html.logistics-theme {
    --theme-color : #e95d19;
    --lumo-button-secondary-text-color : var(--theme-color);
    --menu-background-color : white;
    --menu-text-color : var(--theme-color);
    --menu-icon-color : var(--theme-color);
    --tab-text-color : var(--theme-color);
    --edit-button-color : var(--theme-color);
    --checkbox-text-color : var(--lumo-primary-contrast-color);
}

html.laundry-theme {
    --theme-color : #31859c;
    --lumo-button-secondary-text-color : var(--theme-color);
    --menu-background-color : white;
    --menu-text-color : var(--theme-color);
    --menu-icon-color : var(--theme-color);
    --tab-text-color : var(--theme-color);
    --edit-button-color : var(--theme-color);
    --checkbox-text-color : var(--lumo-primary-contrast-color);
}



html {
	--lumo-primary-color: var(--theme-color);
	--lumo-secondary-color: var(--theme-color);
	--lumo-tertiary-color: var(--theme-color);
	--lumo-primary-text-color: var(--theme-color);
	--lumo-font-size-m : 12pt;

    --vaadin-app-layout-drawer-width : 14em;

    /*COULEURS */
    --heading-text : #252526;
    --body-text : #323233;
    --secondary-text:#696969;
    --tertiary-text:#8d8d8e;
    --app-background-color : #f4f5f7;
    --border-color : #b4b4b4;
    --text-input-color: #fff;
    --custom-text-field-background: transparent;



    /*--error-text-color:#ca150c;*/

}




@media all and (max-width: 700px) {

	.list-view.editing .toolbar,
	.list-view.editing .contact-grid {
		display: none;
	}

	.list-view {
        padding: 0px !important;
    }
}

@media all and (min-width: 700px) {

    .drawerFilterMobile{
        display : none;
    }
}


.mainLayout{
    --header-color : black;
}

a[highlight] {
	font-weight: bold;
	text-decoration: underline;
}

vaadin-app-layout{
    background-color : var(--app-background-color);
}

.innerAppLayout{
    background-color : white;
    border-radius: 15px;
}


.align-right {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: end;

}

.hide{
    display: none;
}

.integer-filter{
    width: 120px;
    margin-right: -10px;
}

vaadin-combo-box-item{
    justify-content : center;
}


.appHeader{
    display: flex;
    justify-content: space-between;
}

.drawerFilterMobile{
    position: absolute;
    width: 100%;
    background-color: white;
    z-index: 2;
    bottom : 0;
    box-shadow: var(--lumo-box-shadow-xl);

}

.subSection > vaadin-details-summary{
    margin-left : 20px;
}

.text-wrap{
    text-wrap : wrap;
}

.errorMessage{
    color : #ca150c;
    font-size: 11pt;
    font-weight : normal;
}

.languageSelectHeader{
    width : 100px;
    vaadin-select-value-button{
        color : var(--theme-color);
        /*padding-bottom : 5px;*/
    }
}

.languageSelectHeader::part(toggle-button),.languageSelectHeader > [slot="prefix"]{
   color : var(--theme-color);
}

vaadin-text-field[disabled]{
    input,label{
        -webkit-text-fill-color:var(--lumo-contrast-60pct);
    }
}

.dashboard-view{
    padding : 0;
    gap : 0;
}

.appHeaderLayout{
    vaadin-button, vaadin-select::part(input-field) {
        background : none;
    }
}


.custom-notification::part(content),.custom-notification::part(overlay){
    background-color : red;
    color : white;
    border-radius : 15px;
}

.dialogUpload h3{
    color : red;
    font-size : 12pt;
}

.menuActionBarItems > file-download-wrapper > a > vaadin-button{
    justify-content : start;
}
.menuActionBarItems > file-download-wrapper > a > vaadin-button,.menuActionBarItems > file-download-wrapper{
  width : 100%;
  display : grid;
  margin : 0px;
}


vaadin-progress-bar[theme="contrast"]::part(value) {
    background-color: #ff8f00;
}

.topBarDashboard{
    justify-content: space-between;
}

.noPadding{
    padding : 0px;
}

.noMargin{
    margin: 0px;
}

.countFiltreLabelDiv{
    position : relative;
    display : inline-block;
}
.countFiltreLabel{
    position: absolute;
    top: -10px;
    right: 8px;

}
.btn-header-topbar{
    color:#fff;

    vaadin-icon{
        color:var(--theme-color);
    }
    vaadin-select-value-button{
        color:#fff;
    }
}
#open-button{
    min-width:24px;
}

.filterLayoutMap  {
    display: flex;
    flex-wrap: wrap;
}