.no-scroll {
  overflow-y: hidden;
}
#output {
    white-space: pre; /* Preserves whitespace and line breaks */
    font-family: monospace; /* Monospaced font for better readability */
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 10px;
}
dialog[open] {
  border-radius: 7px;
  min-width: 40%;
  aspect-ratio: 1;
}
dialog h2 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}
form#login {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: auto;
}
form#login > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
form#login input[type='text'],
form#login input[type='password'] {
  min-height: 36px;
  padding: 0 10px;
  font-size: 14px;
  box-sizing: border-box;
}
form#login > menu {
  padding-inline-start: 0;
  display: flex;
  justify-content: center;
}
#user-content h2 {
  font-family: Arial, Helvetica, sans-serif;
}
form#login button {
  border-radius: 10px;
  background-color: #272727;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 16px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  height: 38px;
}
form#login button#cancelButton {
  margin-right: 20px;
  margin-right: 15px;
  background-color: #fff;
  border: 1px solid #000000;
  color: #272727;
}

#file-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.file-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: calc(33.333% - 20px); /* Adjust width based on your layout */
  box-sizing: border-box;
}
.file-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}
.file-details {
  flex: 1;
}
.file-name {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}
.file-size {
  font-size: 14px;
  color: #666;
}
.download-btn {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}


.switcher {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switcher input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switcher label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  width: 55px;
}

.switcher label:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + label {
  background-color: #272727;
}

[type='checkbox'] + label {
  margin: 0;
}

input:checked + label:before {
  transform: translateX(21px);
}
.client-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.client-switch > p {
  margin: 0 10px;
  font-family: Arial, Helvetica, sans-serif;
}

#alertMessage {
  height: 39px;
  margin-bottom: 10px;
}

.table-container {
  max-width: 100%; /* Container does not exceed the page width */
  /* overflow-x: auto;*/
  overflow-x: scroll; /* Always show horizontal scroll bar */
  overflow-y: scroll; /* Optionally show vertical scroll bar if desired */
  margin-top: 20px;
  height: 100%; /* Set a fixed height if you want to ensure vertical scrolling */
}
.table-container {
  border: 1px solid #ddd;
}
.table-container table {
  width: auto; /* Allow the table to grow beyond the container if needed */
  min-width: 100%; /* Ensure the table doesn't collapse below the container width */
  border-collapse: collapse;
  /*margin-top: 20px; */
  margin-bottom: 0;
  font-size: 10px;
}
.table-container table, .table-container th, .table-container td {
  border: 1px solid #ddd;
}
.table-container th, .table-container td {
  padding: 8px;
  text-align: left;
  min-width: 100px;
}
#preview-table > tr > th {
  border-top-color: transparent;
}
#preview-table > tr > td:nth-child(1),
#preview-table > tr > th:nth-child(1) {
  border-left-color: transparent;
}
#preview-table > tr > td:last-child,
#preview-table > tr > th:last-child {
  border-right-color: transparent;
}
#preview-table > tr:last-child > td {
  border-bottom-color: transparent;
}

/* pdf preview */
.pdf-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

#pdf-canvas {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.pdf-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.pdf-controls button {
  /*
  padding: 0.5rem 1rem;
  */
  border: none;

  border-radius: 10px;
  background-color: #272727;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 16px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  height: 38px;

}

.pdf-controls button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}
/* end pdf preview */

.word-preview {
  max-width: 100%;
  overflow-y: auto;
}