﻿@import url("/iconfeather/iconfont.css");
@import url("/iconmaterial/icon.material.css");

#blazor-error-ui {
  display: none;
}

#components-reconnect-modal {
  background: rgba(0, 0, 0, 0.2) !important;
  left: 0px !important;
  right: 0px !important;
  top: 0px !important;
  bottom: 0px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
}

#components-reconnect-modal h5 {
  display: none;
}

#components-reconnect-modal button {
  font-size: 0px;
  font-weight: 600;
  border: 0px;
  color: #fff;
  background: #485fc7;
  padding: 9px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#components-reconnect-modal button::after {
  content: "Thử lại";
  font-size: 14px;
}

#connect {
  position: fixed;
  z-index: 99999;
  width: 280px;
  bottom: 10px;
  left: calc(50% - 140px);
  opacity: 0.8;
}

#connect .field {
  width: 100%;
  box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.4);
  border-radius: 999px;
}

:root {
  --form-small: 600px;
  --form-medium: 1000px;
  --form-large: 1200px;
  --form-full: calc(100vw - 40px);
  --color-main: #4cb388;
  --color-extra: #004555;
  --color-bg: #e5ecee;
  --color-text: #333;
}

.bg_main {
  background-color: var(--color-main);
}

.bg_extra {
  background-color: var(--color-extra);
}

.scrolly {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  scrollbar-color: #999 #f1f1f1;
}
/* Scrollbar: width */
.scrolly::-webkit-scrollbar {
  width: 5px;
  border-radius: 4px;
}
/* Scrollbar: Track */
.scrolly::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
/* Scrollbar: Handle */
.scrolly::-webkit-scrollbar-thumb {
  background: #999;
}
/* Scrollbar: Handle on hover */
.scrolly::-webkit-scrollbar-thumb:hover {
  background: #777;
}

html {
  overflow-y: auto !important;
  width: 100%;
}

html,
body {
  font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
}

main {
  position: relative;
  min-height: 100vh;
}

main.is-loading > * {
  opacity: 0;
}

main.is-loading::after {
  -webkit-animation: spinAround 0.5s infinite linear;
  animation: spinAround 0.5s infinite linear;
  border: 2px solid #dbdbdb;
  border-radius: 9999px;
  border-right-color: #0000;
  border-top-color: #0000;
  content: "";
  display: block;
  height: 1em;
  width: 1em;
  position: absolute;
  left: calc(50% - (1em / 2));
  top: calc(50% - (1em / 2));
  position: absolute !important;
}

#main {
  background: var(--color-bg);
  max-height: 100vh;
}

#logo {
  display: flex;
  justify-content: center;
}

#logo img {
  width: 150px;
}

#sidebar {
  background: var(--color-extra);
  width: 250px;
  position: relative;
  max-height: 100vh;
}

#sidebar .menu {
  border-top: 1px solid #526367;
  padding-top: 0.5rem;
}

#sidebar .menu-list a {
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#sidebar .menu-list a:hover {
  color: #363636;
}

#sidebar .menu-list a .icon:first-child {
  font-size: 18px;
  margin-right: 0.5rem;
  flex-grow: 0;
  flex-basis: 24px;
}

#sidebar .menu-list a span:not(.icon) {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-weight: 500;
  padding-top: 1px;
}

#sidebar .menu-list li ul {
  margin-right: 0px;
  margin-left: 1rem;
}

#sidebar .menu-list li li a {
  font-weight: normal;
  font-size: 14px;
}

#sidebar .menu-list a.is-active {
  background: none;
  color: var(--color-main);
}

#toggleNav {
  width: 52px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  right: 0px;
  color: #fff;
  font-size: 24px;
}

#sidebar.is-small {
  padding-top: 52px !important;
  width: 52px;
  box-shadow: 3px 0px 6px 0px rgb(0 0 0 / 30%);
  z-index: 11;
  overflow: visible;
}

#sidebar.is-small #toggleNav {
  top: 6px;
}

#sidebar.is-small #logo {
  display: none;
}

#sidebar.is-small .menu-list > li {
  position: relative;
}
#sidebar.is-small .menu-list > li > a {
  padding: 0.5em;
  position: relative;
  justify-content: center;
  position: relative;
  z-index: 2;
}
#sidebar.is-small .menu-list > li > a .icon {
  margin: 0px;
}
#sidebar.is-small .menu-list > li > a .icon:last-child {
  display: none;
}
#sidebar.is-small .menu-list > li:hover > a span:not(.icon) {
  position: absolute;
  top: 5px;
  left: 115%;
  max-width: none;
  background: var(--color-extra);
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
}

#sidebar.is-small .menu-list li ul {
  position: absolute;
  top: 0px;
  left: 100%;
  background: var(--color-extra);
  margin: 0px;
  border: 0px;
  padding: 40px 8px 8px 8px;
  width: 300px;
  display: none;
  border-radius: 0px 7px 7px 0px;
}
#sidebar.is-small .menu-list li:hover ul {
  display: block !important;
}

#header {
  background-color: #fff;
  box-shadow: 0 0.125em 0.25em rgb(10 10 10 / 10%);
  min-height: 56px;
  position: relative;
  z-index: 11;
}

.icon_noti {
  background: #a1a1a1;
  color: #fff !important;
  position: relative;
}
.icon_noti.is-danger {
  background: #f14668;
  color: #fff;
}
.icon_noti > b {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 12px;
  font-weight: normal;
  width: 20px;
  height: 20px;
  background: #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page_login #sidebar,
#page_login #header {
  display: none;
}

#section_login {
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  background-size: cover;
}

#section_login .columns {
  height: 100%;
  justify-content: flex-end;
}

#section_login .column.is-narrow {
  width: 300px;
}

#section_login .card {
  padding: 1rem 2rem 1.5rem;
  background: rgb(255 255 255 / 90%);
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

.font_13 {
  font-size: 13px !important;
}

.font_14 {
  font-size: 14px !important;
}

.title_bg {
  background: #e6ecef;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 10px;
  min-height: 40px;
}

.hover_bg:hover {
  background: #efefef;
}

.feather {
  font-size: inherit;
}

.is_cover {
  display: block;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transition: all 1s;
}

.is_break {
  word-break: break-word;
}

.text_inline:not(.is-show) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.text_1_line:not(.is-show) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  height: 1.5em;
}

.text_2_line:not(.is-show) {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 3em;
}

.text_3_line:not(.is-show) {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 4.5em;
}

.text_4_line:not(.is-show) {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  height: 6em;
}

.text_5_line:not(.is-show) {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  height: 7.5em;
}

#notify {
  position: fixed;
  top: 76px;
  right: 12px;
  max-width: 400px;
  z-index: 100;
}

#notify .notification {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 14px;
}

.has_suggest {
  position: relative;
}

.has_suggest .suggest {
  display: none;
}

.has_suggest:hover .suggest,
.has_suggest input:focus ~ .suggest {
  display: block;
}

.suggest {
  position: absolute;
  z-index: 20;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 300px;
  background: #fff;
  box-shadow: 0px 2px 10px 0px rgb(0 0 0 / 20%);
  border-radius: 6px;
}

.suggest li {
  border: 1px solid #eee;
  border-top: 0px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 14px;
}

.suggest li:hover {
  background: #f5f4f4;
}


.datepicker .dropdown-menu {
  width: 190px;
}

.datepicker .column.is-narrow {
  width: calc(100% / 7) !important;
  cursor: pointer;
  text-align: center;
  font-size: 12px;
}

.datepicker .column.is-narrow:hover {
  background: #ccc;
}

.datepicker .column.is-narrow.is-active {
  background: #485fc7;
  color: #fff;
}

.datepicker .column.is-narrow.is-range {
  background: #56a4e5;
  color: #fff;
}

.datepicker .field {
  align-items: center;
}

.datepicker .control:not(:last-child) {
  margin-right: 5px !important;
}

.datepicker select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}


/* Custom Bulma */

hr {
  background: #eee;
  height: 1px;
}

.tabs {
  margin-bottom: 0px !important;
}

.card > .tabs a {
  padding: 1em;
}

.tags.are-14 .tag {
  font-size: 14px;
}

.image.is-rounded {
  border-radius: 50%;
  overflow: hidden;
}

.image img {
  object-fit: cover;
  height: 100%;
}

.input > input {
  border: 0px !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.input.is-static {
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #dbdbdb;
  padding: calc(0.5em - 1px);
}
.input.is-static * {
  pointer-events: none;
}

.input.is-line {
  padding: 0px;
  height: 24px !important;
  border: 0px;
  box-shadow: none;
  background: transparent;
  border-radius: 0px;
  font-size: 14px;
  box-shadow: 0px 1px 0px 0px #dbdbdb;
}

.input.is-line:focus,
.input.is-line:hover,
.input.is-line:active {
  box-shadow: 0px 1px 0px 0px #dbdbdb;
}

.input_line {
  height: 28px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  outline: none;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 0px 4px;
}

.textarea {
  max-height: 400px;
  overflow-y: auto !important;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.select:not(.is-small),
.select:not(.is-small) select {
  font-size: 1rem;
  height: auto;
}

.select.is-static {
  pointer-events: none;
}

.select.font_14 select {
  font-size: 14px;
}

.is-fullwidth {
  width: 100%;
}

.control > .input.image.is-32x32 {
  width: 40px;
  height: 40px;
}

.form_14 {
  font-size: 14px;
}

.form_14 .textarea {
  font-size: 14px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.form_14 .button:not(.is-small),
.form_14 .input:not(.is-small),
.form_14 .select:not(.is-small) select {
  font-size: 14px;
  height: 36px;
}

.form_14 .control .input.image {
  width: 36px;
  height: 36px;
  padding: 0px;
  overflow: hidden;
}

.readonly .input,
.readonly .select,
.readonly .textarea {
  cursor: text;
  pointer-events: none;
}

.column .image + .delete,
.has_delete .delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.columns.is-variable {
  margin: calc(-1 * var(--columnGap));
}

.columns.is-variable > .column {
  padding: var(--columnGap);
}

.column.is-narrow {
  max-width: 100%;
}

.columns.is-loading,
section.is-loading {
  position: relative;
}

.columns.is-loading > *,
section.is-loading > * {
  opacity: 0;
}

.columns.is-loading::after,
section.is-loading::after {
  -webkit-animation: spinAround 0.5s infinite linear;
  animation: spinAround 0.5s infinite linear;
  border: 2px solid #dbdbdb;
  border-radius: 9999px;
  border-right-color: #4cb388;
  border-top-color: #004555;
  content: "";
  display: block;
  height: 4rem;
  width: 4rem;
  left: calc(50% - 2rem);
  top: 40vh;
  position: absolute;
}

.content {
  word-break: break-word;
}

.content figure {
  margin-left: 0;
  margin-right: 0;
}

.dropdown-menu {
  min-width: auto;
}

a.dropdown-item,
button.dropdown-item {
  padding-right: 1rem;
}

a.dropdown-item {
  white-space: nowrap;
}

.control {
  font-size: inherit;
}

.control > .icon.is-left,
.control > .icon.is-right {
  height: 100%;
}

.control > a.icon.icon.is-left,
.control > a.icon.icon.icon.is-right {
  pointer-events: auto !important;
}

.label {
  color: #7a7a7a !important;
  font-weight: normal;
  font-size: inherit;
}

.card {
  box-shadow: 0px 1px 4px 0px rgb(0 0 0 / 20%);
  overflow: visible;
  font-size: 14px;
}

.card-header-title {
  font-size: 16px;
}

.card-content {
  padding: 1rem;
}

.card-content > .table {
  border: 0px;
  margin-top: 1px;
}

.card-content > .table:not(:first-child) {
  border-top: 1px solid #dbdbdb;
}

.modal-card {
  max-width: calc(100vw - 20px);
}

.modal-card.is-small {
  width: var(--form-small);
}

.modal-card.is-medium {
  width: var(--form-medium);
}

.modal-card.is-large {
  width: var(--form-large);
}

.modal-card.is-full {
  width: var(--form-full);
}

.modal-card.is_visible,
.modal-card.is_visible .modal-card-body {
  overflow: visible;
}

.modal-card-head,
.modal-card-foot {
  padding-top: 10px;
  padding-bottom: 10px;
}

.modal-card-title {
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase;
  line-height: 1.5;
}

.modal-card-body .table {
  border: 1px solid #dbdbdb;
}

.modal-card-foot > label {
  flex-grow: 1;
  text-align: right;
}

.modal-card-foot.is-right {
  justify-content: flex-end;
}

.modal-card-foot.is-right label {
  text-align: left;
}

.modal-card-foot .field.is-grouped {
  width: 100%;
}

.table.is-fullwidth {
  table-layout: fixed;
}

.table-container {
  border: 1px solid #dbdbdb;
  overflow: auto;
}

.table-sticky {
  width: max-content;
  min-width: 100%;
  border: 0px !important;
}

.table-sticky > thead > tr {
  position: sticky;
  z-index: 10;
  top: 0;
}

.table-sticky tr.is_footer {
  position: sticky;
  z-index: 10;
  bottom: 0;
}

.table-sticky > tbody > tr:hover {
  position: relative;
  z-index: 9;
}

.table-sticky .is_sticky {
  position: sticky;
  z-index: 8;
}

.table-sticky > tbody > tr > td {
  border-top: 1px solid #dbdbdb !important;
  border-bottom: 1px solid #dbdbdb !important;
}

.table-sticky > tbody > tr > td.is_sticky {
  background: #fff;
}

.table-sticky .is_sticky.is_last {
  box-shadow: inset -1px 0px 0px 0px #dbdbdb;
}

.table-sticky .is_sticky.is_first {
  box-shadow: inset 1px 0px 0px 0px #dbdbdb;
}

.table-sticky th.is_sticky:last-child,
.table-sticky td.is_sticky:last-child {
  box-shadow: inset 1px 0px 0px 0px #dbdbdb;
}

.table-input .input {
  font-size: 12px;
  padding: 0px;
  border-width: 1px 0px;
  border-color: transparent;
  border-radius: 0px;
  background: transparent;
  box-shadow: none;
  height: 24px;
  color: #111;
}

.table-input .input:hover,
.table-input .input:focus {
  border-bottom-color: #ddd;
}

.table-input.is-locked .input,
.table-input.is-locked .checkbox {
  color: inherit;
  border-color: transparent !important;
  pointer-events: none;
}

.table thead th {
  padding-top: 0.75em;
  padding-bottom: 0.75em;
  border-bottom-width: 1px;
  font-weight: inherit;
  background: #f9f9f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table thead th.has_drop {
  overflow: visible;
}

.table.is-vcentered td {
  vertical-align: middle;
}

.td-label {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8e8e8e;
  display: none;
  flex-grow: 0;
  padding-right: 5px;
}

.td-label.is-show {
  display: inline;
}

.is-flex .td-label.is-show {
  display: inline;
}

.td-label.is-show + .td-value {
  width: calc(100% - 80px);
  flex-grow: 1;
}

.table .td-value a {
  _word-break: break-all;
}

.table .is-flex {
  _align-items: center;
}

.table .is-flex + .is-flex {
  margin-top: 2px;
}

.table .columns.is-gapless:not(:last-child) {
  margin-bottom: 0.5rem;
}

.pagination-link,
.pagination-next,
.pagination-previous {
  background: #fff;
  margin-bottom: 0.5em;
}

.button:not(a) {
  cursor: auto;
}

.button.font_14:not(.is-small),
.input.font_14:not(.is-small),
.select.font_14:not(.is-small),
.select.font_14:not(.is-small) select {
  min-height: 40px;
}

.button.is_main {
  color: #fff;
  border-color: var(--color-main);
  background-color: var(--color-main);
  transition: all 0.25s;
}

.button.is_main:hover {
  opacity: 0.8;
}

.button.is_extra {
  color: #fff;
  border-color: var(--color-extra);
  background-color: var(--color-extra);
  transition: all 0.25s;
}

.button.is_extra:hover {
  opacity: 0.8;
}

label.button {
  justify-content: left;
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  line-height: inherit;
}

.checkbox input,
.radio input {
  margin-right: 0.5rem;
}

.select.is-dark select {
  background: #6d6c6c;
  color: #fff;
}

.select.is-primary select {
  background-color: #ebfffc;
  color: #00947e;
}

.select.is-link select {
  background-color: #eef3fc;
  color: #2160c4;
}

.select.is-info select {
  background-color: #eef6fc;
  color: #1d72aa;
}

.select.is-success select {
  background-color: #effaf3;
  color: #257942;
}

.select.is-warning select {
  background-color: #fffbeb;
  color: #947600;
}

.select.is-danger select {
  background-color: #feecf0;
  color: #cc0f35;
}

.select select.is-danger {
  border-color: #f14668;
}

.field.is-grouped {
  align-items: center;
}

.is-vcentered {
  align-items: center;
}

.is-flex.is-centered {
  justify-content: center;
}

.icon.is-rounded {
  border-radius: 50%;
}

.icon-text {
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
}

.icon-text > *:not(.icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

canvas {
  display: block;
}

.notify_list {
  width: 350px;
}

.notify_list .scrolly {
  max-height: calc(100vh - 100px);
}

.notify_list .dropdown-item:not(:last-child) {
  border-bottom: 1px solid #ededed;
}

.message-file {
  color: #485fc7 !important;
  text-decoration: none !important;
  margin-right: 0.75rem;
}
.message-file > *:not(.icon) {
  max-width: 150px;
}

.ql-editor {
  min-height: 300px;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

@media (max-width: 768px) {
  
  .table.is-responsive tr {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
  }

  .table.is-responsive tbody tr {
    margin-bottom: 15px;
    border-top: 1px solid #dbdbdb;
  }

  .table.is-responsive tbody .tr-group,
  .table.is-responsive tbody tr:last-child {
    margin-bottom: 0px;
    box-shadow: none;
  }

  .table.is-responsive tr th,
  .table.is-responsive .td-hide {
    display: none !important;
  }

  .table.is-responsive tr th:first-child {
    display: flex !important;
    width: 100%;
  }

  .table.is-responsive td {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    border-width: 0px 0px 1px 0px !important;
    text-align: left;
  }

  .table.is-responsive .td-half {
    width: 50%;
  }

  .table.is-responsive .is-flex {
    width: 100%;
  }

  .table .td-label {
    display: block;
    width: 80px;
  }

  .table .td-value {
    width: calc(100% - 80px);
  }

  .pagination-list {
    flex-grow: 1;
    flex-shrink: 1;
    justify-content: flex-start;
  }

  .pagination-next,
  .pagination-previous,
  .pagination-list li {
    flex-grow: 0;
    flex-shrink: 0;
  }
  
  .scrolly.only_desktop {
    height: auto !important;
    overflow: visible;
  }
  
  .table-container {
    height: auto !important;
  }

  #main {
    max-height: none;
  }

  #section_login .column.is-narrow {
    width: 100%;
  }

  #sidebar {
    width: 100%;
    position: relative;
  }

  #sidebar .navbar-burger {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #sidebar .menu {
    display: none;
    padding-bottom: 20px;
  }

  #logo {
    padding: 0.5rem !important;
  }

  #logo img {
    height: 60px;
    width: auto;
  }

  .card-header-icon {
    padding-left: 0px;
  }

  #notify {
    max-width: calc(100vw - 24px);
  }

  .notify_list {
    right: -60px !important;
    top: 43px !important;
    width: calc(100vw - 41px) !important;
  }

  .notify_list .scrolly {
    max-height: calc(100vh - 150px);
  }

  .columns.filters > .column.is-full-mobile {
    width: 100% !important;
  }

  .columns.filters > .column.is-narrow {
    width: 50% !important;
  }

  #card_chat.is-active > .column.is-one-third {
    display: none;
  }

  #chat_content {
    height: calc(100vh - 285px) !important;
  }

  #card_chat:not(.is-active) > .column.is-one-third .scrolly {
    height: calc(100vh - 205px) !important;
  }

  #card_chat:not(.is-active) > .column.is-two-thirds {
    display: none;
  }
}
