@import  url('https://fonts.googleapis.com/css2?family=Sarabun:wght@500&display=swap');

body.tobacco{
	background: #d3ecf4;
	font-family: var(--main-font-family) !important;
	overflow-x: hidden;
	font-size: 1em;
	font-weight: 400;
	box-sizing: border-box;
    max-width: 100%;
}

.tobacco .container .autocomplete-items{
	font-size: 17px;
	/* position: absolute; */
	border-left: 1px solid #d4d4d4;
    border-right: 1px solid #d4d4d4;
	/* left: 0 !important;
    top: 40px !important; */
	max-height: 400px;
	position: fixed;
}

.tobacco .dialog .input .autocomplete-items{
	position: fixed;
	/* left: auto !important;
    top: auto !important; */
}

.tobacco .dialog .container .tagCard{
	background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
    padding: .25rem;
    border-radius: .25rem;
	padding-left: 10px;
}

.tobacco input{
	padding-left: .75rem;
	padding-right: .75rem;
    line-height: calc(1.5em + .75rem);
    color: #495057;
	/* font-size: 1rem; */
    font-weight: 400;
    border: 1px solid #ced4da;
	height: calc(1.5em + .75rem + 2px) !important;
	border-radius: .25rem;
	font-family: var(--main-font-family) !important;
	width: 100%;
	background: #fff;
	font-size: 17px;
}

.tobacco input[type=checkbox]{
	width:24px;
	height:24px;
	text-align:center;
}

.tobacco .preview{
	display: flex;
	gap: 5px;
}

.tobacco .preview .path{
	padding-left: .75rem;
    padding-right: .75rem;
    line-height: calc(1.5em + .75rem);
    font-weight: 400;
    border: 1px solid #ced4da;
    height: calc(1.5em + .75rem + 2px) !important;
    border-radius: .25rem;
    font-family: var(--main-font-family) !important;
    width: 100%;
    background: #fff;
    font-size: 17px;
	color: blue;
    text-decoration: underline;
	cursor: pointer;
}

.tobacco .preview .icon.delete{
	color: #fff;
    background: #dc3545;
    border-radius: .25rem;
    width: 38px;
    height: 38px;
    align-items: center;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco input[type=radio]{
	padding-left: 0;
    padding-right: 0;
    line-height: 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 400;
    border: 1px solid #ced4da;
    height: 1.5rem !important;
    border-radius: 0;
    font-family: var(--main-font-family) !important;
    width: 1rem;
	vertical-align: middle;
	margin: 0;
}

/* .tobacco input[type=checkbox]{
	height: 31px !important;
    width: 23px !important;
    padding: 0 !important;
    margin: 0;
} */

.tobacco .lineLIFF input[type=checkbox] {
    height: 31px !important;
    width: 17px !important;
    padding: 0 !important;
    margin: 0;
}

.tobacco input::placeholder{
	color: #bdbdbd;
}

.tobacco input:focus-visible{
	outline: unset;
}

.tobacco input::-webkit-outer-spin-button,
.tobacco input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tobacco select{
	padding-left: .75rem;
	padding-right: .75rem;
    line-height: calc(1.5em + .75rem);
    color: #495057;
	font-size: 17px;
    font-weight: 400;
    border: 1px solid #ced4da;
	height: calc(1.5em + .75rem + 2px) !important;
	border-radius: .25rem;
	font-family: var(--main-font-family) !important;
	width: 100%;
}

.tobacco textarea{
	padding-left: .75rem;
	padding-right: .75rem;
    line-height: calc(1.5em + .75rem);
    color: #212529;
	font-size: 1rem;
    font-weight: 400;
    border: 1px solid #ced4da;
	height: calc(5em + .75rem + 2px) !important;
	border-radius: .25rem;
	font-family: var(--main-font-family) !important;
	width: 100%;
	resize: none;
}

.tobacco textarea.disabled{
	opacity: 1;
    color: #6b6b6b !important;
    border-color: #e9eff0 !important;
}

.tobacco .flowInput{
	border: 1px solid #ced4da;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
	display: flex;
	gap: 10px;
	/* opacity: .4; */
}

.tobacco .container .form .body .inputList{
	border: 1px solid #ced4da;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
}

.tobacco .flowInput div, .tobacco .flowInput label, .tobacco .flowInput input{
	cursor: pointer;
}

.tobacco .flowInput input:checked  .tobacco .flowInput{
	opacity: 1;
}

.tobacco .flowInput:hover{
	opacity: 1;
}

.tobacco iframe{
	box-sizing: border-box;
}

.tobacco.frontend .topBar{
	background: linear-gradient(150deg, rgba(24,142,154,1) 0%, rgba(25,147,160,1) 30%, rgba(24,142,154,1) 50%, rgba(40,210,227,1) 100%);
}

.tobacco.frontend .topBar{
	height: 83px;
	width: 100%;
	padding: 1.5rem 15vw!important;
	font-size: 1.25rem;
	display: flex;
	justify-content: space-between;
	color: #fff;
	position: relative;
}

.tobacco.backend .topBar{
	height: 57px;
	width: 100%;
	padding: 0 10px;
	font-size: 1rem;
	display: flex;
	justify-content: space-between;
	position: relative;
	color: #fff;
	background: #188f9b;
}

.tobacco .required{
	color: #dc3545!important;
}

.tobacco .topBar .image{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco .topBar .image img{
	width: 40px;
	height: 40px;
}

.tobacco.backend .menuContainer .header{
	height: 57px;
    padding: 0 15px;
    border-bottom: 1px solid #4b545c;
	cursor: pointer;
}

.tobacco.backend .menuContainer .header .image{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco.backend .menuContainer .header .image img{
	width: 33px;
	height: 33px;
}

.tobacco.backend .menuContainer .header .title{
	display: flex;
    flex-direction: column;
    justify-content: center;
	color: #fff;
	font-size: 1.25rem;
}

.tobacco .topBar .title{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco .topBar .account{
	display: flex;
	gap: 5px;
	cursor: pointer;
	user-select: none;
	justify-content: space-between;
}

.tobacco .topBar .account .label{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco .topBar .avatar{
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 3px 6px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)!important;
	object-fit: cover;
}

.tobacco .topBar .dropDownMenu{
	position: absolute;
	/* right: 5rem; */
	right: 15vw;
	top: 4rem;
    color: #212529;
	background: #fff;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: .25rem;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 18%);
	z-index: 1;
}

.tobacco .topBar .dropDownMenu .dropDownMenuContainer{
	padding: .5rem 0;
}

.tobacco .topBar .dropDownMenu .dropDownMenuContainer .group{
	border-bottom: 1px solid #e9ecef;
	padding: .3rem 0;
}

.tobacco .topBar .dropDownMenu .dropDownMenuContainer .menu{
	display: flex;
	gap: 10px;
	padding: .25rem 1rem;
	font-size: 1rem;
	cursor: pointer;
}

.tobacco .topBar .dropDownMenu .dropDownMenuContainer .menu:hover{
	color: #16181b;
    background-color: #f8f9fa;
	font-weight: bold;
}

.tobacco.frontend .container{
	/* padding: 1.5rem 5rem!important; */
	padding: 1.5rem 15vw!important;
}

.tobacco.backend .container{
	overflow-y: auto;
	overflow-x: hidden;
    height: calc(100vh - 57px);
}

.tobacco .container .mainContainer{
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tobacco .container .summary{
	display: flex;
	gap: 15px;
}

.tobacco .container .mainContainer .summaryCard{
	width: 50%;
	border-radius: .25rem;
	background: #e83e8c linear-gradient(180deg,#eb5b9d,#e83e8c) repeat-x!important;
	color: #fff;
	box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
	border: 1px solid #dee2e6!important;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tobacco .container .mainContainer .summaryCard .svg{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.tobacco .container .mainContainer .summaryCard .label{
	display: flex;
	justify-content: center;
    gap: 5px;	
}

.tobacco .container .mainContainer .summaryCard .text{
	font-size: 1.25rem!important;
	font-weight: 400;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	line-height: 2.0;
}

.tobacco .container .mainContainer .summaryCard .number{
	font-size: 3.5rem;
    font-weight: 300;
	text-align: center;
}

.tobacco .container .menu{
	display: flex;
	gap: 15px;
}

.tobacco .container .mainContainer .menuCard{
	width: 25%;
	border-radius: .25rem;
	background: #fff;
	color: #343a40!important;
	box-shadow: 0 0 1px rgb(0 0 0 / 13%), 0 1px 3px rgb(0 0 0 / 20%);
	border: 1px solid #dee2e6!important;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tobacco .container .mainContainer .menuCard:hover{
	cursor: pointer;
}

.tobacco .container .mainContainer .menuCard .image{
	display: flex;
    justify-content: center;
}

.tobacco .container .mainContainer .menuCard .image img{
	width: 60px;
	height: 60px;
}

.tobacco .container .mainContainer .menuCard .image svg{
	width: 60px;
	height: 60px;
}

.tobacco .container .mainContainer .menuCard .label{
	color: #343a40!important;
	text-align: center;
	font-size: 1rem;
    font-weight: 400;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	line-height: 2.0;
}

.tobacco .container .view input{
	border: none !important;
    /* border-bottom: 1px solid #ced4da !important; */
    border-radius: 0;
}

.tobacco .container .view input.disabled, .tobacco .container .view select.disabled{
	color: #000 !important;
	border-bottom: 1px solid #f1f1f1 !important;
}

.tobacco .container .view textarea.disabled{
	color: #000 !important;
}

.tobacco .container .view select{
	border: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-indent: 1px;
	text-overflow: '';
	/* border-bottom: 1px solid #ced4da !important; */
    border-radius: 0;
}

.tobacco .container .view textarea{
    border-radius: 0;
    background: unset;
	border: none;
    height: auto !important;
}

.tobacco .container .disabled input{
	background: #e7e7e7;
}

.tobacco .container .disabled select{
	border-bottom: 1px solid #ced4da !important;
	background: #e7e7e7;
}

.tobacco .container .disabled textarea{
    background: #e7e7e7;
}

.tobacco .container .pagination{
	display: flex;
}

.tobacco .container .pagination .paginationButton{
	background: #007bff;
    color: #fff;
    cursor: pointer;
    padding: 2px 4px;
    user-select: none;
	border: 1px solid #ced4da;
}

.tobacco .container .pagination .paginationInput{
	border-radius: 0;
    text-align: center;
	color: #007bff;
}

.tobacco .container .button {
	user-select: none;
}

.tobacco.backend .dataContainer{
	width: calc(100vw - 250px) !important;
}

.tobacco.backend .dataContainer.full{
	width: 100% !important;
}

.tobacco.backend .menuContainer{
	min-width: 250px;
    background: #343a40;
    overflow-y: overlay;
    max-height: 100vh;
    scrollbar-width: none;
}

.tobacco.backend .menuContainer .group{
	border-bottom: 1px solid #4b545c;
	padding: .3rem 0;
}

.tobacco.backend .menuContainer .group .groupName{
	padding: .25rem .5rem;
	color: #c2c7d0;
}

.tobacco.backend .menuContainer .group .menu-count{
	font-weight: bold;
    font-size: .65em;
    background: #28a745;
    padding: 3px 5px;
    border-radius: 5px;
	color: #fff;
}

.tobacco.backend .menuContainer .menu{
	display: flex;
	gap: 10px;
	padding: .25rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	color: #c2c7d0;
}

.tobacco.backend .menuContainer .menu.highlight{
	border-left: 3px solid #007bff;
    padding-left: calc(1rem - 3px);
	color: #fff;
}

.tobacco.backend .menuContainer .menu:hover{
    background-color: #383f46;
}

.tobacco .container .viewAll{
	font-size: 1rem!important;
    display: flex;
    flex-direction: column;
    justify-content: center;
	cursor: pointer;
	user-select: none;
}

.tobacco.backend .topBar .dropDownMenu .dropDownMenuContainer{
	display: none;
}

.tobacco .fileName{
	padding-left: .75rem;
    padding-right: .75rem;
    line-height: calc(1.5em + .75rem);
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    width: 100%;
    background: #fff;
    user-select: none;
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.tobacco .previewContainer .fileCard .download{
	display: flex;
    color: #fff;
    background: #28a745;
    border-color: #28a745;
    border-radius: .25rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    text-align: center;
    padding: 8px;
}

.tobacco .qrcode img{
	width: 100%;
}

.ql-editor.ql-blank::before{
	font-style: normal !important;
	font-family: var(--main-font-family) !important;
}

.ql-editor{
	font-size: 1rem !important;
	tab-size: .75in;
}

.ql-toolbar.ql-snow{
	background: hsla(0,0%,50.2%,.11) !important;
}

.tobacco .tab{
	border: 1px solid #dee2e6;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
}

.tobacco .tab:first-child{
	border-right: none;
}

.tobacco .tab.highlight{
	font-weight: bold;
    border-top: 3px solid #17a2b8;
	padding-top: 3px;
}

.tobacco .tab:hover{
	font-weight: bold;
    border-top: 3px solid #17a2b8;
	padding-top: 3px;
	cursor: pointer;
}

.tobacco .documentDialog{
	position: absolute;
    z-index: 10;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(8px) brightness(100%) saturate(50%);
    left: 0;
    top: 0;
}

.tobacco .documentDialog .container{
	margin: auto;
	height: auto;
    max-height: calc(100vh - 40px);
	width: 625px;
	text-align: left;
	border-radius: calc(.3rem - 1px);
	overflow-y: auto;
	padding: 0 !important;
	box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
}

.tobacco .documentDialog .container .title{
	width: 100%;
    background: #17a2b8 linear-gradient(180deg,#3ab0c3,#17a2b8) repeat-x!important;
    color: #fff;
    padding: .75rem 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}

.tobacco .documentDialog .container .body{
	width: 100%;
	background: #fff;
	min-height: 10px;
	font-size: 1em;
	padding: .75rem 1rem;
	display: flex;
	flex-direction: column;
	min-height: 50vh;
    max-height: 70vh;
    overflow-y: auto;
}

.tobacco .documentDialog .container .operation{
	width: 100%;
    background: #fff;
    padding: .75rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.tobacco .documentDialog .container .body .pdf{
	color: #dc3545;
    padding: 15px 10px;
    border: 1px solid #ff9492;
    border-radius: 5px;
    box-shadow: 0 0 1px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 15%);
    cursor: pointer;
    width: calc(100% / 5 - 8px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: .9em;
    text-align: center;
}

.tobacco .documentDialog .container .body .pdf .icon{
    display: flex;
    justify-content: center;
}

.tobacco .documentDialog .container .body .pdf:hover{
	border-color: #ff0000;
	transition: .2s all;
}

.tobacco .documentDialog .container .operation .button.cancel{
	color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
	padding: .375rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
	font-weight: 400;
	cursor: pointer;
}

.tobacco .documentDialog .container .operation .button.print{
	color: #fff;
    background-color: #288ba7;
    border-color: #188f9b;
	padding: .375rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
	font-weight: 400;
	cursor: pointer;
}

.filePreviewer{
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	backdrop-filter: blur(8px) brightness(100%) saturate(50%);
	z-index: 99;
}

.filePreviewer .filePreviewerDialog{
	background: white;
	display: flex;
	flex-direction: column;
	margin: auto;
	height: 99vh;
	width: 99vw;
	border: 1px solid #000;
	border-radius: 5px;
	overflow: hidden;
}

.filePreviewer .filePreviewerDialog .closeContainer{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #000;
}

.filePreviewer .filePreviewerDialog .closeContainer svg{
	cursor: pointer;
}

.filePreviewer .filePreviewerDialog .filePreviewerContainer{
	width: 100%;
	height: 100%;
	-webkit-overflow-scrolling: touch;
	background: #252529;
}

.filePreviewer .filePreviewerDialog .filePreviewerContainer iframe{
	border: none;
	width: 100%;
	height: 100%;
	border-radius: 0 0 5px 5px;
}

@media only screen and (max-width: 600px) {
	.tobacco.frontend .container{
		padding: 1.3rem .5rem!important;
	}

	.tobacco.frontend .topBar{
		padding: 1.3rem .5rem!important;
		flex-wrap: wrap;
    	height: auto;
		gap: 10px;
		display: flex;
	}

	.tobacco.backend .topBar {
		padding: 1.3rem .5rem!important;
		flex-wrap: wrap;
		height: auto;
	}

	.tobacco.backend .topBar{
		padding: 0 10px;
	}

	.tobacco .container .mainContainer .summaryCard{
		/* width: calc(50% - (15px / 2)); */
		width: 100%;
	}

	.tobacco .container .mainContainer .menuCard{
		width: calc(50% - (15px / 2));
	}

	.tobacco .container .mainContainer .menu {
		flex-wrap: wrap;
	}

	.tobacco .container .summary{
		flex-wrap: wrap;
	}

	.tobacco .topBar .dropDownMenu{
		position: unset;
    	width: 100%;
    	margin-top: 10px;
	}

	.tobacco.backend .menuContainer{
		display: none;
	}

	.tobacco.backend .dataContainer{
		width: 100% !important;
	}

	.tobacco.backend .topBar .dropDownMenu .dropDownMenuContainer{
		display: unset;
	}

	.tobacco.backend .topBar .dropDownMenu .groupName{
		padding: .5rem;
	}

	.tobacco.backend .container{
		overflow-y: hidden;
		overflow-x: hidden;
		height: unset;
	}

	.tobacco .topBar .account .label{
		width: calc(100% - 60px);
		display: none;
	}

	.tobacco .topBar .account{
		width: 100%;
		width: auto;
	}

	.tobacco .web-menu {
		display: none;
	}

	.tobacco .frontend-topBar {
		/* display: none; */
	}

	.tobacco .moblie-flex-wrap{
		display: flex;
		flex-wrap: wrap;
	}

	.filePreviewer .filePreviewerDialog{
		height: 80vh;
		width: 90vw;
	}
}

