body {
  padding: 0;
  margin: 0;
  height: 100vh;
  background-color: rgb(248, 251, 255);
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
}

.appearance-reset {
  appearance: none;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
  Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
  "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  text-decoration-line: none;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  min-width: 0px;
  min-height: 0px;
  padding-top: 0px;
  margin-top: 0px;
  border-top-width: 0px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  border-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-image-source: initial;
  border-image-slice: initial;
  border-image-width: initial;
  border-image-outset: initial;
  border-image-repeat: initial;
  background-color: transparent;
  color: inherit;
}

.center-children {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
}

.login-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 400px;
    min-height: 400px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.login-form-container h1 {
    text-align: center;
    margin: 0 0 20px 0;
    color: #333333;
}

.login-form-container .form-group {
    margin-bottom: 16px;
}

.login-form-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555555;
}

.login-form-container input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form-container button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 16px;
}

.login-form-container button:hover {
    background: #0056b3;
}

.login-form-container a {
    text-align: center;
}

.messages {
    margin-bottom: 15px;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.alert.success {
    color: #0a8e0a;
    background-color: #f6fdf6;
    border-color: #75de75;
}

.alert.error {
    color: #de0a0a;
    background-color: #fdf6f6;
    border-color: #de7575;
}

.topbar-container {
  background-color: #124B54;
  display: flex;
  justify-content: space-between;
}

.button-69 {
  background-color: initial;
  background-image: linear-gradient(#1A6975 0, #1A6975 100%);
  border-radius: 5px;
  border-style: none;
  box-shadow: rgba(245, 244, 247, .25) 0 1px 1px inset;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 60px;
  line-height: 60px;
  margin-left: -4px;
  outline: 0;
  text-align: center;
  transition: all .3s cubic-bezier(.05, .03, .35, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: bottom;
  width: 190px;
}

.button-69:hover {
  opacity: .7;
}

@media screen and (max-width: 1000px) {
  .button-69 {
    font-size: 14px;
    height: 55px;
    line-height: 55px;
    width: 150px;
  }
}

.topbar-left {
  -webkit-font-smoothing: antialiased;
  align-items: center;
  color: white;
  display: flex;
  height: 48px;
  position: relative;
  padding-left: 8px;
  padding-right: 16px;
  z-index: 1000;
}

.topbar-right {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.topbar-right a {
    color: #fff;
}

.nav_link {
  background-color: transparent;
  border-radius: 9999px;
  color: rgb(255, 255, 255);
  font-size: 14px;
  font-weight: 600;
  line-height: 32px;
  margin-right: 4px;
  padding-left: 12px;
  padding-right: 12px;
  text-decoration: none;
  text-transform: capitalize;
  vertical-align: middle;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color 120ms ease-in 0s;
}

.nav_link:hover, .nav_active {
  background-color: #0F3D44;
}

.logo {
  height: 30px;
  margin: 0 12px 0 8px;
}

.tab_menu {
  display: flex;
  flex-direction: column;
  min-height: 64px;
  padding: 0 24px;
  row-gap: 0px;
  column-gap: 0px;
  background-color: #1A6975;
}

.outer-tab {
    display: flex;
    flex-direction: column;
}

.inner_tab {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  flex-direction: row;
  box-pack: justify
  -webkit-box-pack: justify;
  justify-content: space-between;
  align-items: center;
  -webkit-box-align: center;
  width: 100%
  row-gap: 16px;
  column-gap: 16px;
}

.folder-tabs {
    display: flex;
    column-gap: 4px;
    max-height: 40px;
}

.folder-tabs a {
    text-decoration: none;
}

.folder-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px 4px 0 0;
    background-color: rgba(255, 255, 255, .45);
    color: rgba(0, 0, 0, .6);
    font-weight: 400;
    padding: 13px 16px;
    cursor: pointer;
}

.folder-tab:hover {
    background-color: rgba(255, 255, 255, .65);
    color: rgba(0, 0, 0, .8);
}

.folder-tab.active {
    background-color: rgb(248, 251, 255);
    color: rgba(0, 0, 0, .8);
}

.page_title {
  flex-shrink: 1;
  font-size: 25px;
  color: white;
  line-height: 32px;
  font-weight: 400;
  margin: 16px 16px 16px 0;
}

@media (max-width: 699px) {
  .page_title {
    justify-content: center;
  }
}

.button_container {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  flex-direction: row;
  -webkit-box-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  align-items: center;
  align-self: flex-end;
  padding-top: 16px;
  row-gap: 8px;
  column-gap: 8px;
}

.button_link {
  display: inline-flex;
  font-weight: 400;
  -webkit-user-select: none;
  touch-action: manipulation;
  flex-direction: row;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 3px 16px;
  border-width: 1px;
  border-radius: 3px;
  font-size: 14px;
  background-color: rgb(255,255,255);
  line-height: 24px;
  color: #124B54;
}

.button_link:hover {
  background-color: rgba(255,255,255,0.8);
}

.content-container {
    padding: 15px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.list-table-container {
    width: 100%;
}

.list-table-header-container {
    padding: 24px 16px 8px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 0;
    height: 52px;
}

.list-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-table-header h1 {
    font-size: 18px;
    margin-right: 16px;
    color: #1f1f1f;
    font-weight: 400
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.actions {
    display: flex;
    gap: 10px;
}

.actions button {
    width: 46px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions button:hover {
    background-color: #f5f5f5;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  align-content: center;
  justify-content: center;
  font-size: 2rem;
  padding: 0.1rem;
  border: 0.2rem solid #C1C1C2;
  border-radius: 0.3rem;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]::before {
  content: "";
  width: 85%;
  height: 100%;
  transform: scale(0);
  background-color: #C1C1C2;
  border-radius: 5px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMTczLjg5OCA0MzkuNDA0bC0xNjYuNC0xNjYuNGMtOS45OTctOS45OTctOS45OTctMjYuMjA2IDAtMzYuMjA0bDM2LjIwMy0zNi4yMDRjOS45OTctOS45OTggMjYuMjA3LTkuOTk4IDM2LjIwNCAwTDE5MiAzMTIuNjkgNDMyLjA5NSA3Mi41OTZjOS45OTctOS45OTcgMjYuMjA3LTkuOTk3IDM2LjIwNCAwbDM2LjIwMyAzNi4yMDRjOS45OTcgOS45OTcgOS45OTcgMjYuMjA2IDAgMzYuMjA0bC0yOTQuNCAyOTQuNDAxYy05Ljk5OCA5Ljk5Ny0yNi4yMDcgOS45OTctMzYuMjA0LS4wMDF6Ii8+PC9zdmc+");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
}

input[type="checkbox"]:checked:hover::before {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

input[type="checkbox"]:checked {
  background-color: #1A6975;
  border: 0.2rem solid #1A6975;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
  background-color: #1A6975;
}

.not-allowed {
    opacity: 50%;
    cursor: not-allowed;
}

.submit-button {
    background-color: #1A6975;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    position: relative;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    opacity: 50%;
    cursor: not-allowed;
}

.ready-to-submit {
    cursor: pointer;
    opacity: 100%;
}

.ready-to-submit:hover {
    background-color: #124B54;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #e0e0e0;
    color: #737373
}

table th, table td {
    padding: 8px;
    text-align: left;
    font-size: 14px;
    color: #737373;
}

table th {
    background-color: #fafafa;
    height: 32px;
    font-size: 12px;
    font-weight: 700;
}

table td {
    border-top: 1px solid #ddd;
}

table tbody tr {
    height: 64px;
}

td > svg {
   padding-left: 8px;
}

.pdf-view-btn {
    padding: 0;
    justify-content: center;
    height: 47px;
}

.pdf-view-btn:hover {
    cursor: pointer;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3; /* Light gray background */
    border-top: 5px solid #5282e5; /* Blue color for the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.overlay {
      display: none; /* Hidden by default */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
      z-index: 9999; /* Ensure it's on top */
      justify-content: center;
      align-items: center;
    }

.circle {
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ccc;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  bottom: 100%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* begin bill detail entry page */

.document {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.form {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.form h2 {
    margin-top: 0;
}

.form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form input, .form textarea, .form select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.save-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-button:hover {
    background-color: #0056b3;
}

.table-section {
    margin-top: 30px;
    max-height: 159px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.table-row .row-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.table-row .row-bottom {
    grid-column: span 4;
}

.table-row input, .table-row select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.table-row:not(:last-child) {
    margin-bottom: 10px;
}

.add-row-button {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-row-button:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .table-row .row-top {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* end bill detail entry page */

select.minimal {

  /* styling */
  background-color: white;
  border: thin solid #bbb;
  border-radius: 4px;
  color: #1f1f1f;
  display: inline-block;
  font: inherit;
  padding: 0.5em 3.5em 0.5em 1em;

  /* reset */

  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select.minimal {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(14px),
    calc(100% - 15px) calc(14px),
    calc(100% - 2.5em);
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}