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;
    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;
}

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

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

.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: 12px;
  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;
  vertical-align: middle;
}

.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-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;
}

#incomplete-container, #complete-container {
    width: 100%;
}

.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
}

.list-table a {
    color: #737373;
}

.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;
}

.refresh {
    background-color: #1A6975;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}

.refresh: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 */

.form-container {
    width: 75%;
    max-width: 450px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 1.5rem;
}
.form-group select {
    background-image: url("data:image/svg+xml;utf-8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' enable-background='new 0 0 30 30' xml:space='preserve'><path fill='%239e9e9e' d='M31.858 8.928l-3.54-4.034-12.442 14.142-12.194-13.9-3.54 4.036 15.734 17.934 15.982-18.178z'/></svg>");
    background-color: #fff;
    background-position: calc(100% - 12px) center;
    background-size: 10px auto;
    background-repeat: no-repeat;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #3d3d3d;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    height: 40px;
    padding: 0 33px 0 10px !important;
    position: relative;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
}
.form-group textarea {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px #fafafa;
    box-sizing: border-box;
    color: #3d3d3d;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 12px;
    position: relative;
    width: 100%;
    height: auto;
    line-height: 1.4;
    vertical-align: middle;
    -webkit-appearance: none;
    resize: vertical;
}
button {
      display: block;
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 4px;
      background-color: #007bff;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
    }
    button:hover {
      background-color: #0056b3;
    }