.sales-orders-page .sales-order-row-problem > td {
  background-color: #fff1f0 !important;
}

.sales-orders-page .sales-order-row-problem:hover > td {
  background-color: #ffccc7 !important;
}

.sales-orders-page .sales-order-row-resolved > td {
  background-color: #f6ffed !important;
}

.sales-orders-page .sales-order-row-resolved:hover > td {
  background-color: #d9f7be !important;
}

.sales-orders-page .sales-order-row-has-popover {
  cursor: help;
}

.sales-order-actions-popover-table {
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
}

.sales-order-actions-popover-table th,
.sales-order-actions-popover-table td {
  padding: 4px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ant-color-border-secondary, #f0f0f0);
  white-space: nowrap;
}

.sales-order-actions-popover-table th {
  color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.45));
  font-weight: 600;
}

.sales-order-actions-popover-table tbody tr:last-child td {
  border-bottom: none;
}

.sales-order-actions-popover-warning {
  margin: 8px 0 0;
  padding: 6px 8px;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  background: #fffbe6;
  color: #614700;
  font-size: 12px;
  line-height: 1.4;
  max-width: 280px;
}

.sales-orders-page .problem-orders-notification {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.35);
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}

.sales-orders-page .problem-orders-notification:hover {
  background: #ff7875;
}

.sales-orders-page .problem-orders-notification-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #ff4d4f, 0 2px 8px rgba(255, 77, 79, 0.45);
}

.sales-orders-page .problem-orders-notification-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.sales-orders-page .problem-orders-notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: #ffe7ba;
  color: #141414;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
/* --------------------------------------------------------------------------
   Open Distribution / management — “original” shell: one scroll in the main
   Table (EventsTab) body; no extra bar on the layout `Content` / page chrome.
   -------------------------------------------------------------------------- */

/* Kill the main Content scrollbar on this route only; inner Table owns scroll. */
.content:has(.od-page-root) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Fixed viewport band under the app header (matches SalesOrders PAGE_HEIGHT) */
.od-page-root {
  height: calc(100dvh - 80px) !important;
  max-height: calc(100dvh - 80px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px !important;
}

/* Title row */
.od-page-root > .ant-flex {
  flex-shrink: 0;
}

/* Main card: fills the remaining band */
.od-page-root > .ant-card {
  margin: 5px !important;
  margin-top: 8px !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.od-page-root > .ant-card .ant-card-body {
  display: flex !important;
  flex: 1 1 0% !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

/* Read-only (no tabs): single wrapper under the card body */
.od-page-root
  .ant-card
  .ant-card-body:has(> div:only-child):not(:has(> .ant-tabs))
  > div:only-child {
  display: flex !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.od-page-root .ant-tabs,
.od-page-root .ant-tabs .ant-tabs-content-holder,
.od-page-root .ant-tabs .ant-tabs-content {
  display: flex !important;
  flex: 1 1 0% !important;
  flex-direction: column !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.od-page-root .ant-tabs .ant-tabs-nav {
  flex-shrink: 0;
  margin: 0;
}

/* Only the *active* tab panel. Targeting all tabpanes overrides
   `display: none` on hidden panels and breaks tab switching. */
.od-page-root .ant-tabs .ant-tabs-tabpane.ant-tabs-tabpane-active {
  display: flex !important;
  flex: 1 1 0% !important;
  flex-direction: column !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* `items[0]`: Setup — scroll; `items[1]`: Events — flex for measured table (order matches tabItems) */
.od-page-root
  .ant-tabs-content
  > .ant-tabs-tabpane:nth-child(1)
  > div:only-child {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.od-page-root
  .ant-tabs-content
  > .ant-tabs-tabpane:nth-child(2)
  > div:only-child {
  display: flex !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Events tab: EventsTab root (direct child of the events panel wrapper) */
.od-page-root
  .ant-tabs-content
  > .ant-tabs-tabpane:nth-child(2)
  > div:only-child
  > div:first-child {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 24px !important;
}

/* Read-only: same EventsTab root path */
.od-page-root
  .ant-card
  .ant-card-body:has(> div:only-child):not(:has(> .ant-tabs))
  > div:only-child
  > div:first-child {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 24px !important;
}

/* Shows / unmapped region: clip here; `scroll` on the Table (x + y) draws the only scrollbars. */
.open-distribution-wrapper {
  display: flex !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0;
}

/* Breadcrumb drill: full show + event row (same columns as main grids) above the child table.
   Must not use flex:1 from `div:has(> .events-table)` (main child table rule). */
.open-distribution-wrapper .od-breadcrumb-parent-context {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 8px 10px 10px;
  background: #fafafa;
  overflow: auto;
  max-width: 100%;
}

.open-distribution-wrapper .od-breadcrumb-context-band--event {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e8e8e8;
}

/* Dense one-row “summary” tables: same cells as main grid, fewer columns, tighter padding */
.open-distribution-wrapper
  .od-breadcrumb-context-table--compact
  .ant-table-thead
  > tr
  > th {
  padding: 6px 6px !important;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.open-distribution-wrapper
  .od-breadcrumb-context-table--compact
  .ant-table-tbody
  > tr
  > td {
  padding: 6px 6px !important;
  font-size: 12px;
  line-height: 1.3;
  vertical-align: middle;
}

/* Main shows list: inner column with “Total” + table */
.open-distribution-wrapper > div:has(> b) {
  display: flex !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Unmapped table: scroller, no <b> total */
.open-distribution-wrapper
  > div:only-child:not(:has(> b)):not(:has(> .ant-alert)) {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: auto !important;
}

/* Error: alert only */
.open-distribution-wrapper > div:has(> .ant-alert:only-child) {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: auto !important;
}

/* “Total: N show(s)” */
.open-distribution-wrapper > div:has(> b) > b:first-of-type {
  flex-shrink: 0 !important;
  display: block !important;
  margin-bottom: 8px !important;
}

/* antd `Table` container with class from EventsTab */
.open-distribution-wrapper div:has(> .events-table) {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.open-distribution-wrapper .status-select-inactive .ant-select-selector {
  background-color: #f5222d !important; /* Red color from the picture */
  color: white !important;
  border: none !important; /* Ensure no border */
  border-radius: 4px; /* Optional: Add some rounded corners */
  padding-left: 12px !important; /* Adjust padding as needed */
  padding-right: 12px !important; /* Adjust padding as needed */
}

.open-distribution-wrapper .status-select-active .ant-select-selector {
  background-color: #389e0d !important; /* Green color from the picture */
  color: white !important;
  border: none !important; /* Ensure no border */
  border-radius: 4px; /* Optional: Add some rounded corners */
  padding-left: 12px !important; /* Adjust padding as needed */
  padding-right: 12px !important; /* Adjust padding as needed */
}

/* Style for the dropdown options */
.open-distribution-wrapper .ant-select-dropdown .status-option-inactive {
  background-color: #f5222d !important; /* Red color for Inactive option */
  color: white !important;
}

.open-distribution-wrapper .ant-select-dropdown .status-option-active {
  background-color: #389e0d !important; /* Green color for Active option */
  color: white !important;
}

.open-distribution-wrapper .status-select-inactive .ant-select-arrow,
.open-distribution-wrapper .status-select-active .ant-select-arrow {
  color: #fff;
  font-size: 12px;
}

.open-distribution-wrapper .ant-select-dropdown .ant-select-item {
  padding: 4px 12px !important; /* Adjust padding for dropdown items */
}

.open-distribution-wrapper
  .ant-select-dropdown
  .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: lightskyblue !important; /* Optional: Highlight color for active dropdown item */
}

.open-distribution-wrapper .custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  width: 100%;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  position: absolute;
  top: 0;
  left: 0;
}

.open-distribution-wrapper .custom-modal-header button {
  color: #fff;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   EventsTab / shows + nested sub-tables — original: grey headers (#fafafa / #333).
   Nested event + listing tables are wrapped (.od-subtable-*) for inset scroll
   (distinct from the main shows grid scrollbar).
   -------------------------------------------------------------------------- */
.open-distribution-wrapper .events-table {
  background-color: #fff;
  border-radius: 4px; /* default-like corners; 8px read as a large “pill” in expanded view */
  overflow: hidden;
}

/* Top-level “shows” grid: grey header, dark text */
.open-distribution-wrapper .events-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 10px;
  color: #333;
}

.open-distribution-wrapper .events-table .ant-table-tbody > tr > td {
  padding: 14px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  vertical-align: middle;
}

.open-distribution-wrapper .events-table .ant-table-tbody > tr:hover > td {
  background-color: #f5f5f5;
}

/* Row styling for alternating colors */
.open-distribution-wrapper .event-row-even {
  background-color: #fff;
}

.open-distribution-wrapper .event-row-odd {
  background-color: #fafafa;
}

/* Expandable row styling: extra top padding + edge so the parent “show” row and sub-grid read as one block */
.open-distribution-wrapper .events-table .ant-table-expanded-row {
  background-color: #f8f9fa;
}

.open-distribution-wrapper .events-table .ant-table-expanded-row > td {
  padding: 12px 10px 20px 10px;
  border-top: 1px solid #e8e8e8;
  vertical-align: top;
}

/* Allow nested tables to show their own horizontal scrollbar on screens narrower than
   the parent table's scroll.x. Ant Design sets overflow: hidden here to pin the
   expanded row to the visible viewport, but that clips the sub-table's scrollbar track. */
.open-distribution-wrapper .events-table .ant-table-expanded-row-fixed {
  overflow: visible !important;
}

.open-distribution-wrapper .events-table .ant-table-expanded-row .ant-table {
  margin: 0;
  background-color: transparent;
}

/* Nested event/listing: subtle frame (not a heavy pill) */
.open-distribution-wrapper .od-subtable-surface {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding-bottom: 4px;
}

.open-distribution-wrapper .od-subtable-l1 {
  margin: 0 5px 8px 0; /* R B L: extra bottom margin for scrollbar visibility */
}

/* Breadcrumb events drill: flex column so the table footer (“Load more”) stays visible. */
.open-distribution-wrapper .od-breadcrumb-events-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.open-distribution-wrapper
  .od-breadcrumb-events-panel
  .od-breadcrumb-events-subtable {
  flex: 1 1 auto;
  min-height: 0;
}

.open-distribution-wrapper .od-subtable-l2 {
  margin: 0 5px 8px 0; /* extra bottom margin for scrollbar visibility */
}

/* All nested theads: same grey as the main “shows” header (no blue) */
.open-distribution-wrapper .od-subtable-surface .ant-table-thead > tr > th {
  background-color: #fafafa !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 8px;
  color: #333 !important;
}

.open-distribution-wrapper .od-subtable-surface .ant-table-tbody > tr > td {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  background-color: #fff;
}

/* Main shows table only: grey scroll thumbs (od-shows-main is on that Table). */
.open-distribution-wrapper .od-shows-main {
  scrollbar-color: #a0a0a0 #e8e8e8; /* thumb track, Firefox */
}

.open-distribution-wrapper .od-shows-main .ant-table-content::-webkit-scrollbar,
.open-distribution-wrapper .od-shows-main .ant-table-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.open-distribution-wrapper
  .od-shows-main
  .ant-table-content::-webkit-scrollbar-track,
.open-distribution-wrapper
  .od-shows-main
  .ant-table-body::-webkit-scrollbar-track {
  background: #e8e8e8;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-shows-main
  .ant-table-content::-webkit-scrollbar-thumb,
.open-distribution-wrapper
  .od-shows-main
  .ant-table-body::-webkit-scrollbar-thumb {
  background: #a0a0a0;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-shows-main
  .ant-table-content::-webkit-scrollbar-thumb:hover,
.open-distribution-wrapper
  .od-shows-main
  .ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Event sub-table (level 1): darker thumbs for better visibility */
.open-distribution-wrapper .od-subtable-l1 {
  scrollbar-color: #707070 #d9d9d9; /* thumb track, Firefox */
}

.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-content::-webkit-scrollbar,
.open-distribution-wrapper .od-subtable-l1 .ant-table-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-content::-webkit-scrollbar-track,
.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-body::-webkit-scrollbar-track {
  background: #d9d9d9;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-content::-webkit-scrollbar-thumb,
.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-body::-webkit-scrollbar-thumb {
  background: #707070;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-content::-webkit-scrollbar-thumb:hover,
.open-distribution-wrapper
  .od-subtable-l1
  .ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Listing sub-table (level 2): darker greys for nested visibility */
.open-distribution-wrapper .od-subtable-l2 {
  scrollbar-color: #606060 #c0c0c0; /* thumb track, Firefox */
}

.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-content::-webkit-scrollbar,
.open-distribution-wrapper .od-subtable-l2 .ant-table-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-content::-webkit-scrollbar-track,
.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-body::-webkit-scrollbar-track {
  background: #c0c0c0;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-content::-webkit-scrollbar-thumb,
.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-body::-webkit-scrollbar-thumb {
  background: #606060;
  border-radius: 5px;
}

.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-content::-webkit-scrollbar-thumb:hover,
.open-distribution-wrapper
  .od-subtable-l2
  .ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Status (Sync, POS, etc.): antd default-like corners and borders, not full pill */
.open-distribution-wrapper .events-table .ant-tag {
  border-radius: 4px; /* antd default token–like, not 16px pill */
  margin-inline-end: 0;
  font-size: 12px;
  line-height: 1.5;
  padding: 0 7px;
  font-weight: 400;
}

/* Checkbox styling */
.open-distribution-wrapper .events-table input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* Expand/collapse icon styling */
.open-distribution-wrapper .events-table .anticon {
  transition: transform 0.2s ease;
  font-size: 16px;
}

/* Table header sort icons */
.open-distribution-wrapper .events-table .ant-table-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* MapEventModal styles */
.open-distribution-wrapper .map-event-container {
  padding: 0;
}

.open-distribution-wrapper .map-event-title {
  font-weight: bold;
}

.open-distribution-wrapper .event-data-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  margin-left: 20px;
}

.open-distribution-wrapper .event-data-label {
  margin-right: 20px;
  min-width: 80px;
  font-weight: normal;
}

.open-distribution-wrapper .event-data-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.open-distribution-wrapper .event-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .open-distribution-wrapper .events-table .ant-table-thead > tr > th,
  .open-distribution-wrapper .events-table .ant-table-tbody > tr > td {
    padding: 10px 6px;
    font-size: 13px;
  }
}

/* BuyInOutboxModal styles */
.buy-modal-info-section {
  margin-bottom: 20px;
}

.buy-modal-seats-section {
  margin-bottom: 12px;
}

.buy-modal-seat-controls {
  margin-bottom: 12px;
}

.buy-modal-seat-control-button {
  margin-right: 8px;
}

.buy-modal-seat-counter {
  margin-left: 16px;
}

.buy-modal-seat-counter-max {
  margin-left: 16px;
  color: #ff4d4f;
}

.buy-modal-seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background-color: #fafafa;
}

.buy-modal-seat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 2px solid #d9d9d9;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 65px;
}

.buy-modal-seat-card:hover {
  border-color: #40a9ff;
  background-color: #f5f5f5;
}

.buy-modal-seat-card-selected {
  border: 2px solid #1890ff;
  background-color: #e6f7ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.buy-modal-seat-card-selected:hover {
  border-color: #1890ff;
  background-color: #e6f7ff;
}

.buy-modal-seat-checkmark {
  font-size: 16px;
  color: #1890ff;
  margin-bottom: 4px;
}

.buy-modal-seat-label {
  font-size: 14px;
  color: #595959;
}

.buy-modal-seat-label-selected {
  font-size: 14px;
  color: #1890ff;
}

.buy-modal-seat-number {
  font-size: 16px;
  color: #262626;
}

.buy-modal-seat-number-selected {
  font-size: 16px;
  color: #1890ff;
}

.buy-modal-summary {
  margin-top: 20px;
  padding: 16px;
  background-color: #f0f5ff;
  border-radius: 4px;
  border: 1px solid #adc6ff;
}

.buy-modal-summary-title {
  margin-top: 0;
}

.buy-modal-summary-item {
  margin-top: 8px;
}

.buy-modal-debug-info {
  font-size: 12px;
  color: #666;
}

.buy-modal-debug-content {
  padding-left: 12px;
}

.buy-modal-debug-item {
  margin-bottom: 4px;
}
/* Ensure this class is applied to the menu items */
.sider-menu .ant-menu-item,
.sider-menu .ant-menu-submenu-title {
  white-space: normal !important;
  word-wrap: break-word !important;
  height: auto !important; /* Ensure height adjusts to content */
  line-height: normal !important; /* Adjust line-height for better readability */
  padding: 10px 12px !important; /* Add vertical padding for spacing */
  font-size: 16px !important; /* Increase font size */
  margin-block: 2px !important;
}

.sider-collapsed .ant-menu-item,
.sider-collapsed .ant-menu-submenu-title {
  height: 50px !important;
  padding: 10px 24px !important; /* Add vertical padding for spacing */
}

.sider-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item,
.sider-menu
  .ant-menu-sub.ant-menu-inline
  > .ant-menu-submenu
  > .ant-menu-submenu-title {
  padding-left: 32px !important;
}

.ant-menu.ant-menu-sub.ant-menu-vertical {
  min-width: 260px !important;
}

.sider-menu .ant-menu-sub .ant-menu-sub {
  padding-left: 22px !important;
}

.sider-menu .ant-menu-item {
  position: relative;
}

.fav-page-icon {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  opacity: 0;
}
.fav-page-icon:hover {
  background-color: none !important;
  background: none !important;
}

.ant-menu.ant-menu-sub .fav-page-icon {
  right: -2px;
}

.sider-menu .ant-menu-item:hover .fav-page-icon,
.fav-page-icon.fav-page-icon-show,
.ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item:hover .fav-page-icon {
  opacity: 1;
}

.fav-page-icon.fav-page-icon-show {
  color: #ffd700 !important;
}

/* .ant-menu-title-content {
} */

.sider-collapsed .anticon {
  font-size: 16px !important;
}

.sider-collapsed .ant-menu-title-content {
  text-indent: -9999px !important;
}

/* Ensure the sider menu handles overflow properly */
.sider-menu {
  overflow: auto;
  padding-bottom: 30px;
}

/* Additional styles to improve appearance */
.sider-menu .ant-menu-item > a,
.sider-menu .ant-menu-submenu-title > span {
  display: block; /* Ensure the link or span takes the full width */
}

.collapsed-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  font-size: 25px;
  font-weight: bold;
  color: inherit;
}

.sider {
  height: 100%;
}

.sider-collapsed {
  position: relative !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.backdrop {
    width: 100%;
    height: 100%;
    background-color: #0009;
    position: fixed;
    z-index: 20;
}

/* Additional Layout styles */
.layout-fullheight {
    display: flex;
    flex-direction: column;
    height: 100vh; /* This ensures the Layout takes the full viewport height */
}

.content {
    flex-grow: 1; /* This will make the content area grow to use available space */
    margin: 8px;
    overflow: auto; /* Adds scrolling to content only when necessary */
}

.footer {
    height: 64px;
    background-color: #fff;
    box-shadow: 0px 5px 7px;
}

/* Ensure other elements are styled appropriately to not exceed their bounds */
.header {
    background-color: #fff;
    height: 64px;
    padding-inline: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px -5px 10px;
    position: sticky;
    top: 0;
    z-index: 19;
}

.content.dark,
.header.dark,
.footer.dark {
    background-color: #141414;
}

.header-menu-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 48px;
    height: 48px;
}
.header-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-trigger {
    cursor: pointer;
}

.ant-layout .sider.ant-layout-sider {
    box-shadow: -5px 0px 10px;
    overflow: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 21;
}
.sider-items-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.app-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sider-menu {
    flex: 1;
}
.sider-mobile-btn {
    width: 100%;
    position: sticky;
    bottom: 0;
    border-radius: 0;
}

.page-loader{
    text-align: center;
    padding: 50px;
}* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;  /* Adjust width as needed */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;  /* Adjust track color as needed */
}

::-webkit-scrollbar-thumb {
    background: #a7a3a3;  /* Adjust thumb color as needed */
    border-radius: 4px;  /* Adjust border radius as needed */
}

body.dark .rc-virtual-list-scrollbar-thumb{
  background: rgba(178, 178, 178, 0.8) !important;
}

.tools-emails-search-drawer .ant-form-item-label {
    padding: 5px !important;
}

.tools-emails-search-drawer .ant-form-item {
    margin-bottom: 10px !important;
}