body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* CSS Styling for tranposing table */
.transpose-table {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.transpose-table .ant-table-tbody {
  display: flex;
  flex-direction: row;
  position: relative;
}

.transpose-table .ant-table-row {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: white;
}

.transpose-table .ant-table-row:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  background: white;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  margin-left: 0;
}

.transpose-table .ant-table-cell,
.transpose-table td,
.transpose-table th {
  display: block;
  min-width: 120px;
  white-space: normal;
  padding: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.transpose-table td {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  max-height: 70px;
  overflow-y: auto;
}

.transpose-table td > * {
  display: block;
  width: 100%;
}

/* Default table styles */
body .ant-table-tbody {
  padding: 0;
}

/* Compact rules for designers/programmer UI */
.theme-scope .ant-table-thead > tr > th,
.theme-scope .ant-table-tbody > tr > td,
.page-designer .ant-table-thead > tr > th,
.page-designer .ant-table-tbody > tr > td,
.custom-table-component .ant-table-thead > tr > th,
.custom-table-component .ant-table-tbody > tr > td {
  padding: 0;
  width: 1px;
  white-space: nowrap;
}

body .ant-table-thead > tr > th {
  overflow: hidden;
  text-overflow: ellipsis;
  /* display: flex; */
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--font-size);
}

.ant-table-tbody > tr > td {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-family);
  font-size: var(--font-size);
}

/* Override white background on hover */
body .ant-table-cell-row-hover {
  background: #9cbec6;
}

/* Prevent hover style for summary/footer row cells */
body .ant-table-summary .ant-table-cell.ant-table-cell-row-hover {
  background: var(--bg-color, #c3edf8);
}

body .ant-tabs-tab {
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: var(--font-size);
}

body .ant-btn {
  font-size: var(--font-size, initial);
}

body .ant-input {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

body .ant-input-number-input {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

body .ant-select-selector {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

body .ant-select-selection-item-content {
  font-size: var(--font-size);
}

body h3 {
  color: var(--text-color);
  font-size: var(--font-size);
}

/* Revert the default table styles if .transpose-table is present */
/* This allows the .transpose-table CSS to take precedence */
body .transpose-table .ant-table-tbody > tr > td {
  padding: revert;
  width: revert;
  white-space: revert;
  overflow: revert;
  text-overflow: revert;
}

.ant-table-cell {
  background-color: var(--bg-color, #c3edf8);
  border: 1px solid white;
  color: var(--text-color, #333333);
  white-space: normal;
  overflow-y: auto;
  max-height: none;
}
.ant-table {
  max-width: 100%;
}

/* .ant-table-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} */

/* Styles for when there is sorting and filtering */
.ant-table-filter-column .ant-table-column-title {
  flex: 1; /* Take available space */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-table-filter-column .ant-dropdown-trigger {
  margin-left: 8px; /* Adjust the spacing as needed */
  display: flex;
  align-items: center;
}

.ant-table-filter-column .ant-table-column-sorters {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Adjust the spacing as needed */
  overflow: hidden;
}
.table-custom-header .ant-table-column-sorter {
  /* display: inline-flex; */
  margin-right: 20px;
  align-items: center;
  justify-content: flex-end; /* Adjust this value as needed */
}

.table-custom-header .ant-table-column-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-custom-header .anticon-search {
  align-self: center;
  justify-content: flex-end;
  margin-right: 30px;
  display: flex;
  font-size: medium;
}

.custom-select .ant-select-selection-item {
  height: 16px;
  margin-top: -4px;
}

.custom-select .ant-select-selection-item-content {
  font-size: 13px;
  margin-top: -5px;
}

/* tableStyles.css */

/* .ant-table-tbody{
    padding: 0 !important;
  }
  .ant-table-tbody > tr > td{
    padding: 2px  !important;
  }
  .ant-table-thead > tr > th{
    padding: 4px !important;
  } */

/* tableWithFooter.css */

.table-footer {
  display: flex;
  flex-direction: column;
}

.table-footer table {
  width: 100%;
}

.table-footer td {
  padding: 0;
}

.table-footer-cell {
  padding: 0; /* Remove padding from the summary cell */
}

.table-footer-button-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; /* Remove padding from the button cell */
}

/* Resizable grid */
.parent-div {
  /* background: rgb(174,230,242); */
  /* background: radial-gradient(circle, rgba(174,230,242,1) 9%, rgba(22,117,242,1) 100%); */
  border: 1px dotted #000;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* .react-grid-item {
  width: auto !important;  /* Override the fixed width */
/*height: auto !important; /* Override the fixed height */
/* You can also use percentages to set specific widths and heights 
} */

/* .layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);  
  /*12 columns grid */
/* grid-template-rows: repeat(10, 1fr);   */
/* 10 rows grid */
/* background-color: #eae6e6; */
/* }  */

.box {
  width: 50%; /* Use percentage widths */
  height: 30%; /* Use percentage heights */
}

/* .layout {
  background-size: 100px 100px; 
  background-image: 
      linear-gradient(to right, #111111 1px, transparent 1px), 
      linear-gradient(to bottom, #0e0e0e 1px, transparent 1px); 
  width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
} */

.box {
  background: #ddd;
  border: 1px solid #131212;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* height: 100%; */
  position: absolute;
  box-sizing: border-box;
  z-index: 0;
}

button {
  margin: 5px;
  z-index: 2;
  position: relative;
}

.appui-table button {
  margin: 0;
}
.box-icons {
  position: absolute;
  top: 5px;
  right: 15px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
