body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.shop-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.shop-toolbar {
  width: 100%;
}

.shop-list {
  margin-top: 16px;

  .ant-table-cell {
    padding: 8px 16px !important;
    /* color: rgba(0, 0, 0, .92); */
  }
}

.shop-status-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.shop-status-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-detail-page {
  min-height: 100vh;
  background: #f0f2f5;
  text-align: left;
}

.shop-detail-page-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.shop-detail-summary {
  margin-top: 16px;
  margin-bottom: 16px;
}

.shop-detail-summary-item {
  min-height: 82px;
  padding: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

.shop-detail-summary-value {
  margin-top: 4px;
}

.shop-detail-chart {
  margin-bottom: 16px;
}

.shop-detail-panel {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 16px;
}

.shop-detail-panel-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.shop-detail-toolbar {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .shop-toolbar,
  .shop-toolbar .ant-space-item,
  .shop-toolbar .ant-input-search,
  .shop-toolbar .ant-select,
  .shop-add-button {
    width: 100% !important;
  }

  .shop-detail-toolbar,
  .shop-detail-toolbar .ant-space-item,
  .shop-detail-toolbar .ant-picker {
    width: 100% !important;
  }

  .shop-detail-tabs-wrapper .ant-tabs-tab {
    font-size: 12px !important;
    margin: 0 8px 0 0 !important;
    padding: 12px 0 !important;
  }

  .shop-detail-tabs-wrapper .ant-tabs-tab-btn {
    font-size: 12px !important;
  }

  .shop-detail-tabs-wrapper .ant-tabs-tab .anticon {
    margin-right: 2px !important;
  }
}

/* Center tab labels on shop detail page */
.shop-detail-tabs-wrapper {
  width: 100%;
}

.shop-detail-tabs-wrapper .ant-tabs-nav {
  margin: 0 auto !important;
  width: -webkit-fit-content !important;
  width: fit-content !important;
  min-width: 0;
}

.shop-detail-tabs-wrapper .ant-tabs-nav-wrap {
  width: -webkit-fit-content !important;
  width: fit-content !important;
}

.shop-detail-tabs-wrapper .ant-tabs-nav-list {
  width: auto !important;
}

/* Shop detail page header card */
.shop-detail-header.ant-card {
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.shop-detail-header .ant-breadcrumb-link {
  color: #428BCA;
}

.shop-detail-header .ant-breadcrumb-link:hover {
  color: #2d6ba3;
}

.shop-detail-header-icon {
  flex-shrink: 0;
}

.shop-detail-id-tag {
  flex-shrink: 0;
}

/* Shop detail: stat cards (Total Transactions, Total Amount, Est. Adjustments) */
.shop-detail-stat-card.ant-card {
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.shop-detail-stat-card .ant-card-body {
  padding: 20px 24px;
}

.shop-detail-stat-card .ant-statistic-title {
  color: #8c8c8c;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Shop detail: content cards (chart, tables) */
.shop-detail-content-card.ant-card {
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.shop-detail-content-card .ant-card-body {
  padding: 24px;
}

.shop-detail-content-card.ant-card-bordered .ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.order-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;

  .ant-table-cell {
    padding: 8px 16px !important;
    /* color: rgba(0, 0, 0, .92); */
  }
}

.order-table {
  margin-top: 16px;
}

.order-status-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.order-status-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.products-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.product-filters,
.product-actions {
  width: 100%;
}

.product-list-table {
  margin-top: 16px;
}

/* Customize the Rate component to look like a bar */
.quality-bar .ant-rate-star {
  font-size: 20px;
  /* Adjust size as needed */
  width: 30px;
  /* Adjust width for bar-like appearance */
  color: #d9d9d9;
  /* Default color for unselected stars */
}

.quality-bar .ant-rate-star-full {
  color: green;
  /* Color for selected levels */
}

.quality-bar .ant-rate-star:nth-child(1) .ant-rate-star-full {
  color: red;
  /* Color for POOR level */
}

.quality-bar .ant-rate-star:nth-child(2) .ant-rate-star-full {
  color: orange;
  /* Color for FAIR level */
}

.quality-bar .ant-rate-star:nth-child(3) .ant-rate-star-full {
  color: green;
  /* Color for GOOD level */
}

.product-status-tabs .ant-badge-not-a-wrapper {
  display: none
}

.schedule-upload-modal .custom-input .ant-form-item-label {
  padding-bottom: 0px !important;
}

@media (max-width: 768px) {
  .product-filters,
  .product-filters .ant-space-item,
  .product-filters .ant-input-affix-wrapper,
  .product-filters .ant-select,
  .product-actions,
  .product-actions .ant-space-item,
  .product-actions .ant-btn {
    width: 100% !important;
  }
}

.upload-history-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.upload-history-filters,
.upload-history-actions {
  width: 100%;
}

.upload-history-summary {
  justify-content: flex-end;
}

.upload-history-table {
  margin-top: 16px;
}

.upload-history-product {
  width: 100%;
  max-width: 280px;
}

.upload-history-product .two-row-text {
  text-align: left;
}

@media (max-width: 768px) {
  .upload-history-filters,
  .upload-history-filters .ant-space-item,
  .upload-history-filters .ant-picker,
  .upload-history-actions,
  .upload-history-actions .ant-space-item,
  .upload-history-actions .ant-btn {
    width: 100% !important;
  }

  .upload-history-summary {
    justify-content: flex-start;
  }
}

.templates-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.templates-filters,
.templates-actions {
  width: 100%;
}

.templates-search {
  min-width: 260px;
  max-width: 360px;
}

.templates-table {
  margin-top: 16px;
}

.templates-data-table .ant-table-cell {
  padding: 8px 16px !important;
}

.template-name-cell {
  max-width: 260px;
}

.template-description {
  max-width: 340px;
  display: inline-block;
}

@media (max-width: 768px) {
  .templates-filters,
  .templates-filters .ant-space-item,
  .templates-filters .ant-input-search,
  .templates-actions,
  .templates-actions .ant-space-item,
  .templates-actions .ant-btn {
    width: 100% !important;
  }

  .templates-search {
    max-width: none;
    min-width: 0;
  }
}

/* .login-form {
  max-width: 300px;
} */
.login-form-forgot {
  float: right;
}
.login-form-button {
  width: 100%;
}

/* .signup-form {
  max-width: 300px;
} */
.signup-form-forgot {
  float: right;
}
.signup-form-button {
  width: 100%;
}

.settings-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.settings-summary {
  width: 100%;
}

.settings-tabs {
  margin-top: 16px;
}

.settings-tabs .ant-tabs-content-holder {
  min-width: 0;
}

.settings-section {
  max-width: 760px;
}

.settings-table {
  margin-top: 16px;
}

.settings-table .ant-table-cell {
  padding: 8px 16px !important;
}

@media (max-width: 768px) {
  .settings-summary,
  .settings-summary .ant-space-item {
    width: 100% !important;
  }
}

.promotions-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.promotions-filters,
.promotions-actions,
.promotions-summary {
  width: 100%;
}

.promotions-search {
  min-width: 260px;
  max-width: 360px;
}

.promotions-status-filter {
  width: 220px;
}

.promotions-table {
  margin-top: 16px;
}

.promotions-data-table .ant-table-cell {
  padding: 8px 16px !important;
}

.promotion-identity {
  max-width: 270px;
}

.promotion-id {
  max-width: 260px;
  display: inline-block;
}

@media (max-width: 768px) {
  .promotions-filters,
  .promotions-filters .ant-space-item,
  .promotions-filters .ant-input-search,
  .promotions-filters .ant-select,
  .promotions-actions,
  .promotions-actions .ant-space-item,
  .promotions-actions .ant-btn {
    width: 100% !important;
  }

  .promotions-search {
    max-width: none;
    min-width: 0;
  }

  .promotions-status-filter {
    width: 100%;
  }
}

.upload-form .ant-form-item-label {
  font-weight: 500;
}

.upload-form .price-and-stock .ant-form-item-label {
  font-size: 14px;
  color: "rbga(0, 0, 0, 0.85)";
}

.upload-form .ant-form-item-label {
  height: 35px;
  line-height: 28px;
}

.custom-steps .ant-steps-item-icon {
  display: none;
  /* Hide the step number icon */
}

.upload-form .ant-input-group-wrapper {
  border-inline-end-width: 0px !important;
}

.upload-form .ant-input-number-outlined {
  width: 100%;
}

.upload-form .ant-input-number-group-wrapper {
  display: block;
}

.upload-form .variant-table .ant-table-cell {
  padding-top: 8px;
  padding-bottom: 8px;
}

.upload-form .variant-table .ant-table-thead>tr>th {
  background-color: #f0f2f5;
  font-weight: 500;
}

.product-url-crawler {
  text-align: left;
}

.crawl-product-preview {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
  background: #fbfcfe;
}

.crawl-product-preview__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.crawl-product-preview__label {
  color: #627085;
  font-size: 12px;
  margin-bottom: 4px;
}

.crawl-product-preview__title {
  color: #111827;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.crawl-product-preview__description {
  color: #5b6472;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.45;
  max-width: 820px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.crawl-product-preview__empty {
  color: #8c8c8c;
  font-size: 13px;
}

.crawl-variant-summary {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  margin-top: 10px;
}

.crawl-variant-summary__row {
  color: #465466;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
}

.listing-shop-selector {
  align-items: center;
  display: grid;
  grid-gap: 4px 8px;
  gap: 4px 8px;
  grid-template-columns: auto minmax(220px, 1fr);
  min-width: 0;
}

.listing-shop-selector__label {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.listing-shop-selector__error {
  color: #ff4d4f;
  font-size: 11px;
  grid-column: 2;
  line-height: 1.2;
}

.listing-shop-selector__dropdown-actions {
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
}

.upload-settings__title {
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

.upload-settings__automation {
  border-top: 1px solid #eef1f4;
  padding-top: 16px;
  text-align: left;
}

.upload-settings__automation-title {
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.upload-settings__hint {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.upload-settings__prompt {
  margin-top: 14px;
}

.crawl-image-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}

.crawl-image-option {
  aspect-ratio: 1;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.crawl-image-option--selected {
  border-color: #009f9a;
  box-shadow: 0 0 0 2px rgba(0, 159, 154, 0.14);
}

.crawl-image-option .ant-checkbox-wrapper,
.crawl-image-option .ant-checkbox {
  left: 7px;
  position: absolute;
  top: 7px;
  z-index: 1;
}

.crawl-image-option img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 768px) {
  .upload-form .custom-steps .ant-steps-item {
    min-width: 116px;
  }

  .upload-form .custom-steps .ant-steps-item-title {
    white-space: nowrap;
  }

  .upload-form .upload-actions .ant-btn {
    width: 100%;
  }

  .listing-shop-selector {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .listing-shop-selector .ant-select {
    width: 100% !important;
  }

  .listing-shop-selector__error {
    grid-column: 1;
  }

  .upload-form .basic-information,
  .upload-form .product-details,
  .upload-form .product-compliance,
  .upload-form .sales-information,
  .upload-form .shipping {
    padding: 20px !important;
  }

  .crawl-product-preview__meta {
    flex-direction: column;
  }

  .crawl-product-preview__meta .ant-btn {
    width: 100%;
  }
}

.import-products-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.import-products-summary,
.import-products-actions {
  width: 100%;
}

.import-products-table {
  margin-top: 16px;
}

.import-product-variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.import-product-variant-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.import-product-variant-type {
  margin: 0;
  min-width: 72px;
  text-align: center;
}

.import-product-images {
  display: flex;
  gap: 8px;
  max-width: 280px;
  overflow-x: auto;
  padding: 2px 0;
}

.import-product-image-tile {
  position: relative;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  display: grid;
  grid-template-rows: 58px auto;
  grid-gap: 4px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  background: #fff;
  padding: 4px;
}

.import-product-image-actions {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.import-products-category-menu {
  max-height: 200px;
  overflow-y: auto;
}

.import-products-category-add {
  padding: 0 8px 4px;
  width: 100%;
}

.import-products-refresh-panel {
  text-align: left;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.import-products-refresh-prompt {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .import-products-summary,
  .import-products-actions,
  .import-products-actions .ant-space-item,
  .import-products-actions .ant-btn {
    width: 100% !important;
  }
}

.system-products-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.system-products-actions {
  width: 100%;
}

.system-products-summary {
  width: 100%;
}

.system-products-table {
  margin-top: 16px;
}

.system-product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}

.system-product-variant-tag {
  margin: 0;
  max-width: 300px;
}

.system-product-variant-line {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-product-variant-placeholder {
  display: inline-block;
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .system-products-actions,
  .system-products-actions .ant-space-item,
  .system-products-actions .ant-btn {
    width: 100% !important;
  }

  .system-products-summary {
    justify-content: flex-start;
  }
}

.returns-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.returns-filters,
.returns-actions,
.returns-summary {
  width: 100%;
}

.returns-shop-filter {
  min-width: 260px;
}

.returns-type-filter {
  width: 190px;
}

.returns-active-filter {
  width: 150px;
}

.returns-table {
  margin-top: 16px;
}

.returns-data-table .ant-table-cell {
  padding: 8px 16px !important;
}

.returns-identity,
.returns-shop-cell,
.returns-reason-cell {
  max-width: 100%;
}

.returns-order-id {
  max-width: 210px;
  display: inline-block;
}

.returns-copy-button {
  width: 24px;
  height: 24px;
}

.returns-items-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  height: auto;
}

.returns-thumb-strip {
  margin-left: 4px;
}

.returns-thumb,
.returns-item-image {
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}

.returns-items-popover {
  width: 320px;
  max-width: 70vw;
}

.returns-item-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.returns-item-row + .returns-item-row {
  margin-top: 10px;
}

.returns-item-details {
  min-width: 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.returns-item-name,
.returns-item-meta {
  max-width: 250px;
}

@media (max-width: 768px) {
  .returns-filters,
  .returns-filters .ant-space-item,
  .returns-filters .ant-select,
  .returns-actions,
  .returns-actions .ant-space-item,
  .returns-actions .ant-btn {
    width: 100% !important;
  }

  .returns-shop-filter,
  .returns-type-filter,
  .returns-active-filter {
    width: 100%;
    min-width: 0;
  }

  .returns-summary {
    justify-content: flex-start;
  }
}

.tasks-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.tasks-actions,
.tasks-summary,
.tasks-filters {
  width: 100%;
}

.tasks-tabs {
  margin-top: 16px;
}

.tasks-status-filter {
  width: 220px;
}

.tasks-data-table .ant-table-cell {
  padding: 8px 16px !important;
}

.task-identity-cell {
  max-width: 240px;
}

.task-expanded-table {
  padding: 8px 0;
}

.task-product-cell {
  max-width: 320px;
}

.task-product-image {
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
}

.task-product-title,
.task-error-text {
  max-width: 260px;
  display: inline-block;
}

@media (max-width: 768px) {
  .tasks-actions,
  .tasks-actions .ant-space-item,
  .tasks-actions .ant-btn,
  .tasks-filters,
  .tasks-filters .ant-space-item,
  .tasks-filters .ant-select {
    width: 100% !important;
  }

  .tasks-status-filter {
    width: 100%;
  }
}

.road-to-1m-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.road-to-1m-summary {
  width: 100%;
}

.road-to-1m-metric {
  min-width: 150px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

.road-to-1m-metric-value {
  margin-top: 2px;
}

.road-to-1m-leaders {
  margin-top: 16px;
}

.road-to-1m-leaders-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #1f1f1f;
}

.road-to-1m-leader-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

.road-to-1m-leader-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  font-weight: 700;
}

.road-to-1m-leader-main,
.road-to-1m-leader-amount {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.road-to-1m-leader-amount {
  align-items: flex-end;
  text-align: right;
}

.road-to-1m-shop-link {
  display: inline-block;
  max-width: 100%;
  color: #1677ff;
  text-decoration: none;
}

.road-to-1m-shop-link:hover {
  color: #0958d9;
}

.road-to-1m-table {
  margin-top: 16px;
}

.road-to-1m-table .ant-table-cell {
  padding: 8px 16px !important;
}

@media (max-width: 768px) {
  .road-to-1m-page .ant-btn,
  .road-to-1m-page .ant-space-item,
  .road-to-1m-summary,
  .road-to-1m-metric {
    width: 100% !important;
  }

  .road-to-1m-leader-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .road-to-1m-leader-amount {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
}

.proxy-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.proxy-actions,
.proxy-filters,
.proxy-summary {
  width: 100%;
}

.proxy-table {
  margin-top: 16px;
}

.proxy-table .ant-table-cell {
  padding: 8px 16px !important;
}

.proxy-credential-user {
  display: inline-block;
  max-width: 200px;
}

@media (max-width: 768px) {
  .proxy-actions,
  .proxy-actions .ant-space-item,
  .proxy-actions .ant-btn,
  .proxy-filters,
  .proxy-filters .ant-input-search,
  .proxy-filters .ant-select,
  .proxy-summary,
  .proxy-summary .ant-space-item {
    width: 100% !important;
  }
}

.inventory-page {
  flex: 1 1;
  background: #f0f2f5;
  text-align: left;
}

.inventory-summary {
  margin-top: 16px;
}

.inventory-summary-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 16px;
  min-height: 82px;
}

.inventory-summary-value {
  margin-top: 4px;
}

.inventory-tabs {
  margin-top: 16px;
}

.accounting-page {
  flex: 1 1;
  background: #f0f2f5;
  text-align: left;
}

.accounting-summary {
  margin-top: 16px;
}

.accounting-summary-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 16px;
  min-height: 82px;
}

.reports-page {
  flex: 1 1;
  background: #f0f2f5;
  text-align: left;
}

.reports-summary {
  margin-top: 16px;
}

.reports-summary-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 16px;
  min-height: 82px;
}

.reports-summary-value {
  margin-top: 4px;
}

.reports-tabs {
  margin-top: 16px;
}

.audit-page {
  flex: 1 1;
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.audit-filters,
.audit-summary {
  width: 100%;
}

.audit-log-table {
  margin-top: 16px;
}

.audit-log-table .ant-table-cell {
  padding: 8px 16px !important;
}

.audit-log-resource-id,
.audit-log-request-id {
  display: inline-block;
  max-width: 220px;
}

.audit-log-metadata {
  display: inline-block;
  max-width: 360px;
}

.audit-log-detail {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit-log-detail pre {
  max-height: 260px;
  margin: 8px 0 0;
  padding: 12px;
  overflow: auto;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 768px) {
  .audit-page .ant-btn,
  .audit-filters,
  .audit-filters .ant-select,
  .audit-filters .ant-input-search,
  .audit-summary,
  .audit-summary .ant-space-item {
    width: 100% !important;
  }

  .audit-log-detail {
    grid-template-columns: 1fr;
  }
}

.sync-jobs-page {
  padding: 24px 32px;
  background: #f5f7fb;
  min-height: 100%;
}

.sync-jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.sync-jobs-header h3 {
  margin-bottom: 4px;
}

.sync-jobs-toolbar {
  margin-bottom: 16px;
}

.sync-job-log-details {
  margin: 4px 0 0;
  padding: 8px;
  max-width: 100%;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .sync-jobs-page {
    padding: 16px;
  }

  .sync-jobs-header {
    flex-direction: column;
  }
}

.staff-page {
  min-height: 100%;
  background: #f0f2f5;
  text-align: left;
}

.staff-stat-grid {
  margin-top: 16px;
}

.staff-summary-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  min-height: 82px;
  padding: 16px;
}

.staff-summary-value {
  margin-top: 4px;
}

.staff-payroll-formula {
  margin-top: 16px;
  margin-bottom: 16px;
}

.staff-tabs {
  margin-top: 16px;
}

.staff-toolbar {
  margin-bottom: 12px;
}

.attendance-summary {
  margin-bottom: 12px;
}

.staff-panel {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 16px;
}

.staff-invite-panel .ant-form {
  margin-top: 12px;
  row-gap: 12px;
}

@media (max-width: 768px) {
  .staff-invite-panel .ant-form {
    display: block;
  }

  .staff-invite-panel .ant-form-item {
    margin-bottom: 12px;
    width: 100%;
  }

  .staff-invite-panel .ant-input,
  .staff-invite-panel .ant-select,
  .staff-invite-panel .ant-btn {
    width: 100% !important;
  }
}

html,
body {
  overscroll-behavior: none;
  /* Disable bounce effect */
}

.App {
  text-align: center;
  height: 100vh;
}

.main-layout {
  transition: margin-left 0.2s ease;
}

.module-placeholder {
  min-height: calc(100vh - 128px);
  padding: 96px 24px;
  background: #f0f2f5;
}

.module-placeholder .ant-empty {
  max-width: 640px;
  margin: 0 auto;
}

.module-placeholder p {
  color: rgba(0, 0, 0, 0.65);
  margin: 8px auto 0;
  max-width: 520px;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ant-form-item-required {
  flex-direction: row-reverse;
}

.ant-form-item-required::before {
  margin-left: 4px;
}

.ant-form-item-required::after {
  width: 0;
  margin: 0 !important;
}

.ant-modal {
  width: 70% !important;
}

.export-setting-modal {
  width: 60% !important;
}

.import-image-modal {
  width: 50% !important;
}

.ant-form-item .ant-form-item-label>label::after {
  content: "";
}

.ck-editor__editable:not(.ck-editor__nested-editable) {
  min-height: 200px;
}

.table-row-dark {
  background-color: #fbfbfb;
}

.clickable-row {
  cursor: pointer;
}

/* .ant-table-row-level-0 {
  cursor: pointer;
} */

.clickable-row:hover {
  background-color: #f5f5f5;
  /* Optional: Add hover effect */
}

.ant-table-row-level-0:hover {
  background-color: #f5f5f5;
}

.ant-table-row-level-0:hover>td {
  background-color: #f5f5f5 !important;
}

/* .ant-table-row-level-0:hover>td>td {
  background-color: #f5f5f5 !important;
} */

.two-row-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* This controls the number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}


.one-row-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  white-space: normal;
  /* Important to use for ellipsis with multi-line */
  line-clamp: 1;
  /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Remove white-space: nowrap */
  word-break: break-all;
  /* Break long words without spaces */
}

.ant-table-cell {
  /* padding: 8px 16px !important; */
  /* color: rgba(0, 0, 0, .92); */
}

.ant-table-bordered {
  margin-inline: 0px !important;
}

/* .upload-table {
  vertical-align: top;
} */

.ant-tag {
  font-size: 10px;
  line-height: 18px;
  -webkit-margin-end: 0px;
          margin-inline-end: 0px;
  padding-inline: 4px;
}

/* .ant-table
  .ant-table-container
  .ant-table-content
  table
  thead.ant-table-thead
  .ant-table-cell {
  background-color: #bae0ff;
} */

.clickable-cell {
  cursor: pointer;
}

.clickable-cell:hover {
  /* background-color: #d0cfcf; */
  /* padding: 0px !important; */
}

.label-url {
  /* max-width: 150px; */
}

.label-url:hover {
  color: #009995;
  /* Change text color on hover */
  text-decoration: underline;
  /* Add underline on hover */
  cursor: pointer;
}

.input-link:focus {
  border-bottom: 1px solid #009995;
  border-radius: 0px;
  border-bottom-style: dashed;
}

.ant-btn-primary {
  box-shadow: none;
}

.export-setting-modal .ant-form-item {
  margin-bottom: 12px;
}

/* Target all Menu.Item components */
/* .ant-menu-item {
  height: 64px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ant-menu-item-only-child {
  height: 40px !important;
} */

.slider-menu>.ant-menu-item:first-of-type {
  height: 56px;
  /* Custom height */
  display: flex;
  align-items: center;
}

/* Add this CSS to your stylesheet (e.g., Dashboard.css) */
.statistic-card {
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  /* Change cursor to pointer */
}

.statistic-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  /* Increase shadow on hover */
  transform: translateY(-2px);
  /* Slightly lift the card on hover */
  background-color: #f0f5ff;
  /* Change background color on hover */
}

.ant-image-mask-info {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
}

.ant-image-mask-info {
  font-size: 0px;
}

.ant-image-mask-info .anticon {
  font-size: 16px;
  margin: 0 !important;
}

.ant-table-wrapper:only-child .ant-table {
  margin-block: 0px !important;
  margin-inline: 0px !important;
}

/* Add this CSS to your project */
.ant-table-thead>tr>th {
  border-top: 1px solid #f0f0f0 !important;
  padding: 8px 16px !important;
  background-color: #f0f2f5 !important;
  font-weight: 500 !important;
  /* Adjust color and thickness as needed */
}

/* Custom dark theme styles for table header */
.custom-table-header .ant-table-thead>tr>th {
  background-color: #001529 !important;
  /* Dark background similar to Antd Header */
  color: #ffffff;
  /* Light text color */
  border-color: #002140;
  /* Darker border for the cells */
  font-weight: bold;
  /* Optional: Make text bold */
  text-align: center;
  /* Center align the header text */
}

/* Optional hover effect for header cells */
.custom-table-header .ant-table-thead>tr>th:hover {
  background-color: #002140;
}

.scrollable-submenu {
  max-height: 300px;
  overflow-y: auto;
}

.scrollable-submenu::-webkit-scrollbar {
  width: 2px;
}

.custom-footer {
  background-color: #f5f5f5 !important;
}

/* Fixed Header */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0px;
  left: var(--sider-offset, 0px);
  width: calc(100% - 0px);
  width: calc(100% - var(--sider-offset, 0px));
  z-index: 1000;
  height: 64px;
  /* Default antd header height */
  padding: 0;
  padding-left: 32px;
  padding-right: 128px;
  display: flex;
  /* Use flexbox to align items */
  align-items: center;
  justify-content: space-between;
  /* Space out content within the header */
}

.topbar-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.topbar-title-main {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.topbar-title-sub {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  margin-top: 2px;
}

/* Fixed Sidebar */
.fixed-sider {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1001;
}

.fixed-sider .ant-menu-item {
  height: 56px !important;
  line-height: 56px !important;
  /* Adjust the height of menu items */
}

.fixed-sider .ant-menu-submenu-title {
  height: 56px !important;
  line-height: 56px !important;
  /* Adjust the height of submenu titles */
}

.ant-layout-sider-trigger {
  height: 64px !important;
}

@media (max-width: 768px) {
  .fixed-header {
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-end;
  }

  .topbar-title,
  .topbar-title-sub {
    display: none;
  }

  .topbar-actions .ant-space-item:first-child,
  .profile-email {
    display: none;
  }

  .profile-menu-trigger .ant-avatar {
    margin-left: 12px !important;
  }
}

.growth-widget-containerClass>div {
  display: flex;
  justify-content: center;
}

.forgot-password-form-button {
  width: 100%;
}

/* Target the scrollbar in webkit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
  width: 6px;
  /* Thinner scrollbar width */
  height: 6px;
  /* Thinner scrollbar height for horizontal scroll */
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
  /* Rounded track corners */
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  /* Thumb color, a shade of blue for contrast */
  border-radius: 10px;
  /* Rounded thumb corners */
}

/* Customize scrollbar in Firefox */
* {
  scrollbar-width: thin;
  /* Make the scrollbar thinner */
  scrollbar-color: #c1c1c1 #FFF;
  /* Thumb and track color */
}

