@font-face {
  font-family: "Gilroy-Regular";
  src: url("../fonts/gilroy/gilroy-regular.eot"); /* IE 9 Compatibility Mode */
  src: url("../fonts/gilroy/gilroy-regular.eot?#iefix")
      format("embedded-opentype"),
    /* IE < 9 */ url("../fonts/gilroy-regular.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/gilroy/gilroy-regular.woff")
      format("woff"),
    /* Firefox >= 3.6, any other modern browser */
      url("../  fonts/gilroy/gilroy-regular.ttf") format("truetype"),
    /* Safari, Android, iOS */
      url("../fonts/gilroy/gilroy-regular.svg#gilroy-regular") format("svg"); /* Chrome < 4, Legacy iOS */
}

@font-face {
  font-family: "Gilroy-Bold";
  src: url("../fonts/gilroy/gilroy-bold.eot"); /* IE 9 Compatibility Mode */
  src: url("../fonts/gilroy/gilroy-bold.eot?#iefix") format("embedded-opentype"),
    /* IE < 9 */ url("../fonts/gilroy-bold.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/gilroy/gilroy-bold.woff")
      format("woff"),
    /* Firefox >= 3.6, any other modern browser */
      url("../fonts/gilroy/gilroy-bold.ttf") format("truetype"),
    /* Safari, Android, iOS */
      url("../fonts/gilroy/gilroy-bold.svg#gilroy-bold") format("svg"); /* Chrome < 4, Legacy iOS */
}

@font-face {
  font-family: "Gilroy-SemiBold";
  src: url("../fonts/gilroy/gilroy-semibold.eot"); /* IE 9 Compatibility Mode */
  src: url("../fonts/gilroy/gilroy-semibold.eot?#iefix")
      format("embedded-opentype"),
    /* IE < 9 */ url("../fonts/gilroy/gilroy-semibold.woff2") format("woff2"),
    /* Super Modern Browsers */ url("../fonts/gilroy/gilroy-semibold.woff")
      format("woff"),
    /* Firefox >= 3.6, any other modern browser */
      url("../fonts/gilroy/gilroy-semibold.ttf") format("truetype"),
    /* Safari, Android, iOS */
      url("../fonts/gilroy/gilroy-semibold.svg#gilroy-semibold") format("svg"); /* Chrome < 4, Legacy iOS */
}

body {
  position: relative;
  background-color: #f5faff;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: 20px;
}

/* header styles */

.header {
  position: absolute;
  padding: 33px 13px 0 20px;
  max-width: 200px;
  min-height: 100vh;
  height: 100%;
  background-color: #fff;
  z-index: 1;

  transition: all 0.3s ease-out;
}

.header.closed {
  transform: translateX(-100%);
}

.open-header-btn {
  position: absolute;
  cursor: pointer;
  left: 20px;
  top: 20px;
  z-index: 0;
}

.open-header-btn img {
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19.36px;
  color: #6b7cc6;

  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 23px;
  text-align: center;
}

.logo-text::after {
  content: "";
  width: 160px;
  height: 1px;
  background-color: #e3e7fb;
}

.close-header-container {
  display: flex;
  align-items: center;
  gap: 9.74px;
  margin-bottom: 30px;
  padding-left: 20px;
}

.close-header-btn {
  cursor: pointer;
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 14px;
  line-height: 16.8px;
  color: #5f6a99;
}

.navigation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-left: 21px;
}

.menu-list-item-container {
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-list-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.menu-list-item-link {
  cursor: pointer;
  font-family: "Gilroy-Semibold";
  font-size: 13px;
  line-height: 16.09px;
  color: #5f6a99;

  text-align: left;

  transition: all 0.3s ease;
}

.menu-list-item-link:hover {
  text-decoration: underline;
}

.close-menu-arrow {
  transition: all 0.3s ease-out;
}

.close-menu-arrow.opened {
  transform: rotate(90deg);
}

.submenu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-20px);
  visibility: hidden;
  opacity: 0;
  height: 0;

  transition: all 0.3s ease-out;
  overflow: hidden;
}

.submenu-list.opened {
  transform: translateY(0px);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  height: auto;
}

.active {
  text-decoration: underline;
}

.submenu-list-item-link {
  font-family: "Gilroy-Regular";
  font-size: 12px;
  line-height: 14.4px;
  color: #5f6a99;
}

/* main styles */
main {
  padding-left: 200px;
  transition: all 0.3s ease;
}

/* top-main section styles */
.top-main-inner {
  padding: 28px 0 32px 0;

  display: flex;
  flex-direction: column;
}

.user-profile {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 17px;
}

.user-profile-inner {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 8px;
  padding-bottom: 15px;
}

.user-profile::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #e3e7fb;
}

.user-account-link {
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14.5px;
  color: #5f6a99;
}

.user-account-link:hover {
  color: #25293d;
}

.form-editing-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}

.top-main-title {
  font-family: "Gilroy-SemiBold";
  font-weight: 600;
  font-size: 28px;
  line-height: 33.4px;
  color: #5f6a99;
}

.add-form-btn,
.add-btn {
  cursor: pointer;
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  color: #f5faff;

  background-color: #5e6ce7;
  border-radius: 4px;
  padding: 7px 18px;

  display: flex;
  gap: 6px;

  transition: all 0.2s ease-out;
}

.add-form-btn::before,
.add-btn::before {
  content: "";
  background-image: url(../images/add-icon.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 16px;
  height: 16px;
}

.add-form-btn:hover,
.add-btn:hover,
.btn:hover {
  background-color: #3e48a3;
}

.form-search-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.form-search-inp-container {
  position: relative;
  flex: 3;
}

.form-search-inp {
  display: flex;
  justify-content: space-between;

  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  color: #5f6a99;
  padding: 7px 30px 7px 15px;
  width: 100%;

  border: 1px solid #e3e7fb;
  border-radius: 2px;
  background-color: #f5faff;
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

.form-search-inp:focus {
  outline: none;
  border: 1px solid #8b8c94;
}

.form-search-inp::placeholder {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  color: #5f6a99;
}

.custom-select-wrapper {
  flex: 2;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
}

.custom-select {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.custom-select-trigger {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  color: #5f6a99;
  padding: 7px 30px 7px 15px;

  border: 1px solid #e3e7fb;
  border-radius: 2px;
  background-color: #f5faff;
  width: 100%;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  display: none;
  z-index: 2;

  border: 1px solid #e3e7fb;
  border-radius: 2px;
  background-color: #f5faff;
  width: 100%;
}

.custom-option {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 13px;
  line-height: 15.6px;
  color: #5f6a99;
  padding: 7px 30px 7px 15px;

  display: block;
  padding: 10px 15px;
  cursor: pointer;
}

.custom-option:hover {
  background-color: #e9e9e9;
}

.custom-select.open .custom-options {
  display: block;
}

.form-table-container {
  /* max-height: 690px; */
  overflow-y: auto;
  background-color: #fff;
  border-radius: 8px;
  margin: 0;
}

.form-table {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 14px;
  line-height: 13px;
  color: #5f6a99;
}

td img {
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
}

th {
  padding: 25px 7px;
  border-bottom: 1px solid #e3e7fb;
}

td {
  padding: 15px 7px;
}

.number-cell,
.documents-cell {
  width: 7%;
}

.date-cell {
  width: 25%;
}

td img {
  display: inline;
}

.status-cell,
.documents-cell,
.payment-cell {
  text-align: center;
  vertical-align: middle;
}

.status-cell {
  width: 15%;
}

.expert-cell {
  width: 25%;
}

.template-number-cell,
.name-client-cell {
  /* max-width: 80px; */
}
.date-editing-cell {
  width: 15%;
}

th,
td {
  font-weight: 400;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  border-left: 1px solid #e3e7fb;
}

tr:nth-child(even) {
  background-color: #f8f9fb;
}

/* tr:hover {
	background-color: #ddd;
} */

table {
  border-spacing: 1px 0px;
  table-layout: fixed;
}

td:first-child,
th:first-child {
  border-left: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
::-webkit-scrollbar-thumb {
  background: #5e6ce7;
  border: 0px none transparent;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5e6ce7;
}
::-webkit-scrollbar-thumb:active {
  background: #5e6ce7;
}
::-webkit-scrollbar-track {
  background: transparent;
  border: 0px none transparent;
  border-radius: 5px;
}
::-webkit-scrollbar-track:hover {
  background: transparent;
}
::-webkit-scrollbar-track:active {
  background: transparent;
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* assign-profile-modal-window styles */
.assign-profile-modal-window,
.assign-profile-modal-window-success,
.overlay {
  opacity: 0;
  visibility: hidden;
}

.assign-profile-modal-window.opened,
.assign-profile-modal-window-success.opened {
  opacity: 1;
  visibility: visible;
}

.assign-profile-modal-window.opened .overlay,
.assign-profile-modal-window-success.opened .overlay {
  opacity: 1;
  visibility: visible;
}

.assign-profile-modal-window,
.assign-profile-modal-window-success {
  max-width: 760px;
  width: 100%;
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background-color: #fff;
  padding: 60px 100px;
  border-radius: 8px;
  transition: all 0.2s ease-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  transition: all 0.2s ease-out;
}

.assign-profile-form {
  display: flex;
  flex-direction: column;
}

.assign-profile-title {
  font-family: "Gilroy-SemiBold";
  font-weight: 600;
  font-size: 28px;
  line-height: 33px;
  color: #5f6a99;
  text-align: center;

  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.assign-profile-title::after {
  content: "";
  width: 100%;
  max-width: 700px;
  height: 1px;
  background-color: #e3e7fb;
  margin-top: 20px;
}

.assign-profile-text {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #5f6a99;
  margin-bottom: 20px;
}

.assign-profile-modal-window .custom-select-wrapper {
  margin-bottom: 10px;
}

.assign-profile-modal-window .custom-select-trigger {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5f6a99;
  padding: 18px 20px 18px 50px;
  border: none;
  border-radius: 4px;
  background-color: #f5faff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.assign-profile-modal-window .custom-option {
  padding: 18px 50px;
}

.assign-profile-modal-window .custom-select-trigger::before {
  content: "";
  background-image: url(../images/person-icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 17px;
  height: 17px;
  margin-left: -29px;
}

.assign-profile-modal-window .custom-select-trigger::after {
  content: "";
  background-image: url(../images/drop-down-arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  height: 15px;
  margin-left: auto;
  margin-bottom: -10px;
}

.template-select-wrapper .custom-select-trigger::before {
  background-image: url(../images/document-icon.svg);
}

.letter-select-wrapper .custom-select-trigger::before {
  background-image: url(../images/document-icon.svg);
}

.nosology-select-wrapper .custom-select-trigger::before {
  background-image: url(../images/person-doctor-icon.svg);
}

.select-container {
  display: flex;
  gap: 10px;
}

.select-container div {
  flex: 1;
}

.assign-input,
.assign-input::placeholder {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #5f6a99;
}

.input-link-block {
  position: relative;
}

.assign-input {
  width: 100%;
  padding: 18px 50px;
  border: none;
  border-radius: 4px;
  background-color: #f5faff;
}

.link-icon {
  position: absolute;
  top: 18px;
  left: 20px;
}

.assign-input:focus {
  border: none;
  outline: none;
}

.submit-assign-profile-btn,
.success-assign-profile-btn {
  cursor: pointer;
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 17px;
  line-height: 20.5px;
  color: #f5faff;
  background-color: #5e6ce7;
  padding: 16px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.submit-assign-profile-btn:hover {
  background-color: #313983;
}

.assign-profile-modal-window-success {
  padding: 60px 30px;
}

.assign-profile-wrapper {
  display: flex;
  gap: 10px;
}

.assign-profile-block {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-number-title,
.form-date-title,
.form-date,
.form-number {
  font-family: "Gilroy-Regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 13px;
  color: #5f6a99;
  margin-bottom: 10px;
}

.form-date,
.form-number {
  padding: 20px;
  background-color: #f5faff;
}

.success-assign-profile-btn {
  width: 100%;
  margin-top: 15px;
}

.success-assign-profile-btn:hover {
  background-color: #313983;
}
