/* app/styles/aggrid.css */
:root {
  --ag-row-hover-color: #f8f8fa;
  --ag-row-pinned-color: black;
}
#aggrid-container {
  width: 100%;
  height: 100%;
  flex: auto;
  font-size: 12px;
}
#aggrid-container .table-container {
  height: calc(100% - 40px);
}
.controlled-cell-border .ag-cell {
  border: none !important;
}
.break-header-words .ag-header-cell-text {
  white-space: normal;
  text-align: center;
}
.drag-row {
  overflow: unset !important;
}
.ag-cell div,
.ag-cell,
.ag-full-width-row .ag-cell-wrapper.ag-row-group {
  line-height: 1.7em !important;
}
.drag-row .ag-cell-value {
  padding-left: 0;
}
.drag-row .ag-row-drag {
  position: absolute;
  width: 1200px;
  z-index: 2;
  height: 100% !important;
  margin-left: 2em;
}
.drag-row .ag-row-drag .ag-icon {
  display: none !important;
}
.ag-dnd-ghost {
  margin-left: 5px !important;
  padding: 5px 5px 5px 10px !important;
  border: 1px solid var(--grey) !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  font-size: 1em !important;
}
.ag-header-cell-text {
  padding-left: 5px;
}
.row-selected-bold .ag-row-selected,
.row-pinned-bold .ag-row-pinned,
.row-first-pinned-bold .ag-row-pinned:first-child {
  font-weight: 700;
}
.annuaire-activite .ag-row-pinned .ag-cell div,
.annuaire-activite .ag-row-pinned .ag-cell {
  height: 25px;
  line-height: 1.5em;
}
.ag-pinned-left-header {
  border-right: none !important;
}
.ag-pinned-right-header {
  border-left: none !important;
}
.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
  border-right: none !important;
}
.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
  border-left: none !important;
}
.ag-header {
  background-color: #fff !important;
}
.ag-header-cell-menu-button:not(.ag-header-menu-always-show) {
  margin-top: .25em;
}
.grid-no-border-cell .ag-ltr .ag-cell {
  border-right: none !important;
}
.grid-no-border-cell .ag-cell {
  border: none !important;
}
.ag-theme-alpine {
  overflow-y: auto;
  --ag-cell-horizontal-padding: 5px !important;
  --ag-checkbox-checked-color: #21272b !important;
  --ag-control-panel-background-color: #f8f8f8 !important;
  --ag-font-family: "Nunito", sans-serif !important;
  --ag-widget-container-vertical-padding: var(--ag-grid-size) !important;
  --ag-widget-container-horizontal-padding: var(--ag-grid-size) !important;
  --ag-alpine-active-color: #21272b !important;
}
.ag-theme-alpine .p-dropdown .p-dropdown-trigger {
  width: 1em;
}
.ag-set-filter-tree-list {
  max-height: 150px !important;
}
.ag-theme-alpine .ag-tab,
.ag-theme-alpine-dark .ag-tab {
  padding: var(--ag-grid-size) !important;
}
.ag-filter-apply-panel {
  height: 40px;
  justify-content: center !important;
  padding: 6px !important;
}
.ag-theme-alpine .ag-standard-button,
.ag-theme-alpine-dark .ag-standard-button {
  padding: calc(var(--ag-grid-size) / 2) calc(var(--ag-grid-size) * 2) !important;
}
.ag-ltr .ag-filter-apply-panel-button {
  margin-left: 0 !important;
  margin-right: .5em;
}
.ag-row:hover {
  cursor: pointer;
}
.borderless-row .ag-row {
  border: none;
}
.vertical-bars .ag-cell {
  border-right: 1px solid #d6d6d6 !important;
}
.vertical-bars .ag-row {
  border-bottom: none !important;
}
.horizontal-bars .ag-cell {
  border: none !important;
}
.ag-row-even,
.ag-row-odd {
  background-color: #fff !important;
}
.ag-header-cell:hover .ag-header-cell-menu-button,
.ag-header-cell .ag-header-cell-menu-button {
  opacity: 1 !important;
  transition: opacity .2s;
}
.border-none-grid .ag-root-wrapper {
  border: none;
}
#aggrid-container .ag-root-wrapper {
  border-left: none !important;
}
.border-right-none-aggrid .ag-root-wrapper {
  border-right: none;
}
.border-left-none-aggrid .ag-root-wrapper {
  border-left: none;
}
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  width: 100%;
  border-bottom: 1px solid #babfc7;
  border-right: 1px solid #babfc7;
  border-radius: 0 0 4px;
}
.grid-side-bar {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 250px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px #0000001a;
  z-index: 10;
}
.ag-row-selected {
  background-color: transparent !important;
}
.ag-row-selected:before {
  background-color: #e8e8e9 !important;
}
.ag-row-hover:not(.ag-full-width-row):before,
.ag-row:hover,
.ag-row:hover:before {
  background-color: var(--filterbar-grey) !important;
  background-image: none !important;
}
.ag-row-hover.ag-row-selected:before,
.ag-row:hover.ag-row-selected:before {
  background-image: none !important;
  background-color: #e8e8e9 !important;
}
.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within {
  border: 1px solid transparent !important;
  outline: none !important;
}
#aggrid-container .ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within {
  border: none !important;
  outline: none !important;
}
.ag-tab {
  justify-content: start !important;
}
.ag-tab-selected {
  border-bottom-color: #21272b !important;
}
.ag-icon {
  color: #21272b !important;
}
.annuaire-activite-grid .ag-floating-bottom {
  background-color: var(--annuaire-color-light) !important;
}
.annuaire-activite-grid {
  min-height: 5vh;
}
.ag-floating-bottom {
  border-top: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width) !important;
}
.total-grid-row {
  position: absolute;
  left: 105px;
  bottom: 8px;
  font-weight: 700;
  color: #282d2f;
}
.fullwidth-aggrid .ag-body-horizontal-scroll,
.fullwidth-aggrid .ag-body-horizontal-scroll-viewport {
  height: 6px !important;
  min-height: 6px !important;
}
.fullwidth-aggrid .ag-body-vertical-scroll,
.fullwidth-aggrid .ag-body-vertical-scroll-viewport {
  width: 6px !important;
  min-width: 6px !important;
}
.fullwidth-aggrid .ag-body-vertical-scroll {
  margin-left: 2px;
}
.ag-ltr .ag-row-group-indent-1 {
  padding-left: 15px !important;
}
.ag-ltr .ag-row-group-indent-2 {
  padding-left: 30px !important;
}
.ag-ltr .ag-row-group-indent-3 {
  padding-left: 45px !important;
}
.ag-ltr .ag-row-group-indent-4 {
  padding-left: 60px !important;
}
.ag-ltr .ag-row-group-indent-5 {
  padding-left: 75px !important;
}
.ag-ltr .ag-row-group-indent-undefined {
  height: 26px;
}
.ag-group-expanded.ag-hidden {
  display: block !important;
  visibility: hidden !important;
}
.ag-cell-wrapper.ag-row-group-leaf-indent:has(.ag-group-expanded.ag-hidden) span.ag-group-value > span {
  padding-left: 0 !important;
}
.ag-ltr .ag-group-expanded {
  margin-right: 3px !important;
}
.ag-group-value {
  height: min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height));
  display: flex;
  align-items: center;
}
.pl-4-group-value .ag-group-value {
  padding-left: 3em;
}
.ag-menu-list {
  padding: 0 4px !important;
}
.ag-menu-option-part,
.ag-compact-menu-option-part {
  padding: 2px 0 !important;
}
.ag-menu {
  background-color: #fff !important;
  border-radius: 4px !important;
  border: none !important;
  font-size: .9em;
}
.ag-menu-option-text,
.ag-compact-menu-option-text {
  padding-right: 6px !important;
  padding-left: 6px !important;
}
.ag-ltr .ag-menu-option-icon,
.ag-ltr .ag-compact-menu-option-icon {
  padding-left: 6px !important;
}
.ag-ltr .ag-menu-option-icon img,
.ag-ltr .ag-compact-menu-option-icon img,
.ag-ltr .ag-menu-option-icon svg,
.ag-ltr .ag-compact-menu-option-icon svg {
  margin-top: 3px;
}
.ag-menu-option-active {
  background-color: #f2f2f2 !important;
}
.ag-menu-option {
  border-radius: 2px;
}
.ag-menu-option:hover {
  cursor: pointer;
}
.grid-no-header .ag-header {
  display: none;
}
.affaire-fiche-synthese .ag-header {
  margin-bottom: 15px !important;
  border: none !important;
}
.affaire-fiche-synthese .ag-floating-bottom {
  border: none !important;
}
.affaire-fiche-synthese .hide-header .ag-header {
  display: none;
}
.affaire-fiche-synthese .ag-row .ag-cell {
  display: flex;
  align-items: center;
}
.affaire-fiche-synthese .row-pinned .ag-cell {
  background-color: #fff !important;
}
.affaire-fiche-synthese .row-pinned {
  border: none !important;
}
.affaire-fiche-synthese .ag-row.synthese-total-row .ag-cell {
  align-items: end;
}
.affaire-fiche-synthese .empty-row {
  border: none !important;
}
.affaire-fiche-synthese .empty-row .ag-cell {
  background-color: #fff !important;
}
.affaire-fiche-synthese .ag-row.synthese-total-row .col-category .ag-cell-wrapper {
  align-items: end;
}
.affaire-fiche-synthese .ag-header-group-cell.prevision-header {
  color: var(--devis-color);
  border-bottom: 2px solid var(--devis-color);
}
.affaire-fiche-synthese .ag-header-cell.prevision-header {
  border-bottom: 2px solid var(--devis-color) !important;
}
.affaire-fiche-synthese .ag-header-group-cell.realisation-header {
  border-bottom: 2px solid var(--dark-grey-2);
}
.affaire-fiche-synthese .ag-header-cell.realisation-header {
  border-bottom: 2px solid var(--dark-grey-2) !important;
}
.affaire-fiche-synthese .ag-header-group-cell.solde-header {
  color: #009a58;
  border-bottom: 2px solid #009a58;
}
.affaire-fiche-synthese .ag-header-cell.solde-header {
  border-bottom: 2px solid #009a58 !important;
}
.affaire-fiche-synthese .ag-header-cell {
  border-top: none !important;
  justify-content: center !important;
  color: var(--dark-grey) !important;
}
.affaire-fiche-synthese .ag-header-cell-label {
  justify-content: center !important;
}
.affaire-fiche-synthese .category-header .ag-header-cell-label {
  justify-content: start !important;
  color: #000 !important;
  text-decoration: underline;
  font-weight: 700;
}
.affaire-fiche-synthese .ag-header-group-cell {
  font-size: 1.1em;
  font-weight: 700;
  justify-content: center;
}
.affaire-fiche-synthese .ag-header-row {
  height: 30px;
  line-height: 30px;
}
.affaire-fiche-synthese .ag-header-cell.blank-column,
.affaire-fiche-synthese .ag-cell.blank-column {
  border: none !important;
}
.affaire-fiche-synthese .cell-clickable {
  cursor: pointer;
}
.affaire-fiche-synthese .ag-ltr .ag-row-group-leaf-indent {
  margin-left: 0;
}
.ag-header-cell-label {
  justify-content: center;
}
.simple-grid .ag-horizontal-left-spacer {
  overflow-x: hidden;
}
.grid-dialog .ag-floating-bottom-viewport {
  border-top: 2px solid var(--ag-row-pinned-color);
}
.grid-dialog .affaire-border-color {
  --ag-row-pinned-color: var(--affaire-color);
}
.grid-dialog .chantier-border-color {
  --ag-row-pinned-color: var(--chantier-color);
}
.small-font-grid .ag-header,
.small-font-grid .ag-header-container,
.small-font-grid .ag-header-row.ag-header-row-column,
.small-font-grid .ag-header-cell,
.small-font-grid .ag-header-group-cell,
.small-font-grid .ag-cell,
.small-font-grid .ag-row,
.small-font-grid .ag-ltr .ag-row-group-indent-undefined {
  font-size: 11px;
  height: 20px !important;
  min-height: 20px !important;
}
.no-group-icons-grid .ag-group-contracted,
.no-group-icons-grid .ag-group-expanded {
  display: none !important;
}
.bg-light-grid .ag-root-wrapper,
.bg-light-grid .ag-header,
.bg-light-grid .ag-row-even,
.bg-light-grid .ag-row-odd {
  background-color: var(--filterbar-grey) !important;
}
.light-header-grid .ag-header-cell-comp-wrapper {
  color: var(--grey-2);
}
