.reportbuttons {
  color: var(--button-secondary-text-default);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--button-secondary-bg-default);
  margin: 0px;
  width: 48px;
  height: 40px;
  box-shadow: -1px 2px 2px 0px #00000026;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border:1.5px solid var(--button-secondary-border-default);
  top: 1px
  /* instead of margin-top */
  // right: 18px;

  // min-width: 32px;
  // min-height: 32px;
}

.criteria-item {
  max-width: 150px;        /* Adjust as per your layout */
}

.criteria-label {
  font-size: 10px;
}

.criteria-value {
  font-weight: bold;
  font-size: 12px;

  display: inline-block;
  max-width: 150px;        /* same as .criteria-item or smaller */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* adds "..." when it overflows */
}


// .reportbuttons {
//   // position: absolute;
//   top: 18px;   /* instead of margin-top */
//   right: 18px;
//   width: 32px;
//   height: 32px;
//   min-width: 32px;
//   min-height: 32px;
//   display: flex;
//   align-items: center;
//   justify-content: center;
//   box-shadow: -1px 2px 2px 0px #00000026;
//   border-radius: 8px;
// }

.description {
  color: hsl(215, 16%, 47%);
  padding-left: 12px;
  // padding-bottom: 25px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size:11px;
  // margin-bottom: 20px;
  // padding-top:18px;
  position: relative; 
  z-index: 1; 
  top: -12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-right: 1rem;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid #e2e8f0;
  background-color: #1976d2;
  color: #ffffff;
  cursor: pointer;
}

.addbuttons {
  color: var(--action-primary-default);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--action-primary-default);
  width: 32px;
  height: 32px;
  box-shadow: 0 1px 0px -2px rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.14),
    0 0px 0px 0 rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.reportsettings {
  color: var(--action-primary-default);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  margin-right: 44px;
  width: 32px;
  height: 32px;
  box-shadow: -1px 2px 2px 0px #00000026;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.No-of-Records {
  color: var(--action-primary-default);
  font-family: Helvetica;
  font-weight: 700;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0%;
  margin-top: 6px;
}

.menudata {
  color: var(--mat-sys-on-background);
}

.report-action-icons {
  color: var(--action-primary-default) !important;
}

::ng-deep .mat-mdc-select-value-text {
  color: var(--text-primary) !important;
  // No fixed width — the previous `width:10px` clipped the value box down to almost nothing,
  // which is why the dropdown arrow rendered flush against the report title with no gap at all.
  margin-right: 8px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideUp 0.4s ease;
}

.lightbox h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.lightbox label {
  display: block;
  margin: 12px 0;
  font-weight: 500;
  color: #444;
  cursor: pointer;
}

.lightbox input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.1);
}

::ng-deep .mat-mdc-select-panel {
  min-width: max-content !important;
  width: max-content !important;
}

::ng-deep .report-view-panel {
  min-width: max-content !important;
  width: max-content !important;
}

::ng-deep .report-view-panel .mat-mdc-option {
  white-space: nowrap !important;
}

textarea,
input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-top: 10px;
  resize: none;
  transition: border-color 0.2s;
}

textarea:focus,
input:focus {
  border-color: #007bff;
  outline: none;
}

.actions {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}

.actions button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.actions button:last-child {
  background-color: #ccc;
  color: #333;
}

.actions button:hover {
  background-color: #0056b3;
}

.actions button:last-child:hover {
  background-color: #aaa;
}

.AboutModel {
  display: none;
  position: fixed;
  z-index: 999999;
  right: 0;
  top: 0;
  width: 34%;
  height: 68%;
  left: 22%;
}

.ReportViewSettingModal {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simple animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

//* Container for the whole report list menu */
::ng-deep .custom-settings-menu {
  width: 200px !important;
  height: auto !important;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  box-sizing: border-box;
}

::ng-deep .mymegamenu {
  overflow-x: hidden !important;
  max-width: 250px !important;
}

/* Common menu item base style */
.menu-item {
  display: flex;
  align-items: center;
  width: 200px;
  height: 32px !important;
  padding: 7px 12px;
  font-family: Helvetica;
  font-size: 14px !important;
  margin: 7px 8px;
  font-weight: 400;
  color: #1a1a1ade;
  background: transparent;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease-in-out;

  &:hover {
    background: var(--button-primary-bg-disabled);
  }



  mat-icon {
    font-size: 21px;
    width: 21px;
    height: 21px;
    line-height: 21px;
    display: flex;
    align-items: center;

    justify-content: center;
    color: #1a1a1ade;
  }

  ::ng-deep .mat-mdc-menu-item {
    height: 38px !important;
    min-height: 32px !important;
    line-height: 32px !important;
  }

  span {
    color: #1a1a1ade;
    font-size: 14px;
  }
}

::ng-deep .report-custom-settings-menu.mat-mdc-menu-panel {
  border-radius: 12px !important;
}
::ng-deep .report-csv-menu.mat-mdc-menu-panel,
::ng-deep .report-excel-menu.mat-mdc-menu-panel {
  border-radius: 12px !important;
}
::ng-deep .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text {
  font-size: 14px !important;
}
::ng-deep .mat-mdc-menu-content .mat-mdc-menu-item{
  min-height:38px;
}
// ::ng-deep .mat-mdc-select-trigger{
//   font-size:16px;
//   width:240px !important;
// }
// ::ng-deep .mat-mdc-select-arrow svg{
//   margin-left:8px;
// }
::ng-deep .mat-mdc-menu-submenu-icon{
  transform: rotate(-180deg);
}
// ::ng-deep .mat-mdc-select-value{
//   padding-left:20px;
// }
::ng-deep .mat-mdc-fab-base .mat-focus-indicator{
  top:50px !important;
}
::ng-deep .mat-mdc-tooltip .mdc-tooltip__surface {
  max-width: 500px !important;
  white-space: normal !important; 
  word-wrap: break-word !important;
  line-height: 1.4 !important;
  padding: 0px 12px !important;
}

::ng-deep .custom-tooltip .mdc-tooltip__surface {
  max-width: 600px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  font-size: 13px !important;
}

::ng-deep .mat-mdc-select-arrow {
  color: var(--radio-unchecked-border) !important;
}

// Extracted from inline styles in the template so they can be RTL-mirrored below —
// an inline style's specificity can't be overridden by any external stylesheet rule.
.view-type-wrapper {
  padding-left: 11px;
}

.action-icons-group {
  margin-left: auto;
}

// ─── RTL support ──────────────────────────────────────────────────────────
// This action bar previously had zero RTL handling despite Arabic being a
// supported app language (document.documentElement.dir is set by
// gbtranslate.component.ts). Mirrors the physical left/right rules above,
// following the same [dir="rtl"] convention used in gbslickgrid.component.scss.
[dir="rtl"] {
  .view-type-wrapper {
    padding-left: 0;
    padding-right: 11px;
  }

  .action-icons-group {
    margin-left: 0;
    margin-right: auto;
  }

  .description {
    padding-left: 0;
    padding-right: 12px;
  }

  .header-actions {
    padding-right: 0;
    padding-left: 1rem;
  }

  .reportsettings {
    margin-right: 0;
    margin-left: 44px;
  }

  .lightbox input[type="radio"] {
    margin-right: 0;
    margin-left: 8px;
  }
}