/* ---------- Title Section and Map ---------- */
.header-grid {
  height: auto;
}

.header-title-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.header-title-col {
  height: 100%;
}

.header-map-box {
  width: 100%;
  height: 80%;
}

.header-map-graph {
  width: 100%;
  height: 60%;
  min-height: 0;
}

.header-map-col {
  height: 80%;
}

/* ---------- AG Grid header text is often in a child element, like .ag-header-cell-label ---------- */
.custom-header-style {
  color: #f3f7f7e4 !important;
  background-color: #999999 !important;
  font-weight: bold;
  text-align: center;
  text-justify: center;
  border-left: none !important;
  border-right: none !important;
}

.custom-header-style-left {
    text-align: left !important;
    text-justify: left !important;
    padding-left: 2px;
}
.asp-good {
    color: #21902b;
    font-weight: bold !important;
}

.total-avg-asp {
    font-weight: bold;
    color: #9900ff;
}
/* ---------- Row Styling for AG Grids ---------- */

.territory-west-row-bg,
.ag-row.territory-west-row-bg,
.ag-cell.territory-west-cell {
  background-color: var(--territory-west) !important;
  color: #ffffff !important;
}

.territory-south-row-bg,
.ag-row.territory-south-row-bg,
.ag-cell.territory-south-cell {
  background-color: var(--territory-south) !important;
  color: #fefefe !important;
}

.territory-north-row-bg,
.ag-row.territory-north-row-bg,
.ag-cell.territory-north-cell {
  background-color: var(--territory-north) !important;
  color: #ffffff !important;
}

.territory-east-row-bg,
.ag-row.territory-east-row-bg,
.ag-cell.territory-east-cell {
  background-color: var(--territory-east) !important;
  color: #ffffff !important;
}
.ag-row.total-avg-row {
  background-color: #d9d9d9 !important;
  font-weight: bold !important;
  color: #000000 !important;
}

/* ---------- Styling for Top Hospitals/Surgeons Tables ---------- */

.top-visuals-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  width: max-content;
  min-width: 100%;
}

.top-visuals-card {
  flex: 0 0 520px;
  max-width: 520px;
}

.top-visuals-tissue-card {
  flex: 0 0 760px;
  max-width: 760px;
  margin-top: 0;
}

.top-visuals-title {
  text-align: left;
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: bold;
}

.top-visuals-kore-title {
  color: var(--kore-fiber);
}

.top-tables-grid .ag-header-cell,
.top-tissue-grid .ag-header-cell {
  background-color: var(--gray-header) !important;
  color: var(--white) !important;
  font-weight: bold;
}

.top-tables-grid .ag-header-cell-label,
.top-tissue-grid .ag-header-cell-label {
  justify-content: center !important;
  text-align: center !important;
}

.top-tables-grid .ag-row,
.top-tables-grid .ag-cell,
.top-tissue-grid .ag-row,
.top-tissue-grid .ag-cell,
.yday-sales-grid .ag-row,
.yday-sales-grid .ag-cell,
.yday-shipments-grid .ag-row,
.yday-shipments-grid .ag-cell {
  border-bottom: none !important;
}

.top-tables-grid .ag-cell,
.top-tissue-grid .ag-cell {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.top-tables-grid .centered-cell,
.top-tissue-grid .centered-cell {
  justify-content: center;
  padding-left: 0;
}

.top-tables-grid .left-cell,
.top-tissue-grid .left-cell {
  justify-content: flex-start;
}

.top-tables-grid .right-cell,
.top-tissue-grid .right-cell {
  justify-content: flex-end;
  padding-right: 8px;
}

.top-tables-grid .ag-header-cell[col-id="rank"] {
  color: transparent !important;
}

.top-tissue-grid .summary-title-cell {
  font-weight: bold;
}

.top-tissue-grid .summary-empty-cell {
  display: none !important;
}

.top-tissue-grid .ag-row.total-avg-row {
  background-color: var(--gray-total-row) !important;
  color: #000000 !important;
  font-weight: bold !important;
}
.top-tissue-grid .ag-row.top-tissue-alt-row {
  background-color: #ececec !important;
}

/* ---------- Product Section Layout ---------- */
.product-section {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.product-header-flex-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 10px;
  margin-bottom: 32px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
  
/* Donut Chart */
.donut-graph {
  width: 26%;
  height: auto;
  margin-bottom: 0px;
}
  .product-icon {
    width: 26%;
}

.product-icon-margin-default {
  margin-top: 0px;
}
.product-icon-margin-kf {
  margin-top: 32px;
  margin-right: 48px;
}

/* ---------- Unbilled Card (if create_ttc_cards is used within product_section) ---------- */
.unbilled-card {
  width: 28%;
  align-self: self-end;
  justify-self: left;
  height: 120px;
  overflow: hidden;
}
.unbilled-card .ag-body-viewport {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

.unbilled-card .ag-body-horizontal-scroll {
  display: none !important;
}

.unbilled-card .ag-body-vertical-scroll {
  display: none !important;
}
.unbilled-card-row-bg {
    background-color: #fff2cc !important;
}
.unbilled-card .ag-cell {
  font-size: 12px !important;
}
.unbilled-card .ag-header-cell-label,
.unbilled-card .ag-header-cell-text {
  font-size: 12px !important;
  text-align: center !important;
}
.yday-sales-grid {
  width: 97%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  height: auto;
  border-bottom: none !important;
  
}

.yday-sales-grid .ag-cell,
.yday-sales-grid .ag-header-cell,
.yday-sales-grid .ag-header-group-cell {
  border-left: none !important;
  border-right: none !important;
}

.yday-sales-grid .ag-cell[col-id="average_price_per_cc"],
.yday-sales-grid .ag-cell[col-id="is_account_first_sale"],
.yday-sales-grid .ag-header-cell[col-id="average_price_per_cc"],
.yday-sales-grid .ag-header-cell[col-id="is_account_first_sale"] {
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

.yday-sales-grid .ag-cell[col-id="average_price_per_cc"].ag-cell-focus,
.yday-sales-grid .ag-cell[col-id="is_account_first_sale"].ag-cell-focus,
.yday-sales-grid .ag-cell[col-id="average_price_per_cc"].ag-cell-range-selected,
.yday-sales-grid .ag-cell[col-id="is_account_first_sale"].ag-cell-range-selected {
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.yday-sales-grid .ag-cell-range-left,
.yday-sales-grid .ag-cell-range-right,
.yday-sales-grid .ag-cell-range-top,
.yday-sales-grid .ag-cell-range-bottom,
.yday-sales-grid .ag-cell-inline-editing,
.yday-sales-grid .ag-cell-focus,
.yday-sales-grid .ag-header-cell:focus,
.yday-sales-grid .ag-header-cell-focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.yday-sales-grid .ag-header-cell[col-id="total_sales"]::after,
.yday-sales-grid .ag-header-cell[col-id="average_price_per_cc"]::after,
.yday-sales-grid .ag-header-cell[col-id="is_account_first_sale"]::after {
  display: none !important;
}


/* ---------- Shipment Section Layout ---------- */
.yday-shipments-grid .ag-theme-alpine {
  width: 97%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #888;
  overflow: hidden;
  box-sizing: border-box;
  height: auto;
  border-bottom: none !important;
}


.ag-theme-alpine .yday-shipments-grid .ag-body-horizontal-scroll {
  display: none !important;
}

.ag-theme-alpine .ag-body-horizontal-scroll {
  display: none !important;
}

.ag-theme-alpine .ag-header-group-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px;
}

.ag-theme-alpine .ag-header-group-cell-label {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  font-size: 15px;
}

/* Center header text for Sales and ADS columns */

/* Center Month header */
.ag-theme-alpine .ag-header-cell[col-id="month"] .ag-header-cell-label {
  justify-content: center !important;
  font-size: 15px;
}
/* Center all Sales headers */
.ag-theme-alpine .ag-header-cell[col-id$="Sales"] .ag-header-cell-label {
  justify-content: center !important;
  font-size: 15px;
}

/* Center all ADS headers */
.ag-theme-alpine .ag-header-cell[col-id$="ADS"] .ag-header-cell-label {
  justify-content: center !important;
  font-size: 15px;
}

/* ---------- Monthly Sales Table Column Separators ---------- */
.mtd-tables-grid .ag-header-group-cell:not(:first-child) {
  border-left: 2px solid #ddd !important;
}

.mtd-tables-grid .ag-cell[col-id="Prime HD Sales"],
.mtd-tables-grid .ag-cell[col-id="Kore Fiber Sales"],
.mtd-tables-grid .ag-cell[col-id="DBX Sales"],
.mtd-tables-grid .ag-cell[col-id="DBX Fiber Sales"],
.mtd-tables-grid .ag-cell[col-id="Ikon Sales"],
.mtd-tables-grid .ag-cell[col-id="Summit Sales"],
.mtd-tables-grid .ag-cell[col-id="RTI Sales"],
.mtd-tables-grid .ag-cell[col-id="Organo Sales"],
.mtd-tables-grid .ag-cell[col-id="Total Sales"] {
  border-left: 2px solid #ddd !important;
}

/* Add borders to sub-header cells (Sales/ADS headers) */
.mtd-tables-grid .ag-header-cell[col-id="Prime HD Sales"],
.mtd-tables-grid .ag-header-cell[col-id="Kore Fiber Sales"],
.mtd-tables-grid .ag-header-cell[col-id="DBX Sales"],
.mtd-tables-grid .ag-header-cell[col-id="DBX Fiber Sales"],
.mtd-tables-grid .ag-header-cell[col-id="Ikon Sales"],
.mtd-tables-grid .ag-header-cell[col-id="Summit Sales"],
.mtd-tables-grid .ag-header-cell[col-id="RTI Sales"],
.mtd-tables-grid .ag-header-cell[col-id="Organo Sales"],
.mtd-tables-grid .ag-header-cell[col-id="Total Sales"] {
  border-left: 2px solid #ddd !important;
}

.mtd-tables-grid .ag-header-group-cell[col-id$="Prime HD"]{
  border-right: 2px solid #ddd !important;
  border-left: 2px solid #ddd !important;
}

.mtd-tables-grid .ag-header-group-cell[col-id$="Month"]{
  border-right: 2px solid #ddd !important;
}

.mtd-tables-grid .ag-header-cell[col-id$="Month"]{
  border-right: 2px solid #ddd !important;
}
.ag-theme-alpine .ag-header-cell[col-id="Prime HD Sales"],
.ag-theme-alpine .ag-header-cell[col-id="Prime HD ADS"]{
  color: var(--prime-hd) !important;
}
.ag-theme-alpine .ag-header-cell[col-id="Kore Fiber Sales"],
.ag-theme-alpine .ag-header-cell[col-id="Kore Fiber ADS"]{
  color: var(--kore-fiber) !important;
}

.ag-theme-alpine .ag-header-cell[col-id="DBX Sales"],
.ag-theme-alpine .ag-header-cell[col-id="DBX ADS"]{
  color: var(--dbx) !important;
}

.ag-theme-alpine .ag-header-cell[col-id="DBX Fiber Sales"],
.ag-theme-alpine .ag-header-cell[col-id="DBX Fiber ADS"]{
  color: var(--dbx-fiber) !important;
}

.ag-theme-alpine .ag-header-cell[col-id="Ikon Sales"],
.ag-theme-alpine .ag-header-cell[col-id="Ikon ADS"]{
  color: var(--ikon) !important;
}

.ag-theme-alpine .ag-header-cell[col-id="Summit Sales"],
.ag-theme-alpine .ag-header-cell[col-id="Summit ADS"]{
  color: var(--summit) !important;
}

.ag-theme-alpine .ag-header-cell[col-id="RTI Sales"],
.ag-theme-alpine .ag-header-cell[col-id="RTI ADS"]{
  color: var(--evergen) !important;
}
.ag-theme-alpine .ag-header-cell[col-id="Organo Sales"],
.ag-theme-alpine .ag-header-cell[col-id="Organo ADS"]{
  color: var(--organo) !important;
}
/* ---------- Monthly Sales Table Product Colors ---------- */
/* Target by header text content instead of col-id */

.mtd-tables-grid .ag-header-group-cell:nth-child(2) {
  background-color: var(--prime-hd) !important; /* Prime HD */
  color: #ffffff !important;
}

.mtd-tables-grid .ag-header-group-cell:nth-child(3) {
  background-color: var(--kore-fiber) !important; /* Kore Fiber */
  color: #ffffff !important;
}

.mtd-tables-grid .ag-header-group-cell:nth-child(4) {
  background-color: var(--dbx) !important; /* DBX */
  color: #ffffff !important;
}

/* .mtd-tables-grid .ag-header-group-cell:nth-child(5) { */
  /* background-color: var(--dbx-fiber) !important; /* DBX Fiber */
  /* color: #ffffff !important;
} */

.mtd-tables-grid .ag-header-group-cell:nth-child(5) {
  background-color: var(--atlas) !important; /* Atlas */
  color: #ffffff !important;
}

.mtd-tables-grid .ag-header-group-cell:nth-child(6) {
  background-color: var(--summit) !important; /* Summit */
  color: #ffffff !important;
}

.mtd-tables-grid .ag-header-group-cell:nth-child(7) {
  background-color: var(--cortiva) !important; /* Cortiva */
  color: #ffffff !important;
}
.mtd-tables-grid .ag-header-group-cell:nth-child(8) {
  background-color: var(--tutopatch-fortiva) !important; /* Tutopatch/Fortiva */
  color: #ffffff !important;
}
.mtd-tables-grid .ag-header-group-cell:nth-child(9) {
  background-color: var(--organo) !important; /* Organo */
  color: #ffffff !important;
}
.mtd-tables-grid .ag-header-group-cell:nth-child(10) {
  background-color: #666666 !important; /* Total */
  color: #ffffff !important;
}
.orange-highlight {
    background: linear-gradient(90deg, #FFE0B3 0%, #f2b972 100%) !important;
    font-weight: bold !important;
}

/* ---------- Monthly Sales Table (Ag Grid) ---------- */
.monthly-sales-table .monthly-header-group,
.monthly-sales-table .monthly-sub-header,
.monthly-sales-table .monthly-month-header {
  background-color: var(--gray-header) !important;
  color: var(--white) !important;
  font-weight: bold !important;
  text-align: center !important;
}

.monthly-sales-table .ag-header-group-cell-label,
.monthly-sales-table .ag-header-cell-label {
  justify-content: center !important;
  text-align: center !important;
}

.monthly-sales-table .ag-header-group-cell {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

.monthly-sales-table .monthly-misc-sub-header {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.monthly-sales-table .monthly-misc-annualized-header .ag-header-cell-text {
  white-space: pre-line !important;
  line-height: 1.1 !important;
}

.monthly-sales-table .monthly-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.monthly-sales-table .ag-cell,
.monthly-sales-table .ag-header-cell,
.monthly-sales-table .ag-header-group-cell {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

.monthly-sales-table .monthly-month-cell {
  font-weight: bold;
}

.monthly-sales-table .monthly-row-lm {
  background-color: var(--gray-total-row) !important;
  font-weight: bold !important;
  text-align: center !important;

}

.monthly-sales-table .monthly-row-alt {
  background-color: #e8e3e3ed !important;
  
}

.monthly-sales-table .ads-cell {
  font-weight: bold;
  text-align: center !important;
  border-right: #000000 solid 1px !important;
}

.monthly-sales-table .ads-bin-1 {
  background-color: #fdc268 !important;
  opacity: 0.7 !important;
}
.monthly-sales-table .ads-bin-2 {
  background-color: #fbaa59 !important;
  opacity: 0.75 !important;
}
.monthly-sales-table .ads-bin-3 {
  background-color: #fa9b42 !important;
  opacity: 0.75 !important;
}
.monthly-sales-table .ads-bin-4 {
  background-color: #f98007 !important;
  opacity: 0.75 !important;
}

.monthly-sales-table .prime-hd-header-group { background-color: var(--prime-hd) !important; color: #ffffff !important; }
.monthly-sales-table .kore-fiber-header-group { background-color: var(--kore-fiber) !important; color: #ffffff !important; }
.monthly-sales-table .dbx-header-group { background-color: var(--dbx) !important; color: #ffffff !important; }
.monthly-sales-table .dbx-fiber-header-group { background-color: var(--dbx-fiber) !important; color: #ffffff !important; }
.monthly-sales-table .ikon-header-group { background-color: var(--ikon) !important; color: #ffffff !important; }
.monthly-sales-table .atlas-header-group { background-color: var(--atlas) !important; color: #ffffff !important; }
.monthly-sales-table .summit-header-group { background-color: var(--summit) !important; color: #ffffff !important; }
.monthly-sales-table .evergen-header-group { background-color: var(--evergen) !important; color: #ffffff !important; }
.monthly-sales-table .cortiva-header-group { background-color: var(--cortiva) !important; color: #ffffff !important; }
.monthly-sales-table .tutopatch-fortiva-header-group { background-color: var(--tutopatch-fortiva) !important; color: #ffffff !important; }
.monthly-sales-table .organo-header-group { background-color: var(--organo) !important; color: #ffffff !important; }
.monthly-sales-table .total-header-group { background-color: #666666 !important; color: #ffffff !important; }
.monthly-sales-table .misc-header-group { background-color: var(--white-header) !important; color: #ffffff !important; }
.monthly-sales-table .selling-days-header-group { background-color: var(--gray-header) !important; color: #ffffff !important; }

.monthly-sales-table .prime-hd-font { color: var(--prime-hd-dark) !important; font-weight: bold; text-align: center; }
.monthly-sales-table .kore-fiber-font { color: var(--kore-fiber) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .dbx-font { color: var(--dbx) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .dbx-fiber-font { color: var(--dbx-fiber) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .atlas-font { color: var(--atlas) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .summit-font { color: var(--summit) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .evergen-font { color: var(--evergen) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .cortiva-font { color: var(--cortiva) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .tutopatch-fortiva-font { color: var(--tutopatch-fortiva) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .organo-font { color: var(--organo) !important; font-weight: bold; text-align: center;}
.monthly-sales-table .total-font { font-weight: bold; text-align: center;}

/* ---------- Distributor Table Header Styling ---------- */
.distributor-header-group {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: bold !important;
  text-align: center !important;
}

.distributor-sub-header {
  background-color: #999999 !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
  font-size: 14px !important;
  padding-left: 6px !important;
}

/* Product-specific header group colors */
.kore-fiber-header-group {
  background-color: var(--kore-fiber) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.prime-hd-header-group {
  background-color: var(--prime-hd) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.dbx-header-group {
  background-color: var(--dbx) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.dbx-fiber-header-group {
  background-color: var(--dbx-fiber) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.ikon-header-group {
  background-color: var(--ikon) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.atlas-header-group {
  background-color: var(--atlas) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.summit-header-group {
  background-color: var(--summit) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.cortiva-header-group {
  background-color: var(--cortiva) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.fortiva-tutopatch-header-group {
  background-color: var(--tutopatch-fortiva) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.tutopatch-fortiva-header-group {
  background-color: var(--tutopatch-fortiva) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.evergen-header-group {
  background-color: var(--evergen) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

.organo-header-group {
  background-color: var(--organo) !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-align: center !important;
}

/* Brand-specific font colors */
.kore-fiber-font { color: var(--kore-fiber) !important; font-weight: bold; }
.prime-hd-font { color: var(--prime-hd-dark) !important; font-weight: bold; }
.dbx-font { color: var(--dbx) !important; font-weight: bold; }
.dbx-fiber-font { color: var(--dbx-fiber) !important; font-weight: bold; }
.atlas-font { color: var(--atlas) !important; font-weight: bold; }
.summit-font { color: var(--summit) !important; font-weight: bold; }
.cortiva-font { color: var(--cortiva) !important; font-weight: bold; }
.fortiva-tutopatch-font { color: var(--tutopatch-fortiva) !important; font-weight: bold; }
.tutopatch-fortiva-font { color: var(--tutopatch-fortiva) !important; font-weight: bold; }
.evergen-font { color: var(--evergen) !important; font-weight: bold; }
.organo-font { color: var(--organo) !important; font-weight: bold; }
.ikon-font { color: var(--ikon) !important; font-weight: bold; }

/* Total Row Styling */
.ag-row.total-row-font {
    font-weight: bold !important;
    background-color: #d9d9d9 !important;
}

/* Override for Medtronic table */
.medtronic-table.total-row-font {
  font-weight: bold !important;
  background-color: #f0f0f0 !important;
}

/* Distributor table cell styling */
.distributor-table .ag-cell {
  font-size: 12px !important;
  padding-left: 4px !important;
}

.distributor-table .distributor-rank-cell {
  text-align: center !important;
  justify-content: center !important;
  color: #888888 !important;
}

.distributor-table .distributor-name-cell {
  font-weight: bold !important;
  text-align: left !important;
}

.distributor-table .distributor-currency-cell {
  font-weight: bold !important;
  text-align: left !important;
}

.distributor-table .distributor-margin-cell {
  text-align: center !important;
  font-size: 10px !important;
}

.distributor-table .territory-west-cell,
.distributor-table .territory-south-cell,
.distributor-table .territory-north-cell,
.distributor-table .territory-east-cell {
  padding-left: 4px !important;
  color: #ffffff !important;
}

/* Territory-based cell colors for MTD Distributor Details */
.distributor-table .territory-west-cell {
  background-color: var(--territory-west) !important;
}

.distributor-table .territory-south-cell {
  background-color: var(--territory-south) !important;
}

.distributor-table .territory-north-cell {
  background-color: var(--territory-north) !important;
}

.distributor-table .territory-east-cell {
  background-color: var(--territory-east) !important;
}
/* Distributor table column separators */
.distributor-table .ag-header-group-cell:not(:first-child) {
  border-left: 1px solid #666 !important;
}

.distributor-table .ag-header-cell[col-id="attributed_distributor_name"],
.distributor-table .ag-header-cell[col-id="kore_fiber_sales"],
.distributor-table .ag-header-cell[col-id="prime_hd_sales"],
.distributor-table .ag-header-cell[col-id="dbx_sales"],
.distributor-table .ag-header-cell[col-id="dbx_fiber_sales"],
.distributor-table .ag-header-cell[col-id="atlas_sales"],
.distributor-table .ag-header-cell[col-id="summit_sales"],
.distributor-table .ag-header-cell[col-id="cortiva_sales"],
.distributor-table .ag-header-cell[col-id="fortiva_tutopatch_sales"],
.distributor-table .ag-header-cell[col-id="organo_sales"],
.distributor-table .ag-header-cell[col-id="ikon_sales"] {
  border-left: 1px solid #666 !important;
}

.distributor-table .ag-cell[col-id="attributed_distributor_name"],
.distributor-table .ag-cell[col-id="kore_fiber_sales"],
.distributor-table .ag-cell[col-id="prime_hd_sales"],
.distributor-table .ag-cell[col-id="dbx_sales"],
.distributor-table .ag-cell[col-id="dbx_fiber_sales"],
.distributor-table .ag-cell[col-id="atlas_sales"],
.distributor-table .ag-cell[col-id="summit_sales"],
.distributor-table .ag-cell[col-id="cortiva_sales"],
.distributor-table .ag-cell[col-id="fortiva_tutopatch_sales"],
.distributor-table .ag-cell[col-id="organo_sales"],
.distributor-table .ag-cell[col-id="ikon_sales"] {
  border-left: 1px solid #666 !important;
}

.bold-cell {
  font-weight: bold !important;
}
.margin-header {
  font-size: 11px !important;
}

/* Remove horizontal row borders in the distributor table */
.distributor-table .ag-row,
.distributor-table .ag-cell {
  border-bottom: none !important;
}


/* ---------- Medtronic Table Styling ---------- */
.medtronic-table .ag-header-cell {
  background-color: var(--gray-light) !important;
  font-weight: bold;
  border-bottom: 2px solid #d0d0d0;
}

.medtronic-table .ag-header-cell-label {
  justify-content: center;
  text-align: center;
}

.medtronic-table .medtronic-header-red .ag-header-cell-label {
  color: #C81E1E !important;
}

.medtronic-table .medtronic-header-black .ag-header-cell-label {
  color: #000000 !important;
}

.medtronic-table .ag-cell {
  border: none !important; /* Remove all cell borders */
  line-height: 26px; /* Vertically center text */
}

.medtronic-table .medtronic-territory-cell {
  text-align: left;
  padding-left: 11px !important;
}

.medtronic-table .medtronic-sales-cell,
.medtronic-table .medtronic-percent-cell {
  text-align: right;
  padding-right: 11px !important;
}


.medtronic-table .ag-header-cell.medtronic-header-red .ag-header-cell-label,
.medtronic-table .ag-header-cell.medtronic-header-red {
  color: #C81E1E !important;
  font-weight: bold !important;
}

/* Remove horizontal row borders in the distributor table */
.medtronic-table .ag-row,
.medtronic-table .ag-cell {
  border-bottom: none !important;
}

.asp-zero,
.asp-bad,
.asp-warn,
.asp-good {
  font-weight: bold !important;
}

.asp-zero {
  color: #000000 !important;
}
.asp-bad {
  color: #b11919 !important;
}
.asp-warn {
  color: #d1be17 !important;
}
.asp-good {
  color: #21902b !important;
}

/* ---------- Distributors MTD Summary Stats ---------- */
#distributors-mtd-summary p {
  color: #c81e1e;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-family: var(--primary-font);
}

#distributors-mtd-summary {
  padding-bottom: 4px;
}
