@font-face {
  font-family: 'SAP Icons';
  src: url(./fonts/SAP-icons.ttf) format('truetype');
}

@font-face {
  font-family: "72-Regular";
  src: url("./fonts/72-Regular.ttf");
}

@font-face {
  font-family: "72-Bold";
  src: url("./fonts/72-Bold.ttf");
}

[data-sap-icon]:before {
  font-family: "SAP Icons";
  content: attr(data-sap-icon);
  speak: none;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 1rem;
  color: #424242;
}

body {
  margin: 0;
  font-family: "72-Regular", arial;
}

h1 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: normal;
}

input, select, button {
  margin-bottom: 6px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border: 1px solid #919396;
  border-radius: 2px;
  color: #424242;
  font-family: "72-Regular", arial;
  font-size: 1rem;
  background: white;
  outline: none;
}

div.select-value-box {
  padding-left: 0.75rem;
  padding-right: 2.25rem;
  border: 1px solid #919396;
  border-radius: 2px;
  color: #424242;
  font-family: "72-Regular", arial;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3rem;
  line-height: 3rem;
  width: 100%;
}

select, button {
  -webkit-appearance: none;
  cursor: pointer;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1.5rem - 4px),
    calc(100% - 15px) calc(1.5rem - 4px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

input:disabled, select:disabled {
  color: #c0c0c0;
  border-color: #c0c0c0;
  cursor: not-allowed;
}

input:disabled::placeholder {
  color: #a8a8a8;
}

select:disabled {
  background-image:
    linear-gradient(45deg, transparent 50%, #c0c0c0 50%),
    linear-gradient(135deg, #c0c0c0 50%, transparent 50%);
}

input::placeholder {
  color: #a8a8a8;
}

input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #a8a8a8;
}

input:not([type="checkbox"]), select {
  display: block;
  margin-bottom: 2.25rem;
  width: 100%;
  height: 3rem;
}

input[type="submit"] {
  border: none;
  border-radius: 4px;
  background-color: #0070F2;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.06);
  cursor: pointer;
  color: white;
  font-family: "72-Bold";
  height: 2.625rem;
}

input[type="submit"]:hover {
  background-color: #0064D9;
}

input[type="submit"]:disabled {
  background: #ddd;
  cursor: not-allowed;
}

input[type="submit"]:disabled:hover {
  opacity: unset;
}

.page {
  display: flex;
  align-items: stretch;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  transition: filter 0.2s ease;
}

.page.blurred {
    filter: blur(5px)
}

.page-cover {
  flex: 3;
}

.page-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cover-logo {
  position: absolute;
  top: 3rem;
  left: 3rem;
  width: 207px;
  height: auto;
}

.page-content {
  width: 35rem;
  overflow: auto;
}

.page-content-forms {
  margin: 5rem auto 0;
  max-width: 26.5rem;
}

.floater {
  float: left;
  height: 50%;
  width: 1px;
  margin-bottom: -10rem;
}

.center_box {
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.hide {
  display: none;
}

.selected {
  background: #fceecc;
}

.remember {
  margin-bottom: .825rem;
  font-size: .75rem;
}

.tab-item {
  color: #666;
  cursor: pointer;
  display: inline-block;
  height: 3rem;
  margin: 0 1rem;
  line-height: 3rem;
}

.tab-item.selected {
  background-color: transparent;
  border-bottom: 3px solid #f1b41e;
  color: #f0ab00;
  font-family: "72-Bold";
}

.tab {
  margin-bottom: 2.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 1px solid #fbda85;
}

.tab.hide {
  display: none;
}

/* Select with filterable list --- end*/
.select {
  margin-bottom: 2.25rem;
  position: relative;
}

.select-value {
  display: flex;
  position: relative;
  width: 100%;
}

.select-value input {
  cursor: pointer;
  margin-bottom: 0;
  padding-right: 2.125rem;
}

.select-value-icon {
  cursor: pointer;
  font-size: 1.125rem;
  padding: 0 0.75rem;
  position: absolute;
  right: 0;
  line-height: 3rem;
}

.half-icon {
  line-height: 2rem;
}

.filterable-list {
  -webkit-box-shadow: 0px 0px 4px 0px rgba(59,59,59,0.75);
  -moz-box-shadow: 0px 0px 4px 0px rgba(59,59,59,0.75);
  box-shadow: 0px 0px 4px 0px rgba(59,59,59,0.75);
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 1;
  top: 3rem;
}

.filterable-list-search {
  position: relative;
  padding: 0.3125rem 0.625rem;
  border-bottom: 1px solid #d8d8d8;
  height: 3rem;
}

input.filterable-list-search-input {
  border-color: #d8d8d8;
  font-size: 0.875rem;
  height: 2.375rem;
  margin-bottom: 0;
}

.filterable-list-search-icon {
  position: absolute;
  right: 10px;
  top: 6px;
  padding: 0.625rem;
  color: #f0ab00;
  font-size: 0.875rem;
  cursor: pointer;
}

.filterable-list-list {
  margin: 0;
  margin-top: -1px;
  padding-left: 0;
  max-height: 40vh;
  overflow: auto;
  list-style-type: none;
}

.filterable-list-list-item {
  padding: 1rem;
  border-top: 1px solid #d8d8d8;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filterable-list-list-item-company {
  height: auto;
  min-height: 4.5rem;
}

.filterable-list-list-item:hover {
  background-color: #f3f3f2;
}

.filterable-list-list-item>span{
  display: -webkit-box;
  white-space: normal;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filterable-list-list-item>span.belong{
  color: gray;
  font-size: 1rem;
}

.selected-company-name {
  padding: 0.75rem;
}

/* Select with filterable list --- end*/

.error-message {
  background-color: #ffe2e1;
  border: 1px solid #fd514d;
  border-radius: 3px;
  display: flex;
  line-height: 1.25rem;
  min-height: 3rem;
  padding: 0.75rem;
}

.error-message.hide {
  display: none;
}

.error-message .notification-icon {
  color: #b90000;
  font-size: 0.875rem;
  margin-right: 0.75rem;
}

.error-message .error-message-content {
  color: #434343;
  font-size: 0.875rem;
}
.succeed-message .succeed-message-content {
	background-color: #71eeb2;
    border: 1px solid #82cbae;
    border-radius: 3px;
    display: flex;
    line-height: 1.25rem;
    margin-bottom: 2.25rem;
    min-height: 3rem;
    padding: 0.75rem;
}

.field-input {
  margin-bottom: 2.25rem;
}

.field-input input {
  margin-bottom: 0;
}

.show-tip {
  position: relative;
}

.error-tip {
  display: none;
}

.show-tip .error-tip {
  color: #b90000;
  display: inline-block;
  font-size: 0.625rem;
  padding-left: 0.75rem;
  position: absolute;
  top: 50px;
}

.show-tip > input,
.show-tip.select .select-value-input {
  border: 1px solid #b90000;
}

@media (max-width: 1130px) {
  .tab-item {
    margin: 0 0.5rem;
  }
}

@media (max-width: 950px) {
  .page {
    flex-direction: column;
    overflow: initial;
  }

  .page-cover {
    height: 30vw;
  }

  .page-cover-logo {
    top: 7vw;
    left: 5vw;
    width: 207px;
  }

  .page-content {
    width: auto;
    flex: 7;
  }

  .floater {
    float: none;
    height: 2.25rem;
    width: auto;
    margin-bottom: 0px;
  }

  .tab-item {
    margin: 0 1.5rem;
  }

  .page-content-forms{
    margin: 2rem auto 0;
  }

  html{
    font-size: 75%;
  }
}

/** select company table model **/
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  width: 80%;
  max-height: 70rem;
  overflow-y: auto;
  border-radius: 8px;
}

.modal-head {
  font-weight: bolder;
  font-size: 16px;
  margin-bottom: 10px;
  height: 2rem;
  line-height: 2rem;
  padding: 0.25rem 1rem;
  border-bottom: 1px solid #d1d1d1;
  box-sizing: content-box;
}

.modal-filter {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.modal-list-search {
  width: 60rem;
  flex: 1;
}

.filter-btn-group {
  min-width: 180px;
  text-align: right;
  padding: 10px 0;
}

.filter-group, .filter-group-combox {
  position: relative;
  display: flex;
  padding: 10px 0;
  flex-wrap: wrap;
}

.combo-search-box {
  position: relative;
  width: 100%;
  margin-right: 20px;
}

.filter-icon {
  font-size: 1rem;
  padding: 0rem 0.75rem;
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.875rem;
}

.search-box {
  min-width: 300px;
  margin: 6px 0;
  flex: 1;
  max-width: 400px;
  margin-right: 20px;
}

.search-title {
  display: block;
  margin-bottom: 4px;
  color: #999;
  font-size: 0.8rem;
}

input.modal-list-search-input {
  border-color: #d8d8d8;
  font-size: 0.875rem;
  height: 1.875rem;
  margin-bottom: 0;
  border-radius: 4px;
}

input.modal-list-search-input:focus {
  border-color: #007bff;
}

.modal-list-search-icon {
  position: absolute;
  right: 0.1rem;
  top: 0.1rem;
  padding: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.table-container {
  width: 100%;
  margin: 10px auto;
  border-collapse: collapse;
  padding: 0 20px;
}

.header-table, .body-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.tbody-scroll-wrapper {
  min-height: 10rem;
  max-height: 20rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

tr.selected {
  background-color: #ebf8ff;
}

.table-container th, .table-container td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  word-break: break-word;
}

tr th:nth-child(1),tr td:nth-child(1),tr th:nth-child(2),tr td:nth-child(2) { width: 35%; }
tr th:nth-child(3),tr td:nth-child(3),tr th:nth-child(4),tr td:nth-child(4) { width: 15%; }

th.sortable:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}

th.sortable {
  position: relative;
}

td.table-nodata {
  text-align: center;
  padding: 2rem;
  color: #999;
}

.sort-icon {
  position: absolute;
  right: 6px;
  top: 8px;
}

#searchInput {
  width: 100%;
  padding: 8px;
}
.modal-foot {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  padding: 10px;
  border-top: 1px solid #d9d9d9;
  align-items: center;
  height: 70px;
}

.modal-btn {
  display: inline-block;
  color: #0070F2;
  font-size: 14px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
  padding: 4px;
  margin-left: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  height: 26px;
}

.btn-fill {
  color: #fff;
  background-color: #0070F2;
}

.btn-fill:hover {
  background-color: #0064D9;
}

.modal-btn:hover {
  border-color: #0070F2;
}



/** combo box **/
.combo-box {
  position: relative;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #d8d8d8;;
  height: 1.875rem;
  cursor: text;
  font-size: 0.875rem;;
  border-radius: 4px;
}

.combo-box.active .selected-tags {
  border-color: #007bff;
}

.combo-box.error .selected-tags {
  border-color: #e90b0b;
}

input.combo-input {
  border: none;
  flex: 1;
  outline: none;
  padding: 0 0.25rem;
  height: 100%;
}

.tag {
  border: 1px solid #999;
  padding: 3px 8px;
  margin: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.tag-summary {
  color: #007bff;
  padding: 3px 6px;
  margin: 2px;
  border: none;
}

.tag span {
  margin-right: 5px;
}

.tag .remove-tag {
  cursor: pointer;
  font-weight: bold;
}

.dropdown-list {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.dropdown-item {
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-item.error {
  background-color: #ffeaf4;
}

.dropdown-item input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #007bff;
}

.dropdown-item:hover {
  background: #f0f0f0;
}

/** filter popup **/
.custom-checkbox {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  margin: 8px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  color: #556b82;
}

.custom-checkbox::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.125rem;
  width: 1rem;
  height: 1rem;
  border: 1px #556b81 solid;
  border-radius: 4px;
  background-color: white;
  transition: background-color 0.3s;
}

.custom-checkbox::before:hover {
  background-color: #e3f0ff
}

.hidden-checkbox {
  display: none;
}

.hidden-checkbox:checked + .custom-checkbox::after {
  content: "\e05b";
  font-family: "SAP Icons";
  position: absolute;
  left: 0.25rem;
  top: 0;
  color: #0064d9;
  font-size: 0.75rem;
}

.filter-list-item {
  border-bottom: 1px solid #e5e5e5;
}

.filter-list-item:hover {
  background-color: #eaecee;
}

.filter-list-item.selected {
  background-color: #ebf8ff;
}

.filter-list-item.selected:hover {
  background-color: #dcf3ff;
}

