:root {
  --bg-color: #F2F6FF;
  --green: #46CCBB;
  --dark-green: #55C1B4;
  --dark: #231F20;
  --table-gray: #F9FAFF;
  --red: #8b1600;
  --light: #FFFFFF;
}

* {
  font-family: 'Readex Pro', sans-serif;
}

html,
body {
  height: 100%;
}

.content-wrapper {
  background-color: var(--bg-color);
}

.breadcrumb > li + li:before {
  color: var(--dark)
}
.mt-30 {
  margin-top: 30px;
}

.unsetMinWidth {
  min-width: unset !important;
}

/* --- navbar --- */
.skin-blue .main-header .logo {
  background-color: var(--green);
  border-right: 1px solid var(--light);
}
.skin-blue .main-header .logo:hover {
  background-color: var(--dark-green);
}

.skin-blue .main-header .navbar {
  background-color: var(--green);
}

.skin-blue .main-header .navbar .sidebar-toggle:hover {
  background-color: var(--dark-green);
}

.main-header .sidebar-toggle {
  padding: 17px 15px 13px 15px;
}

.main-header .sidebar-toggle:before {
  content: url(../icons/menu-icon.png);
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header {
  height: unset;
  background-color: var(--light);
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>p {
  color: var(--dark);
}

/* --- sidebar --- */
.sidebar-menu {
  margin-top: 20px;
}

.skin-blue .main-sidebar {
  background-color: var(--light);
}

.skin-blue .sidebar-menu > li.header {
  background-color: var(--light);
}

.skin-blue .sidebar a {
  color: var(--dark);
}
.skin-blue .sidebar-menu > li:hover > a {
  background-color: var(--dark-green);
  color: var(--light);
}
.skin-blue .sidebar-menu > li.active > a {
  background-color: var(--green);
}

.sidebar-menu > .treeview:not(:last-child) {
  border-bottom: 1px solid var(--dark);
}
.skin-blue .sidebar-menu > li > .treeview-menu {
  background-color: var(--light);
}
.skin-blue .sidebar-menu .treeview-menu > li > a {
  color: var(--dark);
}
.skin-blue .sidebar-menu .treeview-menu > li.active > a {
  color: var(--green);
}
.skin-blue .sidebar-menu .treeview-menu > li > a:hover {
  color: var(--dark-green);
}

/* --- input --- */
.control-label {
  font-size: 14px;
}
.form-group.has-success label {
  color: var(--green);
}
.input {
  display: block;
  height: 34px;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 1px 2px 4px #00000033;
  outline: none;
}
.input:focus {
  border: none;
  box-shadow: 1px 2px 4px #00000033 !important;
}

.dropdownSelect .select2-selection.select2-selection--single{
  display: flex !important;
  align-items: flex-end !important;
  height: 34px !important;
  width: 100% !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border-color: transparent !important;
  box-shadow: 1px 2px 4px #00000033 !important;
  outline: none !important;
  line-height: 1 !important;
  color: #333333 !important;
}

.dropdownSelect .select2-selection.select2-selection--single .select2-selection__rendered{
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: 1 !important;
  color: #333333 !important;
}

/* datepicker icon span */
.kv-date-picker {
  height: 34px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-color: transparent !important;
  box-shadow: 1px 2px 4px #00000033 !important;
  outline: none !important;
  line-height: 1 !important;
  color: #333333 !important;
}

/* --- radio button --- */
.radio-button-container > div > div label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 300;
  margin-right: 8px;
}

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  margin: 0px 4px 0px 0px;
  font: inherit;
  color: var(--dark);
  width: 16px;
  height: 16px;
  border: 1px solid var(--dark-green);
  border-radius: 50%;
  display: grid;
  place-content: center;
  outline: none;
}

input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 8px 8px var(--green);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus {
  outline: 1px solid var(--dark-green);
  outline-offset: -2px;
}

.form-control:focus-within {
  color: var(--green);
}

/* --- checkbox --- */
.checkbox-container > div {
  display: flex;
  flex-direction: column;
}
.checkbox-container > div label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  font-weight: 300;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0px 4px 0px 0px;
  font: inherit;
  color: var(--dark);
  width: 16px;
  height: 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: grid;
  place-content: center;
  box-shadow: 0px 1px 1px #0000001A;
}

input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 8px 8px var(--green);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: none;
  outline-offset: none;
}

/* --- button --- */
.btn {
  outline: none;
  border: none;
  border-radius: 8px;
  padding: 6px 24px;
  min-width: 160px;
  box-shadow: none;
}
.btn:active {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.btn-primary,
.btn-success {
  background-color: var(--green) !important;
}
.btn-primary:hover,
.btn-success:hover,
.btn-primary:active,
.btn-success:active,
.btn-primary.hover,
.btn-success.hover {
  background-color: var(--dark-green) !important;
}
.btn-danger,
.btn-delete {
  border: 1px solid var(--dark) !important;
  background-color: var(--light) !important;
  color: var(--red) !important;
}
.btn-danger:hover,
.btn-delete:hover,
.btn-danger:active,
.btn-delete:active,
.btn-danger.hover,
.btn-delete.hover {
  border: 1px solid var(--red) !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
  color: rgba(180, 25, 51) !important;
}

.btn-default {
  background-color: var(--light);
}

.dropdown-menu {
  background-color: var(--table-gray);
}

/* --- footer --- */
.main-footer {
  border: none;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.main-footer > a {
  color: var(--green);
  margin-left: 4px;
}

/* --- table --- */
.custom-table {
  background-color: transparent;
  border-radius: 8px;
  border-collapse: separate;
  box-shadow: 1px 2px 4px #00000033;
}

.custom-table > thead > tr th {
  background-color: var(--table-gray);
  border: none !important;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
}
.custom-table > thead > tr th a {
  color: var(--dark);
  font-weight: 700;
}

.custom-table > thead > tr td {
  padding-bottom: 30px;
}
.custom-table > thead > tr td input {
  display: block;
  height: 34px;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 1px 2px 4px #00000033;
  outline: none;
}

.custom-table > tbody {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background-color: var(--light);
}

.custom-table.detail > tbody > tr th {
  border: none;
}
.custom-table.detail > tbody tr:first-child th:first-child {
border-top-left-radius: 8px;
}
.custom-table.detail > tbody tr:first-child th:last-child, .custom-table.detail > tbody tr:first-child td:last-child {
  border-top-right-radius: 8px !important;
}
.custom-table.detail > tbody tr:last-child th:first-child {
  border-bottom-left-radius: 8px;
}
.custom-table.detail > tbody tr:last-child th:last-child, .custom-table.detail > tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}


.custom-table > tbody tr td {
  border: none;
}

.custom-table > tbody tr td:last-child {
  text-align: right;
}

.custom-table > tbody > tr:nth-of-type(odd) {
  background-color: var(--light);
}
.custom-table > tbody > tr:nth-of-type(even) {
  background-color: var(--table-gray);
}

.custom-table > tbody tr:first-child td:first-child {
  border-top-left-radius: 0px;
}
.custom-table > tbody tr:first-child td:last-child {
  border-top-right-radius: 0px;
}
.custom-table > tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.custom-table > tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* utils */
.flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0px 30px 0px;
}

.column-render {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.summary {
  text-align: right;
}

/* image */
.image-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.image-container .inner-image-container {
  position: relative;
  padding: 15px 15px 15px 0;
}

.image-container .inner-image-container span {
  position: absolute;
  top: 15px;
  right: 15px;
  content: 'x';
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  color: red;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
}

/* choose file button */
::-webkit-file-upload-button {
  background: var(--dark-green);
  color: var(--light);
  padding: 8px 12px;
  outline: none;
  border: none;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}

/* view-action-container" */
.view-action-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* login page */
.login-page, .register-page {
  background: var(--bg-color);
}

.login-logo {
  font-size: 24px;
  font-weight: 500;
}

.login-box-body {
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 1px 2px 4px #00000033;
}

.login-box-msg {
  font-weight: 700;
}

.generated-element:nth-child(2) {
  background-color: white;
}

.select2-readonly {
  pointer-events: none;
  touch-action: none;
}
.select2-readonly .select2-selection{
  pointer-events: none;
  touch-action: none;
  background: #eee;
  box-shadow: none;
}

.indexFormButton .btn-group button,
.indexFormButton .btn-group.open button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  border-color: transparent;
  box-shadow: 1px 2px 4px #00000033;
  outline: none;
}