/**************************************************************************************************/
/** MODIFICATIONS FOR HYDROWEB
/**************************************************************************************************/
#hw-page-body{
  margin-top:-2px;
}

#hw-body-content{
  padding-left: 5px;
  padding-right: 5px;
}
.page-header{
  padding-left: 10px;
  padding-right: 6px;
}

.page-wrapper .page-header {

  margin-top:4px
}

.hw-bg-secondary {
  color: #ffffff !important;
  #background: #CED4DA !important;
  background: #ADB5BD !important;
}
.card-header-dashboard{
  height:50px;
}

.progress-bar.progress-hw-card{
  height:1px;!important;
}
.progress.progress-hw-card{
  height:1px;!important;
}
.card-progress.progress-hw-card{
  height:1px;!important;
}

.card-footer{
  padding: 0.25rem 1.25rem;
}

.card-body{
  min-height:70px;
}

.hw-icon-btn{
  text-align: center;
  margin: auto;
  padding: 10px;
}

.hw-btn-component:hover svg{
  color: var(--tblr-primary);
}

.hw-icon-color-change{
  color: #757575;
}

#btn {
  margin: 0 auto;
  #margin-left: 10px;
  width: 80px;
  height: 20px;
  border-style:solid;
  border-width:1px;
  border-top-style: none;
  border-radius: 0 0 5px 5px;
  border-color: #cccccc;
  background: #fdfdfe;
  cursor: pointer;
}


#btn span {
  position: relative;
  top: 5px;
  margin-bottom: 2px;
  left: 50%;
  display: block;
  margin-left: -25px;
  width: 50px;
  height: 1px;
  border-radius: 1px;
  background: #cccccc;
  #box-shadow: inset 1px 1px 1px #3d3d42;
}

.slider-panel-dashboard{
  background: #fdfdfe;
  border-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #cccccc;
}

.dropdown-item.active {

  background-color: rgb(201 213 249 / 15%) !important;

}

#chart-detail-order div {
  height: 4em;
  cursor: move;
}

.chart-detail-order-placeholder {
  border:1px solid var(--tblr-azure-lt);
  background:var(--tblr-blue-lt);
  color:var(--tblr-blue-lt)
}

.hw-babylonjs-loading-screen {
  background-color: #090d4ecc;
  color: white;
  font-size:50px;
  text-align:center;
}


/* HYDROWEB DATATABLE SECTION */
table.dataTable.table-striped tbody tr.odd.selected td {
  background-color: var(--tblr-info)!important;
  color: white!important;
}

table.dataTable tbody tr.even.selected td {
  background-color: var(--tblr-info)!important;
  color: white!important;

  --tblr-table-striped-bg: #206bc3;
}

table.dataTable.table-striped tbody tr.odd.selected a {
  color: white!important;
  text-decoration: underline;
}

table.dataTable tbody tr.even.selected a {
  color: white!important;
  text-decoration: underline;
}

.dataTable-icon-div {
  padding-right: 0.5rem;
  margin: -0.5rem 0rem -0.5rem -0.5rem;
}

.dataTable-icon {
  transition: background 0.5s ease;
}

div.dt-scroll-headInner table.table-bordered-c tr th:first-child,div.dt-scroll-footInner table.table-bordered-c tr th:first-child {
  border-left-color: inherit !important;
}

table.dataTable.table-bordered-c th {
  border-top-width: inherit !important;
  border-bottom-width: inherit !important;
}

table.dataTable.table-bordered-c tbody tr:last-child td {
  border-bottom-width: inherit !important;
  border-bottom-color: inherit !important;
  border-bottom-style: inherit !important;
}

div.dt-scroll-body {
  border-bottom-style: none !important;
}

.icon-login {
  width: 60px;
  height: 60px;
  font-size: 60px;
  stroke-width: 1.5;
  color: rgb(32, 107, 195);
}

div.DTE_Field_InputControl{
  margin-top: 5px;
  margin-bottom: 10px;
}


/* HYDROWEB ACE SECTION */
.hw-ace-parent {
  position: relative;
}

.hw-ace-editor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}



/* HYDROWEB BABYLONE JS SECTION */
canvas.babylonjs-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}



/* HYDROWEB MAP SECTION */
div.leaflet-tooltip {
  padding: 0px;
}

div.leaflet-container{
  background: white;
  outline-offset: 1px;
}



/* HYDROWEB FILTER SECTION */
.noUi-tooltip {
  padding: 0px !important;
}

@media (min-width: 992px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body.layout-fluid .page {
    height: 100vh;
    overflow: hidden;
  }

  body.layout-fluid .page-wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/*
 * Mapbox popup attribute table layout.
 *
 * These styles control the custom HTML content rendered inside Mapbox popups.
 * They keep the popup content within a fixed usable size while allowing the
 * attribute list to scroll vertically when there are many rows.
 *
 * Important behavior:
 * - Vertical overflow is handled inside the popup body.
 * - Horizontal scrolling is intentionally disabled.
 * - Long values, including URLs and identifiers, wrap onto multiple lines.
 * - The table uses a fixed layout so the name/value columns remain predictable.
 * - The styling is scoped with the `hydroweb-mapbox-popup` prefix to avoid
 *   unwanted side effects on regular Tabler, Bootstrap, or Mapbox content.
 */

.mapboxgl-popup {
  max-width: 90vw !important;
}

.mapboxgl-popup-content {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 6px;
}

/*
 * Main custom popup container.
 */
.hydroweb-mapbox-popup {
  width: 500px;
  max-width: 90vw;
  max-height: 300px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--tblr-bg-surface, #ffffff);
  color: var(--tblr-body-color, #1f2937);
  border-radius: 6px;
  border: 1px solid rgba(98, 105, 118, 0.16);
  padding: 10px;
}

/*
 * Only this section scrolls.
 * The popup itself should not grow indefinitely.
 */
.hydroweb-mapbox-popup__body {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  border-radius: 4px;
  scrollbar-width: thin;
}

/*
 * Attribute table.
 */
.hydroweb-mapbox-popup__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

/*
 * Alternating rows and hover state.
 */
.hydroweb-mapbox-popup__table tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.025);
}

.hydroweb-mapbox-popup__table tr:hover {
  background-color: rgba(0, 0, 0, 0.045);
}

/*
 * Name/value cells.
 * Long text wraps instead of creating a horizontal scrollbar.
 */
.hydroweb-mapbox-popup__property-name,
.hydroweb-mapbox-popup__property-value {
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid rgba(98, 105, 118, 0.16);
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

/*
 * Left column.
 */
.hydroweb-mapbox-popup__property-name {
  width: 35%;
  min-width: 110px;
  font-weight: 600;
  color: var(--tblr-secondary, #667085);
}

/*
 * Right column.
 */
.hydroweb-mapbox-popup__property-value {
  width: 65%;
  color: var(--tblr-body-color, #1f2937);
}

/*
 * Links inside values.
 */
.hydroweb-mapbox-popup__link {
  color: var(--tblr-primary, #206bc4);
  text-decoration: none;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hydroweb-mapbox-popup__link:hover {
  text-decoration: underline;
}

/*
 * Empty values.
 */
.hydroweb-mapbox-popup__empty,
.hydroweb-mapbox-popup__empty-value {
  color: var(--tblr-secondary, #667085);
}

.hydroweb-mapbox-popup__empty {
  padding: 12px;
  text-align: center;
}

/*
 * WebKit scrollbar styling.
 */
.hydroweb-mapbox-popup__body::-webkit-scrollbar {
  width: 8px;
}

.hydroweb-mapbox-popup__body::-webkit-scrollbar-thumb {
  background: rgba(98, 105, 118, 0.35);
  border-radius: 999px;
}

.hydroweb-mapbox-popup__body::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 105, 118, 0.5);
}
/**************************************************************************************************/
/** END OF MODIFICATIONS FOR HYDROWEB
/**************************************************************************************************/