@import url('https://fonts.googleapis.com/css2?family=Chonburi&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

*,
::after,
::before {
	box-sizing: border-box;
}

body {
	font-family: "Sarabun", sans-serif !important;
	margin: 0;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	background-color: #f5f5f5 !important;
}

h3 {
	font-size: 1.2375rem;
	color: #FFF;
}

a {
	cursor: pointer;
	text-decoration: none !important;
}

li {
	list-style: none;
}

.wrapper {
	align-items: stretch;
	display: flex;
	width: 100%;
	position: relative; /* Important for overlay positioning */
  overflow-x: hidden; /* Prevent horizontal scroll on transition */
}

#sidebar {
	max-width: 264px;
	min-width: 264px;
	transition: transform 0.35s ease-in-out;
	box-shadow: 0 0 35px 0 rgba(49, 57, 66, 0.5);
	z-index: 1000;
	flex-shrink: 0;
}

.main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	overflow: hidden;
	transition: margin-left 0.35s ease-in-out;
}

.sidebar-logo {
	padding: 1.15rem 1.5rem;
}

.sidebar-logo a {
	color: #e9ecef;
	font-size: 1.25rem;
	font-weight: 600;
}

.sidebar-nav {
	padding: 0;
  list-style: none;
}

.sidebar-header {
	color: #e9ecef;
	font-size: .75rem;
	padding: 1.5rem 1.5rem .375rem;
  text-transform: uppercase;
  font-weight: bold;
}

a.sidebar-link {
	padding: .325rem 1.625rem;
	color: #e9ecef;
	position: relative;
	display: block;
	font-size: 1rem;
  transition: all 0.2s;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
	border: solid;
	border-width: 0 .075rem .075rem 0;
	content: "";
	display: inline-block;
	padding: 2px;
	position: absolute;
	right: 1.5rem;
	top: 1.1rem;
	transform: rotate(-135deg);
	transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
	transform: rotate(45deg);
	transition: all .2s ease-out;
}

/* --- Responsive Behavior --- */

/* Desktop: Collapse functionality */
@media (min-width: 769px) {
  #sidebar.collapsed {
    transform: translateX(-100%);
  }
  #sidebar.collapsed + .main {
    margin-left: -264px;
  }
}

/* Mobile: Overlay behavior */
@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  #sidebar.toggled {
    transform: translateX(0);
  }

  /* Overlay for mobile */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }

  .offcanvas-fullscreen-sm-down {
    width: 100% !important;
  }
}

.content {
	flex: 1;
	max-width: 100vw;
	width: 100vw;
}

.customize-table {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  --easy-table-header-font-size: 14px;
  --easy-table-header-font-color: #515151;
  --easy-table-header-background-color: #fafafa;
}

.customize-table-in-offcanvas {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  --easy-table-header-font-size: 14px;
  --easy-table-header-font-color: #515151;
  --easy-table-header-background-color: #fafafa;
}

.customize-table-in-offcanvas .vue3-easy-data-table__footer {
  background-color: var(--easy-table-footer-background-color);
  color: var(--easy-table-footer-font-color);
  border-top: var(--easy-table-row-border);
  font-size: var(--easy-table-footer-font-size);
  height: var(--easy-table-footer-height);
  padding: var(--easy-table-footer-padding);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-radius: 0 0 0.375rem 0.375rem;
}

.customize-table-hide-footer-in-offcanvas {
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  --easy-table-header-font-size: 14px;
  --easy-table-header-font-color: #515151;
  --easy-table-header-background-color: #fafafa;
}

.customize-table-hide-footer-in-offcanvas .vue3-easy-data-table__main {
  border-radius: 0 0 0.375rem 0.375rem !important;
}

.customize-table-hide-footer-in-modal {
  --easy-table-header-font-size: 14px;
  --easy-table-header-font-color: #515151;
  --easy-table-header-background-color: #fafafa;
  border-radius: 0.375rem 0.375rem 0.375rem 0.375rem !important;
}

.customize-table-hide-footer-in-modal .vue3-easy-data-table__main {
  border-radius: 0.375rem 0.375rem 0.375rem 0.375rem !important;
}

.dropdown-menu-custom {
  max-height: 280px;
  overflow-y: auto;
  width: 100%;
}

@media (min-width:768px) {
	.content {
		width: auto;
	}
}

.offcanvas-fullscreen-sm-down {
  width: 1140px !important;
}

@media (max-width: 768px) {
  .offcanvas-fullscreen-sm-down {
    width: 100% !important;
  }
}

.select2-container .selection .select2-selection--single {
  height: 31px;
  padding: 0;
  border-radius: .1875rem;
  border-color: #dee2e6;
  background: inherit;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #e9ecef !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
}

span.select2.select2-container.select2-container--default {
  width: 100% !important;
}

.select2-container--open .select2-dropdown--below {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-color: #dee2e6;
}

.select2-search--dropdown {
  display: block;
  padding: 4px;
}

.select2-search--dropdown .select2-search__field {
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select2-search--dropdown.select2-search--hide {
  display: none;
}

.select2-container--default .select2-selection--multiple {
  min-height: 31px !important;
  border-radius: .1875rem;
  border: 1px solid #dee2e6 !important;
  background: inherit;
  cursor: text;
}

.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
  margin-top: 3px !important;
}

.select2-results {
  min-height: 50px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  padding: 0 0.35rem 0.3rem !important;
  align-items: center;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: #e9ecef !important;
  cursor: default;
}

#tags-search .list-item.templateselect {
  padding: 0.3125rem 1.255rem 0.3125rem 0.475rem;
  border-radius: 4px;
}

#tags-search .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: inherit !important;
  padding: 0 !important;
  color: #fff;
  position: relative;
}

#tags-search .select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  position: absolute;
  right: 5px;
  top: 3px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  cursor: pointer;
  float: none;
  color: inherit;
  font-size: .875rem;
  margin-top: 0;
  line-height: inherit;
  margin-left: 0.325rem;
  opacity: 1;
  margin-right: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #eee !important;
  color: #333;
  border: 0 !important;
  cursor: default !important;
  float: none !important;
  /* margin-right: 0.125rem !important; */
  /* margin-top: 0.125rem !important; */
  /* padding: 0.3125rem 0.875rem !important; */
  white-space: normal !important;
  word-break: break-all !important;
  border-radius: 0.1875rem !important;
  transition: color ease-in-out .15s, background-color ease-in-out .15s !important;
  font-size: 0.75rem;
  line-height: 1;
  min-height: auto;
  padding: 0.3125rem 0.475rem !important;
  margin-top: 0.3rem !important;
  margin-right: 0.3rem !important;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, .8);
  width: 100%;
  height: 100%;
  border-radius: .28571429rem;
  z-index: 100;
}

.loading:after {
  position: absolute;
  content: '';
  top: 30%;
  left: calc(50% - 1.5em);
  width: 3em;
  height: 3em;
  border-radius: 500rem;
  border-color: #767676 rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .1);
  border-style: solid;
  border-width: .2em;
  -webkit-box-shadow: 0 0 0 1px transparent;
  box-shadow: 0 0 0 1px transparent;
  visibility: visible;
  z-index: 101;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: loading 1.1s infinite linear;
  animation: loading 1.1s infinite linear;
}

.loading-small:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, .8);
  width: 100%;
  height: 100%;
  border-radius: 0.28571429rem;
  z-index: 100;
}

.loading-small:after {
    position: absolute;
    content: '';
    top: 30%;
    left: calc(50% - 1.5em);
    width: 2em;
    height: 2em;
    border-radius: 500rem;
    border-color: #767676 rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .1);
    border-style: solid;
    border-width: .2em;
    -webkit-box-shadow: 0 0 0 1px transparent;
    box-shadow: 0 0 0 1px transparent;
    visibility: visible;
    z-index: 101;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: loading 1.1s infinite linear;
    animation: loading 1.1s infinite linear;
}

.box-placeholder {
  vertical-align: top;
  width: 100%;
  box-shadow: none;
  font-size: 0;
  -height: 0;
}

@keyframes fading{
	0% {
		opacity: .1;
	}
	50% {
		opacity: .2;
	}
	100% {
		opacity: .1;
	}
}

.box-placeholder .text {
  background-color: #999;
  height: 20px;
  border-radius: 4px;
  margin: 10px 0;
  width: 100%;
  opacity: .1;
  animation: fading 1.5s infinite;
}

.box-placeholder .text:first-child {
  margin-top: 0;
}

.box-placeholder .text:nth-child(2) {
  width: 90%;
}

.box-placeholder .text:nth-child(3) {
  width: 60%;
}

.box-placeholder .text:nth-child(4) {
	width: 80%;
}

.box-placeholder .text:nth-child(5) {
	width: 85%;
}

.box-placeholder .text:nth-child(7) {
	width: 90%;
}

.box-placeholder .text:nth-child(9) {
	width: 70%;
}

.box-placeholder .text:nth-child(10) {
	width: 50%;
}

.box-placeholder .text:last-child {
	margin-bottom: 0;
}

.icon-link.custom-actions .btn-icon.btn-sm {
  padding: 0px;
  width: 25px;
  height: 25px;
}

.icon-link.custom-actions i {
  width: 16px;
  height: 16px;
  font-size: 13px;
}

.popper-default {
  --popper-theme-background-color: #000000;
  --popper-theme-background-color-hover: #000000;
  --popper-theme-text-color: #FFFFFF;
  --popper-theme-border-width: 1px;
  --popper-theme-border-style: solid;
  --popper-theme-border-color: #000000;
  --popper-theme-border-radius: 5px;
  --popper-theme-padding: 5px;
  --popper-theme-box-shadow: 0 6px 30px -6px rgba(0, 0, 0, 0.25);
}

.popper-2 {
  --popper-theme-background-color: #FFFFFF;
  --popper-theme-background-color-hover: #FFFFFF;
  --popper-theme-text-color: #000000;
  --popper-theme-border-width: 1px;
  --popper-theme-border-style: solid;
  --popper-theme-border-color: #FFFFFF;
  --popper-theme-border-radius: 5px;
  --popper-theme-padding: 5px;
  --popper-theme-box-shadow: 0 6px 30px -6px rgba(0, 0, 0, 0.25);
}

.popper-tags {
  --popper-theme-background-color: #FFFFFF;
  --popper-theme-background-color-hover: #FFFFFF;
  --popper-theme-text-color: #000000;
  --popper-theme-border-width: 1px;
  --popper-theme-border-style: solid;
  --popper-theme-border-color: #ebebeb;
  --popper-theme-border-radius: 5px;
  --popper-theme-padding: 5px;
  --popper-theme-box-shadow: 0 6px 30px -6px rgba(0, 0, 0, 0.25);
}

.ql-editor{
  min-height: 160px !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

table td .tags-custom .bade {
  min-width: auto;
}

.img-table {
  border-radius: .1875rem;
  width: 25px;
  height: 25px;
  object-fit: cover;
}

table td img.show-img {
  width: 150px;
  height: 150px;
}

#table-list-feed table thead.vue3-easy-data-table__header {
  display: none;
}

#table-list-feed table tbody.vue3-easy-data-table__body td {
  border: none;
}

#table-list-feed table tbody.vue3-easy-data-table__body tr td:first-child {
  position: relative;
}

#table-list-feed table tbody.vue3-easy-data-table__body tr td:first-child:before {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 1.1rem;
  background-color: #fff;
  display: inline-block;
  border: 2px solid #607d8b;
  z-index: 3;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
}

#table-list-feed table tbody.vue3-easy-data-table__body tr td:first-child:after {
  content: '';
  position: absolute;
  left: 1.6rem;
  top: 1.31252rem;
  bottom: -.43752rem;
  width: 0;
  height: 100%;
  border-left: 1px solid #607d8b;
  border-right: 1px solid #607d8b;
  z-index: 2;
}

#table-list-feed table tbody.vue3-easy-data-table__body tr:last-child td:first-child:after {
  display: none;
}


#table-list-feed {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;

  --easy-table-header-font-size: 14px;
  --easy-table-header-font-color: #515151;
  --easy-table-header-background-color: #fafafa;
}
/* Error page */

h1.error-page-title {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

div.error-page-text {
    font-size: 15px;
    color: #515151;
    /* line-height: 120%; */
}
