@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
	@font-face {
		font-family: "Roboto Black";
		src: url("/path/to/Roboto-Black.ttf") format("truetype");
		font-weight: 900;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto Bold";
		src: url("/path/to/Roboto-Bold.ttf") format("truetype");
		font-weight: 700;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto BoldItalic";
		src: url("/path/to/Roboto-BoldItalic.ttf") format("truetype");
		font-weight: 700;
		font-style: italic;
	}

	@font-face {
		font-family: "Roboto Italic";
		src: url("/path/to/Roboto-Italic.ttf") format("truetype");
		font-weight: 400;
		font-style: italic;
	}

	@font-face {
		font-family: "Roboto Light";
		src: url("/path/to/Roboto-Light.ttf") format("truetype");
		font-weight: 300;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto LightItalic";
		src: url("/path/to/Roboto-LightItalic.ttf") format("truetype");
		font-weight: 300;
		font-style: italic;
	}

	@font-face {
		font-family: "Roboto Medium";
		src: url("/path/to/Roboto-Medium.ttf") format("truetype");
		font-weight: 500;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto MediumItalic";
		src: url("/path/to/Roboto-MediumItalic.ttf") format("truetype");
		font-weight: 500;
		font-style: italic;
	}

	@font-face {
		font-family: "Roboto Regular";
		src: url("/path/to/Roboto-Regular.ttf") format("truetype");
		font-weight: 400;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto Thin";
		src: url("/path/to/Roboto-Thin.ttf") format("truetype");
		font-weight: 100;
		font-style: normal;
	}

	@font-face {
		font-family: "Roboto ThinItalic";
		src: url("/path/to/Roboto-ThinItalic.ttf") format("truetype");
		font-weight: 100;
		font-style: italic;
	}
}

.main-modal-overlay {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 50;
	width: 100%;
	height: 100%;
	padding: 12px 0px;
	margin: 0 !important;
	background-color: rgba(0, 0, 0, 0.5);
}

.main-modal {
	position: relative;
	width: fit-content;
	height: fit-content;
	max-height: 90%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	border-radius: 3px;
}

.modal-header {
	height: 70px;
	font-size: 21px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px;
	border-radius: 4px 4px 0px 0px;
	border-bottom: 1px solid var(--IMA-LIGHT-GRAY, #ecedf0);
}

div.modal-header h3 {
	line-height: 25px;
	overflow: hidden;
	text-overflow: ellipsis;
	text-wrap: nowrap;
}

.modal-inner-body {
	padding: 24px;
	flex-grow: 1;
	overflow-y: auto;

	.table-main-container {
		.dt-layout-cell {
			.dt-scroll {
				max-height: 40vh !important;
			}
		}
	}
}

@media (max-width: 640px) {
	#toast-container,
	.custom-modal-content,
	.main-modal{
		width: 90vw !important;
	}

	.modal-inner-body {
		padding: 8px !important;
	}
}

@media (min-width: 640px) {
	.page-detail-title-wrapper {
		flex-wrap: nowrap;
		justify-content: space-between !important;
		min-height: 70px;
		height: 70px;
	}
}

.modal-footer {
	border-top: 1px solid var(--IMA-LIGHT-GRAY, #ecedf0);
	position: sticky;
	bottom: 0;
	background-color: white;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar:horizontal {
	height: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.scrollbar-track-dark::-webkit-scrollbar-track {
	background: var(--imaDarkBlue) !important;
}

::-webkit-scrollbar-thumb {
	background: var(--imaBlue);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--imaMenuActive);
}

.scrollbar-hidden {
	::-webkit-scrollbar {
		width: 0px !important;
	}

	::-webkit-scrollbar-thumb {
		display: none !important;
	}
}

.select-workplace-item {
	border: solid var(--imaBlue) 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px;
	border-radius: 5px;
	color: var(--imaBlue);
	font-weight: bold;
	cursor: pointer;
	min-height: 50px;
}

.select-workplace-item:hover {
	border: solid var(--imaDarkBlue) 2px;
	background-color: var(--imaDarkBlue);
	color: white;
	cursor: pointer;
}

.select-workplace-item-active {
	border: solid var(--imaDarkBlue) 2px;
	background-color: var(--imaDarkBlue);
	color: white;

	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
	min-height: 50px;
}

.badge {
	padding: 4px 8px;
	border-radius: 4px;
	color: white;
}

.badge-success {
	background-color: var(--imaGreen);
}

.badge-danger {
	background-color: var(--imaRed);
}

.form-summary-label {
	padding: 7px 12px 2px 2px;
	font-size: 16px;
	height: 34px;
	max-width: fit-content;
}

.alert {
	position: relative;
}
.alert .alert-link {
	font-weight: 600;
	font-family: "Hind Madurai", sans-serif;
}
.alert-icon {
	padding-left: 50px;
}
.alert-icon i {
	position: absolute;
	left: 0;
	height: 50px;
	width: 50px;
	text-align: center;
	top: 0;
	line-height: 50px;
	font-size: 22px;
}
.alert-success {
	color: #4bd396;
	background-color: #daf6ea;
	border-color: #9de7c6;
}
.alert-success .alert-link {
	color: #2ebd7d;
}
.alert-success hr {
	border-top-color: #2ebd7d;
}
.alert-info {
	color: #3ac9d6;
	background-color: #cef2f5;
	border-color: #8ee0e8;
}
.alert-info .alert-link {
	color: #26abb7;
}
.alert-info hr {
	border-top-color: #26abb7;
}
.alert-warning {
	color: #f9c851;
	background-color: #fdefcc;
	border-color: #fcdf9b;
}
.alert-warning .alert-link {
	color: #f7b820;
}
.alert-warning hr {
	border-top-color: #f7b820;
}
.alert-danger {
	color: #f5707a;
	background-color: #fde7e9;
	border-color: #fab8bd;
}
.alert-danger .alert-link {
	color: #f2404e;
}
.alert-danger hr {
	border-top-color: #f2404e;
}

#toast-container {
	width: 30vw;
	max-width: 500px;
}

.toast-message {
	margin-right: 12px;
}

.scrollbar-container {
	::-webkit-scrollbar {
		width: 5px !important;
	}

	::-webkit-scrollbar-thumb {
		display: initial !important;
	}
}

.page-topbar {
	border-bottom: 1px solid var(--imaBorder);
	box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.03);
}

.page-detail-title-wrapper {
	flex-wrap: wrap;
	height: fit-content;
	justify-content: left;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 8px;
	padding-bottom: 8px;

	::-webkit-scrollbar {
		width: 0px !important;
	}

	::-webkit-scrollbar-thumb {
		display: none !important;
	}
}

.detail-with-tree {
	flex-grow: 1;
	overflow-x: auto;
}

.accessDenied {
	height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: var(--imaBgGrey);
}

.dropify-wrapper {
	border: 2px dashed #eeeeee;
}

.button-panel-dialog-wrapper {
	width: 350px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: start;
	justify-content: start;
}

.wrapper-page {
	margin-left: auto;
	margin-right: auto;
	padding-top: 5%;
	position: relative;
	max-width: 420px;
}

.account-pages .account-content {
	padding: 30px;
}

.reader-bluetooth-prefix {
	text-align: center;
	display: flex !important;
	align-items: center !important;
	display: flex;
	margin-right: 6px;
	max-width: 40px;
	text-align: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
}

.text-orange {
	color: #ff9800 !important;
}

.notification-icon-wrapper {
	color: white;
	min-width: 28px;
	min-height: 28px;
	width: 28px !important;
	height: 28px !important;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 9999px;
}

.notification-icon-red {
	background-color: rgba(236, 64, 64, 0.2);
	color: var(--imaRed);
}

.notification-icon-blue {
	background-color: rgb(19, 134, 193, 0.2);
	color: var(--imaBlue);
}

.folder-name-title {
	max-width: 250px;
	min-width: 32px;
	max-height: 60px;
	overflow-y: auto;
	text-overflow: ellipsis;
	word-break: break-all;
	overflow-x: hidden;
}

.user-profile-content {
	display: flex;
	flex-direction: column;
	background-color: white;
	height: calc(100vh - 142px);
}

.main-body {
	height: 100dvh;
	overflow: hidden;
}

@media (max-width: 640px) {
	.user-profile-content {
		height: calc(100vh - 130px);
		overflow-y: scroll;
	}

	.main-body {
		height: calc(100vh + 5px);
		overflow-y: scroll;
	}
}

.global-search-phone{
	position: absolute !important;
	z-index: 20;
	background: white;
}