/*font*/
@font-face {
  font-family: "Commissioner";
  src: url("font/Commissioner-VariableFont.ttf");
}

html {
  font-size: 15px;
}

h1 {
  font-size: 3rem;
  line-height: 3rem;
}

h2 {
  font-size: 2rem;
  line-height: 2rem;
}

p {
  font-size: 1rem;
  line-height: 1rem;
}

/*all*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Commissioner", sans-serif;
}

/*base*/
.header-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.header-title {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 55px;
  box-shadow: 0px 0px 15px #bbbfc3b7;
  z-index: 10;
}

.logo-img {
  max-width: 95px;
}

.content-container {
  padding-top: 65px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  border: none;
  cursor: pointer;
}

.form-checkbox:checked {
  background-color: #66ccf3;
}

/*end base*/

.nav-container {
  display: flex;
  width: 500px;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  position: relative;
}

.add-entry-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  color: #f6f9fb;
  background-color: #66ccf3;
  line-height: 30px;
  text-align: center;
  transition: 0.5s;
  cursor: pointer;
}

.add-entry-btn:hover,
.form-btn-submit:hover,
.form-btn-edit:hover,
.welcome-bth:hover,
.unapproved-btn-back:hover,
.unapproved-days-btn:hover {
  background-color: #357abd;
  color: #fffff8;
  transition: 0.3s;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #272d32da;
  color: #f6f9fb;
  font-size: 10px;
  width: 70px;
  text-align: center;
  line-height: 15px;
  padding: 2px;
  border: 1px solid #0b0b0b;

  /* Position the tooltip */
  position: absolute;
  top: 60%;
  right: 50%;
  z-index: 11;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
}

.nav-form-filter {
  display: flex;
  width: 450px;
  justify-content: space-between;
  align-items: center;
  height: 30px;
}

.nav-select {
  width: 130px;
  height: 100%;
  background-color: #f6f9fb;
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  line-height: 30px;
  color: black;
}

.reset-filter {
  width: 30px;
  height: 30px;
  background: url(img/icon-reset-filter.png) center/cover;
}

.reset-filter-btn {
  width: 30px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.table-data {
  width: 100%;
  color: #000a0e;
  background-color: #e7e8ed;
  border-collapse: collapse;
  position: relative;
}

.trow-head-data {
  height: 48px;
  background-color: #66ccf3;
  line-height: 1.2rem;
  font-size: 1.2rem;
  padding: 10px;
  position: sticky;
  top: 66px;
  overflow: hidden;
  color: #f6f9fb;
  text-align: left;
  z-index: 3;
}

.th-filter {
  min-width: 60px;
}

.resizer {
  width: 5px;
  cursor: ew-resize;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
}

.trow {
  height: calc((100vh - 170px) / 20);
  position: relative;
}

.trow:nth-of-type(2n + 1) {
  background-color: #f6f9fb;
}

.trow:nth-of-type(2n) {
  background-color: #e7e8ed;
}

.trow:hover {
  background-color: #d8ecfa;
}

.tcol {
  line-height: 1rem;
  position: relative;
  overflow: hidden;
  padding: 0 10px;
}

.tcol-num {
  text-align: right;
}

.tcol-filter {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 29px;
  width: 70%;
  margin-left: 10%;
  padding: 0;
}

.tcol-filter-edit,
.tcol-filter-delete,
.tcol-filter-save {
  border: none;
  cursor: pointer;
}

.tcol-filter-edit {
  width: 15px;
  height: 15px;
  background: url(img/icon-edit-button.png) center/cover no-repeat;
}

.tcol-filter-delete {
  width: 15px;
  height: 15px;
  background: url(img/icon-delete-button.png) center/100% no-repeat;
}

.tcol-filter-save {
  width: 15px;
  height: 15px;
  background: url(img/icon-save-button.png) center/100% no-repeat;
}

.add-form-container {
  display: none;
  animation: fadeIn 0.5s linear;
  width: 350px;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 1px 1px 6px #5a5c5e30;
  z-index: 5;
}

.add-form-container.open {
  display: block;
  animation: appForm 0.4s linear 0s 1 normal both;
  z-index: 5;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #f6f9fb;
  background-color: #66ccf3;
  padding: 10px 15px;
}

.close-form-btn {
  background: none;
  border: none;
  font-weight: 900;
  font-size: 1.9rem;
  color: #f6f9fb;
  cursor: pointer;
}

.close-form-btn:hover {
  color: #66ccf3;
  text-shadow: 0 0 6px #f6f9fb;
  transition: 0.1s;
}

.add-entry-form {
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  background-color: #e7e8ed;
}

.form-part {
  display: flex;
  justify-content: space-between;
}

.form-element {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  justify-content: space-between;
}

.form-element-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-element input,
.form-element select,
.form-element textarea {
  resize: none;
  border: none;
  outline: none;
  box-shadow: 1px 1px 6px #b0b6b950;
  padding: 5px;
  border-radius: 3px;
  background-color: #ffffff;
}

.form-element label {
  margin-bottom: 8px;
}

.middle-element {
  display: block;
  width: 150px;
}

.small-element {
  display: block;
  width: 100px;
}

.form-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-btn-reset,
.form-btn-submit,
.welcome-bth,
.unapproved-btn-back,
.unapproved-days-btn {
  display: block;
  border: none;
  padding: 10px;
  border-radius: 3px;
  width: 120px;
  font-weight: 500;
  color: #f6f9fb;
  cursor: pointer;
}

.form-btn-submit,
.welcome-bth,
.unapproved-btn-back,
.unapproved-days-btn {
  background-color: #4a90e2;
  box-shadow: 1px 1px 6px #b0b6b950;
}

.form-btn-reset {
  background-color: #c2eafa;
  box-shadow: 1px 1px 6px #b0b6b950;
}

.form-btn-reset:hover {
  background-color: #a7d2e4;
  transition: 0.3s;
}

.edit-form-container {
  display: none;
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #d8ecfa;
  box-shadow: 1px 1px 6px #5a5c5e30;
  z-index: 5;
}

.edit-form-container.open {
  display: block;
  height: 100%;
}

.edit-entry-form {
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.edit-form-container.open .edit-entry-form {
  height: calc(100% - 8px);
}

.edit-entry-form select,
.edit-entry-form input {
  border: none;
  outline: none;
  height: 100%;
  margin: 0 2px;
  box-shadow: 1px 1px 6px #b0b6b950;
  border-radius: 3px;
  resize: none;
}

#edit-checkbox-td {
  height: 100%;
}

.edit-checkbox-td {
  text-align: right;
}

.form-btn-edit {
  height: 100%;
  border: none;
  line-height: 23px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  color: #f6f9fb;
  cursor: pointer;
  background-color: #66ccf3;
  box-shadow: 1px 1px 6px #b0b6b950;
  flex-grow: 1;
}

/*welcome*/
.welcome-title {
  width: 100%;
  text-align: center;
  padding-right: 95px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.section-center {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-section {
  background: url(img/welcome-bg.jpg) center/cover no-repeat;
}

.opasity-btn-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  margin: 50px;
  background-color: #f6f9fbdd;
  border-radius: 3px;
}

.welcome-bth {
  min-width: 200px;
  max-width: 400px;
  width: auto;
  padding: 20px 0;
  font-size: 1rem;
}

.welcome-bth a,
.unapproved-btn-back a {
  text-decoration: none;
  min-width: 100%;
  color: #f6f9fb;
  padding: 20px 40px;
}

/*access*/

.small-table-container {
  min-width: 450px;
  margin: 20px 0;
  z-index: 5;
}

.header-smal-table {
  height: 30px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.big-table-container {
  width: 100%;
  position: relative;
}

.header-big-table {
  height: 30px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0px 10px;
}

.access-new-site {
  width: 220px;
}

.align-end {
  align-self: flex-end;
}

.form-new-user-bot {
  display: none;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 1px 1px 6px #5a5c5e30;
  width: 400px;
  background-color: #d8ecfa;
  z-index: 5;
}

.form-new-user-bot.open {
  display: block;
  animation: appForm 0.4s linear 0s 1 normal both;
}

/*unapproved_days*/

.unapproved-days-btn {
  width: 300px;
  font-size: 1.2rem;
}

/*unapproved_records*/
.unapproved-btn-back {
  position: absolute;
  top: 15px;
  right: 55px;
  width: 95px;
}

.img-bg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  object-fit: cover;
  z-index: -1;
}

/*directory*/

.directory-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  background: inherit;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 3px;
}

.directory-input:focus {
  border: 2px solid #66ccf3;
}

/*pagination*/
.pagination,
.bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  background-color: #ffffff;
}

.pagination-text {
  color: #5f5f5f;
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.pagination-list {
  list-style-type: none;
  display: flex;
  gap: 3px;
}

.pagination-item {
  background-color: #e7e8ed;
  border-bottom: 3px solid #66ccf3;
  width: 30px;
  height: 30px;
  text-align: center;
}

.pagination-link {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  line-height: 30px;
  text-decoration: none;
  color: #000;
  transition:
    background-color 0.3s,
    transform 0.3s;
}

.pagination-item:hover {
  transform: scale(1.1);
}

.pagination-item.active {
  background-color: #66ccf3;
  font-weight: bold;
}

.pagination-item.active .pagination-link {
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes appForm {
  0% {
    top: -50%;
  }
}

@media (max-width: 1500px) {
  html {
    font-size: 13px;
  }

  .th-access {
    font-size: 9px;
  }
}

@media (max-width: 1000px) {
  .th-income {
    font-size: 9px;
  }
}

@media (max-width: 820px) {
  .th-access {
    font-size: 9px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  #users_table thead {
    height: 65px;
  }

  #users_table .tcol {
    font-size: 9px;
  }
}

.day-group-header {
  font-weight: bold;
  text-align: left;
  padding: 10px;
  background-color: #f1f1f1;
  border-top: 2px solid #ccc;
}

.day-group-header + .trow .tcol {
  border-top: 1px solid #ccc;
}
.day-separator {
  height: 2px;
  background-color: #ccc; /* Цвет разделительной линии */
  border-bottom: 1px solid #999; /* Опционально: граница снизу для разделителя */
  margin: 4px 0; /* Опционально: добавление отступов сверху и снизу */
}

@media (pointer: coarse) {
  select,
  option,
  input[type="date"] {
    font-size: 18px;
    padding: 15px;
    color: #333;
    background-color: #f9f9f9;
  }

  /* Для улучшения отображения на мобильных устройствах */
  input[type="date"]::-webkit-inner-spin-button,
  input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    opacity: 0.7;
  }
}

.edit-form-container.open .edit-entry-form {
  height: calc(10% + 15px);
}

.last-of-day {
  font-weight: bold;
  background-color: lightskyblue !important;
}
