
.header-menu {
    display: flex;
    gap: 32px;
}

.header-menu a {
    display: inline;
    padding: 16px 0;
}

.btn-mobile {
    display: none;
}

@media(max-width:850px) {
    .header-menu {
        display: block;
        position: absolute;
        text-align: center;
        width: 100%;
        top: 60px;
        right: 0;
        background-color: #fff;
        height: 0px;
        transition: .6s;
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
    }

    nav.mobile .header-menu {
        height: 750px;
        visibility: visible;
    }

    .header-menu a {
        padding: 32px 0;
        margin: 0 20px;
        display: block;
    }

    .header-menu a:hover {
    }

    .header-menu a:hover::after {
        display: none;
    }

    .hamburguer {
        display: block;
        color: #000;
        border-top: 2px solid;
        width: 28px;
        cursor: pointer;
    }

    .hamburguer::after, .hamburguer::before {
        content: '';
        display: block;
        width: 28px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: .3s;
        position: relative;
    }

    nav.mobile .hamburguer {
        border-top-color: transparent;
    }

    nav.mobile .hamburguer::before {
        transform: rotate(135deg);
    }

    nav.mobile .hamburguer::after {
        transform: rotate(-135deg);
        top: -7px; 
    }
}

@media(max-width:750px) {
    nav.mobile .header-menu {
        height: 630px;
        visibility: visible;
    }
}

@media(max-width:480px) {
    nav.mobile .header-menu {
        height: 530px;
        visibility: visible;
    }
}

@media(max-width:340px) {
    nav.mobile .header-menu {
        height: 600px;
        visibility: visible;
    }
}

@media(max-width:295px) {
    nav.mobile .header-menu {
        height: 650px;
        visibility: visible;
    }
}

.table-theme-dark table {
    width: 100%;
    border-collapse: collapse;
    background-color: #000;
    margin: 1rem 0;
}

.table-theme-dark thead {
    background-color: #000;
    text-align: left;
}

.table-theme-dark thead th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #000;
    cursor: pointer;
    color: #abc7f7;
    position: sticky;
    top: -11px;
    background: #000;
}

/* Sort Indicators */
/*thead th[data-key]:hover::after {
    content: ' ⇵';
    color: #000000;
}*/

.table-theme-dark thead th.sorted-asc::after {
    content: ' ↑';
}

.table-theme-dark thead th.sorted-desc::after {
    content: ' ↓';
}

.table-theme-dark tbody tr {
    border-bottom: 1px solid #313131;
}

.table-theme-dark tbody tr:nth-child(even) {
    background-color: #000;
}

.table-theme-dark tbody tr:hover {
    background-color: #000;
}

.table-theme-dark tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #fff;
}

.table-theme-dark .selected {
    background: #05455c !important;
}

/* Table Container */
.table-theme-default table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin: 1rem 0;
}

/* Table Header */
.table-theme-default thead {
    background-color: #ffffff;
    text-align: left;
}

.table-theme-default thead th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    color: #0a1c3c;
    background: #fff;
}

/* Sort Indicators */
/*thead th[data-key]:hover::after {
    content: ' ⇵';
    color: #000000;
}*/

.table-theme-default thead th.sorted-asc::after {
    content: ' ↑';
}

.table-theme-default thead th.sorted-desc::after {
    content: ' ↓';
}

/* Table Body */
.table-theme-default tbody tr {
    border-bottom: 1px solid #e5e5e5;
}

/*
.table-theme-default tbody tr:nth-child(even):not(.expanded-row) {
    background-color: #f9f9f9;
}
*/
.table-theme-default tbody tr:hover {
    background-color: #e1f4ff;
}

.table-theme-default tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Arrow rotation for expand/collapse */
.arrow, .arrow_inline {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center; /* Center the arrow */
    background-size: contain; /* Ensure proper scaling */
    display: inline-block;
    transition: transform 0.2s ease-in-out; /* Faster arrow rotation */
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg"><path d="M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"/></svg>');
}

.arrow.expanded {
    transform: rotate(-180deg); /* Rotate up when expanded */
    background-position: center; /* Reassert centering for expanded state */
}

/* Smooth expansion and contraction of rows */

.expansion-row {
    background-color: #f9f9f9; /* Optional: style the expanded row */
}

/* Smooth expansion and contraction of rows */
.expansion-content {
    overflow: hidden;
    height: 0;
    transition: height 0.15s cubic-bezier(0.4, 0.0, 0.6, 1); /* Snappier and smoother */
}

.selected {
    background: #eff8ff !important;
}

/* Pagination Controls */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #bbc2c7;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #1e2127;
    background-color: #fff;
}

.pagination button:hover {
    background-color: #bbc2c7;
    color: #fff;
}

.pagination button:disabled {
    cursor: not-allowed;
    background-color: #0a1c3c;
    color: #ffffff;
    border-color: #0a1c3c;
}

@media (max-width: 768px) {
    .pagination-btn {
        display: none;
    }
}

.pagination select {
    /* styling */
    background-color: white;
    border: thin solid #bbc2c7;
    border-radius: 4px;
    display: inline-block;
    font: inherit;
    line-height: 1.5em;
    padding: 0.3em 3.5em 0.3em 1em;
  
    /* reset */
    margin: 0;      
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.pagination select {
    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(1em + 0px), calc(100% - 15px) calc(1em + 0px), calc(100% - 2.5em) 0.3em;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
  }
  
  .pagination select:focus {
    background-image:
      linear-gradient(45deg, gray 50%, transparent 50%),
      linear-gradient(135deg, transparent 50%, gray 50%),
      linear-gradient(to right, #ccc, #ccc);
    background-position:
      calc(100% - 15px) 1em,
      calc(100% - 20px) 1em,
      calc(100% - 2.5em) 0.3em;
    background-size:
      5px 5px,
      5px 5px,
      1px 1.5em;
    background-repeat: no-repeat;
    border-color: #bbc2c7;
    outline: 0;
  }
  
  
.pagination select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    background-color: #0a1c3c;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: #0e48bf;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.component-area {
    margin: 20px;
    padding: 10px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    border-radius: 7px;
}

.component-area-muted {
  margin: 20px;
  padding: 10px;
}

a, a:visited {
    color: #0a1c3c;
    line-height: inherit;
    border: none;
    outline: none;
    -webkit-text-decoration: underline #eee;
    text-decoration: underline #eee;
    transition: -webkit-text-decoration-color .15s, -webkit-text-decoration-color .15s, text-decoration-color .15s;
}

a:hover {
    color: #0a1c3c;
    line-height: inherit;
    border: none;
    outline: none;
    -webkit-text-decoration: underline #0a1c3c;
    text-decoration: underline #0a1c3c;
    transition: -webkit-text-decoration-color .15s, -webkit-text-decoration-color .15s, text-decoration-color .15s;
}

  :root {
    --checkbox-border-color: #8b8c89;
    --checkbox-checked-color: #0a1c3c;
    --checkbox-hover-color: #a3cef1;
    --checkbox-disabled-bg-color: #d9d9d9;
  }
  
  input[type="checkbox"] {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 6px;
    padding: 0;
    border: 2px solid var(--checkbox-border-color);
    appearance: none;
    background-color: transparent;
    outline: none;
    transition: outline 0.1s;
  }
  
  input[type="checkbox"]:checked {
    background-size: cover;
    padding: 2px;
  }
  
  input[type="checkbox"]:indeterminate {
    background-size: cover;
    padding: 2px;
  }

  input[type="checkbox"]:not(:disabled):checked {
    border-color: var(--checkbox-checked-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 32 32" xml:space="preserve"><path style="fill: %230a1c3c" d="M11.941,28.877l-11.941-11.942l5.695-5.696l6.246,6.246l14.364-14.364L32,8.818"/></svg>');
  }

  input[type="checkbox"]:not(:disabled):indeterminate {
    border-color: var(--checkbox-checked-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 32 32" xml:space="preserve"><rect x="4" y="14" width="24" height="8" style="fill: %230a1c3c;"/></svg>');
  }
  
  input[type="checkbox"]:disabled {
    background-color: var(--checkbox-disabled-bg-color);
  }
  
  input[type="checkbox"]:disabled:checked {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 32 32" xml:space="preserve"><path style="fill: %238b8c89" d="M11.941,28.877l-11.941-11.942l5.695-5.696l6.246,6.246l14.364-14.364L32,8.818"/></svg>');
  }
  
  @media (hover: hover) {
    input[type="checkbox"]:not(:disabled):hover {
      background-color: var(--checkbox-hover-color);
      outline: 6px solid var(--checkbox-hover-color);
      transform: scale(1.05);
    }
  }
  
  input[type="checkbox"]:focus-visible {
    outline: 6px solid var(--checkbox-hover-color);
    transform: scale(1.05);
  }
  
  @media (prefers-reduced-motion: reduce) {
    input[type="checkbox"] {
      transition: none;
    }
  }

  :root {
    --radio-border-color: #8b8c89;
    --radio-checked-color: #0a1c3c;
    --radio-hover-color: #a3cef1;
    --radio-disabled-bg-color: #d9d9d9;
  }
  
  input[type="radio"] {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 6px;
    padding: 0;
    border: 2px solid var(--radio-border-color);
    border-radius: 50%;
    appearance: none;
    background-color: transparent;
    outline: none;
    transition: outline 0.1s;
  }
  
  input[type="radio"]:not(:disabled):checked {
    border-color: var(--radio-checked-color);
    background-color: var(--radio-checked-color);
    background-clip: content-box;
    padding: 2px;
    background-image: radial-gradient(
      circle,
      var(--radio-checked-color) 0%,
      var(--radio-checked-color) 50%,
      transparent 60%,
      transparent 100%
    );
  }
  
  input[type="radio"]:disabled {
    background-color: var(--radio-disabled-bg-color);
  }
  
  input[type="radio"]:disabled:checked {
    background-image: radial-gradient(
      circle,
      var(--radio-border-color) 0%,
      var(--radio-border-color) 50%,
      transparent 50%,
      transparent 100%
    );
  }
  
  @media (hover: hover) {
    input[type="radio"]:not(:disabled):hover {
      background-color: var(--radio-hover-color);
      outline: 6px solid var(--radio-hover-color);
      transform: scale(1.05);
    }
  }
  
  input[type="radio"]:focus-visible {
    background-color: var(--radio-hover-color);
    outline: 6px solid var(--radio-hover-color);
    transform: scale(1.05);
  }
  
  @media (prefers-reduced-motion: reduce) {
    input[type="radio"] {
      transition: none;
    }
  
    input[type="radio"]:focus-visible {
      transform: scale(1);
    }
  }
  
  @media (prefers-reduced-motion: reduce) and (hover: hover) {
    input[type="radio"]:not(:disabled):hover {
      transform: scale(1);
    }
  }

  /*dropdown css begin */

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

  .dropdown-button {
    color: #1e2127;
    background-color: #fff;
    border: 1px solid #bbc2c7;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;              
    align-items: center;       
    justify-content: space-between; 
    gap: 8px;         
  }

  .dropdown-button:hover {
    background-color: #f5f7f9;
  }

  .dropdown-menu {
    display: block;
    transform: translateY(0px);
    opacity: 0;
    max-height: calc(100vh - 200px);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
    position: absolute;
    background-color: white;
    border-radius: 0 0 .5rem .5rem;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top;
  }

  .right-dropdown {
      float: right;
  }

  .right-menu {
      right: 0;
  }

  .dropdown-menu a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 14px;
  }

  .dropdown-menu a:hover {
    background-color: #f1f1f1;
    color: #0077cc;
  }

  .dropdown.active .dropdown-menu {
    opacity: 1;
    transform: translateY(5px);
    overflow: visible;
  }

  .dropdown-ingress {
    text-align: left;
    background: #f5f7f9;
    border-radius: 4px 4px 0 0;
    padding: 12px 24px;
  }

  .dropdown-wrapper {
  }

  .dropdown-menu .dropdown-wrapper {
    margin: 0;
    padding: 0;
  }

  .dropdown .arrow {
    display: inline-block;  
    transition: transform 0.3s ease; 
    width: 16px;  
    height: 16px;
  }

  .dropdown.active .arrow {
    transform: rotate(180deg);
  }
  
  /*dropdown end */

/* Ensure dropdowns are correctly displayed */
.custom-select {
  position: relative;
  display: inline-block;
  width: 200px;
  font-family: Arial, sans-serif;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  position: relative;
  z-index: 2; /* Keep trigger above the options menu */
}

.custom-select-trigger:hover {
  border-color: #007bff;
}

.custom-options {
  top: calc(100% + 5px); /* Dropdown below the trigger */
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px; /* Optional: Limit height */
  overflow-y: auto; /* Allow scrolling for large menus */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1; /* Ensure the menu is below the trigger */
  height: 0;
  position: absolute;
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  height: auto;
}

.custom-option {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

.custom-select-trigger, .custom-options {
  z-index: 9999;
}

.custom-select .arrow_inline {
  display: inline-block;  
  transition: transform 0.3s ease; 
  width: 16px;  
  height: 16px;
}

.custom-select.open .arrow_inline {
  transform: rotate(180deg);
  background-position: center; 
}


.custom-select {
  position: relative;
  width: 200px;
}

.custom-select-trigger {
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  user-select: none;
}

.custom-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.custom-select.open .custom-options {
  display: block;
}

.custom-option {
  padding: 10px;
  cursor: pointer;
}

.custom-option:hover {
  background: #f0f0f0;
}

.datepicker-input {
  padding: 8px;
  width: 150px;
}
