// All Css Here
@use "./scss/style";
@use "./scss/default/variables";
@use "node_modules/react-modal-video/scss/modal-video";
@import "bootstrap/dist/css/bootstrap.min.css";
@import "./css/plugins.css";
@import "slick-carousel/slick/slick.css";
@import "slick-carousel/slick/slick-theme.css"; 
//@import "./custom.scss";

@mixin responsive-grid($min-width) { display: grid; grid-template-columns: 32% 32% 32%; gap: 5rem; padding: 0 10rem; }
@mixin text-style($font-size, $color: $secondary-color, $margin-bottom: 0) { font-size: $font-size; color: $color; margin-bottom: $margin-bottom; }

:root { --header-height: 80px; }

body { background-color: variables.$body-background; background-position: bottom right; background-size: 500px; background-repeat: no-repeat; }
h2, h3, h4, h5, h6, h1 { font-family: "Kanit", Sans-serif; }
.h2-5 { font-size: 35px; }
p, a { font-family: "Lato", Sans-serif; }
a:hover { text-decoration: underline; }
.text-base { font-size: 1rem; }
.card { border-radius: 1rem; border: none; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; 
  .card-header { background-color: transparent; }
  .card-content { padding: 1rem; }
}
.login-section { background-image: url('./images/login-background.png'); background-size: cover;
  .card { background-color: variables.$withe-50; }
}
.preloader .animation-preloader svg circle { stroke: variables.$primary-color; }
.form-control:focus { border-color: variables.$primary-color !important; box-shadow: 0 0 0 .2rem variables.$primary-color-25; }
.flip-card { perspective: 1000px; max-width: 480px; width: 100%; }
.flip-card__inner {
  position: relative;
  width: 100%;
  min-height: 460px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2,.65,.2,1);
}
.flip-card__inner.is-flipped { transform: rotateY(180deg); }
.flip-card__face {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: variables.$withe-60;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px variables.$black-30;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.flip-card__face * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-card__face--back { transform: rotateY(180deg) translateZ(0.01px); }
.flip-card__inner.is-flipped .flip-card__face--back { z-index: 2; }
.flip-card__inner.is-flipped .flip-card__face { pointer-events: none; }
.flip-card__inner.is-flipped .flip-card__face--back { pointer-events: auto; }
.header-section { position: fixed; top: 0px; left: 0px; right: 0px; width: 100%; height: var(--header-height); min-height: var(--header-height); background-color: variables.$withe-60; border-bottom: 0px; transition: background-color 0.3s; z-index: 1000; }
.header-section > .container-fluid,
.header-section > .container-fluid > .d-flex { height: 100%; }
.header-section.is-scrolled { background-color: rgba(255,255,255, 1);}
.header-section.in-path { background-color: transparent !important; }
.header-section.is-scrolled.in-path { border-color: transparent !important; }
.mainmenunav ul.mainmenu > li > a { color: variables.$primary-color; font-weight: bold; font-size: 15px; }
h2, .h2 { font-size: 45px; }
.text-primary-color { color: variables.$primary-color; }
.footer-copy-area { position: fixed; bottom: 0px !important;; text-align: center; width: 100%; font-size: 12px; background-color: variables.$theme-color; padding-top: 10px; padding-bottom: 10px; }
.wrapper-menu-content .header-wrapper { padding: 0px !important; }
.header-wrapper { padding: 0px 3em!important; }
.header-wrapper.in-path { padding: 25px 3em!important; }
.breadcrumb-area.rn-bg-color.ptb--120 { padding: 10px 0; }
.breadcrumb-area { box-shadow: 0 7px 9px 3px #f5f6f6; }
.warning-container { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 75vh; padding: 20px; }
.warning-box { display: flex; align-items: flex-start; background-color: #fff8e1; border: 1px solid #ffecb3; border-radius: 4px; padding: 1rem 1.5rem; max-width: 600px; }
.warning-icon { font-size: 2rem; margin-right: 1rem; color: variables.$warning-dark; }
.warning-content { display: flex; flex-direction: column; align-items: center; }
.warning-title { margin: 0; font-size: 1.25rem; font-weight: 600; color: variables.$warning-dark; }
.warning-description { margin: 0.5rem 0 0; font-size: 1rem; color: variables.$warning-dark; text-align: center; }
.gallery-container { min-height: 800px; }

/* Manage indicators values - intermediary menu */
.indicator-menu {
  background-color: #f1f3f8;
  padding: 10px 12px;
}

.indicator-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.indicator-menu__button {
  background-color: #ffffff;
  color: #1f7a47;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  padding: 14px 18px 14px 22px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;

  &:hover {
    background-color: #1f7a47;
    color: #ffffff;
  }
}

.indicator-menu__caret {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  line-height: 1;
}
.indicator-menu__caret > svg { width: 1em; height: 1em; stroke-width: 2.25; }

.indicator-menu__submenu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 50px;
}

.indicator-menu__submenu-button {
  background-color: #ffffff;
  color: #1f7a47;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  padding: 12px 16px 12px 24px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;

  &:hover {
    background-color: #1f7a47;
    color: #ffffff;
  }
}
.success-message { text-align: center; margin-top: 0px; height: fit-content !important; color: variables.$black; }

/* Carbon Footprint Wizard — pixel-perfect from client draft */
.cfw { background: transparent; display: flex; flex-direction: column; min-height: 60vh; }
.cfw .content { flex: 1; overflow-y: auto; padding: 16px 0 40px; }

/* Timeline */
.cfw .timeline { display: flex; align-items: flex-start; margin-bottom: 24px; }
.cfw .step-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; }
.cfw .step-circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 2px solid #ddd; background: #fff; color: #bbb; cursor: pointer; flex-shrink: 0; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .step-circle.active { background: #1e6b3c; border-color: #1e6b3c; color: #fff; }
.cfw .step-circle.done { background: #c8e6d0; border-color: #1e6b3c; color: #1e6b3c; }
.cfw .step-label { font-size: 10px; color: #aaa; text-align: center; line-height: 1.3; max-width: 72px; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .step-label.active { color: #1e6b3c; font-weight: 600; }
.cfw .step-label.done { color: #1e6b3c; }
.cfw .step-line { flex: 1; height: 2px; background: #ddd; margin-top: 17px; flex-shrink: 1; }
.cfw .step-line.done { background: #1e6b3c; }

/* Form cards */
.cfw .form-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 35px 20px 20px 24px; margin-bottom: 14px; }
.cfw .section-title { font-size: 11px; font-weight: 700; color: #1e6b3c; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; margin-bottom: 16px; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .form-grid { display: grid; gap: 14px 20px; }
.cfw .g2 { grid-template-columns: 1fr 1fr; }
.cfw .g3 { grid-template-columns: 1fr 1fr 1fr; }
.cfw .g1 { grid-template-columns: 1fr; }
.cfw .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cfw .field label { font-size: 11px; font-weight: 600; color: #555; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .req { color: #e53935; }
.cfw .opt { color: #aaa; font-weight: 400; font-size: 10px; }
.cfw .field input,
.cfw .field select,
.cfw .field textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; color: #333; background: #fff; font-family: inherit; }
.cfw .field input[readonly] { background: #f5f5f5; color: #888; }
.cfw .field input:focus,
.cfw .field select:focus { outline: none; border-color: #1e6b3c; }
.cfw .hint { font-size: 10px; color: #aaa; font-style: italic; }
.cfw .info-box { background: #f0f9f4; border-left: 3px solid #1e6b3c; padding: 10px 14px; border-radius: 4px; font-size: 12px; color: #555; margin-bottom: 16px; line-height: 1.6; font-family: 'Segoe UI', Arial, sans-serif; }

/* Upload zone */
.cfw .upload-zone { border: 2px dashed #ccc; border-radius: 6px; padding: 24px; text-align: center; background: #fafafa; cursor: pointer; margin-bottom: 8px; outline: none; transition: border-color .15s ease, background-color .15s ease; }
.cfw .upload-zone:hover,
.cfw .upload-zone:focus-visible,
.cfw .upload-zone.upload-zone--dragging { border-color: #1e6b3c; background: #f0f9f4; }
.cfw .upload-zone p { font-size: 13px; color: #888; margin-top: 6px; }
.cfw .upload-zone .icon { font-size: 28px; }
.cfw .upload-preview { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cfw .upload-preview__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.cfw .upload-preview__thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; border: 1px solid #e8e8e8; }
.cfw .upload-preview__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #f0f9f4; color: #1e6b3c; border-radius: 4px; flex-shrink: 0; }
.cfw .upload-preview__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cfw .upload-preview__name { font-size: 13px; color: #333; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfw .upload-preview__size { font-size: 11px; color: #888; }
.cfw .upload-preview__remove { background: none; border: none; color: #aaa; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 4px; flex-shrink: 0; }
.cfw .upload-preview__remove:hover { color: #e53935; background: #fff5f5; }

/* Table rows */
.cfw .row-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.cfw .row-table th { font-size: 11px; font-weight: 600; color: #555; padding: 6px 8px; border-bottom: 2px solid #e0e0e0; text-align: left; background: #f9f9f9; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .row-table td { padding: 7px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; font-size: 13px; color: #333; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .row-table td input,
.cfw .row-table td select { width: 100%; padding: 5px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; }
.cfw .btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px dashed #1e6b3c; border-radius: 4px; font-size: 12px; color: #1e6b3c; cursor: pointer; background: #fff; margin-top: 4px; }
.cfw .btn-add:hover { background: #f0f9f4; }
.cfw .btn-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; padding: 0 4px; }
.cfw .btn-del:hover { color: #e53935; }

/* Sub-mode toggle for step 3 */
.cfw .sub-toggle { display: flex; gap: 0; margin-bottom: 16px; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; width: fit-content; }
.cfw .sub-toggle button { padding: 7px 18px; font-size: 12px; border: none; cursor: pointer; background: #fff; color: #555; }
.cfw .sub-toggle button.active { background: #1e6b3c; color: #fff; }

/* Badges */
.cfw .badge-pending { font-size: 10px; background: #f5f5f5; color: #aaa; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cfw .badge-ok { font-size: 10px; background: #e6f4ec; color: #1e6b3c; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.cfw .pending-val { color: #aaa; font-style: italic; }

/* Nav buttons */
.cfw .nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e8e8e8; }
.cfw .nav-left { display: flex; gap: 8px; }
.cfw .nav-right { display: flex; gap: 8px; }
.cfw .btn-primary { padding: 9px 22px; background: #1e6b3c; color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .btn-primary:hover { background: #165730; }
.cfw .btn-secondary { padding: 9px 18px; background: #fff; color: #555; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; cursor: pointer; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .btn-outline { padding: 9px 18px; background: #fff; color: #1e6b3c; border: 1px solid #1e6b3c; border-radius: 4px; font-size: 13px; cursor: pointer; font-family: 'Segoe UI', Arial, sans-serif; }
.cfw .btn-outline:hover { background: #f0f9f4; }

@media (max-width: 767px) {
  :root { --header-height: 64px; }
  html, body { overflow-x: hidden; width: 100%; }
  .main-content-wrapper { margin-left: 0 !important; min-width: 0; max-width: 100%; overflow-x: hidden; }
  .sidebar-and-components .d-flex { max-width: 100%; }
  .container-xxl.indicator-form-section { padding: 0 12px; max-width: 100%; overflow-x: hidden; }

  /* Mobile sidebar drawer */
  .sidebar-column {
    width: 265px;
    transform: translateX(-100%);
    transition: transform .25s ease-in-out;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  }
  .sidebar-column.is-open { transform: translateX(0); }
  .sidebar-column .sidebar-component-fixed {
    padding: 16px 12px !important;
  }
  .sidebar-column .side-bar-menu { margin: 0; }
  .sidebar-column .side-bar-menu ul { margin: 0; padding: 0; }
  .sidebar-column .side-bar-menu li.mb-2 { margin-bottom: 4px !important; }
  .sidebar-column .sidebar-menu-link { padding: 10px 12px; border-radius: 8px; }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1039;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-in-out;
  }
  .sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* Back-to-top — match the dev-indicator's bottom-corner placement (~16px from edges, ~44px wide) */
  .backto-top > div {
    right: 16px !important;
    bottom: 16px !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 43px !important;
  }
  .backto-top svg { width: 16px !important; height: 16px !important; }

  /* Hamburger toggle in header */
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid #d0d7dd;
    color: #0e7c42;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
  }
  .sidebar-toggle:hover { background: #f0f9f4; border-color: #0e7d42; }
  .sidebar-toggle[aria-expanded="true"] { background: #f0f9f4; border-color: #0e7d42; color: #0e7d42; }

  /* Header — mobile */
  .header-area { max-width: 100%; overflow-x: hidden; }
  .header-area .container-fluid.p-0 { padding: 0 12px !important; }
  .header-area .container-fluid.p-0 > .d-flex { flex-wrap: nowrap; min-width: 0; align-items: center; gap: 8px; }
  .header-area .container-fluid.p-0 > .d-flex > .flex-grow-1 { min-width: 0; flex: 1 1 0%; }
  .header-logo { width: auto !important; max-width: 34%; flex-shrink: 0; margin-right: 0 !important; }
  .header-logo img { height: 44px !important; width: auto; max-width: 100%; margin: 0 !important; }
  .page-header-title-area { font-size: 15px !important; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .h2-5.h3.page-header-title-area,
  h1.page-header-title-area { font-size: 15px !important; }
  .header-logout-button,
  .login-button.rn-button-style--2 { padding: 5px 10px !important; flex-shrink: 0; margin-right: 0 !important; }
  .header-logout-button span,
  .login-button span { font-size: 12px !important; }

  .cfw { min-height: 0; max-width: 100%; overflow-x: hidden; min-width: 0; }
  .cfw .content { padding: 8px 0 24px; max-width: 100%; min-width: 0; }
  .cfw .form-card,
  .cfw .info-box,
  .cfw .upload-zone { max-width: 100%; box-sizing: border-box; min-width: 0; }
  .cfw input,
  .cfw select,
  .cfw textarea { width: 100%; max-width: 100%; box-sizing: border-box; }

  .cfw .timeline { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin-bottom: 16px; padding: 4px 4px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .cfw .timeline::-webkit-scrollbar { height: 4px; }
  .cfw .timeline::-webkit-scrollbar-thumb { background: #cfd5de; border-radius: 2px; }
  .cfw .step-wrap { min-width: 64px; gap: 4px; }
  .cfw .step-circle { width: 28px; height: 28px; font-size: 11px; border-width: 2px; }
  .cfw .step-label { font-size: 9px; max-width: 64px; line-height: 1.2; }
  .cfw .step-line { margin-top: 14px; min-width: 12px; }

  .cfw .form-card { padding: 20px 14px 16px; margin-bottom: 12px; border-radius: 8px; }
  .cfw .section-title { font-size: 11px; margin-bottom: 12px; padding-bottom: 8px; }
  .cfw .form-grid { gap: 12px 12px; }
  .cfw .g2,
  .cfw .g3 { grid-template-columns: 1fr; }

  .cfw .info-box { font-size: 12px; padding: 10px 12px; line-height: 1.5; }

  .cfw .upload-zone { padding: 18px 12px; }
  .cfw .upload-zone p { font-size: 12px; }
  .cfw .upload-preview__item { padding: 6px 10px; gap: 10px; }
  .cfw .upload-preview__thumb,
  .cfw .upload-preview__icon { width: 32px; height: 32px; }
  .cfw .upload-preview__name { font-size: 12px; }
  .cfw .upload-preview__size { font-size: 10px; }

  .cfw .row-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cfw .row-table thead,
  .cfw .row-table tbody,
  .cfw .row-table tfoot,
  .cfw .row-table tr { display: table; width: 100%; table-layout: auto; }
  .cfw .row-table th,
  .cfw .row-table td { font-size: 12px; padding: 6px; }
  .cfw .row-table td input,
  .cfw .row-table td select { font-size: 12px; padding: 5px 6px; }

  .cfw .sub-toggle { width: 100%; }
  .cfw .sub-toggle button { flex: 1; padding: 8px 10px; font-size: 12px; }

  .cfw .nav-row { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 16px; padding-top: 14px; }
  .cfw .nav-left,
  .cfw .nav-right { width: 100%; flex-wrap: wrap; }
  .cfw .nav-left > button,
  .cfw .nav-right > button { flex: 1 1 auto; min-width: 0; }
  .cfw .btn-primary,
  .cfw .btn-secondary,
  .cfw .btn-outline { width: 100%; padding: 10px 14px; font-size: 13px; }
}

.dashboard-description { margin-bottom: 20px; }
.dashboard-description p { line-height: 24px; font-size: 17px; padding: 0px 20px; }
.dashboard-title { text-align: center; font-size: 35px; margin-bottom: 0px; }
.dashboard-subtitle { text-align: center; font-size: 25px; font-weight: normal; margin-bottom: 0px; }
.dashboard-embedding-container { background: variables.$white; padding: 1em; }
.header-area:not(.home) .header-logo { text-align: center; background-color: variables.$primary-color; }
.header-logo { width: 265px; }
.header-logo img { margin: 5px 0px !important; height: 70px; }
.header-area.header--transparent { padding-left: 3em; padding-right: 3em; }
.header-area.home .header-logo > a { padding-left: 3em; padding-top: 1em;}
body h2, body h3, body h4, body h5, body h6, body h1 { font-family: Poppins, sans-serif; }
// .separator { width: 100px; height: 2px; background-color: variables.$black; margin: 30px auto; }
.header-title { margin-bottom: 0px; }
.header-subtitle { font-size: 14px; }
.contact-form--1 input, .contact-form--1 textarea { border: 1px solid #d7d8db; }
button.rn-button-style--2 { font-size: 14px; border: 1px solid variables.$black; }
.error-modal p { font-size: 14px; }
.gallery-section {
  &-container { text-align: center; padding: 2rem; }
  &-title { @include text-style(2rem, variables.$black, 0.5rem); }
  &-subtitle { @include text-style(1.2rem, variables.$black, 1.5rem); }
  &-grid { @include responsive-grid(250px); }
  &-item {
    border: 1px solid variables.$border-color;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    background-color: variables.$secondary-color-light;
    transition: transform 0.3s ease;
    &:hover { transform: scale(1.02); }
    &-image { width: 100%; height: 200px; object-fit: cover; }
    &-details { padding: 1rem; display: flex; flex-direction: column; justify-content: space-between;}
    &-title { @include text-style(1rem, variables.$secondary-color, 0.5rem); }
    &-subtitle { @include text-style(0.9rem, variables.$secondary-color, 1rem); }
    &-link {
      text-decoration: none;
      color: variables.$secondary-color;
      font-weight: bold;
      &:hover { opacity: 0.6; }
    }
  }
}
.gallery-container { margin-top: 30px; }
.gallery-item { border: 1px solid variables.$black; box-shadow: rgba(153, 161, 170, 0.5) 0px 78px 40px -58px; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: variables.$black-80; z-index: 9999; }
.mobile-menu-overlay.active { display: block; }
.mobile-menu-inner { background: variables.$white; width: 80%; height: 100%; overflow-y: auto; padding: 20px; }
.close-menu-custom { }
.mobile-menu { margin-top: 1rem;
  ul { padding-left: 0; display: flex; flex-direction: column; gap: 0.6rem;
    li { font-size: 1.2rem; color: variables.$primary-color; }
  }
}
.menutrigger {
  svg { color: variables.$primary-color; }
}
.content-item-section {
  .content-item-container { max-width: 1120px; margin: 0 auto; padding: 5vh 0;
    .text-container { display: flex; flex-direction: column;
      h1, h2 { margin: 0; }
      h2 { font-size: 3rem; }
      h3 { font-size: 2rem; margin-bottom: 0; }
      div { margin-top: 1rem; }
      .cta-container { margin-top: 2.5rem; }
      a { color: variables.$primary-color; }
    }
  }
}
.home-page-hero-banner h1.subtitle { font-size: 48px; }
.home-page-hero-banner .description p { font-size: 36px; font-weight: 600; margin-top: 2rem; margin-bottom: 2rem; line-height: 2.5rem; }
.min-vh-custom { min-height: 95.8vh !important; }
.tableau-dashboard-iframe { width: 100%; height: 90vh; border: none; }
.sidebar-column { background-color: variables.$primary-color; width: 265px; }
.sidebar-and-components.container-fluid.py-3 { padding-top: var(--header-height) !important; position: absolute; }
.sidebar-component { 
  position: fixed; 
  top: var(--header-height); 
  max-height: calc(100vh - var(--header-height)); 
  overflow-y: auto; 
  z-index: 1; 
  width: 100%; 
  max-width: 250px; 
}
.sidebar-menu-link {
  display: inline-block;
  width: 100%;
  padding: .375rem .75rem;
  color: variables.$white;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 0.5rem;
  & > span { color: variables.$white; }
  &:hover, &.active { 
    text-decoration: none; 
    color: variables.$primary-color;
    background-color: variables.$white;
    transform: translateY(-5px);
    & > span { color: variables.$primary-color; }
    & > span > svg > path { fill: variables.$primary-color; }
  }
}
.login-title{
  font-size: 30px;
    color: #fff;
}
.page-header-title-area{
  color: #3D8465!important;
}
.header-logout-button {
    padding: 9px 23px!important;
    border: 1px solid #0e7d42!important;
}
.header-logout-button span{
  color: #0e7c42;
  text-transform: initial;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}
.header-logout-button:hover {
      transform: translateY(0px)!important;
}
.header-logout-button:hover > span{
  color: #fff!important;
}
.sidebar-column {
    position: fixed;
    height: calc(100% - var(--header-height));
    top: var(--header-height);
    left: 0;
    z-index: 1040;
    overflow-y: auto;
}
.sidebar-backdrop { display: none; }
.main-content-wrapper{
  margin-left: 265px;
}
.header-logout-button.rn-btn-white > span{
  color: #fff!important;
}
.header-logout-button.rn-btn-white{
   border: 1px solid #ffffff!important;
}
.header-logout-button.rn-btn-white:hover{
   border: 1px solid #0e7d42!important;
}
.white-text-label.mainmenunav ul.mainmenu > li > a{
  color: #fff!important;
}

.container-xxl {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
.card {
  border-radius: 12px;
  box-shadow: initial!important;
  margin-bottom: 1rem;
  background: #f6f6f6;
  border: 0px;
  border-radius: 0px;
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}
.card-body {
  padding: 1rem 1.5rem;
}
.btn {
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid transparent;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  
}
.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
  background: transparent;
}
.btn-outline-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}
.btn-success {
  background-color: #22c55e;
  border-color: #22c55e;
  color: white;
}
.btn-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
}
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.btn-outline-secondary {
  color: #6b7280;
  border-color: #6b7280;
  background: transparent;
}
.btn-outline-secondary:hover {
  background-color: #6b7280;
  color: white;
}
.form-control {
  width: 100%;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}
.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.table {
  width: 100%;
  margin-bottom: 0;
  color: #0f172a;
}
.table-hover tbody tr:hover {
  background-color: #f8fafc;
}
.table thead th {
  background-color: white;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.05em;
  padding: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.table tbody td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.table-responsive {
  overflow-x: auto;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}
.bi {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.fs-3 {
  font-size: 1.5rem;
}
.fw-semibold {
  font-weight: 600;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.align-items-end {
  align-items: flex-end;
}
.justify-content-end {
  justify-content: flex-end;
}
.justify-content-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-3 {
  margin-bottom: 1rem;
}
.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.text-end {
  text-align: right;
}
.flex-wrap {
  flex-wrap: wrap;
}
.ml-auto {
  margin-left: auto;
}
.file-upload-button{
    background: #107b42;
  border: 0px;
  font-weight: 500;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  color:#fff;
}
.manual-upload-button{
  color: #0c7e42;
  background: #fff;
  border: 1px solid #0c7e42;
  font-weight: 500;
  font-family: Poppins, sans-serif;
  font-size: 16px;
}
.upload-icon-button{
  color:#0c7e42;
  border: 1px solid #0c7e42;
}
@media only screen and (max-width: 1200px) {
  .gallery-grid { grid-template-columns: 50% !important; padding: 0px !important; }
}
@media only screen and (max-width: 767px) {
  .gallery-grid { grid-template-columns: 100% !important; padding: 0px !important; }
  .breadcrumb-inner .header-title { font-size: 20px; }
  .breadcrumb-inner { padding-top: 20px; }
  .breadcrumb-area { padding-bottom: 20px !important; }
  .breadcrumb-area .container { width: 100%; }
  .header-area .header-wrapper .logo a img { min-width: 120px; width: auto; }
  .main-content-wrapper{ margin-left: 0px; }
}

// Custom Modal Component Styles
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  z-index: 1050;
  padding: 1.75rem 0;

  .custom-modal-dialog {
    position: relative;
    width: auto;
    margin: 0 auto 1.75rem auto;
    pointer-events: none;
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;

    &.custom-modal-sm {
      max-width: 300px;
    }

    &.custom-modal-md {
      max-width: 500px;
    }

    &.custom-modal-lg {
      max-width: 800px;
    }
  }

  .custom-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: white;
    background-clip: padding-box;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 100%;
    overflow: hidden;
  }

  .custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;

    .custom-modal-title {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
      color: #0f172a;
    }

    .custom-btn-close {
      box-sizing: content-box;
      width: 1em;
      height: 1em;
      padding: 0.25em 0.25em;
      color: #000;
      background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235.867 2.788 2.789 2.789-2.789 1.414 1.414-2.789 2.789 2.789 2.789-1.414 1.414-2.789-2.789-2.789 2.789-1.414-1.414 2.789-2.789-2.789-2.789 1.414-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
      border: 0;
      border-radius: 0.375rem;
      opacity: 0.5;
      cursor: pointer;

      &:hover {
        opacity: 0.75;
      }
    }
  }

  .custom-modal-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .custom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
  }

  @media (max-width: 768px) {
    .custom-modal-dialog {
      max-width: 100%;
      margin: 0 1rem 1.5rem 1rem;

      &.custom-modal-lg,
      &.custom-modal-md,
      &.custom-modal-sm {
        max-width: 100%;
      }
    }
  }

  @media (max-height: 600px) {
    .custom-modal-dialog {
      max-height: calc(100vh - 2rem);
    }

    .custom-modal-body {
      padding: 1rem 1.25rem;
    }
  }
}
.indicator-form-section .form-label{
  color:#0c7e42;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0px;
}

.indicator-form-section select.form-control{
    height: auto;
    border-radius: 0px;
    border: 1px solid #000 !important;
    box-shadow: none;
    font-size: 13px;
    padding: 1px 2px;
}
.indicator-form-section .custom-file-label{
      height: auto;
    border-radius: 0px;
    border: 1px solid #000 !important;
    box-shadow: none;
    font-size: 13px;
    padding: 1px 2px;
}

.indicator-form-section  .custom-file-label:after {
    content: "Browse";
    padding-top: 1px;
}

.custom-modal-overlay .table tbody td{
    border-bottom: 1px solid #ffffff;
}

.custom-modal-overlay .custom-modal-header .custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0c7e42;
}

.custom-modal-overlay .table-bordered td{
    border-color: #ffffff;
}

.custom-modal-content.info-modal {
  background-color: #3e8465;
  color: #ffffff;
  border-radius: 0;
   margin-top: 10vh;
}

.custom-modal-content.info-modal .custom-modal-header,
.custom-modal-content.info-modal .custom-modal-body,
.custom-modal-content.info-modal .custom-modal-footer {
  background-color: transparent;
  border: none;
  color: #ffffff;
}

.custom-modal-content.info-modal .custom-modal-title {
  color: #ffffff;
}

.custom-modal-content.info-modal .custom-btn-close {
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m.235.867 2.788 2.789 2.789-2.789 1.414 1.414-2.789 2.789 2.789 2.789-1.414 1.414-2.789-2.789-2.789 2.789-1.414-1.414 2.789-2.789-2.789-2.789 1.414-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
  opacity: 0.9;
}

.info-modal-trigger img {
  cursor: pointer;
}
.btn-primary-color{
  color: #0e7c42!important;
}
.btn-primary-color:hover{
  color: #fff!important;
}