/* ───── Dunwood Basic Styles ───── */

body {
  font-family: 'Rubik', sans-serif;
  background-color: #f5f7f9;
  color: #333;
}

h1 {
  font-weight: 600;
}

button {
  font-weight: 500;
  border-radius: 6px;
}

input {
  border-radius: 4px;
}


/* ───── Handsontable: Header Styling ───── */

.htCore th,
.ht__manualColumnMove,
.ht__manualRowMove {
  vertical-align: middle !important;
  text-align: center !important;
  padding-right: 20px !important; /* space for sort arrow */
}

.htCore .colHeader {
  font-weight: 600;
  font-size: 0.85rem;
  background-color: #f5f7fa !important;
}


/* ───── Handsontable: Sorting Arrows ───── */

.handsontable .htSortIndicator {
  float: right !important;
  margin-right: 4px !important;
  opacity: 0.6;
}

.handsontable .htSortIndicator:hover {
  opacity: 1;
}


/* ───── Handsontable: Cell & Row Styling ───── */

.handsontable .htCore td {
  padding: 6px 8px !important;
  font-size: 0.85rem;
}

.handsontable .htCore tbody tr:hover {
  background-color: #eef3f9 !important;
}

.handsontable .htCore tbody tr:nth-child(even) td {
  background-color: #f0f2f5 !important;
}


/* ───── Handsontable: Sticky Headers ───── */

.handsontable .ht_clone_top {
  z-index: 999 !important;
  background-color: #f5f7f9 !important;
}


/* ───── Layout: Tab & Container ───── */

.tab-pane {
  width: 100%;
}

.hot-container {
  width: 100%;
  overflow-x: auto;
}
/* Layout padding bumper */
body {
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Make container span the full viewport */
.hot-container {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 230px); /* adjust if needed for top bar/buttons */
  overflow: auto;
}

/* Responsive spacing for search bar + header */
.o_searchbar,
h1 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Rubik', sans-serif;
  background-color: #f5f7f9;
  color: #333;
}
.tab-pane {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hot-container {
  flex: 1;
  overflow: auto;
  width: 100%;
  max-width: 100%;
}

/* ───── Dunwood UI Bump Padding ───── */

.btn,
.badge,
.table th,
.table td,
.nav-tabs .nav-link,
input,
select {
  padding: 0.4rem 0.7rem !important;
}

.table th,
.table td {
  vertical-align: middle;
}

.table th {
  background-color: #eef3f9;
}

.card,
.alert,
h1,
.tab-content {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
}
