
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root{
  --trade-light-green: #2eca6a;
  --trade-dull-green: #90c944;
  --trade-main-brown: #744c29; /*rgba(116,75,41,255)*/
  --trade-light-brown: #946234;
  --trade-lighter-brown: #9b7e65; /*rgba(155,126,101,255)*/
  --trade-primary-color: #088cfc;
  scroll-behavior: smooth;
}

.content-pane-loader {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}
.content-pane-loader.is-active {
  display: flex;
}
.content-pane-loader__spinner {
  display: block;
}

.global-page-loader {
  display: flex;
}

.global-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none;
}

.global-page-loader__spinner {
  display: block;
}

@keyframes global-page-loader-spin {
  to { transform: rotate(360deg); }
}
.loader-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  animation: trade-logo-spin 1s linear infinite;
}
@keyframes trade-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
body {
  font-family: "Open Sans", sans-serif;
  background: #ffffff;
  color: #444444;
}

.form-label,
.col-form-label,
label.form-label,
label.col-form-label,
.form-check-label {
  font-weight: 700 !important;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

a {
  color: var(--trade-primary-color);
  text-decoration: none;
}
.text-primary{
  color: var(--trade-primary-color)!important;
}
.trade-text-success{
  color: var(--trade-light-green)!important;
}
.trade-text-main-brown{
  color: var(--trade-main-brown)! important;
}
a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}

.main {
  min-height: calc(100vh - 60px);
  background: #fff;
}

.main .pagetitle {
  margin-bottom: 5px;
  padding-bottom: 0;
}

.main .pagetitle nav {
  margin-top: 0;
}

.main .pagetitle h1 {
  color: var(--trade-primary-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0;
}

.main .breadcrumb {
  color: #899bbd;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.main .breadcrumb a {
  color: #899bbd;
}

.main .breadcrumb .active {
  color: #51678f;
}

.main .section {
  width: 100%;
}

.main .card {
  background: #fff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(1, 41, 112, 0.1);
}

.main .card-header,
.main .card-footer {
  background: #fff;
  border-color: #ebeef4;
}

#main.reports-page {
  height: auto;
  min-height: calc(100vh - 60px);
  overflow: visible;
}

.report-table-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.report-table-container .datatable-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.report-table-container .datatable-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.report-data-table {
  min-width: 0 !important;
  table-layout: fixed;
  width: 100% !important;
}

.report-data-table th,
.report-data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

#settings-viewport .settings-panel-header,
#settings-viewport .settings-panel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0.75rem;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#settings-viewport .settings-panel-header .settings-header-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #1f5d4e !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#settings-viewport .settings-panel-header .settings-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

#settings-viewport .settings-panel-header .settings-header-actions .btn,
#settings-viewport .settings-panel-header .settings-header-actions a,
#settings-viewport .settings-panel-header .settings-header-actions button {
  margin-left: 0 !important;
}

#main .kobo-nav-actions .btn {
  min-height: 31px !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.875rem !important;
}

#main #kobo-summary-panel > div > a > .card {
  height: 56px !important;
  min-height: 56px !important;
  margin-bottom: 0 !important;
}

#main #kobo-summary-panel {
  padding: 0.55rem !important;
  border: 1px solid rgba(116, 76, 41, 0.14) !important;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 0 18px rgba(116, 76, 41, 0.06);
}

#main #kobo-summary-panel .card-body {
  height: 100% !important;
  min-height: 34px !important;
  padding: 0.02rem 0.25rem !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  box-sizing: border-box;
}

#main #kobo-summary-panel .card-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

#main #kobo-summary-panel .card-body > .flex-grow-1 {
  flex: 0 1 auto !important;
  flex-grow: 0 !important;
  text-align: left !important;
}

#main #kobo-summary-panel .card-title-text {
  text-align: left !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
}

#main #kobo-summary-panel .badge {
  font-size: 0.75rem !important;
  line-height: 1 !important;
  padding: 0.25rem 0.5rem !important;
}

#main #kobo-summary-panel .card-body > div:last-child .badge {
  margin-top: 0.36rem !important;
}

#main #kobo-summary-panel .d-flex.gap-1 {
  gap: 0.25rem !important;
  margin-top: 0.36rem !important;
}

#main #kobo-data-table,
#main #kobo-submissions-table {
  margin-bottom: 0 !important;
}

#main .kobo-data-actions .btn {
  min-width: 0 !important;
  width: 58px;
  padding: 0.18rem 0.3rem !important;
  font-size: 0.72rem !important;
  line-height: 1.1;
}

#main #kobo-data-table thead th,
#main #kobo-submissions-table thead th {
  visibility: visible !important;
  opacity: 1 !important;
}


.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    justify-content: space-between;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  background-color: #90c944;
  width: 4px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .timeline::before {
    width: 100%;
    height: 4px;
    top: 30%;
    left: 0;
    transform: translateY(-50%);
  }
}

.timeline-step {
  position: relative;
  z-index: 1;
  margin: 1rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .timeline-step {
    margin: 0 1rem;
  }
}

.timeline-icon {
  font-size: 20px;
  background-color: #fff;
  border: 4px solid #90c944;
  border-radius: 50%;
  padding: 0.5rem;
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon:hover {
  transform: scale(1.5);
}

.timeline-label {
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .timeline-label {
    margin-top: 1rem;
  }
}

.dash-square-icon-box,
.number-box {
  transition: transform 0.3s;
}

.dash-square-icon-box:hover,
.number-box:hover {
  transform: scale(1.05);
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: /*#012970*/ var(--trade-primary-color);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: var(--trade-primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--trade-primary-color);
  font-family: "Open Sans", sans-serif;
}

.card-title span {
  color: var(--trade-primary-color);
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
  background-color: rgba(154, 205, 50, 0.1);
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
}

.android-app-prompt[hidden] {
  display: none !important;
}

.android-app-prompt {
  position: fixed;
  z-index: 1080;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin-left: auto;
  padding: 14px 16px;
  border: 1px solid #dce9df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 50, 30, .2);
}

.android-app-prompt__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #e9f7ed;
  color: #16833b;
  font-size: 21px;
}

.android-app-prompt__copy {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  color: #183323;
  font-size: .86rem;
  line-height: 1.35;
}

.android-app-prompt__copy span {
  color: #64746a;
  font-size: .76rem;
}

.android-app-prompt__download {
  flex: 0 0 auto;
}

.android-app-prompt__later {
  flex: 0 0 auto;
  padding: 6px 0 6px 4px;
  border: 0;
  background: transparent;
  color: #52635a;
  font-size: .8rem;
}

@media (max-width: 480px) {
  .android-app-prompt {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .android-app-prompt__copy {
    flex-basis: calc(100% - 56px);
  }

  .android-app-prompt__download {
    margin-left: 52px;
  }
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--trade-primary-color);
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--trade-primary-color);
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: var(--trade-primary-color);
  border-bottom: 2px solid var(--trade-primary-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header .logo,
.header .logo:hover,
.header .logo:focus,
.header .logo:visited,
.header .logo span {
  text-decoration: none !important;
}

.logo {
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  margin-right: 0.5rem;
  padding-left: 0.25rem;
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
  padding-left: 0.15rem;
  flex-shrink: 0;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--trade-dull-green);
  font-family: "Open Sans", sans-serif;
  white-space: nowrap;
  line-height: 1;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
  padding-left: 0;
}

.header > .d-flex.align-items-center.justify-content-between.flex-grow-1.gap-3 {
  width: 100%;
}

.navbar {
  margin-left: auto;
}

.header .navbar {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--trade-main-brown);
  
}

.header .toggle-sidebar-btn:hover{
  color: var(--trade-dull-green);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: white;
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: #012970;
  border: 1px solid rgba(1, 41, 112, 0.2);
  padding: 7px 38px 7px 8px;
  border-radius: 3px;
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
  border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: #012970;
}
.error-404-lg{
  display: flex;
  justify-content: center;
  text-align: center;
}
.error-404-lg h4{
  color: red;
  font-size: 140px;
}
.logo-listing a img{
  height: 60px;
  margin: 12px;
  padding: 5px;
}

.logo-listing a img:hover{
  background-color: rgba(148, 96, 52, 0.15);
  border-radius: 5px;
}
/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .btn-outline-success {
  color: var(--trade-dull-green);
  padding-right: 1rem;
  margin-right: 0.75rem;
}

.btn:not(.btn-close):not(:has(> i:only-child)) {
  min-width: 100px;
  border-radius: 4px;
}

.header-profile-details {
  line-height: 1.1;
  padding-right: 0.75rem;
  position: relative;
}

.header-profile-details::after {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-profile-email {
  color: var(--trade-dull-green);
  font-size: 11px !important;
  font-style: italic;
  font-weight: 400 !important;
  margin-top: 2px;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.top-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
  margin-left: auto;
  margin-right: 0;
  padding: 0.2rem 1rem;
  border-radius: 0.75rem;
  background: transparent;
}

.top-main-nav .nav-item {
  display: flex;
  align-items: center;
}

#header .top-main-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  min-width: 108px;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--trade-main-brown);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#header .top-main-nav__link,
#header .top-main-nav__link:hover,
#header .top-main-nav__link:focus,
#header .top-main-nav__link:visited {
  text-decoration: none;
}

#header .top-main-nav__link span {
  white-space: nowrap;
}

#header .top-main-nav__link:hover {
  color: var(--trade-main-brown);
  background: rgba(15, 23, 42, 0.04);
}

#header .top-main-nav__link.active {
  background: rgba(121, 157, 67, 0.12);
  color: var(--trade-dull-green);
  border-color: rgba(121, 157, 67, 0.2);
  box-shadow: inset 0 0 0 1px rgba(121, 157, 67, 0.08);
}

#header .top-main-nav__link i {
  font-size: 1rem;
  line-height: 1;
  padding-left: 0.2rem;
}

.header > .d-flex.align-items-center.justify-content-between.flex-grow-1.gap-3 {
  gap: 0.5rem !important;
}

.sidebar {
  display: none !important;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 0;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #1451c1;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff!important;
  transition: 0.3;
  /*background: #f6f9ff;*/
  background: var(--trade-main-brown)!important; /*dackest*/
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--trade-dull-green);
  font-weight: bold;
}

.sidebar-nav .nav-link .collapsed {
  color: var(--trade-light-brown);
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: var(--trade-dull-green);
}

.sidebar-nav .nav-link:hover {
  color: var(--trade-dull-green) !important;
  background-color: var(--trade-light-brown)!important;
}

.sidebar-nav .nav-link:hover i {
  color: #fff !important;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff; /*unordered list ...*/
  transition: 0.3;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--trade-dull-green);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--trade-dull-green);
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: var(--trade-primary-color);
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: var(--trade-primary-color);
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: var(--trade-primary-color);
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: var(--trade-primary-color);
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: var(--trade-primary-color);
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--trade-primary-color);
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: var(--trade-primary-color);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.td-line{
  border-bottom: solid 1px #000;
}
.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: var(--trade-primary-color);
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

@media print{
  body{
    background-color: #fff !important;
    padding: 0;
    margin: 0;
  }
  main{
    background-color: #fff !important;
    padding: 0!important;
    margin: 0!important;
  }
}
.login-form{
  display: flex;
}
.thead{
  background-color: var(--trade-dull-green)!important;
  color: #fff!important;
}

#formatted-opt *{
  background-color: green!important;
}

.nav-tabs .nav-item .active{
  background-color: rgba(154, 205, 50, 0)!important;
}

.dash-card{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.card-header .icon{
  color: #2eca6a;
  display: none;
}

.action-form-container{
  display: flex; 
  align-items: center; 
  flex-direction: row; 
  justify-content: space-between;
  max-width: 50px!important;
}

/* Staff List Table Column Widths */
.datatable tbody tr td img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  object-fit: cover;
  margin: 0 auto;
}

/* Shared responsive behavior: keep every table field available on narrow screens. */
html,
body {
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: block;
  width: 8px;
  height: 8px;
}

#main,
#content-shell,
.settings-content-col,
.hr-admin-content-col,
#settings-viewport {
  min-width: 0;
  max-width: 100%;
}

.table-responsive,
.datatable-wrapper,
.datatable-container,
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody {
  max-width: 100%;
}

.table-responsive,
.datatable-container,
.dataTables_wrapper .dataTables_scrollBody {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar,
.datatable-container::-webkit-scrollbar,
.dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar {
  height: 8px;
}

.table-responsive > table,
.datatable-container > table {
  margin-bottom: 0;
}

.dataTables_wrapper,
.datatable-wrapper {
  width: 100%;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .header {
    height: auto;
    min-height: 60px;
  }

  .trade-topbar {
    min-height: 60px;
    flex-wrap: wrap;
  }

  .trade-topbar .navbar-brand {
    width: auto;
    margin-right: auto !important;
  }

  .trade-topbar .navbar-brand span {
    font-size: clamp(1rem, 4vw, 1.35rem);
    white-space: normal;
  }

  .trade-topbar .navbar-collapse {
    max-height: calc(100dvh - 68px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.35rem 0 0.75rem;
  }

  .trade-topbar .main-menu,
  .trade-topbar .account-tools {
    align-items: stretch !important;
    margin-right: 0;
    gap: 0.15rem !important;
  }

  .trade-topbar .nav-link,
  .trade-topbar .dropdown-item,
  .trade-current-location {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .trade-topbar .dropdown-menu {
    max-width: calc(100vw - 1.5rem);
    white-space: normal;
  }

  .trade-current-location {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  #main {
    padding: 16px 14px;
  }

  .main .pagetitle h1 {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  .settings-sidebar-col,
  .hr-admin-sidebar-col {
    width: 100%;
    padding: 0;
    border: 0;
  }

  #settings-left-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.5rem;
    margin-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #settings-left-nav > .list-group-item {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.55rem 0.8rem;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e6ebe7;
  }

  .settings-content-col,
  .hr-admin-content-col {
    width: 100%;
    padding: 0;
  }

  #settings-viewport {
    min-height: 0 !important;
    padding: 0.85rem !important;
  }

  #settings-viewport .settings-panel-header,
  #settings-viewport .hr-admin-summary-grid,
  .kobo-nav-actions,
  .kobo-page-actions {
    flex-wrap: wrap;
  }

  #settings-viewport .settings-panel-header .settings-header-title,
  #settings-viewport .hr-page-content .settings-header-title {
    font-size: 1.45rem !important;
  }

  #settings-viewport .settings-header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  #settings-viewport .hr-timesheets-table {
    min-width: 650px;
  }

  .datatable-top,
  .datatable-bottom {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .datatable-top .datatable-search,
  .datatable-top .datatable-dropdown {
    max-width: 100%;
  }

  .datatable-search input,
  .datatable-selector,
  .dataTables_wrapper input,
  .dataTables_wrapper select {
    max-width: 100%;
  }

  .kobo-nav-actions .btn {
    min-height: 40px;
  }
}

@media (max-width: 575.98px) {
  #main {
    padding: 14px 10px;
  }

  .trade-topbar {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .trade-topbar .navbar-brand img {
    max-height: 25px;
  }

  .trade-topbar .navbar-toggler {
    padding: 0.35rem 0.5rem;
  }

  .main .breadcrumb {
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  .main .card-body {
    padding: 0.85rem;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 40px;
  }

  .kobo-dashboard-cards > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .kobo-status-strip {
    align-items: stretch !important;
    flex-direction: column;
    gap: 0.6rem !important;
  }

  .kobo-status-strip > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kobo-status-strip .status-badge {
    text-align: center;
    white-space: normal;
  }

  .kobo-date-range {
    width: 100%;
    justify-content: stretch;
  }

  .kobo-date-range > div {
    flex: 1 1 0;
    align-items: stretch;
    flex-direction: column;
  }

  .kobo-date-range .form-control {
    width: 100%;
    min-width: 0;
  }

  .submission-log-filters > .col-auto {
    flex: 1 1 auto;
  }

  .submission-log-filters > .col-auto .btn,
  .submission-log-filters > .col-auto a.btn {
    width: 100%;
    min-height: 40px;
  }

  .kobo-dashboard-cards .card {
    min-height: 64px !important;
    height: auto !important;
  }

  .kobo-dashboard-cards .card-body {
    min-height: 64px;
    height: auto !important;
    padding: 0.45rem !important;
  }

  .kobo-dashboard-cards .card-icon {
    margin-left: 0.1rem;
    margin-right: 0.2rem;
  }

  .kobo-dashboard-cards .card-title-text {
    white-space: normal;
    line-height: 1.2;
  }

  .kobo-dashboard-cards .card-body > div:last-child .badge {
    white-space: normal;
    width: auto;
    max-width: 100%;
    margin-left: 0 !important;
    text-align: left;
  }

  .kobo-data-page #kobo-data-table {
    min-width: 1300px;
  }

  .kobo-detail-page .record-table th {
    min-width: 7rem;
    white-space: normal;
  }
}

  /* Shared typography, touch controls, and record-list baseline (Tasks A–C). */
  :root {
    --trade-font-sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --trade-text: #24332b;
    --trade-muted: #64736b;
    --trade-border: #dce5df;
  }

  html { font-size: 16px; }
  body,
  body h1,
  body h2,
  body h3,
  body h4,
  body h5,
  body h6,
  body button,
  body input,
  body select,
  body textarea {
    font-family: var(--trade-font-sans);
  }

  body { color: var(--trade-text); font-size: 1rem; line-height: 1.5; }

  body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .form-control, .form-select) {
    font-size: 1rem !important;
  }

  body :is(.form-control, .form-select) {
    min-height: 2.75rem;
    border-color: var(--trade-border);
  }

  body :is(.form-control:focus, .form-select:focus) {
    border-color: #4b9b6b;
    box-shadow: 0 0 0 .2rem rgba(66, 163, 106, .16);
  }

  body :is(.form-label, .col-form-label) { color: #33463b; font-size: .9rem; font-weight: 650 !important; }
  body .form-text { color: var(--trade-muted); font-size: .8125rem; line-height: 1.45; }

  body .table {
    --bs-table-color: #26372d;
    font-size: .875rem;
  }

  body .kobo-data-page .table,
  body .kobo-detail-page table,
  body .compact-table { font-size: .875rem !important; }

  body .table > :not(caption) > * > * { padding: .65rem .75rem; vertical-align: middle; }
  body .table thead th { color: #405348; font-weight: 700; }
  body .table-responsive { border-radius: .5rem; }

  /* Small forms and fixed-height multi-selects remain touch-readable. */
  body .form-control-sm,
  body .form-select-sm { min-height: 2.75rem; padding-top: .5rem; padding-bottom: .5rem; font-size: 1rem !important; }
  body select[multiple] { min-height: 8rem; padding: .45rem; }
  body select[multiple] option { padding: .35rem .45rem; }

  /* Normalize existing record cards without enlarging decorative micro-badges. */
  body .portal-record-item__subtitle,
  body .portal-record-item__meta span,
  body .portal-record-item__fact span,
  body .portal-record-item__fact strong,
  body .portal-record-item__side,
  body .infrastructure-update-item__tags span,
  body .infrastructure-update-item__updated,
  body .infrastructure-update-item__dates,
  body .infrastructure-update-item__beneficiaries small,
  body .infrastructure-update-item__beneficiaries strong {
    font-size: .78rem;
    line-height: 1.4;
  }

  body .portal-record-item__actions .btn,
  body .infrastructure-update-item__actions .btn,
  body .feedback-row-actions .btn {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem !important;
    align-items: center;
    justify-content: center;
  }

  body .portal-record-item__actions,
  body .infrastructure-update-item__actions,
  body .feedback-row-actions { flex-wrap: wrap; gap: .35rem; }

  @media (max-width: 767.98px) {
    body :is(.form-control, .form-select, .form-control-sm, .form-select-sm) { min-height: 2.75rem; font-size: 1rem !important; }
    body .table-responsive { margin-inline: 0; }
    body .portal-record-item { flex-wrap: wrap; }
    body .portal-record-item__actions,
    body .infrastructure-update-item__actions { min-height: 2.75rem; }
  }

  @media (max-width: 767.98px) {
    #kobo-data-table.mobile-compact { width: max-content !important; min-width: 100% !important; font-size: .875rem !important; }
    #kobo-data-table.mobile-compact th,
    #kobo-data-table.mobile-compact td { padding: .55rem .65rem !important; white-space: nowrap; }
    #kobo-data-table.mobile-compact:not(.show-all-fields) tr > :nth-child(5),
    #kobo-data-table.mobile-compact:not(.show-all-fields) tr > :nth-child(6),
    #kobo-data-table.mobile-compact:not(.show-all-fields) tr > :nth-child(n+8):nth-child(-n+25) { display: none !important; }
    #kobo-data-table.mobile-compact tr > :first-child,
    #kobo-data-table.mobile-compact tr > :nth-child(2),
    #kobo-data-table.mobile-compact tr > :nth-last-child(-n+2) {
      position: static !important;
      left: auto !important;
      right: auto !important;
      z-index: auto !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: none !important;
    }
    #kobo-data-table.mobile-compact tr > :last-child { min-width: 6rem !important; }
    #kobo-data-table.mobile-compact .kobo-data-actions { flex-wrap: wrap; }

    #kobo-submissions-table.mobile-card-table,
    #department-kobo-submissions-table.mobile-card-table { display: block; width: 100% !important; min-width: 0 !important; border: 0; }
    #kobo-submissions-table.mobile-card-table thead,
    #department-kobo-submissions-table.mobile-card-table thead { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
    #kobo-submissions-table.mobile-card-table tbody,
    #department-kobo-submissions-table.mobile-card-table tbody { display: grid; gap: .75rem; width: 100%; }
    #kobo-submissions-table.mobile-card-table tbody tr,
    #department-kobo-submissions-table.mobile-card-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; padding: .75rem; border: 1px solid #e1e9e4; border-radius: .75rem; background: #fff; box-shadow: 0 3px 12px rgba(29,61,45,.05); }
    #kobo-submissions-table.mobile-card-table tbody td,
    #department-kobo-submissions-table.mobile-card-table tbody td { display: flex; min-width: 0; flex-direction: column; gap: .15rem; padding: 0 !important; border: 0; background: transparent !important; white-space: normal !important; overflow-wrap: anywhere; }
    #kobo-submissions-table.mobile-card-table tbody td::before,
    #department-kobo-submissions-table.mobile-card-table tbody td::before { color: #64736b; content: attr(data-mobile-label); font-size: .75rem; font-weight: 700; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(1)::before { content: "Kobo ID"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(2)::before { content: "Form"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(3)::before { content: "District"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(4)::before { content: "EPA"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(5)::before { content: "Received"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(6)::before { content: "Status"; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(7) { grid-column: 1 / -1; align-items: flex-end; }
    #kobo-submissions-table.mobile-card-table tbody td:nth-child(7)::before { content: ""; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(1)::before { content: "Submitted"; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(2)::before { content: "Submission ID"; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(3)::before { content: "Form"; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(4)::before { content: "Status"; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(5) { grid-column: 1 / -1; }
    #department-kobo-submissions-table.mobile-card-table tbody td:nth-child(5)::before { content: "Error details"; }
    #kobo-submissions-table.mobile-card-table tbody td[colspan],
    #department-kobo-submissions-table.mobile-card-table tbody td[colspan] { grid-column: 1 / -1; align-items: center; }
  }

  .record-actions { white-space: nowrap; text-align: right; }
  .record-actions .btn,
  .record-actions button { min-width: 2.5rem; min-height: 2.5rem; vertical-align: middle; }

  .kobo-secondary-records { margin-bottom: .75rem; border: 1px solid var(--trade-border); border-radius: .65rem; background: #fff; }
  .kobo-secondary-records > summary { padding: .85rem 1rem; color: #254b35; font-weight: 700; cursor: pointer; }
  .kobo-secondary-records[open] > summary { border-bottom: 1px solid #edf1ef; }
  .kobo-secondary-records > .card { border: 0; box-shadow: none !important; }
  .kobo-secondary-records pre { max-height: 24rem; overflow: auto; font-size: .8125rem; }

  /* Keep paired District/EPA filters aligned and readable across record indexes. */
  .agri-heading-location-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: .4rem;
  }
  .agri-heading-location-filters label { min-width: 0; flex: 1 1 0; margin: 0; }
  .agri-heading-location-filters .form-select { width: 100%; min-width: 0 !important; }

  .infrastructure-index-filter-actions,
  .settings-list-filter-actions,
  .grants-register-filter-actions {
    display: flex;
    width: max-content;
    max-width: 100%;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .2rem;
    justify-self: end;
    margin-left: auto;
  }
  .infrastructure-index-filter-actions .btn,
  .settings-list-filter-actions .btn,
  .grants-register-filter-actions .btn {
    width: auto;
    min-width: 0 !important;
    height: 26px;
    min-height: 26px !important;
    padding: .1rem .3rem;
    font-size: .6rem !important;
    line-height: 1;
    white-space: nowrap;
  }

  .infrastructure-index-filters .form-select,
  .settings-list-filter-form .form-select,
  .settings-infrastructure-index-filters .form-select,
  .grants-register-filters .form-select,
  .agri-heading-location-filters .form-select,
  .agri-training-list-filters select,
  .agri-production-search select,
  .epa-infrastructure-filters .form-select,
  .feedback-filters .form-select { appearance:none !important; background-image:none !important; padding-right:.35rem !important; }

  .portal-record-item__meta > span,
  .infrastructure-update-item__tags > span,
  .epa-infrastructure-item__tags > span,
  .agri-training-tag,
  .agri-training-status,
  .infrastructure-update-status,
  .epa-infrastructure-status,
  .training-index-table .badge,
  .portal-record-tab {
    min-height:0 !important;
    padding-top:.08rem !important;
    padding-bottom:.08rem !important;
    line-height:1.1 !important;
    font-size:.62rem !important;
  }
  .portal-record-item__meta > span,
  .infrastructure-update-item__tags > span,
  .epa-infrastructure-item__tags > span,
  .agri-training-tag,
  .agri-training-status,
  .infrastructure-update-status,
  .epa-infrastructure-status,
  .training-index-table .badge,
  .portal-record-tab {
    padding-right:.35rem !important;
    padding-left:.35rem !important;
  }

  .datatable-wrapper .datatable-selector {
    appearance:none !important;
    background-image:none !important;
    padding-right:.3rem !important;
  }

  form.row.g-2.align-items-end > .col-auto:has(> .btn[type="submit"]) {
    display: flex;
    width: max-content;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: .2rem;
    margin-left: auto;
  }
  form.row.g-2.align-items-end > .col-auto:has(> .btn[type="submit"]) .btn {
    width: auto;
    min-width: 0 !important;
    height: 26px;
    min-height: 26px !important;
    padding: .1rem .3rem;
    font-size: .6rem !important;
    line-height: 1;
    white-space: nowrap;
  }
  form.row.g-2.align-items-end > .col-auto:has(> .btn[type="submit"]) + .col-auto:has(> a.btn) .btn {
    width: auto;
    min-width: 0 !important;
    height: 26px;
    min-height: 26px !important;
    padding: .1rem .3rem;
    font-size: .6rem !important;
    line-height: 1;
    white-space: nowrap;
  }

  .grants-register-filters { display: grid !important; grid-template-columns:minmax(120px,1.3fr) repeat(3,minmax(75px,.8fr)) max-content !important; align-items:end; }
  .grants-register-filters > :is([class*="col-"]) { width:auto; max-width:none; flex:none; }
  .grants-register-filters > :first-child { grid-column:1; }
  .grants-register-filters > :nth-child(2) { grid-column:2; }
  .grants-register-filters > :nth-child(3) { grid-column:3; }
  .grants-register-filters > :nth-child(4) { grid-column:4; }
  .grants-register-filters > :nth-child(5) { grid-column:5; }

  @media (max-width: 767.98px) {
    .agri-heading-location-filters { width:100% !important; flex-wrap:nowrap !important; }
    .agri-heading-location-filters label { flex:1 1 0 !important; }
    .grants-register-filters { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .grants-register-filters > :first-child { grid-column:1 / -1; }
    .grants-register-filters > :nth-child(2) { grid-column:1; }
    .grants-register-filters > :nth-child(3) { grid-column:2; }
    .grants-register-filters > :nth-child(4) { grid-column:1; }
    .grants-register-filters > :nth-child(5) { grid-column:2; }
  }

  @media (max-width: 575.98px) {
    .infrastructure-project-index-header { align-items:flex-start !important; }
    .infrastructure-project-header-actions { gap:.25rem !important; }
    .infrastructure-project-header-actions .btn { min-height:29px !important; padding:.2rem .35rem !important; font-size:.68rem !important; }
  }

  /* End responsive overrides. */

